:root{--v9-gold:#f4c76c}.v9-hero{background:radial-gradient(ellipse at 90% 0%,#274c65 0%,transparent 55%),linear-gradient(135deg,#12243b,#0b1425 70%);border:1px solid #34526a;border-radius:22px;padding:22px;margin:12px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.v9-hero h2{font-size:clamp(22px,4vw,38px);letter-spacing:-.04em;margin:4px 0;color:#f1f5ff}.v9-kicker{letter-spacing:.16em;color:#f4c76c;font-size:11px;font-weight:800}.v9-hero p{font-size:13px;color:#b0c3d5;margin:5px 0}.v9-hero button{background:#f4c76c;color:#162032;border:0;border-radius:12px;padding:12px 18px;font-weight:800;cursor:pointer}.v9-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.v9-tools input,.v9-tools select{background:#111c30;color:#e2e8f0;border:1px solid #3b536b;border-radius:10px;padding:10px;min-height:42px;max-width:100%}.v9-tools input{flex:1;min-width:150px}.v9-fav{border:0;background:#182c40;color:#f4c76c;font-size:20px;border-radius:8px;cursor:pointer;min-width:36px;height:34px;margin-left:auto}.game-card{position:relative;overflow:hidden}.game-card[data-v9-new]::before{content:'';position:absolute;height:3px;top:0;left:0;right:0;background:linear-gradient(90deg,#f4c76c,#3dd8ce)}.v9-stage{position:relative;width:100%;max-width:1000px;margin:auto;border:1px solid #43617a;border-radius:16px;overflow:hidden;background:radial-gradient(ellipse at 50% 12%,#5e8194,#111c30 85%)}.v9-stage canvas{display:block;width:100%;height:clamp(250px,55vw,500px);touch-action:none}.v9-hud{padding:10px;background:#0c1626;color:#d4e6f4;text-align:center;font-weight:700;font-size:13px;min-height:38px}.v9-controls{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:10px auto;max-width:850px}.v9-pad{display:grid;grid-template-columns:repeat(3,48px);gap:4px}.v9-pad button,.v9-act button{border:1px solid #4b6882;background:#16283b;color:#eaf6ff;min-width:46px;min-height:44px;border-radius:10px;font-weight:700;touch-action:none;cursor:pointer}.v9-pad button[data-key=w]{grid-column:2}.v9-pad button[data-key=a]{grid-column:1;grid-row:2}.v9-pad button[data-key=s]{grid-column:2;grid-row:2}.v9-pad button[data-key=d]{grid-column:3;grid-row:2}.v9-pad button.on,.v9-act button.on{background:#087ab5}.v9-act{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.v9-act button{padding:7px 13px}.v9-help{color:#a8b9cf;font-size:12px;text-align:center;line-height:1.5}.v9-notice{background:#3a2d19;color:#ffdda6;border:1px solid #6a502c;padding:8px 12px;border-radius:10px;font-size:12px;margin:8px 0}.v9-count{font-size:13px;color:#a7c4d8}.v9-stage:fullscreen canvas,.v8-full .v9-stage canvas{height:min(70dvh,650px)}@media(max-width:600px){.v9-hero{padding:15px;gap:8px}.v9-stage canvas{height:clamp(230px,45dvh,380px)}.v9-controls{justify-content:center}.v9-pad{grid-template-columns:repeat(3,44px)}.v9-act button{min-height:44px}.v9-hud{font-size:12px}.v9-tools{gap:5px}}
#shipsGrid{background:radial-gradient(ellipse,#317e91,#18384f);padding:12px;border:2px solid #63a3b7;border-radius:16px;box-shadow:0 12px 0 #102c42,0 16px 28px #0007}#shipsGrid .cell-box,#c4Board .cell-box,#memoryGrid .cell-box,#tttBoard .cell-box{box-shadow:inset 0 1px 3px #ffffff30,0 4px 0 #091525;transition:transform .18s,filter .18s}#shipsGrid .cell-box:active,#memoryGrid .cell-box:active,#tttBoard .cell-box:active{transform:translateY(3px)}#shipsGrid .cell-box.safe{background:linear-gradient(145deg,#527e96,#205363);animation:v9flip .35s ease-out}#diceFace{display:inline-block;text-shadow:0 7px 0 #081221,0 12px 12px #0009;filter:drop-shadow(0 2px 4px #6f9cb8)}@keyframes v9flip{from{transform:rotateX(65deg)}to{transform:rotateX(0)}}body[data-v9-quality=low] .game-card{box-shadow:none}body[data-v9-quality=low] .arena-pulse{animation:none}
