@font-face { font-family: Orbitron; src: url(fonts/Orbitron.ttf) format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Rajdhani; src: url(fonts/Rajdhani-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Rajdhani; src: url(fonts/Rajdhani-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Rajdhani; src: url(fonts/Rajdhani-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #020a14; --ink: #d6f0fa; --dim: #7fb6c9; --cyan: #5eeaff; --amber: #ffb84d; --red: #ff5c3e;
  --glass: rgba(4, 22, 36, .72); --line: rgba(94, 234, 255, .22);
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font-family: Rajdhani, system-ui, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.35;
  overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

#sea { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#vignette { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 4, 10, .78) 100%); }

/* ------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; display: flex; flex-direction: column;
  padding: calc(var(--st) + 8px) 10px calc(var(--sb) + 10px); animation: fadeIn .8s both; }
#hud > * { pointer-events: auto; }
#top { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: Orbitron; font-weight: 900; letter-spacing: .14em; font-size: 17px; color: var(--ink); text-decoration: none; }
.logo b { color: var(--cyan); margin-left: .3em; font-weight: 900; }
.top-btns { display: flex; gap: 6px; }
.icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass);
  display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 0; }
.icon svg { width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.off svg .waves { display: none; }
.icon.off svg { stroke: var(--dim); }

#score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.side { background: var(--glass); border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px 6px; min-width: 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .3s, box-shadow .3s; }
.side.them { text-align: right; }
.side.on { border-color: var(--cyan); box-shadow: 0 0 16px rgba(94, 234, 255, .35), inset 0 0 12px rgba(94, 234, 255, .12); }
.side.them.on { border-color: var(--red); box-shadow: 0 0 16px rgba(255, 92, 62, .35), inset 0 0 12px rgba(255, 92, 62, .12); }
.side .nm { display: block; font-family: Orbitron; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pips { display: flex; gap: 3px; margin-top: 4px; align-items: center; }
.side.them .pips { justify-content: flex-end; }
.pips i { height: 6px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 6px rgba(94, 234, 255, .6); transition: all .5s; }
.side.them .pips i { background: var(--red); box-shadow: 0 0 6px rgba(255, 92, 62, .6); }
.pips i.sunk { background: #24404d !important; box-shadow: none !important; opacity: .7; }
.vs { font-family: Orbitron; font-size: 11px; color: var(--dim); letter-spacing: .1em; }

#tabs { display: flex; margin: 8px auto 0; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: 13px; color: var(--dim); transition: all .25s; }
#tabs button.on { background: rgba(94, 234, 255, .16); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(94, 234, 255, .5); }
#tabs button[data-view=enemy].on { background: rgba(255, 92, 62, .16); color: #ff9a84; box-shadow: inset 0 0 0 1px rgba(255, 92, 62, .55); }

#banner { margin: 14px auto 0; text-align: center; font-family: Orbitron; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  font-size: clamp(22px, 7vw, 40px); opacity: 0; pointer-events: none !important; text-shadow: 0 0 22px currentColor, 0 2px 0 rgba(0, 0, 0, .6); min-height: 1.3em; }
#banner small { display: block; font-family: Rajdhani; font-weight: 700; font-size: .42em; letter-spacing: .2em; margin-top: 2px; color: var(--ink); text-shadow: 0 1px 6px #000; }
#banner.show { animation: banner 2.2s both; }
#banner.hit { color: var(--red); } #banner.echo { color: var(--amber); } #banner.miss { color: #8fb3c4; }
#banner.info { color: var(--cyan); } #banner.sunk { color: #ff8a3a; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.5); filter: blur(6px); } 12% { opacity: 1; transform: scale(1); filter: none; }
  78% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }

#toast { position: absolute; left: 50%; bottom: calc(var(--sb) + 190px); transform: translateX(-50%); background: rgba(2, 10, 20, .9);
  border: 1px solid var(--amber); color: var(--amber); padding: 7px 14px; border-radius: 999px; font-size: 15px; white-space: nowrap;
  opacity: 0; transition: opacity .25s; pointer-events: none !important; }
#toast.show { opacity: 1; }

#panel { margin-top: auto; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 12px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); width: 100%; max-width: 520px; align-self: center;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); }
#panel:empty { display: none; }
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.p-title { white-space: nowrap; font-family: Orbitron; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.p-title.foe { color: #ff9a84; }
.p-sub { color: var(--dim); font-size: 14px; text-align: right; line-height: 1.15; }
.p-note { color: var(--dim); font-size: 15px; margin: 2px 0 0; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.row { display: flex; gap: 8px; align-items: stretch; }
.row + .row { margin-top: 8px; }
.btn { border: 1px solid var(--line); background: rgba(94, 234, 255, .08); border-radius: 12px; padding: 10px 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; font-size: 15px; flex: 1; min-height: 46px; transition: transform .08s, background .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; color: var(--ink); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary { background: linear-gradient(180deg, #7df0ff, #23b6d6); border-color: #b5f7ff; color: #012230; box-shadow: 0 0 22px rgba(94, 234, 255, .4); }
.btn.fire { background: linear-gradient(180deg, #ff8a5c, #e0341a); border-color: #ffc0a8; color: #fff; font-family: Orbitron; font-weight: 900;
  letter-spacing: .2em; font-size: 17px; flex: 1.5; box-shadow: 0 0 26px rgba(255, 92, 62, .5); }
.btn.ghost { background: none; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; box-shadow: none; }
.btn.sonar { color: var(--cyan); }
.btn.tight { padding: 10px 6px; gap: 5px; font-size: 14px; letter-spacing: .06em; flex: 1; }
.btn .n { background: rgba(94, 234, 255, .2); border-radius: 999px; padding: 0 7px; font-size: 13px; }

.depths { display: flex; flex: 1; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 46px; }
.depths button { flex: 1; border: 0; background: none; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px;
  color: var(--dim); border-right: 1px solid var(--line); padding: 4px 2px; }
.depths button:last-child { border-right: 0; }
.depths button.on { background: rgba(94, 234, 255, .2); color: #fff; box-shadow: inset 0 -3px 0 var(--cyan); }
.depths button[disabled] { opacity: .25; text-decoration: line-through; pointer-events: none; }
.depths.idle button[disabled] { text-decoration: none; }
.depths button small { display: block; font-size: 10px; letter-spacing: .14em; opacity: .7; }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--line); background: rgba(94, 234, 255, .05); border-radius: 10px; padding: 5px 7px; text-align: left; min-width: 0; }
.chip.on { border-color: var(--cyan); background: rgba(94, 234, 255, .18); box-shadow: 0 0 12px rgba(94, 234, 255, .3); }
.chip b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip span { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.chip u { display: inline-block; height: 5px; border-radius: 3px; background: var(--cyan); text-decoration: none; }

/* ------------------------------------------------------------ splash */
#splash { position: fixed; inset: 0; display: grid; justify-items: center; align-content: start; padding: calc(var(--st) + 9vh) 22px 24px;
  background: radial-gradient(ellipse at 50% 30%, rgba(2, 10, 20, .1), rgba(2, 10, 20, .75) 75%); overflow-y: auto; transition: opacity 1.1s, transform 1.4s; z-index: 5; }
#splash.gone { opacity: 0; transform: scale(1.25); pointer-events: none; }
.splash-in { width: 100%; max-width: 460px; text-align: center; }
.kicker { font-family: Orbitron; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; font-size: 11px; color: var(--cyan); margin: 0 0 14px;
  animation: rise 1s .2s both; }
.title { margin: 0; font-family: Orbitron; font-weight: 900; line-height: .92; font-size: clamp(64px, 21vw, 132px);
  display: flex; flex-direction: column; align-items: center; }
/* letter-spacing adds space after the last letter; the same space in front keeps each word truly centred */
.title span { display: block; white-space: nowrap; letter-spacing: .04em; padding-left: .04em; animation: surface 1.5s cubic-bezier(.2, .8, .2, 1) both;
  text-shadow: 0 0 40px rgba(94, 234, 255, .35), 0 6px 0 rgba(0, 0, 0, .45); }
.title .six { animation-delay: .35s; letter-spacing: .22em; padding-left: .22em; color: var(--cyan);
  text-shadow: 0 0 46px rgba(94, 234, 255, .65), 0 6px 0 rgba(0, 0, 0, .45); }
@keyframes surface { from { opacity: 0; transform: translateY(60px) scale(.9); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sonar { position: relative; height: 0; }
.sonar i { position: absolute; left: 50%; top: -70px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--cyan);
  transform: translate(-50%, -50%); opacity: 0; animation: ring 3.6s linear both; pointer-events: none; box-shadow: 0 0 18px rgba(94, 234, 255, .35), inset 0 0 18px rgba(94, 234, 255, .2); }
@keyframes ring { 0% { width: 20px; height: 20px; opacity: .9; } 100% { width: 640px; height: 640px; opacity: 0; } }
.sonar b { position: absolute; margin-left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #c9fbff; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%); box-shadow: 0 0 12px 4px rgba(94, 234, 255, .8); animation: blip 3s ease-out both; }
@keyframes blip { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 6% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.8); } }
.soundhint { margin: 18px 0 0; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); animation: pulse 2s infinite; }
.tag { font-size: 19px; letter-spacing: .12em; margin: 18px 0 0; color: var(--ink); animation: rise 1s 1s both; }
#splashBody { margin-top: 26px; animation: rise 1s 1.4s both; }
.challenge { font-size: 21px; margin: 0 0 14px; }
.challenge b { font-family: Orbitron; font-weight: 800; color: var(--amber); letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--dim); } .small { font-size: 14px; }
.err, .warn { color: var(--amber); min-height: 1.2em; margin: 6px 0 0; }
input { width: 100%; background: rgba(2, 10, 20, .7); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 20px;
  text-align: center; letter-spacing: .08em; outline: none; margin-bottom: 10px; -webkit-user-select: text; user-select: text; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(94, 234, 255, .18); }
.btn.dive { font-family: Orbitron; font-weight: 900; letter-spacing: .3em; font-size: 20px; min-height: 58px; }
.link { background: none; border: 0; color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; margin-top: 16px; font-size: 16px; letter-spacing: .08em; }

/* ------------------------------------------------------------ control-room scenes */
#cine { --cine: #ff5c3e; position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(0, 3, 8, .82); opacity: 0; transition: opacity .28s;
  padding: calc(var(--st) + 10px) 10px calc(var(--sb) + 10px); cursor: pointer; }
