*,:before,:after{box-sizing:border-box}html,body,#root{height:100%;min-height:100%;margin:0}html{color:#f2f2f0;-webkit-tap-highlight-color:transparent;background:#0c0c0c}body{overscroll-behavior:none;font-family:Space Grotesk,ui-sans-serif,system-ui,sans-serif;font-size:17px;line-height:1.35}button,input{font:inherit;color:inherit}a{color:inherit}:root{--bg:#0c0c0c;--fg:#f2f2f0;--muted:#8a8a84;--line:#242422;--accent:#e8e4d9;--safe-top:env(safe-area-inset-top,0px);--safe-bot:env(safe-area-inset-bottom,0px)}[data-look=cute]{--accent:#ff8fab}[data-look=dark]{--accent:#9eb1ff}[data-look=arcade]{--accent:#ffe14d}[data-look=clean]{--accent:#e8e4d9}.page,.shell{height:100dvh;max-height:100dvh;padding:calc(16px + var(--safe-top)) 20px calc(16px + var(--safe-bot));background:var(--bg);color:var(--fg);flex-direction:column;max-width:430px;margin:0 auto;display:flex}.page{overflow:auto}.shell{overflow:hidden}.play{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:auto}.brand{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:24px;display:flex}.brand a{letter-spacing:-.03em;font-weight:600;text-decoration:none}.brand .muted{font-size:13px}.muted{color:var(--muted)}.progress{background:var(--line);height:2px;margin-bottom:28px}.progress>span{background:var(--accent);height:100%;display:block}.prompt{letter-spacing:-.04em;margin:0 0 28px;font-size:28px;font-weight:600}.choices{flex-direction:column;gap:10px;margin-top:auto;display:flex}.choice,.btn{appearance:none;border:1px solid var(--line);color:var(--fg);text-align:left;cursor:pointer;background:0 0;width:100%;min-height:56px;padding:14px 16px}.choice:active,.btn:active{background:#161616}.btn{text-align:center;justify-content:center;align-items:center;text-decoration:none;display:flex}.btn-primary{background:var(--accent);color:#0c0c0c;border-color:var(--accent);font-weight:600}.btn-primary:active{background:var(--accent);filter:brightness(.92)}.btn-row{flex-direction:column;gap:10px;display:flex}.match h1,.shell-head h1,.list-page h1{letter-spacing:-.05em;margin:0 0 8px;font-size:32px;font-weight:650}.why{color:var(--muted);margin:0 0 28px}.alt-label{color:var(--muted);margin:28px 0 10px;font-size:13px}.game-link{border-top:1px solid var(--line);width:100%;padding:16px 0;text-decoration:none;display:block}.game-link strong{margin-bottom:4px;display:block}.shell-head{margin-bottom:12px}.shell-head .kicker{color:var(--muted);margin-bottom:4px;font-size:13px}.shell-foot{z-index:2;flex-direction:column;flex-shrink:0;gap:10px;margin-top:12px;display:flex;position:relative}.score{color:var(--muted);font-size:15px}.roast{letter-spacing:-.03em;font-size:18px;font-weight:500}.tap-fill{border:1px solid var(--line);text-align:center;-webkit-user-select:none;user-select:none;touch-action:none;letter-spacing:-.04em;flex:1;justify-content:center;align-items:center;min-height:0;padding:24px;font-size:22px;font-weight:600;display:flex}.tap-fill.go{color:#0c0c0c;background:#f2f2f0;border-color:#f2f2f0}.tap-fill.fake{color:#f2f2f0;background:#3a3a36}.tap-fill.wait{background:#0c0c0c}.canvas-wrap{border:1px solid var(--line);touch-action:none;flex:1;min-height:0;position:relative;overflow:hidden}.canvas-wrap canvas{touch-action:none;width:100%;height:100%;display:block}.letters{grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:8px;margin-top:16px;display:grid}.tile{border:1px solid var(--line);background:0 0;min-height:56px;font-size:20px;font-weight:600}.tile.on{background:var(--accent);color:#0c0c0c;border-color:var(--accent)}.tile:disabled{opacity:.35}.guess-bar{border-bottom:1px solid var(--line);letter-spacing:.2em;text-transform:uppercase;justify-content:center;align-items:center;min-height:64px;font-size:28px;font-weight:600;display:flex}.guess-slots{border-bottom:1px solid var(--line);justify-content:center;align-items:center;gap:8px;min-height:64px;display:flex}.guess-slot{letter-spacing:0;text-transform:uppercase;justify-content:center;align-items:center;width:32px;height:48px;font-size:26px;font-weight:600;display:flex}.guess-slot.empty{color:var(--muted)}.hint-line{text-align:center;letter-spacing:.28em;text-transform:uppercase;margin:8px 0 0;font-size:15px;font-weight:600}.guess-actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;display:grid}.guess-actions .btn{min-height:52px;padding:12px 10px;font-size:15px}.room-stage{flex:1;grid-template-columns:1fr 1fr;gap:8px;min-height:0;display:grid}.object{border:1px solid var(--line);text-align:left;background:0 0;align-items:flex-end;min-height:88px;padding:12px;font-weight:600;display:flex}.object.open{border-color:var(--accent)}.inv{color:var(--muted);min-height:1.2em;margin-bottom:8px;font-size:13px}.sheet{border-top:1px solid var(--line);background:#121212;flex-direction:column;flex-shrink:0;gap:10px;padding:16px 0 4px;display:flex}.sheet p{margin:0}.coin-stage{touch-action:none;-webkit-user-select:none;user-select:none;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:24px;display:flex}.coin{border:1px solid var(--line);letter-spacing:-.04em;width:160px;height:160px;transform-style:preserve-3d;border-radius:50%;justify-content:center;align-items:center;font-size:28px;font-weight:700;display:flex}.coin.flip{animation:.9s ease-in-out flip}@keyframes flip{0%{transform:rotateX(0)}to{transform:rotateX(720deg)}}.call-row{grid-template-columns:1fr 1fr;gap:8px;width:100%;display:grid}.shell[data-status=playing] .why,.shell[data-status=playing] h1{display:none}.shell[data-status=playing] .shell-head{margin-bottom:4px}.shell[data-status=playing] .shell-foot{margin-top:0}.snake-game{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.snake-eat{z-index:2;pointer-events:none;letter-spacing:-.04em;text-shadow:0 1px 8px #0c0c0c;justify-content:space-between;align-items:baseline;gap:12px;margin:0;font-size:22px;font-weight:600;display:flex;position:absolute;top:10px;left:12px;right:12px}.snake-eat em{color:var(--accent);font-style:normal}.snake-eat span{color:var(--muted);font-size:16px;font-weight:500}.snake-board{flex:1;min-height:0}.dpad{z-index:2;grid-template-rows:44px 44px 44px;grid-template-columns:48px 48px 48px;gap:6px;margin:0;display:grid;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.dpad button{border:1px solid var(--line);background:#0c0c0ccc;min-height:44px}.dpad .up{grid-area:1/2}.dpad .left{grid-area:2/1}.dpad .right{grid-area:2/3}.dpad .down{grid-area:3/2}.waiting{text-align:center;flex-direction:column;flex:1;justify-content:center;gap:16px;display:flex}.code{letter-spacing:.28em;font-size:40px;font-weight:700}.live-status{color:var(--muted);justify-content:space-between;margin-bottom:8px;font-size:13px;display:flex}.guess-input{border:1px solid var(--line);background:0 0;width:100%;min-height:52px;margin-top:8px;padding:12px}.prompt-pill{margin-bottom:8px;font-size:15px}.list-page .game-link:first-of-type{border-top:0}.how{color:var(--muted);white-space:pre-line;max-height:28vh;margin:0 0 12px;font-size:15px;overflow:auto}.home-page h1{letter-spacing:-.05em;margin:0 0 24px;font-size:32px;font-weight:650}.home-tiles{flex-direction:column;gap:10px;margin-top:auto;display:flex}.home-tile{appearance:none;border:1px solid var(--line);color:var(--fg);text-align:left;letter-spacing:-.03em;background:0 0;align-items:center;width:100%;min-height:64px;padding:16px 18px;font-size:20px;font-weight:600;text-decoration:none;display:flex}.home-tile:active{background:#161616}.home-tile:last-child{color:var(--muted);margin-top:8px;font-weight:500}.len-row{grid-template-columns:1fr 1fr 1fr;gap:8px;margin:12px 0 0;display:grid}.len-row .btn{min-height:48px}.shell[data-game=snake][data-status=playing],.shell[data-game=tetris][data-status=playing],.shell[data-game=ships][data-status=playing],.shell[data-game=mines][data-status=playing]{max-width:none;padding:0}.shell[data-game=snake][data-status=playing] .shell-head,.shell[data-game=snake][data-status=playing] .shell-foot,.shell[data-game=tetris][data-status=playing] .shell-head,.shell[data-game=tetris][data-status=playing] .shell-foot,.shell[data-game=ships][data-status=playing] .shell-head,.shell[data-game=ships][data-status=playing] .shell-foot,.shell[data-game=mines][data-status=playing] .shell-head,.shell[data-game=mines][data-status=playing] .shell-foot{display:none}.shell[data-game=snake][data-status=playing] .play,.shell[data-game=tetris][data-status=playing] .play,.shell[data-game=ships][data-status=playing] .play,.shell[data-game=mines][data-status=playing] .play{overflow:hidden}.shell[data-game=snake][data-status=playing] .canvas-wrap,.shell[data-game=tetris][data-status=playing] .canvas-wrap{border:0}.lobby{flex-direction:column;gap:10px;margin-top:auto;display:flex}.join-row{grid-template-columns:1fr auto;gap:8px;display:grid}.join-row .btn{width:auto;min-width:88px}.letter-game,.ships-game{flex-direction:column;flex:1;gap:10px;min-height:0;padding-top:44px;display:flex;position:relative}.letter-board{grid-template-columns:repeat(5,1fr);gap:6px;width:100%;max-width:320px;margin:0 auto;display:grid}.letter-cell{aspect-ratio:1;border:1px solid var(--line);text-transform:uppercase;background:0 0;font-size:22px;font-weight:600}.letter-cell.filled{background:#161616}.letter-cell.on{background:var(--accent);color:#0c0c0c;border-color:var(--accent)}.letter-cell.pending{border-color:var(--accent)}.last-need{letter-spacing:-.06em;text-align:center;text-transform:uppercase;margin:8px 0 0;font-size:72px;font-weight:700;line-height:1}.last-word{text-align:center;text-transform:uppercase;letter-spacing:.12em;margin:8px 0 12px;font-weight:600}.last-chain{max-height:28vh;color:var(--muted);text-transform:lowercase;margin:0;padding:0;font-size:14px;list-style:none;overflow:auto}.last-chain li{padding:2px 0}.pin-game{flex-direction:column;gap:12px;display:flex}.pin-code{letter-spacing:.18em;text-align:center;font-variant-numeric:tabular-nums;min-height:48px;font-size:36px;font-weight:700;line-height:1.2}.pin-code.hide{letter-spacing:.18em}.pin-pad{grid-template-columns:repeat(3,1fr);gap:6px;width:100%;max-width:280px;margin:0 auto;display:grid}.pin-pad .tile{min-height:52px;font-size:22px}.az-row{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.az-row .tile{text-transform:uppercase;min-height:40px;font-size:15px}.fleet-row{gap:6px;padding:0 4px;display:flex;overflow-x:auto}.fleet-row .btn{flex:none;width:auto;min-width:40px;min-height:40px;padding:8px 10px}.battle-grid{grid-template-columns:repeat(10,1fr);gap:2px;width:min(100%,420px);margin:0 auto;display:grid}.battle-grid.tiny{width:min(70%,220px);margin-top:8px}.bcell{aspect-ratio:1;border:1px solid var(--line);background:0 0;min-height:0;padding:0;position:relative}.bcell.ship{background:#3a4a6a}.bcell.miss{background:#2a2a28}.bcell.hit,.bcell.sunk{background:#ff5c54}.bcell.sunk:before,.bcell.sunk:after{content:"";pointer-events:none;background:#111;width:2px;height:76%;position:absolute;top:12%;left:50%}.bcell.sunk:before{transform:translate(-50%)rotate(45deg)}.bcell.sunk:after{transform:translate(-50%)rotate(-45deg)}.ships-game{padding:48px 12px 16px}.mines-game{color:#f2f2f0;background:#0c0c0c;flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.mines-grid{touch-action:manipulation;-webkit-user-select:none;user-select:none;flex:1;width:100%;height:100%;min-height:0;display:grid}.mcell{appearance:none;color:#f2f2f0;background:#0c0c0c;border:1px solid #f2f2f0;min-width:0;min-height:0;margin:0;padding:0;font-size:13px;font-weight:650;line-height:1;position:relative}.mcell.open{border-color:#3a3a38}.mcell.mine{background:#f2f2f0}.mcell.flag:after{content:"";clip-path:polygon(0 0,100% 50%,0 100%);pointer-events:none;background:#f2f2f0;width:44%;height:44%;position:absolute;top:22%;left:28%}.geo-game{flex-direction:column;flex:1;gap:10px;min-height:0;display:flex}.geo-prompt{letter-spacing:-.04em;text-align:center;margin:8px 0 0;font-size:28px;font-weight:650}.geo-options{grid-template-columns:1fr 1fr;gap:8px;display:grid}.geo-opt{white-space:normal;min-height:56px;line-height:1.2}.geo-options.flags .geo-opt{min-height:72px;font-size:42px;line-height:1}.geo-log{flex:1;min-height:0;max-height:28vh;margin:0;padding:0;font-size:14px;list-style:none;overflow:auto}.geo-log li{border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr auto;align-items:baseline;gap:8px;padding:6px 0;display:grid}.geo-log li.ok span:last-child{color:var(--fg)}.geo-log li.miss span:last-child{color:var(--muted)}.geo-continents{flex-wrap:wrap;gap:6px;margin-top:auto;display:flex}.geo-continents .btn{flex:auto;width:auto;min-height:40px;padding:8px 12px}
