:root{color:#e7f2f5;--ink:#e7f2f5;--muted:#91a8b5;--border:#20394c;--aqua:#63e1d1;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#071725;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:radial-gradient(at 70% -15%,#23738930,#0000 42%),#071725;min-width:320px;min-height:100%}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--aqua);outline-offset:3px}#root{min-height:100vh}::selection{color:#051a1c;background:var(--aqua)}.shell{width:min(1120px,100% - 48px);margin:0 auto;padding:0 0 28px}.topbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:82px;display:flex}.brand{color:var(--ink);letter-spacing:.14em;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:0;font-size:13px;font-weight:800;display:inline-flex}.brand-mark{color:#041721;background:var(--aqua);border-radius:9px;place-items:center;width:30px;height:30px;font-size:17px;display:grid}.topbar-caption,.page-footer{color:var(--muted);letter-spacing:.12em;text-transform:uppercase;font-size:11px}.hero-section{max-width:720px;padding:76px 0 54px}.eyebrow{color:var(--aqua);letter-spacing:.15em;text-transform:uppercase;margin:0 0 12px;font-size:11px;font-weight:800}.hero-section h1,.room-heading h1,.join-form-panel h1{color:var(--ink);letter-spacing:-.055em;margin:0;font-size:clamp(42px,6vw,72px);font-weight:750;line-height:.98}.hero-section h1 span{color:var(--aqua)}.hero-copy{max-width:540px;color:var(--muted);margin-top:20px;font-size:17px;line-height:1.65}.lobby-grid{grid-template-columns:minmax(0,1.15fr) minmax(290px,.85fr);gap:18px;display:grid}.panel{border:1px solid var(--border);background:linear-gradient(145deg,#11283aeb,#0b1d2bf5);border-radius:16px;box-shadow:0 18px 56px #00000024}.create-panel,.join-panel{min-height:355px;padding:28px}.panel-heading{align-items:flex-start;gap:15px;margin-bottom:26px;display:flex}.panel-heading h2,.waiting-panel h2,.section-title h2,.battle-status h2{color:var(--ink);letter-spacing:-.025em;margin:0;font-size:21px}.panel-heading p,.waiting-panel p{color:var(--muted);margin:6px 0 0;font-size:13px}.step{width:34px;height:34px;color:var(--aqua);background:#63e1d11a;border-radius:10px;flex:0 0 34px;place-items:center;font-size:11px;font-weight:800;display:grid}.field{color:#d3e2e8;flex-direction:column;gap:8px;font-size:12px;font-weight:700;display:flex}.field input,.field select{box-sizing:border-box;width:100%;min-height:46px;color:var(--ink);font:inherit;background:#091b29;border:1px solid #294255;border-radius:9px;outline:none;padding:0 13px;font-size:14px}.field input::placeholder{color:#738896}.field input:focus,.field select:focus{border-color:var(--aqua);box-shadow:0 0 0 3px #63e1d124}.timer-fields{grid-template-columns:1fr 1fr;gap:12px;margin:17px 0 20px;display:grid}.button{min-height:44px;font:inherit;cursor:pointer;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;padding:0 17px;font-size:13px;font-weight:800;transition:transform .12s,filter .12s,border-color .12s;display:inline-flex}.button:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.55}.button.primary{color:#06201f;background:var(--aqua)}.button.secondary{color:var(--ink);background:#0c202fb8;border-color:#315267}.button.compact{min-height:37px;padding:0 13px;font-size:12px}.full-width{width:100%}.join-panel{flex-direction:column;display:flex}.join-art{color:#63e1d159;flex:1;justify-content:center;align-items:center;gap:18px;min-height:90px;font-size:54px;line-height:1;display:flex}.join-art span:nth-child(2){color:#63e1d1cc;transform:translateY(-16px)}.text-button{color:var(--aqua);font:inherit;cursor:pointer;background:0 0;border:0;padding:7px 0;font-size:12px;font-weight:750}.text-button:hover{color:#a4fff3}.resume-button{margin-top:12px}.page-footer{justify-content:space-between;align-items:center;gap:20px;padding:30px 0 0;font-size:10px;display:flex}.page-footer nav{gap:18px;display:flex}.page-footer a{color:inherit;text-decoration:none}.page-footer a:hover,.page-footer a:focus-visible{color:var(--aqua);text-underline-offset:4px;text-decoration:underline}.narrow{max-width:480px;margin:80px auto;padding:32px}.join-form-panel h1{margin-bottom:12px;font-size:42px}.join-form-panel form{gap:17px;margin-top:24px;display:grid}.muted{color:var(--muted);font-size:13px;line-height:1.55}.back-link{margin-top:15px}.error-message{color:#ff9a9a;font-size:13px;line-height:1.45}.storage-warning{color:#fff1c4;text-align:center;background:#7a5415;padding:10px 24px;font-size:12px}.game-shell{max-width:1180px}.room-heading{justify-content:space-between;align-items:center;gap:20px;padding:34px 0 24px;display:flex}.room-heading .eyebrow{margin-bottom:8px}.room-heading h1{font-size:clamp(30px,4vw,43px)}.connection-pill{border:1px solid var(--border);color:var(--muted);white-space:nowrap;background:#0b1d2bcc;border-radius:99px;align-items:center;gap:8px;padding:9px 12px;font-size:12px;display:inline-flex}.status-dot{background:#758691;border-radius:50%;width:8px;height:8px}.connection-pill.connected .status-dot{background:#69e2a2;box-shadow:0 0 10px #69e2a299}.connection-pill.reconnecting .status-dot,.connection-pill.connecting .status-dot{background:#ffc96a;animation:1.2s ease-in-out infinite pulse}.room-meta{justify-content:space-between;align-items:center;gap:22px;padding:17px 20px;display:flex}.players{align-items:center;gap:17px;display:flex}.player-badge{align-items:center;gap:10px;min-width:150px;display:flex}.player-badge strong,.player-badge small{display:block}.player-badge strong{color:var(--ink);font-size:13px}.player-badge small{color:var(--muted);margin-top:3px;font-size:11px}.player-badge small.online{color:#77e7ac}.player-badge small.offline{color:#ffbc79}.avatar{width:36px;height:36px;color:var(--aqua);background:#63e1d117;border:1px solid #63e1d14d;border-radius:11px;flex:0 0 36px;place-items:center;font-size:14px;font-weight:800;display:grid}.waiting-player .avatar{color:var(--muted);border-color:var(--border);background:0 0}.versus{color:#7b909c;letter-spacing:.1em;font-size:10px;font-weight:800}.invite-share{color:var(--muted);align-items:center;gap:12px;font-size:12px;display:flex}.waiting-panel{text-align:center;margin-top:16px;padding:43px 20px}.waiting-panel p{margin-bottom:22px}.invite-url{width:min(100%,520px);color:var(--muted);text-align:left;gap:7px;margin:18px auto 0;font-size:11px;display:grid}.invite-url input{color:#c9d9e0;background:#091b29;border:1px solid #294255;border-radius:8px;min-width:0;padding:10px 12px;font-size:11px}.radar{background:radial-gradient(circle,#63e1d12b,#0000 68%);border:1px solid #63e1d14d;border-radius:50%;place-items:center;width:82px;height:82px;margin:0 auto 20px;display:grid;position:relative}.radar:before,.radar:after{content:"";border:1px solid #63e1d12e;border-radius:50%;position:absolute}.radar:before{width:54px;height:54px}.radar:after{width:28px;height:28px}.radar span{z-index:1;background:var(--aqua);width:7px;height:7px;box-shadow:0 0 12px var(--aqua);border-radius:50%}.notice{color:#bfefea;background:#63e1d112;border:1px solid #63e1d133;border-radius:9px;margin:12px 0;padding:11px 14px;font-size:13px}.notice.warning{color:#ffe0a6;background:#ffc96a14;border-color:#ffc96a3d}.notice.error-message{background:#ff898912;border-color:#ff89894d}.loading-panel{min-height:180px;color:var(--muted);justify-content:center;align-items:center;gap:13px;display:flex}.loader{border:2px solid #315267;border-top-color:var(--aqua);border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}.placement-panel,.battle-panel{margin-top:16px;padding:24px}.section-title,.battle-status{justify-content:space-between;align-items:center;gap:24px;display:flex}.section-title h2{margin-bottom:5px}.readiness-line{color:var(--muted);margin:19px 0;font-size:12px}.placement-layout{grid-template-columns:210px minmax(300px,440px);justify-content:center;align-items:start;gap:34px;margin-top:22px;display:grid}.ship-controls h3,.board-wrap h3{color:var(--ink);margin:0 0 12px;font-size:13px}.ship-choice{color:#c9d9e0;width:100%;font:inherit;text-align:left;cursor:pointer;background:#04141f70;border:1px solid #0000;border-radius:8px;align-items:center;gap:9px;margin-bottom:7px;padding:9px;font-size:12px;display:flex}.ship-choice.selected{background:#63e1d117;border-color:#63e1d18c}.ship-choice:disabled{cursor:default}.ship-choice small{color:var(--muted);margin-left:auto;font-size:10px}.ship-shape{width:calc(8px * var(--length));background:#56b8b2;border-radius:2px;height:8px}.ship-controls .button{margin-top:14px}.random-button{width:100%}.board-wrap{min-width:0}.board{aspect-ratio:1;background:#0a2334;border-top:1px solid #294659;border-left:1px solid #294659;grid-template-rows:repeat(10,minmax(0,1fr));grid-template-columns:repeat(10,minmax(0,1fr));width:100%;display:grid}.cell{color:#d9e7ea;cursor:crosshair;background:#1c485e38;border:1px solid #294659;border-top:0;border-left:0;place-items:center;min-width:0;padding:0;font-size:clamp(13px,2.2vw,22px);display:grid}.cell:disabled{cursor:default}.cell:not(:disabled):hover{box-shadow:inset 0 0 0 1px var(--aqua);background:#63e1d133}.cell.occupied{background:#499aa4bf}.cell.hit{color:#fff;background:#c14c4c;font-weight:900}.cell.miss{color:#9db8c6;background:#37607480}.board-axis{color:var(--muted);justify-content:space-between;padding-top:7px;font-size:10px;display:flex}.submit-fleet{min-width:190px;margin:22px auto 0;display:flex}.submitted-message{color:#8ee7bb;text-align:center;margin:22px 0 0;font-size:13px}.timer-chip{text-align:center;background:#091b29;border:1px solid #294255;border-radius:9px;gap:2px;min-width:90px;padding:8px 11px;display:grid}.timer-chip span{color:var(--muted);text-transform:uppercase;font-size:9px}.timer-chip strong,.inline-timer{color:var(--aqua);font-variant-numeric:tabular-nums;font-size:17px}.battle-status{align-items:flex-start;margin-bottom:23px}.battle-status h2{max-width:680px;margin-bottom:5px;font-size:18px}.battle-last-shot{min-height:20px}.battle-timer-slot{justify-content:center;align-items:center;min-width:90px;min-height:49px;display:flex}.battle-actions{align-items:center;gap:10px;display:flex}.result-mark{color:#08251d;background:var(--aqua);border-radius:50%;place-items:center;width:44px;height:44px;font-size:22px;display:grid}.battle-boards{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;display:grid}.legend{color:var(--muted);justify-content:center;gap:21px;padding-top:20px;font-size:10px;display:flex}.legend span{align-items:center;gap:6px;display:inline-flex}.legend i{border-radius:2px;width:9px;height:9px;display:inline-block}.legend-ship{background:#56b8b2}.legend-hit{background:#c14c4c}.legend-miss{border:1px solid #9db8c6}.finish-reason{color:var(--muted);margin:-5px 0 18px;font-size:12px}.inline-timer{font-size:inherit}.room-footer{color:var(--muted);justify-content:space-between;align-items:center;padding:17px 4px;font-size:11px;display:flex}.danger-text{color:#ff9a9a}.danger-text:hover{color:#ffc0c0}.storage-warning+.shell{padding-top:0}@keyframes pulse{50%{opacity:.4}}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=760px){.shell{width:min(100% - 30px,560px)}.topbar{height:66px}.topbar-caption{font-size:9px}.hero-section{padding:54px 0 34px}.hero-copy{font-size:15px}.lobby-grid{grid-template-columns:1fr}.create-panel,.join-panel{min-height:auto;padding:21px}.join-art{min-height:72px}.page-footer{text-align:center;flex-wrap:wrap;justify-content:center}.narrow{margin:40px auto;padding:24px}.room-heading{align-items:flex-start;padding:25px 0 17px}.connection-pill{padding:7px 9px;font-size:10px}.room-meta{flex-direction:column;align-items:flex-start}.players{justify-content:space-between;gap:8px;width:100%}.player-badge{gap:7px;min-width:0}.player-badge strong{text-overflow:ellipsis;white-space:nowrap;max-width:105px;overflow:hidden}.invite-share{justify-content:space-between;width:100%}.placement-panel,.battle-panel{padding:17px 13px}.section-title{align-items:flex-start}.placement-layout{grid-template-columns:1fr;gap:18px}.ship-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.ship-controls h3,.ship-controls .button,.ship-controls .random-button{grid-column:1/-1}.ship-choice{margin:0;padding:7px}.ship-shape{display:none}.battle-boards{gap:13px}.battle-status{align-items:flex-start;gap:10px}.battle-status h2{font-size:15px}.battle-actions{flex-direction:column;align-items:stretch}.timer-chip{min-width:72px;padding:6px}.battle-timer-slot{min-width:72px}.legend{gap:12px}}@media (width<=430px){.timer-fields{grid-template-columns:1fr}.battle-boards{grid-template-columns:1fr;gap:24px}.board-wrap{width:100%;max-width:420px;margin:0 auto}.section-title{flex-direction:column}}
