@font-face{font-family:Jost;font-weight:500;font-display:swap;src:url(./jost-latin-500-normal-41lBe9I9.woff2)format("woff2")}@font-face{font-family:Jost;font-weight:900;font-display:swap;src:url(./jost-latin-900-normal-BhVIKTxl.woff2)format("woff2")}@font-face{font-family:"Source Serif 4";font-weight:400;font-display:swap;src:url(./source-serif-4-latin-400-normal-DJ5YJwmz.woff2)format("woff2")}@font-face{font-family:"Source Serif 4";font-weight:700;font-display:swap;src:url(./source-serif-4-latin-700-normal-CGGdTIBe.woff2)format("woff2")}:root{--paper:#f2ebd9;--paper-dim:#e5ddc6;--paper-deep:#d9cfb3;--ink:#111;--ink-mute:#6b6660;--highlighter:#ffd23f;--press-red:#c1121f;--font-display:"Jost", "Futura", "Century Gothic", "Arial Black", sans-serif;--font-serif:"Source Serif 4", Georgia, "Times New Roman", serif;--font-mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace}*,:before,:after{box-sizing:border-box;margin:0;padding:0}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0}html,body{background:var(--paper);width:100%;height:100%;color:var(--ink);font-family:var(--font-serif);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overflow:hidden}#app{position:fixed;inset:0}.kicker{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.12em;color:var(--press-red);font-size:.7rem;font-weight:500;display:block}@keyframes splashFade{0%{opacity:0}18%{opacity:1}78%{opacity:1}to{opacity:0}}#screen-splash{z-index:100;background:var(--ink);color:var(--paper);pointer-events:none;justify-content:center;align-items:center;animation:3.2s ease-in-out forwards splashFade;display:flex;position:absolute;inset:0}.splash-inner{flex-direction:column;align-items:center;display:flex}.splash-inner .kicker{color:var(--highlighter);margin-bottom:1rem}.splash-mark{width:72px;height:72px;margin-bottom:.75rem}.splash-word{font-family:var(--font-display);letter-spacing:.06em;font-size:3.2rem;font-weight:900;line-height:1}.splash-sub{font-family:var(--font-display);letter-spacing:.4em;text-transform:uppercase;margin-top:.4rem;font-size:.8rem}.screen{opacity:0;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;transition:opacity .5s;display:flex;position:absolute;inset:0}.screen.active{opacity:1;pointer-events:all}#screen-start{background:var(--paper);overflow:hidden}.weave-bg{pointer-events:none;background-image:repeating-linear-gradient(0deg,#0000,#0000 30px,#11111112 30px 31px),repeating-linear-gradient(90deg,#0000,#0000 30px,#11111112 30px 31px);position:absolute;inset:0}.weave-bg:after{content:"";background:radial-gradient(ellipse 80% 65% at 50% 42%, transparent 30%, var(--paper) 85%);position:absolute;inset:0}.back{top:calc(1rem + env(safe-area-inset-top));z-index:2;padding:.5rem 0;text-decoration:none;position:absolute;left:1.25rem}.back:hover{color:var(--ink)}.start-content{z-index:1;flex-direction:column;align-items:center;display:flex;position:relative}.game-eyebrow{margin-bottom:.5rem}.title-stitched{font-family:var(--font-display);letter-spacing:.02em;-webkit-user-select:none;user-select:none;align-items:baseline;font-size:clamp(2.6rem,12vw,7rem);font-weight:900;line-height:1;display:flex}.title-stitched .ov{color:var(--ink);display:inline-block;transform:translateY(-.07em)}.title-stitched .un{color:var(--press-red);display:inline-block;transform:translateY(.07em)}.start-buttons{flex-direction:column;gap:.75rem;width:min(270px,80vw);margin-top:3rem;display:flex}.btn-primary,.btn-ghost{font-family:var(--font-display);letter-spacing:.08em;text-transform:uppercase;text-align:center;border:2px solid var(--ink);padding:.75rem 1.5rem;font-size:1rem;font-weight:900;transition:background .1s,color .1s,border-color .1s;display:inline-block}.btn-primary{background:var(--ink);color:var(--paper)}.btn-primary:hover{background:var(--press-red);border-color:var(--press-red)}.btn-ghost{background:var(--paper);color:var(--ink)}.btn-ghost:hover{background:var(--ink);color:var(--paper)}.stats-panel{z-index:50;opacity:0;pointer-events:none;background:#f2ebd9eb;justify-content:center;align-items:center;transition:opacity .3s;display:flex;position:absolute;inset:0}.stats-panel.active{opacity:1;pointer-events:all}.stats-box{background:var(--paper);border:2px solid var(--ink);width:min(440px,88vw);box-shadow:6px 6px 0 var(--ink);text-align:center;padding:1.5rem}.stats-heading{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.02em;border-bottom:3px double var(--ink);text-align:left;margin-bottom:1rem;padding-bottom:.6rem;font-size:1.7rem;font-weight:900;line-height:1.05}.rules-body{text-align:left;max-height:55vh;margin-bottom:1rem;font-size:.92rem;line-height:1.5;overflow-y:auto}.rules-body p{margin-bottom:.7rem}.stats-empty{color:var(--ink-mute);margin-bottom:1.5rem;line-height:1.6}.last-game{background:var(--paper-dim);border:2px solid var(--ink);margin-bottom:1rem;padding:1rem}.result-badge{border:2px solid var(--ink);font-family:var(--font-display);letter-spacing:.12em;margin-bottom:.6rem;padding:.15rem .8rem;font-size:.8rem;font-weight:900;display:inline-block}.badge-win{background:var(--highlighter);color:var(--ink)}.badge-loss{background:var(--press-red);border-color:var(--press-red);color:var(--paper)}.last-details{font-family:var(--font-mono);color:var(--ink-mute);flex-wrap:wrap;justify-content:center;gap:1rem;font-size:.75rem;display:flex}.stats-grid{grid-template-columns:repeat(4,1fr);gap:.5rem;margin-bottom:1.25rem;display:grid}.stat-cell{background:var(--paper-dim);border:2px solid var(--ink);padding:.75rem .25rem}.stat-val{font-family:var(--font-display);font-size:1.75rem;font-weight:900;line-height:1}.stat-lbl{font-family:var(--font-display);letter-spacing:.12em;color:var(--press-red);margin-top:.4rem;font-size:.6rem;font-weight:500}#screen-game{background:var(--paper);justify-content:space-between;padding:16px 16px 20px}.game-header{justify-content:space-between;align-items:center;width:100%;max-width:560px;margin:0 auto;padding:4px 0 12px;display:flex}.player-tag{font-family:var(--font-display);letter-spacing:.2em;font-size:1.1rem;font-weight:900}.p1-tag{color:var(--ink)}.p2-tag{color:var(--press-red)}.game-vs{font-family:var(--font-display);letter-spacing:.3em;color:var(--ink-mute);font-size:.7rem;font-weight:500}#grid-wrap{flex:1;justify-content:center;align-items:center;display:flex}#grid{--csz:min(52px, calc((100vmin - 210px) / 9));grid-template-columns:repeat(9, var(--csz));background:var(--paper-deep);border:3px solid var(--ink);gap:1px;display:grid;overflow:hidden}.cell{width:var(--csz);height:var(--csz);background:var(--paper-dim);transition:background .1s;position:relative}.cell.bb{border-bottom:2px solid var(--ink)}.cell.rb{border-right:2px solid var(--ink)}.cell:after{content:"";z-index:1;transition:background .1s;position:absolute}.p1ro:after,.p2ro:after,.cxro:after{inset:13% 0}.p1co:after,.p2co:after,.cxco:after{inset:0 13%}.p1ro:after,.p1co:after{background:var(--ink)}.p2ro:after,.p2co:after{background:var(--press-red)}.cxro:after,.cxco:after{background:var(--highlighter);box-shadow:0 0 0 1.5px var(--ink)}.p1ru:after,.p2ru:after,.cxru:after{inset:45% 0}.p1cu:after,.p2cu:after,.cxcu:after{inset:0 45%}.p1ru:after,.p1cu:after{background:#11111140}.p2ru:after,.p2cu:after{background:#c1121f4d}.cxru:after,.cxcu:after{background:#ffd23f99}.cell.needle,.cell.p2-needle{background:var(--highlighter);z-index:1}.cell.needle:before,.cell.p2-needle:before{content:"";z-index:3;background:var(--paper);box-shadow:0 0 0 2px var(--ink);border-radius:50%;position:absolute;inset:38%}.cell.needle:after,.cell.p2-needle:after{z-index:2}.cell.p1-guide{background:#11111112}.cell.p2-guide{background:#c1121f17}@keyframes winPulse{0%,to{background:var(--highlighter)}50%{background:var(--paper)}}.cell.win-cell{z-index:2;animation:1s ease-in-out infinite winPulse}.game-controls{justify-content:center;align-items:center;gap:28px;padding-top:14px;display:flex}.dir-pad{grid-template-columns:1fr 1fr 1fr;grid-template-areas:".n.""w.e"".s.";gap:4px;display:grid}.dir-btn{background:var(--paper);border:2px solid var(--ink);width:40px;height:40px;font-family:var(--font-display);justify-content:center;align-items:center;font-size:.8rem;font-weight:900;transition:background .1s,color .1s;display:flex}.dir-btn[data-dir=N]{grid-area:n}.dir-btn[data-dir=W]{grid-area:w}.dir-btn[data-dir=E]{grid-area:e}.dir-btn[data-dir=S]{grid-area:s}.dir-btn:hover{background:var(--ink);color:var(--paper)}.dir-btn.dir-active{background:var(--highlighter);color:var(--ink)}.btn-stitch{background:var(--press-red);width:132px;height:84px;color:var(--paper);border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink);font-family:var(--font-display);letter-spacing:.1em;-webkit-user-select:none;user-select:none;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:1.1rem;font-weight:900;transition:transform .1s,box-shadow .1s;display:flex}.btn-stitch:hover{background:var(--ink)}.btn-stitch:active{box-shadow:2px 2px 0 var(--ink);transform:translate(2px,2px)}.stitch-hint{font-family:var(--font-mono);letter-spacing:.15em;opacity:.8;font-size:.6rem;font-weight:400}.pvp-key-hint{justify-content:center;align-items:center;gap:40px;display:flex}.key-hint-col{flex-direction:column;align-items:center;gap:3px;display:flex}.key-hint-label{font-family:var(--font-display);letter-spacing:.15em;margin-bottom:2px;font-size:1.1rem;font-weight:900}.p1-hint .key-hint-label{color:var(--ink)}.p2-hint .key-hint-label{color:var(--press-red)}.key-hint-keys{font-family:var(--font-mono);letter-spacing:.08em;color:var(--ink-mute);text-transform:uppercase;font-size:.65rem}.result-overlay{z-index:20;pointer-events:none;opacity:0;flex-direction:column;justify-content:space-between;transition:opacity .4s;display:flex;position:absolute;inset:0}.result-overlay.active{opacity:1;pointer-events:all}.result-top{text-align:center;background:linear-gradient(#f2ebd9f7 60%,#0000);width:100%;padding:14px 0 52px}.result-bottom{background:linear-gradient(#0000,#f2ebd9f7 40%);justify-content:center;width:100%;padding:52px 0 20px;display:flex}.result-bottom .btn-primary{width:min(270px,80vw)}.result-banner{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.02em;padding:0 .4rem;font-size:clamp(2.4rem,9vw,5.5rem);font-weight:900;line-height:1;display:inline-block}.r-win{color:var(--ink);background:linear-gradient(transparent 55%, var(--highlighter) 55%)}.r-loss,.r-p2win{color:var(--press-red)}.result-sub{margin-top:.5rem}@media (prefers-reduced-motion:reduce){#screen-splash{animation-duration:1.2s}.cell.win-cell{background:var(--highlighter);animation:none}}