#cine.quiet { --cine: #3aa0ff; }
#cine.in { opacity: 1; }
.cine-box { position: relative; width: min(96vw, 1100px); aspect-ratio: 16 / 9; max-height: 84vh; border-radius: 16px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cine) 55%, transparent); box-shadow: 0 0 80px color-mix(in srgb, var(--cine) 35%, transparent), 0 30px 90px #000;
  transform: scale(.94); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
#cine.in .cine-box { transform: none; }
@media (max-aspect-ratio: 3/4) { .cine-box { aspect-ratio: 4 / 5; width: 96vw; } }
.cine-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-art.drift { animation: drift 5s ease-out both; }
@keyframes drift { from { transform: scale(1.14) translateX(-1.5%); } to { transform: scale(1.02); } }
.cine-box::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .7)); }
.cr-lamp { animation: lamp .5s infinite alternate; transform-origin: 400px 30px; }
#cine.quiet .cr-lamp { animation-duration: 1.6s; }
@keyframes lamp { from { opacity: .25; } to { opacity: 1; filter: drop-shadow(0 0 14px var(--cine)); } }
.cr-sweep { transform-origin: 660px 316px; animation: spin 2.2s linear infinite; }
.cr-needle { transform-origin: 86px 304px; animation: needle 1.1s ease-in-out infinite alternate; }
.cr-needle.b { transform-origin: 170px 304px; animation-duration: .8s; }
@keyframes needle { from { transform: rotate(-24deg); } to { transform: rotate(38deg); } }
.cr-blip { animation: pulse 1.1s infinite; } .cr-blip.b { animation-delay: .5s; }
.cine-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 22px 20px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88) 55%); }
.cine-cap.pop { animation: rise .3s both; }
.cine-cap b { display: block; font-family: Orbitron; font-weight: 800; font-size: 12px; letter-spacing: .34em; color: var(--cine); margin-bottom: 4px; }
.cine-cap span { font-size: clamp(20px, 3.4vw, 34px); font-weight: 700; letter-spacing: .03em; text-shadow: 0 2px 10px #000; }
.cine-skip { position: absolute; right: 12px; top: 10px; z-index: 2; font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* ------------------------------------------------------------ modal */
#modal { position: fixed; inset: 0; z-index: 9; background: rgba(1, 6, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: calc(var(--st) + 14px) 14px calc(var(--sb) + 14px); animation: fadeIn .3s both; }
.sheet { width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; background: linear-gradient(180deg, rgba(8, 34, 52, .97), rgba(3, 16, 28, .97));
  border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(94, 234, 255, .1);
  -webkit-overflow-scrolling: touch; }
.sheet h2 { font-family: Orbitron; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: 22px; margin: 0 0 8px; color: var(--cyan); }
.sheet h2.lose { color: var(--red); }
.sheet h3 { font-family: Orbitron; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 20px 0 6px; display: flex; align-items: center; gap: 9px; }
.sheet h3 i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan); display: grid; place-items: center; font-size: 12px; flex: none; }
.sheet p { margin: 0 0 10px; font-weight: 500; }
.sheet .lead { font-size: 19px; font-weight: 600; }
.sheet .btn { margin-top: 8px; }
.linkbox { display: block; background: rgba(2, 10, 20, .7); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; font-size: 15px; color: var(--cyan);
  word-break: break-all; margin: 10px 0 4px; -webkit-user-select: all; user-select: all; }
