:root{font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#253b37;background:#f4f3ec;font-synthesis:none;--green:#247d67;--muted:#71837d}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #c57739;outline-offset:4px}button{border:0}main{width:min(100% - 32px,500px);margin:0 auto;padding:28px 0 24px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-size:24px;font-weight:750;letter-spacing:.02em}.brand small{display:block;font-size:9px;letter-spacing:.14em;font-weight:600;margin-top:5px;color:var(--muted)}.logo{display:grid;place-items:center;background:#253b37;color:#e6f4c2;border-radius:14px;width:44px;height:44px;font-size:32px}.icon{height:42px;border-radius:22px;background:#e7e9df;padding:0 13px;font-size:20px;color:#53665d}.icon span{font-size:9px;font-weight:700;margin-left:4px}.fan{font-size:10px;letter-spacing:.1em;color:#647367;margin-bottom:21px}.game{width:100%}.scorebar{display:flex;justify-content:space-between;align-items:end;padding-bottom:25px}.eyebrow{display:block;font-size:9px;letter-spacing:.16em;color:var(--muted);margin-bottom:6px}.scorebar strong{font-size:29px;letter-spacing:-.04em;font-weight:650}.scorebar .time{text-align:right}.time strong{font-size:25px;font-variant-numeric:tabular-nums;font-weight:450}.puzzleline{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;font-size:11px;color:#71837d}.skins{display:flex;gap:3px;padding:3px;background:#e7e9df;border-radius:18px}.skins button{padding:5px 16px;border-radius:15px;background:transparent;color:#697b73;font-size:11px}.skins button[aria-pressed=true]{background:#fffdf6;color:#284e42;box-shadow:0 1px 3px #293c3510}.boardwrap{position:relative;padding:10px;border-radius:22px;background:#cbd6c8;box-shadow:0 12px 30px #29412c0c}.board{aspect-ratio:1;position:relative;background:#e2e9db;border-radius:13px;overflow:hidden}.cell{position:absolute;width:20%;height:20%;border-right:1px solid #becdbb99;border-bottom:1px solid #becdbb99;background:transparent;padding:0}.cell:nth-child(5n){border-right:0}.cell:nth-child(n+21){border-bottom:0}.cell.destination:after{content:"";display:block;position:absolute;inset:34%;border:2px solid #428a6c;border-radius:50%;background:#428a6c26;animation:pulse 1.7s infinite}.cell.destination:hover{background:#b6cfb8}.stone{position:absolute;width:15.3%;height:15.3%;left:2.35%;top:2.35%;border-radius:50%;padding:0;z-index:2;transition:transform .3s cubic-bezier(.22,.7,.3,1),box-shadow .15s;background:linear-gradient(145deg,#36967e,#216e5d);box-shadow:0 4px 0 #15513f,0 6px 8px #264e3926;color:#c2edda}.stone.other{background:linear-gradient(145deg,#fffcf4,#e8dfcb);box-shadow:0 4px 0 #bbb7a3,0 6px 8px #264e3926;color:#777565;pointer-events:none}.stone:before{content:"";position:absolute;inset:19%;border:1px solid #ffffff2a;border-radius:50%}.stone.selected{box-shadow:0 4px 0 #15513f,0 0 0 4px #b5d876,0 7px 13px #264e3933}.stone:hover{filter:brightness(1.07)}.stone svg{position:absolute;inset:12%;width:76%;height:76%}.stone.cat:before{display:none}.stone.winning{box-shadow:0 4px 0 #15513f,0 0 0 4px #c1dc7e}.stone:disabled{cursor:default}.turns{display:flex;justify-content:center;gap:13px;margin:23px 0 14px;font-size:11px;color:#8c9890;align-items:center}.turns span{border-radius:15px;padding:6px 9px}.turns .active{color:#246d55;background:#e1ead8;font-weight:650}.turns i{font-style:normal;font-size:11px;color:#b0b7aa}.status{text-align:center;min-height:45px;font-size:13px;padding:4px 0 13px;line-height:1.6}.status.success{font-weight:700;color:#247d67}.status.error{color:#a45b40}.actions{display:grid;grid-template-columns:1fr 1.55fr;gap:12px}.actions button{height:49px;border-radius:12px;font-size:13px;font-weight:650}.secondary{color:#506459;background:#e6e9de}.primary{background:#294e40;color:#f3f5e9;display:flex;align-items:center;justify-content:space-between;padding:0 22px}.primary span{font-size:21px}.actions button:hover{filter:brightness(1.06)}.bottom{display:flex;justify-content:space-between;align-items:center;margin:21px 0 30px;font-size:10px;color:#7b897e}.share{font-size:11px;background:transparent;color:#385548;padding:7px 0 7px 10px}details{border-top:1px solid #dce1d4;border-bottom:1px solid #dce1d4;font-size:11px;padding:14px 0;color:#6c7e71}summary{cursor:pointer;width:max-content}details p{line-height:1.9;margin:10px 0 0}footer{font-size:10px;color:#78867b;padding-top:20px;text-align:center;line-height:1.8}footer p{margin:4px 0}footer a{color:#586e60;text-underline-offset:3px}footer nav{display:flex;gap:18px;justify-content:center}.note{font-size:9px!important;color:#8a958a}#winLine{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);pointer-events:none;z-index:3}#winLine line{stroke:#d2e98d;stroke-width:4;stroke-linecap:round;opacity:.65}@keyframes pulse{50%{opacity:.55}}@media(min-width:650px){main{padding-top:44px}.boardwrap{padding:12px}.fan{margin-bottom:28px}}@media(max-width:360px){main{width:calc(100% - 24px);padding-top:20px}.brand{font-size:21px}.turns{gap:6px}.bottom{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Cat tiles have no circular backing; the silhouette itself has a visible edge. */
.stone.cat,.stone.cat.other{background:transparent;border-radius:0;box-shadow:none;filter:drop-shadow(0 5px 3px #20312830)}
.stone.cat svg{inset:0;width:100%;height:100%;overflow:visible}.cat-face{fill:#25292b;stroke:#3f4548;stroke-width:1.3}.cat-edge{fill:#080a0c}.cat-detail{fill:#edf0e9;stroke:#edf0e9}.cat-whisker{fill:none}.other .cat-face{fill:#fffefa;stroke:#d3d3c9}.other .cat-edge{fill:#b7b9b3}.other .cat-detail{fill:#353b3b;stroke:#353b3b}.other .cat-whisker{fill:none}.stone.cat.selected{filter:drop-shadow(0 0 2px #247d67) drop-shadow(0 0 5px #b5d876) drop-shadow(0 5px 3px #20312830)}.stone.cat.winning{filter:drop-shadow(0 0 5px #b5d876)}
.introbar{display:flex;align-items:center;justify-content:space-between;min-height:32px;margin-top:8px;font-size:10px}.introbar button{background:transparent;color:#586e60;padding:6px 2px;font-size:10px;text-decoration:underline;text-underline-offset:3px}.introbar small{font-size:9px}.introbar button:disabled{opacity:.35;cursor:default}.introbar [hidden]{display:none}.introducing .stone{transition:transform var(--intro-slide,60ms) linear}.turns{margin-top:9px}

/* Reference palette: electric purple / hot pink, lemon, mint, cream and ink. */
:root{color:#18172f;background:#982bfa;--green:#6851e9;--muted:#5c586e;--ink:#211b3c;--paper:#fffaf3}body{min-height:100vh;background:linear-gradient(155deg,#792bff 0%,#d313c6 44%,#ff3e88 76%,#ff9453 100%);background-attachment:fixed}main{padding-bottom:28px}.brand{color:#fffaf3;font-weight:900}.brandtitle{display:block;color:#ffe62d;font-size:28px;letter-spacing:-.04em;text-shadow:2px 2px 0 var(--ink),-1px -1px 0 var(--ink),1px -1px 0 var(--ink),-1px 1px 0 var(--ink)}.brandtitle>span{color:#58f0bd}.brand small{color:#fffaf3;font-weight:800}.logo{background:#ffe62d;color:var(--ink);border:3px solid var(--ink);box-shadow:3px 3px 0 var(--ink);border-radius:13px}.icon{background:var(--paper);border:3px solid var(--ink);box-shadow:3px 3px 0 var(--ink);color:var(--ink)}.fan{color:#fffaf3;font-weight:750}.scorebar{background:var(--paper);border:3px solid var(--ink);border-radius:20px;box-shadow:4px 5px 0 var(--ink);padding:17px 20px;margin-bottom:20px}.scorebar strong{font-weight:850}.time strong{font-weight:750}.eyebrow{font-weight:800;color:#62586f}.puzzleline{color:#fffaf3;font-weight:750}.skins{background:var(--ink);border:2px solid var(--ink)}.skins button{color:#fffaf3;font-weight:800}.skins button[aria-pressed=true]{background:#ffe62d;color:var(--ink);box-shadow:none}.boardwrap{background:#ffe62d;border:4px solid var(--ink);box-shadow:6px 7px 0 var(--ink);border-radius:23px}.board{background:#fff9ee;border:2px solid var(--ink);border-radius:12px}.cell{border-color:#d8c5d4}.cell.tinted{background:#fce6f2}.cell.destination:after{border:3px solid #5d36d7;background:#b9a4ff6b}.cell.destination:hover{background:#d8c8ff}.stone{background:linear-gradient(145deg,#9377ff,#6647e8);box-shadow:0 5px 0 #372375,0 7px 6px #29203c32;border:2px solid #30204e;color:#fffaf3}.stone.other{background:linear-gradient(145deg,#ffffff,#fff2d8);box-shadow:0 5px 0 #c6a980,0 7px 6px #29203c32;border:2px solid #30204e}.stone.selected{box-shadow:0 5px 0 #372375,0 0 0 4px #58f0bd,0 7px 10px #29203c32}.stone.winning{box-shadow:0 5px 0 #372375,0 0 0 4px #58f0bd}.stone.cat,.stone.cat.other{border:0;background:transparent;box-shadow:none}.introbar button{color:#fffaf3;font-weight:750}.introbar button:disabled{opacity:.65}.turns{color:#fffaf3;font-weight:750}.turns .active{color:var(--ink);background:#58f0bd;box-shadow:2px 2px 0 var(--ink);outline:2px solid var(--ink)}.turns i{color:#ffe62d}.status{color:var(--ink);background:var(--paper);border:2px solid var(--ink);border-radius:11px;padding:10px 8px;min-height:46px;margin-bottom:14px;box-shadow:3px 3px 0 var(--ink);font-weight:650}.status.success{color:#174e43;background:#b5f7d7}.status.error{color:#842043;background:#ffdae5}.actions button{border:3px solid var(--ink);box-shadow:4px 5px 0 var(--ink);font-weight:850}.secondary{color:var(--ink);background:var(--paper)}.primary{color:var(--ink);background:#ffe62d}.actions button:active{transform:translate(2px,2px);box-shadow:2px 3px 0 var(--ink)}.bottom{color:#fffaf3;font-weight:650}.share{color:#fffaf3;font-weight:800}details{background:var(--paper);border:3px solid var(--ink);border-radius:15px;box-shadow:4px 5px 0 var(--ink);padding:14px 16px;color:#4e425d}summary{color:var(--ink);font-weight:800}footer,footer a,.note{color:#fffaf3!important}footer{font-weight:550}#winLine line{stroke:#19d7a0;stroke-width:6;opacity:.9}.intro-reset .stone{transition:none!important}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #58f0bd;outline-offset:4px}

/* Five-win challenge, in-board controls and a third playful skin. */
[hidden]{display:none!important}.scorebar{margin-bottom:12px;padding:15px 18px}.scorebar strong{font-size:26px}.time strong{font-size:25px}.challenge-info{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fffaf3;font-size:10px;line-height:1.6;margin:0 2px 16px}.challenge-info>span{max-width:72%}.challenge-info strong{white-space:nowrap;font-weight:800;color:#ffe62d}.puzzleline{gap:10px;flex-wrap:wrap;margin-bottom:11px}.skins{flex-shrink:0}.skins button{padding:5px 12px}.matchup{width:max-content;max-width:100%;margin:0 auto 12px;padding:5px 16px;border:2px solid var(--ink);border-radius:20px;background:var(--paper);box-shadow:2px 3px 0 var(--ink);font-size:13px;line-height:1.5;font-weight:800;word-spacing:.1em}.board{container-type:inline-size}.cell.edge-right{border-right:0}.cell.edge-bottom{border-bottom:0}.cell:not(.edge-right){border-right:1px solid #d8c5d4}.cell:not(.edge-bottom){border-bottom:1px solid #d8c5d4}.board-tools{position:absolute;display:flex;gap:4px;transform:translate(-50%,-50%);z-index:5;width:max-content;pointer-events:none}.board-tools button{pointer-events:auto;display:grid;place-items:center;width:var(--tool-size,32px);height:var(--tool-size,32px);padding:0;border:2px solid var(--ink);border-radius:8px;color:var(--ink);background:#fffaf3;box-shadow:1px 2px 0 #211b3c;font-size:calc(var(--tool-size,32px)*.65);line-height:1;font-weight:800;transition:filter .15s}.board-tools #next{background:#ffe62d}.board-tools button:hover{filter:brightness(1.08)}.board-tools button:active{box-shadow:none;translate:1px 2px}.board-tools button:focus-visible{outline:2px solid #bd37ea;outline-offset:2px}.actions{grid-template-columns:1fr 1.1fr;align-items:center}.actions .primary{grid-column:1/-1;justify-content:center}.actions .secondary span{display:block;font-size:9px;font-weight:650;margin-top:1px}.practice-note{font-size:10px;line-height:1.65;color:#fffaf3;font-weight:600;padding-left:3px}.actions button:disabled{opacity:.55;cursor:default}.bottom{gap:12px;flex-wrap:wrap;margin-bottom:26px;line-height:1.5}.bottom .share{padding-left:0}.help-images{display:grid;gap:12px;margin-top:14px}.help-images figure{margin:0;padding:8px;border:2px solid #dfd2e6;border-radius:12px;background:#fff}.help-images img{display:block;width:100%;height:auto}.help-images figcaption{color:var(--ink);font-size:12px;font-weight:800;text-align:center;margin:0 0 4px}.help-small{font-size:10px}.attribution{font-weight:800;font-size:11px}footer a{text-underline-offset:3px}.stone.emoji,.stone.emoji.other{display:grid;place-items:center;border:2px solid #382454;border-radius:24%;background:#f2e8ff;box-shadow:0 4px 0 #8b64ca,0 6px 7px #29203c25}.stone.emoji.other{background:#fff1c8;box-shadow:0 4px 0 #c6a980,0 6px 7px #29203c25}.stone.emoji:before{display:none}.emoji-glyph{display:block;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:10.8cqw;line-height:1;pointer-events:none;filter:drop-shadow(0 1px 0 #211b3c12)}.stone.emoji.selected,.stone.emoji.winning{outline:4px solid #19d7a0;outline-offset:2px}.stone.cat.selected{filter:drop-shadow(0 0 2px #19d7a0) drop-shadow(0 0 5px #58f0bd) drop-shadow(0 5px 3px #20312830)}.stone.cat.winning{filter:drop-shadow(0 0 5px #58f0bd)}dialog{width:min(440px,calc(100% - 32px));padding:25px 22px;color:var(--ink);background:var(--paper);border:3px solid var(--ink);border-radius:20px;box-shadow:6px 7px 0 #211b3c}dialog::backdrop{background:#211b3ca6;backdrop-filter:blur(3px)}dialog h2{font-size:17px;margin:0 0 12px}dialog p{font-size:12px;line-height:1.8;margin:0 0 20px}dialog>div{display:flex;gap:10px}dialog button{flex:1;border:2px solid var(--ink);border-radius:10px;padding:11px 6px;background:#eee4f5;color:var(--ink);font-size:12px;font-weight:800}dialog #visitOfficial{background:#ffe62d}@media(max-width:360px){.skins button{padding:5px 10px}.puzzleline{font-size:10px}.scorebar{padding:13px 14px}.scorebar strong{font-size:23px}.time strong{font-size:22px}.challenge-info{font-size:9px}.brandtitle{font-size:25px}.bottom{gap:6px}.share{font-size:10px}}@supports not(font-size:1cqw){.emoji-glyph{font-size:clamp(26px,8vw,48px)}}

.cell{background:transparent}.cell.tinted{background:#fce6f2}.cell.destination:hover{background:#d8c8ff}

/* Ready cue is an independent scale, so slide translations remain intact. */
.matchup{display:flex;align-items:center;justify-content:space-between;gap:clamp(18px,6vw,42px);width:100%;padding:10px 18px;border-radius:14px;margin-bottom:14px;word-spacing:normal}.matchup-side{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:12px}.matchup-side b{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:30px;font-weight:400;line-height:1.15}.versus{font-size:11px;letter-spacing:.08em;color:#80708f;font-weight:900}.board-tools{gap:8px}.board-tools button{display:flex;align-items:center;justify-content:center;gap:6px;width:var(--tool-width,104px);height:var(--tool-size,46px);border-radius:11px;border-width:2px;box-shadow:2px 3px 0 #211b3c;font-size:30px}.board-tools small{font-size:10px;line-height:1.1;font-weight:850}.tools-dock{margin-top:14px;min-height:49px}.board-tools.docked{position:static;transform:none;justify-content:center;width:100%}.confetti{position:absolute;inset:-30px -12px -40px;pointer-events:none;z-index:8;overflow:hidden}.confetti i{position:absolute;top:2%;width:8px;height:15px;border-radius:2px;opacity:0;animation:confetti-fall 1.6s ease-out forwards}@keyframes confetti-fall{0%{opacity:1;transform:translate3d(0,-25px,0) rotate(0)}80%{opacity:1}100%{opacity:0;transform:translate3d(var(--drift),540px,0) rotate(var(--spin))}}@media(max-width:360px){.matchup{gap:14px;padding:10px 12px}.matchup-side{gap:8px;font-size:11px}.matchup-side b{font-size:27px}}@media(prefers-reduced-motion:reduce){.stone.ready{scale:1}.confetti{display:none}}

/* Five stamps keep hints visible without treating them as losses. */
.round-slots{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:17px 0 19px}.round-slot{aspect-ratio:1.35;display:grid;place-items:center;border:3px solid var(--ink);border-radius:12px;background:#fffaf34d;color:#fffaf3;font-weight:900;font-size:21px;box-shadow:2px 3px 0 var(--ink)}.round-slot.current{background:#fffaf3;color:#aaa0b2;outline:3px solid #ffe62d;outline-offset:2px}.round-slot.cleared{background:#58f0bd;color:#174e43;font-size:30px}.round-slot.hinted{color:#bf2461;background:#ffe6ef;font-size:14px;letter-spacing:.04em;text-decoration:overline underline;text-decoration-thickness:2px;animation:stamp-in .3s ease-out}.round-slot.hinted.cleared{background:#ffdce9}.actions{display:flex;justify-content:center}.actions #hint{min-width:150px;width:46%}.actions #newChallenge{width:100%}.bottom{justify-content:space-between}.bottom #record{font-size:12px;color:#ffe62d;font-weight:850}#shareDialog{max-height:88vh;overflow:auto;width:min(540px,calc(100% - 24px));padding:20px}#shareDialog>div.share-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}#shareDialog h2{margin:0;font-size:17px}#closeShare{flex:none;width:34px;padding:2px;height:34px;font-size:24px;background:transparent;border:0}#shareDialog .share-intro{font-size:11px;margin:12px 0 16px}#shareDialog .share-boards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}#shareDialog .share-card{padding:5px;min-width:0;border:3px solid #dfd2e6;display:block;background:#fffaf3;border-radius:11px;position:relative}#shareDialog .share-card.chosen{border-color:#7351e5;background:#eee6ff}#shareDialog .share-card.chosen:after{content:'✓';position:absolute;right:3px;top:3px;width:21px;height:21px;display:grid;place-items:center;background:#7351e5;border:2px solid #fff;color:#fff;border-radius:50%;font-size:12px}#shareDialog canvas{display:block;width:100%;height:auto}#shareDialog .share-card span{display:block;font-size:10px;margin-top:5px}#shareDialog .share-summary{font-size:12px;font-weight:800;line-height:1.7;margin:16px 0}#shareDialog .share-buttons{display:flex;flex-direction:column;gap:10px}#shareImage,#saveAndTweet{width:100%;padding:13px 8px;background:#ffe62d}#shareImage{background:#58f0bd}#shareDialog .share-status{font-size:10px;line-height:1.7;margin:12px 0 0;color:#6f607b}.share-card:focus-visible{outline:3px solid #19d7a0;outline-offset:2px}@keyframes stamp-in{from{transform:scale(1.2) rotate(-9deg);opacity:.4}to{transform:scale(1);opacity:1}}@media(max-width:360px){.round-slots{gap:7px}.round-slot{border-width:2px}.round-slot.hinted{font-size:11px}#shareDialog .share-boards{grid-template-columns:repeat(2,1fr)}}

/* Keep positional motion separate from centered scaling; never clip the last row. */
.board{overflow:visible}.stone{transform:none;transform-origin:50% 50%;transition:left .3s cubic-bezier(.22,.7,.3,1),top .3s cubic-bezier(.22,.7,.3,1),box-shadow .15s;scale:none;overflow:visible}.stone.ready{animation:ready-centered 1.6s ease-in-out 1 both}.stone.ready:nth-last-child(2){animation-delay:0s}@keyframes ready-centered{0%,50%,100%{transform:scale(1)}25%,75%{transform:scale(1.055)}}.introducing .stone{transition:left var(--intro-slide,60ms) linear,top var(--intro-slide,60ms) linear}.hint-demo .stone{transition-duration:.48s}.stone.hint-origin{z-index:4;outline:4px solid #ff4a98;outline-offset:3px;filter:drop-shadow(0 0 6px #ffe62d)}.cell.hint-target:after{inset:30%;border:4px solid #b51e7d;background:#ff4a9877;box-shadow:0 0 0 5px #ffe62d88;animation:none}.finish-share{position:absolute;z-index:7;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:10px;width:82%;padding:20px 12px;background:#fffaf3f5;border:3px solid var(--ink);border-radius:18px;box-shadow:5px 6px 0 #211b3c;backdrop-filter:blur(5px);text-align:center}.finish-badge{color:#6750ce;font-size:14px;font-weight:900}.finish-share strong{font-size:12px;color:var(--ink)}#finishShareButton{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:54px;padding:10px;border:3px solid var(--ink);border-radius:13px;background:#ffe62d;box-shadow:3px 4px 0 var(--ink);color:var(--ink);font-size:13px;font-weight:900}#finishShareButton>span{font-size:25px}#finishShareButton:hover{background:#58f0bd}#finishShareButton:active{translate:2px 2px;box-shadow:1px 2px 0 var(--ink)}@media(prefers-reduced-motion:reduce){.stone.ready{transform:none;animation:none}.hint-demo .stone{transition:none}}@media(max-width:360px){.finish-share{padding:15px 9px;gap:9px}#finishShareButton{font-size:11px;gap:6px}}

/* One result summary above; center-board sharing stays a single inviting button. */
.finish-share{background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:0;width:78%}#finishShareButton{min-height:64px;font-size:16px;padding:14px 9px;box-shadow:5px 6px 0 var(--ink)}.history-link{margin:0 auto;color:#fffaf3;background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:12px;font-weight:750;padding:10px}#historyDialog{width:min(580px,calc(100% - 24px));max-height:88vh;overflow:auto;padding:20px}#historyDialog .history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}#historyDialog h2{margin:0;font-size:17px}#closeHistory{flex:none;width:34px;height:34px;font-size:24px;background:transparent;border:0;padding:0}#historyDialog .history-boards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.history-card{display:flex;flex-direction:column;gap:8px;align-items:center;padding:9px;border:2px solid #ded1eb;border-radius:12px;background:#fff}.history-card canvas{display:block;width:100%;height:auto}.history-card strong{font-size:11px}.history-card button{width:100%;font-size:10px;padding:9px 4px;background:#eee6ff}#saveAllBoards{width:100%;margin-top:16px;padding:12px;background:#ffe62d}.history-status{font-size:11px!important;margin:13px 0 0!important;text-align:center}@media(max-width:360px){#finishShareButton{font-size:13px;min-height:58px}.history-card{padding:6px}.history-card button{font-size:9px}}

/* Explicit snaps, stable piece identities, and result celebration. */
.position-reset .stone{transition:none!important;animation:none!important}
.logo{background:transparent;border:0;box-shadow:none;border-radius:0;width:38px;font-size:35px;flex-shrink:0}.brand{gap:8px}.brandtitle{font-size:27px}.icon{flex-shrink:0}
.matchup-icon{display:inline-grid;place-items:center;width:32px;height:32px;position:relative;flex-shrink:0}.matchup-icon.plain{border:2px solid #30204e;border-radius:50%;background:linear-gradient(145deg,#9377ff,#6647e8);box-shadow:0 3px 0 #372375}.matchup-icon.plain.other{background:linear-gradient(145deg,#fff,#fff2d8);box-shadow:0 3px 0 #c6a980}.matchup-icon.cat svg{width:36px;height:36px;overflow:visible}
.round-slot.hinted{white-space:pre-line;line-height:1.05;text-align:center;text-decoration:none;font-size:12px;letter-spacing:.05em}.round-slot.hinted.cleared{padding:3px 0;font-size:12px}.round-slot.hinted.cleared::first-line{font-size:29px;line-height:1;color:#174e43}
#historyButton{display:flex;align-items:center;justify-content:center;width:100%;min-height:60px;padding:13px 8px;border:3px solid var(--ink);border-radius:13px;box-shadow:5px 6px 0 var(--ink);color:var(--ink);background:#58f0bd;text-decoration:none;font-size:14px;font-weight:900;line-height:1.4}#historyButton:hover{background:#fffaf3}#historyButton:active{translate:2px 2px;box-shadow:1px 2px 0 var(--ink)}.finish-share{gap:17px;width:82%}
.help-button{display:block;width:100%;text-align:left;background:var(--paper);border:3px solid var(--ink);border-radius:15px;box-shadow:4px 5px 0 var(--ink);padding:14px 16px;color:var(--ink);font-size:12px;font-weight:800}.help-button:after{content:'↗';float:right}#helpDialog{max-height:88vh;overflow:auto;padding:20px}#helpDialog .help-heading{align-items:center;justify-content:space-between}#helpDialog h2{margin:0}#closeHelp{flex:none;width:34px;height:34px;padding:0;border:0;background:transparent;font-size:24px}#helpDialog .help-images{display:grid}#helpDialog .help-images figure{padding:6px}
.confetti.grand{position:fixed;inset:0;z-index:40}.confetti.grand i{top:-5%;width:11px;height:21px;animation-name:grand-confetti-fall}.confetti.grand .confetti-star{width:20px;height:20px;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%)}.victory-burst{position:absolute;width:22px;height:22px;border:5px dotted #ffe62d;border-radius:50%;opacity:0;animation:victory-burst 1.5s ease-out both}.grand-win{animation:grand-board-glow 1.2s ease-in-out 3}@keyframes grand-confetti-fall{0%{opacity:1;transform:translate3d(0,-30px,0) rotate(0)}85%{opacity:1}100%{opacity:0;transform:translate3d(var(--drift),115vh,0) rotate(var(--spin))}}@keyframes victory-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(17)}}@keyframes grand-board-glow{50%{box-shadow:0 0 30px 12px #ffe62d99}}
@media(max-width:400px){.brandtitle{font-size:23px}.brand small{font-size:8px;letter-spacing:.08em}.logo{width:30px;font-size:30px}.brand{gap:6px}.icon{padding:0 10px}#historyButton{font-size:12px;min-height:54px}}@media(max-width:340px){.brandtitle{font-size:21px}.brand small{font-size:7px}.logo{width:26px;font-size:27px}.icon{padding:0 8px}}@media(prefers-reduced-motion:reduce){.grand-win{animation:none}.confetti.grand{display:none}}

.round-slot.hinted{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.slot-check{font-size:28px;line-height:1;color:#174e43}.slot-hint{font-size:11px;line-height:1.2;border-block:1.5px solid currentColor;letter-spacing:.06em}@media(max-width:360px){.slot-check{font-size:24px}.slot-hint{font-size:10px}}

/* Daily / random modes, a permanently discoverable help button, and thinking time only. */
header{margin-bottom:7px}.subtitle{margin:0 0 18px;color:#fffaf3;font-size:11px;line-height:1.7;font-weight:650}.subtitle a{color:inherit;text-underline-offset:3px}.top-tools{display:flex;gap:12px;margin-bottom:20px;align-items:stretch}.top-tools .help-button{width:auto;flex:1;padding:11px 15px}.daily-records-button{flex:1;border:3px solid var(--ink);border-radius:15px;box-shadow:4px 5px 0 var(--ink);background:#eee5ff;color:var(--ink);font-size:12px;font-weight:800;padding:10px}.scorebar{align-items:center;gap:12px;padding:12px 14px;margin-bottom:9px}.scorebar #timer{font-size:25px;font-variant-numeric:tabular-nums;white-space:nowrap}.mode-switch{display:flex;gap:4px;border-radius:12px;background:#e9deed;padding:4px}.mode-switch button{padding:9px 12px;border-radius:9px;background:transparent;color:#62586f;font-size:12px;font-weight:850}.mode-switch button[aria-pressed=true]{background:#ffe62d;color:var(--ink);box-shadow:1px 2px 0 var(--ink)}.mode-date{font-size:10px;font-weight:700;color:#fffaf3;text-align:center;margin:0 0 15px;line-height:1.6}.round-slots{margin-top:13px}.actions{margin-bottom:24px}.puzzleline:has(#number[hidden]){justify-content:flex-end}#finishShareLabel{font-size:14px!important}#closeHelp,#closeHistory,#closeDailyRecords{flex:none;width:auto;min-width:64px;height:34px;padding:5px 10px;border:2px solid var(--ink);border-radius:9px;background:#ffe62d;font-size:11px;font-weight:850;white-space:nowrap}.help-heading,.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}#dailyRecordsDialog{width:min(480px,calc(100% - 24px));max-height:85vh;overflow:auto;padding:20px}#dailyRecordsDialog h2{margin:0;font-size:16px}#dailyRecordsDialog .local-note{font-size:10px;margin:14px 0}#dailyRecordsList{display:grid;gap:11px}.daily-record{border:2px solid #decfeb;border-radius:12px;padding:12px;background:#fff}.daily-record strong{font-size:13px}.daily-record p{font-size:12px;margin:7px 0 3px}.daily-record small{font-size:10px;color:#756580}@media(max-width:380px){.mode-switch button{padding:8px 9px;font-size:11px}.scorebar #timer{font-size:23px}.subtitle{font-size:10px}.scorebar{padding:11px}.top-tools{gap:9px}.daily-records-button{font-size:11px}#finishShareLabel{font-size:12px!important}}

/* Readable mobile controls: spend space on the board, not repeated vertical gaps. */
body{min-height:100svh}
.subtitle{font-size:14px;line-height:1.45}
.top-tools{gap:8px;align-items:center}
.top-tools .help-button,.daily-records-button{font-size:15px;min-height:40px;padding:7px 11px;flex:0 0 auto;width:auto}
.top-tools .help-button:after{display:none}
.top-tools .skins{margin-left:auto}
.skins button{font-size:14px;line-height:1.25;padding:6px 11px}
.mode-switch button{font-size:14px;line-height:1.3;padding:8px 10px;white-space:nowrap}
.matchup-side{font-size:15px}
.versus{font-size:13px}
.actions button{font-size:16px}
.actions .secondary span{font-size:13px}
.board-tools small{font-size:14px}
.status{font-size:15px;line-height:1.5}
.turns{font-size:14px}
.turns i{font-size:13px}
.introbar button{font-size:14px}
.puzzleline:has(#number[hidden]),.introbar:has(#introControls[hidden]){display:none}
.round-start{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);width:82%;min-height:58px;padding:13px 12px;border:3px solid var(--ink);border-radius:15px;background:#ffe62d;color:var(--ink);box-shadow:5px 6px 0 var(--ink);font-size:20px;line-height:1.3;font-weight:900;white-space:nowrap}
.round-start:hover{background:#58f0bd}
.round-start:active{translate:2px 2px;box-shadow:3px 4px 0 var(--ink)}
dialog{position:fixed;inset:0;margin:auto;max-height:calc(100svh - 24px);max-height:calc(100dvh - 24px);overflow:auto;font-size:16px}
dialog h2,#helpDialog h2,#historyDialog h2,#dailyRecordsDialog h2{font-size:19px;line-height:1.4}
dialog p,dialog button{font-size:16px;line-height:1.55}
#closeHelp,#closeHistory,#closeDailyRecords{font-size:14px;min-height:38px;height:auto;padding:7px 11px}
#helpDialog{width:min(500px,calc(100% - 20px));padding:16px;max-height:calc(100svh - 24px);max-height:calc(100dvh - 24px)}
#helpDialog .help-goal{font-size:16px;line-height:1.65;font-weight:800;margin:16px 0 10px}
#helpDialog .help-images{gap:12px;margin-top:10px}
#helpDialog .help-images figure{padding:7px}
#helpDialog .help-images figcaption{font-size:15px;line-height:1.5;margin:4px 0}
#modeDialog{width:min(420px,calc(100% - 24px));padding:23px 20px}
#modeDialog button{min-height:44px;font-size:16px}
#confirmMode{background:#ffe62d}
.history-card strong{font-size:14px}
.history-card button,#historyDialog .history-status,#dailyRecordsDialog .local-note,.daily-record p{font-size:14px!important}
.daily-record strong{font-size:15px}.daily-record small{font-size:13px}
footer{font-size:12px}.attribution{font-size:13px}.note{font-size:12px!important}

@media(max-width:600px){
 main{width:calc(100% - 20px);padding:8px 0 20px}
 header{min-height:34px;margin-bottom:4px}
 .brand{gap:5px}.brandtitle{font-size:25px}.logo{width:31px;height:34px;font-size:31px}
 .icon{height:34px;padding:0 9px;font-size:18px;box-shadow:2px 3px 0 var(--ink)}.icon span{font-size:12px;margin-left:2px}
 .subtitle{margin:0 0 7px;font-size:14px;line-height:1.4;letter-spacing:-.035em}
 .top-tools{gap:6px;margin:0 0 8px;min-height:36px;justify-content:space-between}
 .top-tools .help-button,.daily-records-button{min-height:36px;padding:5px 9px;border-width:2px;border-radius:10px;box-shadow:2px 3px 0 var(--ink);font-size:14px;line-height:1.3;white-space:nowrap}
 .top-tools .skins{padding:2px;gap:1px;margin-left:auto;border-width:2px}
 .skins button{font-size:14px;line-height:1.3;padding:5px 9px}
 .game{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(112px,1fr);grid-template-areas:'score score' 'slots slots' 'number number' 'matchup matchup' 'board board' 'tools tools' 'intro intro' 'turns actions' 'status status';gap:4px 9px;align-items:center}
 .scorebar{grid-area:score;padding:0;margin:0;border:0;background:transparent;box-shadow:none;gap:7px;min-width:0}
 .mode-switch{padding:3px;gap:2px;border:2px solid var(--ink);border-radius:11px;background:var(--paper);box-shadow:2px 3px 0 var(--ink)}
 .mode-switch button{font-size:14px;line-height:1.2;padding:6px 8px}
 .scorebar #timer{font-size:27px;letter-spacing:-.05em;color:#fffaf3;text-shadow:1px 2px 0 var(--ink);font-weight:850}
 .round-slots{grid-area:slots;margin:3px 0 2px;gap:7px}
 .round-slot{height:36px;aspect-ratio:auto;border-width:2px;border-radius:9px;font-size:20px;box-shadow:2px 2px 0 var(--ink)}
 .round-slot.current{outline-width:2px;outline-offset:1px}.round-slot.cleared{font-size:25px}.round-slot.hinted{gap:1px}.slot-check{font-size:18px}.slot-hint{font-size:12px;line-height:1.1}
 .puzzleline{grid-area:number;margin:0;min-height:0;font-size:13px}
 .matchup{grid-area:matchup;padding:4px 12px;margin:0 0 2px;border-radius:11px;gap:18px;box-shadow:2px 2px 0 var(--ink)}
 .matchup-side{gap:8px;font-size:14px}.matchup-side b{font-size:25px}.matchup-icon{width:25px;height:25px}.matchup-icon.cat svg{width:28px;height:28px}.versus{font-size:12px}
 .boardwrap{grid-area:board;width:min(100%,clamp(280px,calc(100svh - 350px),480px));width:min(100%,clamp(280px,calc(100dvh - 350px),480px));margin:0 auto 3px;padding:7px;border-width:3px;border-radius:19px;box-shadow:4px 5px 0 var(--ink)}
 .board{border-radius:10px}#winLine{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}
 .tools-dock{grid-area:tools;margin:3px 0;min-height:48px}
 .introbar{grid-area:intro;min-height:28px;margin:0;justify-content:center}.introbar button{font-size:14px;padding:4px}
 .turns{grid-area:turns;gap:3px;margin:3px 0;min-width:0;font-size:13px;white-space:nowrap;justify-content:space-between}
 .turns span{padding:5px 3px}.turns i{font-size:12px}.turns .active{box-shadow:1px 2px 0 var(--ink);outline-width:1px}
 .actions{grid-area:actions;gap:0;margin:3px 0;min-width:0}
 .actions #hint{width:100%;min-width:0;height:46px;border-width:2px;box-shadow:3px 4px 0 var(--ink);font-size:16px;padding:4px 6px}.actions .secondary span{font-size:12px;line-height:1.2}
 .status{grid-area:status;min-height:0;margin:5px 0 0;padding:7px 10px;font-size:15px}
 .game:has(#newChallenge:not([hidden])) .turns{display:none}.game:has(#newChallenge:not([hidden])) .actions{grid-column:1/-1}.actions #newChallenge{font-size:15px;min-height:50px;padding:8px}
 #historyButton{font-size:14px;min-height:52px}#finishShareLabel{font-size:16px!important}
 .round-start{font-size:19px;min-height:56px}
 #helpDialog{padding:14px}.help-heading{gap:8px}
 footer{padding-top:20px}
}
@media(max-width:370px){
 main{width:calc(100% - 16px);padding-top:6px}
 .brandtitle{font-size:23px}.logo{width:28px;font-size:29px}.brand{gap:4px}
 .top-tools{gap:5px}.top-tools .help-button,.daily-records-button{padding-inline:8px}.skins button{padding-inline:8px}
 .mode-switch button{padding-inline:7px}.scorebar #timer{font-size:26px}
 .game{column-gap:7px}.turns{font-size:13px;gap:2px}.turns span{padding-inline:2px}
}

/* Hint is a deliberate two-line label, not inline text squeezed into a fixed height. */
.actions #hint{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:auto;min-height:52px;padding:6px 10px;line-height:1.2;text-align:center}
.actions #hint>span{display:block;margin:0;font-size:12px;line-height:1.2;white-space:nowrap}
