:root{color:#1c1915;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#10241c;font-family:Manrope,Segoe UI,sans-serif}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{overscroll-behavior:none;background:radial-gradient(1000px 560px at 50% -10%,#2c5644 0%,#0000 60%),#10241c;min-height:100dvh;margin:0}button{font:inherit;touch-action:manipulation}h1,h2,.status{font-family:Literata,Georgia,Times New Roman,serif}.home{place-items:center;min-height:100dvh;padding:24px 16px;display:grid}.card{color:#1c1915;background:#f4efe4;border-radius:28px;width:min(42rem,100%);padding:36px 32px;box-shadow:0 28px 70px #00000047}h1{letter-spacing:-.03em;margin:0;font-size:clamp(2.3rem,6vw,3.5rem);line-height:1.05}.lead{margin:14px 0 0;font-size:1.12rem;line-height:1.45}.rules{gap:10px;margin:22px 0 28px;padding:0;list-style:none;display:grid}.rules li{background:#fffdf8;border-radius:16px;padding:12px 14px 12px 16px;line-height:1.4;box-shadow:inset 3px 0 #2f6b45}.actions,.stack{flex-wrap:wrap;gap:10px;display:flex}.join{gap:8px;margin-top:12px;display:flex}.code{min-width:0;color:inherit;font:inherit;letter-spacing:.14em;text-transform:uppercase;background:#fffdf8;border:0;border-radius:999px;flex:1;padding:12px 16px}.room-code{letter-spacing:.18em;text-align:center;margin:8px 0 0;font-size:clamp(2rem,8vw,3rem)}.btn{color:#1c1915;cursor:pointer;background:#efe8dc;border:0;border-radius:999px;padding:12px 18px}.btn.primary{color:#f4efe4;background:#2f6b45}.btn.danger{color:#6e2420;background:#f3d6d2}.btn.ghost{background:0 0;box-shadow:inset 0 0 0 1px #d5cbbd}.btn:hover{filter:brightness(1.05)}.btn:disabled{opacity:.38;cursor:default;filter:none}.btn:focus-visible,.sq:focus-visible,.promo button:focus-visible{outline-offset:2px;outline:3px solid #e0b84a}.shell{justify-content:center;align-items:center;min-height:100dvh;padding:16px;display:flex}.game{justify-content:center;align-items:flex-start;gap:20px;width:min(1120px,100%);display:flex}.board-wrap{width:min(72dvh,100%,680px)}.board{aspect-ratio:1;-webkit-user-select:none;user-select:none;touch-action:none;border-radius:10px;grid-template-rows:repeat(8,1fr);grid-template-columns:repeat(8,1fr);width:100%;display:grid;position:relative;overflow:hidden;box-shadow:0 18px 50px #00000059;container-type:size}.board.locked{cursor:default}.sq{cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid;position:relative}.board.locked .sq{cursor:default}.piece{pointer-events:none;font-family:Segoe UI Symbol,"Noto Sans Symbols 2",DejaVu Sans,sans-serif;font-size:9.4cqmin;line-height:1;display:block;transform:translateY(-4%)}.piece.w{color:#fbf8f2;-webkit-text-stroke:.06em #241c16;paint-order:stroke fill;text-shadow:0 1px #241c1659}.piece.b{color:#1a1614;-webkit-text-stroke:.045em #f4ecdf;paint-order:stroke fill}.sq.draggable{cursor:grab}.sq.lift .piece{opacity:.28}.sq.over,.sq.sel{box-shadow:inset 0 0 0 3px #f2d15a}.drag-ghost{z-index:40;pointer-events:none;place-items:center;display:grid;position:fixed;transform:translate(-50%,-58%)}.drag-ghost .piece{font-size:.78em;transform:none}.sq.dim{cursor:default}.sq.dim:after{content:"";pointer-events:none;z-index:2;background:#08100c7a;position:absolute;inset:0}.sq.zone{box-shadow:inset 0 -4px #e0b84a}.sq.sel.zone{box-shadow:inset 0 0 0 3px #f2d15a,inset 0 -4px #c8922a}.sq.zone.over{box-shadow:inset 0 0 0 3px #f2d15a}.rn,.fn{pointer-events:none;font-size:11px;font-weight:700;line-height:1;position:absolute}.rn{top:3px;left:4px}.fn{bottom:3px;right:4px}.light-ink{color:#f0d9b5}.dark-ink{color:#4f6b38}.hint{pointer-events:none;background:#14100c61;border-radius:50%;width:28%;height:28%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.hint.enemy,.hint.own{background:0 0;width:92%;height:92%}.hint.enemy{box-shadow:inset 0 0 0 5px #d23b3b}.hint.own{box-shadow:inset 0 0 0 5px #e39b12}.promo{z-index:4;filter:drop-shadow(0 10px 16px #00000059);flex-direction:column;width:12.5%;display:flex;position:absolute;top:0}.promo.rev{flex-direction:column-reverse;top:auto;bottom:0}.promo button{aspect-ratio:1;cursor:pointer;background:#f7f3ea;border:0;padding:8%}.promo button+button{box-shadow:inset 0 1px #e4dccb}.side{flex-direction:column;gap:12px;width:300px;min-height:0;max-height:min(680px,100dvh - 32px);display:flex}.panel{color:#1c1915;background:#f4efe4;border-radius:22px;flex-direction:column;flex:auto;gap:12px;width:100%;min-height:0;padding:18px 16px 16px;display:flex;overflow:auto;box-shadow:0 18px 50px #00000040}.eyebrow{color:#6d665c;letter-spacing:.04em;text-transform:uppercase;margin:0;font-size:.82rem}.status{margin:0;font-size:1.55rem;line-height:1.15}.note{color:#3f3a33;margin:0;line-height:1.4}.scrub{background:#f4efe4;border-radius:22px;flex:none;gap:8px;padding:10px;display:flex;box-shadow:0 18px 50px #00000040}.scrub .btn{flex:1;place-items:center;min-height:64px;padding:8px;display:grid}.scrub svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;width:42px;height:42px}.move-row .on{background:#efe4c4;border-radius:6px;padding:0 4px}.moves{flex-direction:column;gap:4px;max-height:280px;padding-right:4px;display:flex;overflow:auto}.move-row{font-variant-numeric:tabular-nums;grid-template-columns:2rem 1fr 1fr;gap:8px;display:grid}.move-no{color:#6d665c}@media (width<=860px){.shell{align-items:stretch;padding:12px}.game{flex-direction:column;align-items:center}.board-wrap{width:min(100%,100dvh - 240px,680px)}.side{width:min(100%,680px);max-height:none}.panel{max-height:none}.moves{max-height:140px}}@media (width<=700px){.home{padding:max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));justify-content:center;align-items:safe center;display:flex;overflow:auto}.card{border-radius:20px;padding:22px 16px}.lead{font-size:1rem}.rules{gap:8px;margin:16px 0 18px}.actions{flex-direction:column}.actions .btn{width:100%;min-height:48px}.shell{height:100dvh;min-height:100dvh;padding:max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));flex-direction:column;overflow:hidden}.game{flex:1;justify-content:flex-start;align-items:stretch;gap:10px;width:100%;height:100%;min-height:0}.board-wrap{flex:none;width:100%;min-height:0}.board-wrap .board{width:min(100%,62dvh - 12px);margin-inline:auto;box-shadow:0 10px 28px #00000059}.side{flex:0 auto;width:100%;max-height:38dvh}.panel{border-radius:18px;gap:8px;padding:12px}.scrub{border-radius:18px;padding:8px}.scrub .btn{min-height:52px}.scrub svg{width:36px;height:36px}.stack{flex-wrap:wrap}.stack .btn{flex:auto}.status{font-size:1.28rem}.note{font-size:.92rem}.moves{max-height:64px}.stack .btn{min-height:44px}.rn,.fn{font-size:10px}}@media (height<=480px){.shell{height:100dvh;min-height:100dvh;padding:max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));flex-direction:column;align-items:stretch;overflow:hidden}.game{flex-direction:row;align-items:stretch;gap:10px;width:100%;height:100%;min-height:0}.board-wrap{flex:auto;place-items:center;width:auto;min-width:0;height:100%;min-height:0;display:grid;container-type:size}.board-wrap .board{width:min(100cqi,100cqb)}.side{flex:0 auto;width:min(280px,46vw);max-height:100%}.panel{gap:8px;padding:10px}.scrub .btn{min-height:48px}.scrub svg{width:32px;height:32px}.status{font-size:1.15rem}.moves{flex:1;max-height:none}.stack{flex-wrap:wrap}.home{place-items:center;overflow:auto}.card{padding:16px}.actions{flex-direction:row}.actions .btn{width:auto;min-height:44px}}