.fleet-key { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0 0 10px; font-size: 15px; }
.fleet-key span { display: flex; align-items: center; gap: 8px; }
.hull { display: inline-block; height: 9px; border-radius: 5px; background: linear-gradient(180deg, #7df0ff, #1a7f9c); flex: none; }
.hull.l5 { width: 60px; } .hull.l4 { width: 48px; } .hull.l3 { width: 36px; } .hull.l2 { width: 24px; }
.reports { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 7px; }
.reports li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.reports b { display: block; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.reports em { width: 30px; height: 30px; border-radius: 8px; flex: none; border: 2px solid; position: relative; }
.r-hit em { background: var(--red); border-color: #ffc0a8; } .r-hit b { color: #ff8a6e; }
.r-up em, .r-down em { border-color: var(--amber); } .r-up b, .r-down b { color: var(--amber); }
.r-up em::after, .r-down em::after { content: ''; position: absolute; left: 50%; top: 50%; border: 7px solid transparent; transform: translate(-50%, -75%); border-bottom-color: var(--amber); }
.r-down em::after { transform: translate(-50%, -25%); border-bottom-color: transparent; border-top-color: var(--amber); }
.r-miss em { border-color: #5d8597; border-radius: 50%; transform: scale(.6); } .r-miss b { color: #9fc0cf; }
.diagram { width: 100%; height: auto; background: rgba(2, 10, 20, .5); border-radius: 12px; margin-bottom: 10px; font-family: Rajdhani; }
.plain { padding-left: 18px; margin: 0 0 12px; font-weight: 500; } .plain li { margin-bottom: 6px; }
.stats { width: 100%; border-collapse: collapse; margin: 10px 0 6px; }
.stats th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 4px; text-align: center; }
.stats td { font-family: Orbitron; font-weight: 800; font-size: 22px; text-align: center; padding: 6px 4px; border-top: 1px solid var(--line); }
.stats td:first-child, .stats th:first-child { text-align: left; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.stats tr.win td { color: var(--cyan); }
.cardimg { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 8px 0; aspect-ratio: 1200 / 630; background: #04121f; }

/* ------------------------------------------------------------ home page */
body.home { overflow: auto; -webkit-user-select: auto; user-select: auto; }
.home-bg { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 20%, #0a3550 0%, #041726 45%, #020a14 100%); overflow: hidden; }
.home-bg::before { content: ''; position: absolute; inset: -50%; background:
  repeating-radial-gradient(circle at 50% 38%, transparent 0 78px, rgba(94, 234, 255, .09) 79px 80px); }
.sweep { position: absolute; left: 50%; top: 38%; width: 200vmax; height: 200vmax; margin: -100vmax; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(94, 234, 255, .22), transparent 16%, transparent); animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.home-main { position: relative; max-width: 460px; margin: 0 auto; padding: calc(var(--st) + 9vh) 22px 60px; text-align: center; }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 26px; text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: rise 1s 1.3s both; }
.card label { display: block; font-family: Orbitron; font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.card h2 { font-family: Orbitron; font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; text-align: left; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.card li span { color: var(--dim); } .card li span.hot { color: var(--amber); }

.keys { display: none; color: var(--dim); font-size: 13px; letter-spacing: .06em; margin: 10px 0 0; }
.keys kbd { font: inherit; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: var(--ink); }
/* desktop: the ocean gets the whole window, the controls dock bottom right */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  body { font-size: 18px; }
  #hud { padding: 18px 24px 22px; }
  .logo { font-size: 24px; }
  .icon { width: 44px; height: 44px; } .icon svg { width: 23px; height: 23px; }
  #score { max-width: 640px; width: 100%; align-self: center; margin-top: -44px; }
  .side { padding: 8px 14px 10px; } .side .nm { font-size: 15px; } .pips i { height: 8px; }
  #tabs { margin-top: 12px; } #tabs button { font-size: 14px; padding: 8px 20px; }
  #banner { font-size: clamp(30px, 3.2vw, 50px); margin-top: 14px; }
  #panel { position: absolute; right: 24px; bottom: 24px; width: 400px; max-width: none; padding: 16px 18px 18px; }
  #toast { bottom: 40px; }
  .btn:hover { background: rgba(94, 234, 255, .18); } .btn.primary:hover, .btn.fire:hover { filter: brightness(1.12); }
  .chip:hover, .depths button:hover, #tabs button:hover, .icon:hover { background: rgba(94, 234, 255, .14); }
  .keys { display: block; }
  .splash-in { max-width: 560px; }
  .title { font-size: clamp(90px, 11vw, 170px); }
}
@media (max-height: 640px) {
  .chips { grid-template-columns: repeat(6, 1fr); } .chip span { display: none; }
}
