/* Steel Tide UI. Everything scales with --u (1 unit = 1px at 1080p), so the HUD and menus fit 1366x768 up to 4K. */
:root { --u: clamp(0.62px, min(100vw / 1920, 100vh / 1080), 2.4px); --ink: #e8f1f7; --dim: #9fb4c4; --line: rgba(160, 200, 230, .28); --panel: rgba(8, 20, 31, .72); --panel2: rgba(14, 32, 48, .9); --accent: #5aa9ff; --warn: #ffb347; --bad: #ff5a4d; --good: #7be08a; --nation: #5aa9ff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1a26; color: var(--ink); font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#ui { position: fixed; inset: 0; font-size: calc(var(--u) * 16); pointer-events: none; }
#ui > * { pointer-events: auto; }
#hud { position: absolute; inset: 0; pointer-events: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 2.9em; padding: 0 1.5em; border: 1px solid var(--line); border-radius: .35em; background: rgba(20, 44, 64, .85); color: var(--ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: rgba(40, 80, 112, .95); border-color: #8fc4ee; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #2f7fd0, #1d5ea6); border-color: #6db3f0; }
.btn.primary:hover { background: linear-gradient(180deg, #3d90e4, #2468b4); }
.btn.small { min-height: 2.2em; padding: 0 .9em; font-size: .82em; }
.btn:focus-visible, .switch:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* boot */
#boot { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #12304a, #06101a 75%); z-index: 50; }
.boot-box { display: flex; flex-direction: column; align-items: center; gap: 1.2em; }
.boot-title { font-size: 4.2em; font-weight: 800; letter-spacing: .32em; margin-right: -.32em; }
.boot-bar { width: 22em; height: .35em; background: rgba(255, 255, 255, .12); border-radius: 1em; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 5%; background: var(--accent); transition: width .25s; }
#boot-text { color: var(--dim); letter-spacing: .2em; text-transform: uppercase; font-size: .85em; }

/* PC only screen */
#pc-only, #pc-only-ns { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 30%, #173a59, #06101a 80%); color: #e8f1f7; text-align: center; font-size: 18px; }
.pc-card { max-width: 420px; padding: 28px 24px; border: 1px solid rgba(160, 200, 230, .3); border-radius: 14px; background: rgba(8, 20, 31, .7); }
.pc-mark { font-size: 30px; font-weight: 800; letter-spacing: .28em; margin-right: -.28em; }
.pc-card p { line-height: 1.5; margin: 18px 0 24px; }
#pc-only .btn { font-size: 16px; min-height: 52px; }

/* screens (menus) */
#screens { position: absolute; inset: 0; pointer-events: none !important; }
.screen { position: absolute; inset: 0; display: flex; pointer-events: auto; }
.screen.dim { background: linear-gradient(90deg, rgba(4, 12, 20, .88), rgba(4, 12, 20, .5) 55%, rgba(4, 12, 20, .15)); }
.screen.center { align-items: center; justify-content: center; background: rgba(4, 12, 20, .72); backdrop-filter: blur(3px); }
.title-col { display: flex; flex-direction: column; justify-content: center; gap: 1em; padding: 0 0 0 7em; width: 38em; }
.logo { font-size: 5.6em; font-weight: 800; letter-spacing: .2em; line-height: 1; text-shadow: 0 .05em .4em rgba(0, 0, 0, .6); }
.logo small { display: block; font-size: .2em; letter-spacing: .5em; color: var(--dim); font-weight: 600; margin-top: 1em; }
.menu { display: flex; flex-direction: column; gap: .7em; width: 20em; margin-top: 1.4em; }
.menu .btn { justify-content: flex-start; font-size: 1.1em; }
.fastrow { display: flex; align-items: center; gap: .9em; margin-top: .6em; padding: .8em 1em; width: 24em; border: 1px solid var(--line); border-radius: .4em; background: var(--panel); }
.fastrow b { display: block; letter-spacing: .06em; } .fastrow span { color: var(--dim); font-size: .82em; }
.switch { position: relative; flex: none; width: 3.4em; height: 1.8em; border-radius: 1em; border: 1px solid var(--line); background: #1b2c3a; transition: background .15s; padding: 0; }
.switch::after { content: ""; position: absolute; top: .18em; left: .2em; width: 1.3em; height: 1.3em; border-radius: 50%; background: #c9d6df; transition: transform .15s; }
.switch[aria-checked="true"] { background: #2f7fd0; } .switch[aria-checked="true"]::after { transform: translateX(1.55em); background: #fff; }
.homelink { margin-top: 1.6em; color: var(--dim); font-size: .85em; text-decoration: none; letter-spacing: .05em; width: max-content; } .homelink:hover { color: #fff; }
.ver { position: absolute; right: 1.5em; bottom: 1em; color: var(--dim); font-size: .8em; letter-spacing: .1em; }
.panel { background: var(--panel2); border: 1px solid var(--line); border-radius: .6em; padding: 1.6em 2em; max-height: 88vh; overflow: auto; box-shadow: 0 1.5em 4em rgba(0, 0, 0, .5); }
.panel h2 { margin: 0 0 .8em; font-size: 1.7em; letter-spacing: .14em; text-transform: uppercase; }
.panel h3 { margin: 1.2em 0 .4em; font-size: 1em; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 2em; padding: .45em 0; border-bottom: 1px solid rgba(160, 200, 230, .1); }
.row label { color: var(--ink); } .row .val { color: var(--dim); min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
.row input[type=range] { width: 14em; accent-color: var(--accent); }
.seg { display: flex; gap: .3em; } .seg button { padding: .35em .8em; border: 1px solid var(--line); background: #13283a; border-radius: .3em; font-size: .88em; } .seg button.on { background: #2f7fd0; border-color: #8fc4ee; }
.actions { display: flex; gap: .8em; justify-content: flex-end; margin-top: 1.4em; }
.keys { display: grid; grid-template-columns: 1fr auto; gap: .25em 2em; font-size: .9em; } .keys kbd, kbd { display: inline-block; min-width: 1.8em; padding: .1em .5em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: .3em; background: #13283a; font: inherit; font-size: .88em; text-align: center; }
.keys button.kb { border: 1px solid var(--line); background: #13283a; border-radius: .3em; padding: .15em .7em; min-width: 6em; } .keys button.kb.wait { background: #7a4a12; }
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.4em; width: 78em; max-width: 92vw; } .howto p { margin: .25em 0; color: var(--dim); font-size: .92em; line-height: 1.45; } .howto p b { color: var(--ink); font-weight: 600; }
/* nation select */
.nations { display: flex; gap: 2em; } .nation-card { width: 24em; padding: 1.6em; border: 1px solid var(--line); border-radius: .6em; background: var(--panel2); text-align: left; transition: transform .12s, border-color .12s; }
.nation-card:hover { transform: translateY(-.3em); border-color: #fff; } .nation-card h3 { margin: .6em 0 .3em; font-size: 2em; letter-spacing: .16em; text-transform: uppercase; } .nation-card p { color: var(--dim); line-height: 1.5; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.insig { width: 6em; height: 6em; }
/* unit select */
.unitsel { position: absolute; inset: 0; display: grid; grid-template-columns: 24em 1fr 26em; pointer-events: none; }
.unitsel > * { pointer-events: auto; }
.unitlist { margin: 4.5em 0 2em 2em; padding: 1em; background: var(--panel); border: 1px solid var(--line); border-radius: .6em; overflow: auto; }
.unitlist h4 { margin: .9em 0 .35em; font-size: .78em; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); } .unitlist h4:first-child { margin-top: 0; }
.unitbtn { display: block; width: 100%; text-align: left; padding: .5em .8em; margin: .18em 0; border: 1px solid transparent; border-radius: .3em; background: rgba(255, 255, 255, .04); } .unitbtn:hover { background: rgba(255, 255, 255, .1); }
.unitbtn.on { border-color: var(--nation); background: rgba(90, 169, 255, .18); } .unitbtn small { display: block; color: var(--dim); font-size: .78em; }
.unitinfo { margin: 4.5em 2em 2em 0; padding: 1.4em; background: var(--panel); border: 1px solid var(--line); border-radius: .6em; display: flex; flex-direction: column; overflow: auto; }
.unitinfo h2 { margin: 0; font-size: 1.6em; letter-spacing: .08em; } .unitinfo .cls { color: var(--nation); letter-spacing: .12em; text-transform: uppercase; font-size: .85em; margin: .3em 0 1em; }
.unitinfo p { color: var(--dim); line-height: 1.5; margin: 0 0 1em; } .stat { display: flex; justify-content: space-between; gap: 1em; padding: .4em 0; border-bottom: 1px solid rgba(160, 200, 230, .12); font-size: .92em; } .stat span:first-child { color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-size: .85em; } .stat span:last-child { text-align: right; }
.unitinfo .btn { margin-top: auto; } .startopt { display: flex; gap: .4em; margin: 1em 0; }
.topbar { position: absolute; left: 2em; right: 2em; top: 1.2em; display: flex; align-items: center; justify-content: space-between; pointer-events: auto; } .topbar h1 { margin: 0; font-size: 1.3em; letter-spacing: .2em; text-transform: uppercase; }
.redeploy-banner { position: absolute; left: 50%; top: 1.2em; transform: translateX(-50%); padding: .5em 1.4em; background: rgba(120, 20, 14, .85); border: 1px solid #ff8d80; border-radius: .4em; letter-spacing: .12em; text-transform: uppercase; }
/* notice toast */
#notice { position: absolute; left: 50%; bottom: 7em; transform: translateX(-50%); display: flex; gap: 1em; align-items: center; padding: .7em 1.2em; background: var(--panel2); border: 1px solid var(--warn); border-radius: .5em; z-index: 40; }

/* ---------------- HUD ---------------- */
.hud-box { position: absolute; background: var(--panel); border: 1px solid var(--line); border-radius: .4em; padding: .7em .9em; }
#h-status { left: 1.4em; bottom: 1.4em; width: 21em; }
#h-status .nm { font-weight: 700; letter-spacing: .08em; } #h-status .cl { color: var(--nation); font-size: .78em; letter-spacing: .12em; text-transform: uppercase; }
.bar { height: .6em; background: rgba(255, 255, 255, .12); border-radius: .2em; overflow: hidden; margin: .5em 0; } .bar i { display: block; height: 100%; background: var(--good); transition: width .2s; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .15em 1em; font-variant-numeric: tabular-nums; } .grid2 span { color: var(--dim); font-size: .75em; letter-spacing: .12em; margin-right: .5em; }
.thr { position: absolute; left: 23.2em; bottom: 1.4em; width: 1.1em; height: 9.6em; background: var(--panel); border: 1px solid var(--line); border-radius: .3em; overflow: hidden; } .thr i { position: absolute; left: 0; right: 0; bottom: 28.6%; height: 0; background: var(--accent); } .thr b { position: absolute; left: 0; right: 0; bottom: 28.6%; height: 1px; background: #fff; }
#h-weap { right: 1.4em; bottom: 1.4em; width: 20em; } .wp { display: flex; justify-content: space-between; gap: .8em; padding: .28em .5em; border-radius: .25em; color: var(--dim); font-size: .9em; } .wp.on { background: rgba(90, 169, 255, .22); color: #fff; outline: 1px solid var(--accent); } .wp kbd { margin-right: .5em; } .wp .am { font-variant-numeric: tabular-nums; }
.wp.auto { font-size: .78em; opacity: .8; }
#h-radar { right: 1.4em; top: 1.4em; padding: .4em; } #h-radar canvas { display: block; width: 15em; height: 15em; border-radius: 50%; } #h-radar .lbl { text-align: center; font-size: .7em; letter-spacing: .16em; color: var(--dim); margin-top: .3em; }
#h-feed { position: absolute; left: 1.4em; top: 1.4em; width: 30em; display: flex; flex-direction: column; gap: .25em; font-size: .86em; }
#h-feed div { padding: .25em .6em; background: rgba(8, 20, 31, .6); border-left: 3px solid var(--dim); border-radius: .2em; animation: feedin .25s; text-shadow: 0 1px 2px #000; } #h-feed .win { border-color: var(--good); } #h-feed .loss { border-color: var(--bad); } #h-feed .mine { border-color: #ffe07a; color: #ffe9a8; } #h-feed .bad { border-color: var(--bad); color: #ffb3ab; } #h-feed .good { border-color: var(--good); } #h-feed .info { border-color: var(--accent); }
@keyframes feedin { from { opacity: 0; transform: translateX(-1em); } }
#h-score { position: absolute; left: 50%; top: 1em; transform: translateX(-50%); display: flex; gap: 1.2em; align-items: center; padding: .35em 1.2em; background: var(--panel); border: 1px solid var(--line); border-radius: .4em; font-size: .9em; letter-spacing: .1em; }
#h-score .cv { display: flex; align-items: center; gap: .5em; } #h-score .cv i { display: block; width: 8em; height: .5em; background: rgba(255, 255, 255, .12); border-radius: .2em; overflow: hidden; } #h-score .cv i b { display: block; height: 100%; }
#h-cross { position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; }
#h-cross::before, #h-cross::after { content: ""; position: absolute; background: rgba(255, 255, 255, .9); box-shadow: 0 0 2px #000; } #h-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; -webkit-mask: linear-gradient(#000 35%, transparent 35% 65%, #000 65%); mask: linear-gradient(#000 35%, transparent 35% 65%, #000 65%); } #h-cross::after { top: 50%; left: 0; right: 0; height: 1px; -webkit-mask: linear-gradient(90deg, #000 35%, transparent 35% 65%, #000 65%); mask: linear-gradient(90deg, #000 35%, transparent 35% 65%, #000 65%); }
#h-cross.circle { border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; } #h-cross.hit::before, #h-cross.hit::after { background: #ff4a3d; }
.mark { position: absolute; left: 0; top: 0; width: 0; height: 0; } .mark i { position: absolute; display: block; }
#h-nose i { left: -.9em; top: -.9em; width: 1.8em; height: 1.8em; border: 2px solid #7be08a; border-radius: 50%; box-shadow: 0 0 3px #000; } #h-nose i::after { content: ""; position: absolute; left: 50%; top: 50%; width: .3em; height: .3em; margin: -.15em; background: #7be08a; border-radius: 50%; }
#h-lock i { left: -1.6em; top: -1.6em; width: 3.2em; height: 3.2em; border: 2px solid var(--warn); } #h-lock.locked i { border-color: #ff3b30; border-radius: 50%; } #h-lock span { position: absolute; top: 1.9em; left: -6em; width: 12em; text-align: center; font-size: .75em; letter-spacing: .1em; color: var(--warn); text-shadow: 0 1px 2px #000; white-space: nowrap; } #h-lock.locked span { color: #ff6a60; }
#h-aimtg i { left: -1.2em; top: -1.2em; width: 2.4em; height: 2.4em; border: 1px dashed rgba(255, 255, 255, .8); border-radius: .2em; } #h-aimtg span { position: absolute; top: 1.5em; left: -7em; width: 14em; text-align: center; font-size: .72em; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; }
#h-rearm i { left: -.75em; top: -.75em; width: 1.5em; height: 1.5em; border: 2px solid #ffd35a; transform: rotate(45deg); box-shadow: 0 0 3px #000; } #h-rearm span { position: absolute; top: 1.3em; left: -6em; width: 12em; text-align: center; font-size: .75em; letter-spacing: .1em; color: #ffd35a; text-shadow: 0 1px 2px #000; white-space: nowrap; }
#h-prompt .bar { display: inline-block; width: 9em; height: .6em; margin: 0 .5em; border: 1px solid var(--line); border-radius: .3em; background: rgba(0, 0, 0, .4); vertical-align: middle; overflow: hidden; } #h-prompt .bar i { display: block; height: 100%; background: #ffd35a; }
.wp.dry .am { color: #ff9c92; font-weight: 700; }
#h-bomb i { left: -.7em; top: -.7em; width: 1.4em; height: 1.4em; border: 2px solid #ffd35a; border-radius: 50%; }
#h-stick { position: absolute; left: 50%; bottom: 2em; width: 7em; height: 7em; margin-left: -3.5em; border: 1px solid var(--line); border-radius: 50%; background: rgba(8, 20, 31, .35); } #h-stick i { position: absolute; left: 50%; top: 50%; width: .8em; height: .8em; margin: -.4em; border-radius: 50%; background: #fff; }
#h-warn { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .3em; }
#h-warn div { padding: .25em 1em; font-weight: 700; letter-spacing: .2em; border-radius: .25em; background: rgba(120, 20, 14, .85); border: 1px solid #ff8d80; animation: blink .5s steps(2) infinite; } #h-warn div.amber { background: rgba(110, 70, 8, .85); border-color: #ffc56b; animation: none; }
@keyframes blink { 50% { opacity: .35; } }
#h-prompt { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); padding: .4em 1em; background: var(--panel); border: 1px solid var(--line); border-radius: .3em; font-size: .95em; white-space: nowrap; }
#h-msg { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); font-size: 2.4em; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 .1em .5em #000; text-align: center; white-space: nowrap; } #h-msg small { display: block; font-size: .4em; letter-spacing: .15em; font-weight: 600; color: var(--dim); margin-top: .6em; }
#h-hint { position: absolute; left: 50%; bottom: 1.2em; transform: translateX(-50%); color: rgba(232, 241, 247, .75); font-size: .78em; letter-spacing: .06em; text-shadow: 0 1px 2px #000; white-space: nowrap; }
#h-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(160, 0, 0, .7)); opacity: 0; }
#h-black { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 0, #000 70%); opacity: 0; }
#h-scope { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0, transparent 38vh, #000 38.6vh); } #h-scope::before, #h-scope::after { content: ""; position: absolute; background: rgba(0, 0, 0, .7); } #h-scope::before { left: 50%; top: 12vh; bottom: 12vh; width: 1px; } #h-scope::after { top: 50%; left: calc(50% - 38vh); right: calc(50% - 38vh); height: 1px; }
#h-scope span { position: absolute; left: 50%; top: 14vh; transform: translateX(-50%); color: #cfe; letter-spacing: .2em; font-size: .9em; text-shadow: 0 1px 2px #000; }
#h-map { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 12, 20, .6); } #h-map .mapwrap { display: flex; gap: 2em; align-items: flex-start; padding: 1.4em; background: var(--panel2); border: 1px solid var(--line); border-radius: .6em; } #h-map canvas { width: 40em; height: 40em; border: 1px solid var(--line); background: #0d2a3f; }
.scoreboard { width: 22em; } .scoreboard h3 { margin: 0 0 .5em; letter-spacing: .14em; text-transform: uppercase; } .scoreboard .stat span:last-child { font-variant-numeric: tabular-nums; }

/* ---- targeting feedback (reticle colours, hit markers, aim-off marker, shell-fall calls, damage direction) ---- */
#h-cross.enemy::before, #h-cross.enemy::after { background: #ff4a3d; } #h-cross.enemy.circle { border-color: #ff4a3d; }
#h-cross.friend::before, #h-cross.friend::after { background: #5fe07a; } #h-cross.friend.circle { border-color: #5fe07a; }
#h-aimtg.enemy i { border-color: var(--foe); } #h-aimtg.friend i { border-color: var(--ally); } #h-aimtg.friend span { color: var(--ally); } #h-aimtg.friend b { display: none; }
#h-aimtg b { position: absolute; top: -2em; left: -1.6em; width: 3.2em; height: .3em; background: rgba(0, 0, 0, .6); outline: 1px solid rgba(255, 255, 255, .45); } #h-aimtg b u { display: block; height: 100%; background: var(--foe); }
#h-hitx { position: absolute; left: 50%; top: 50%; width: 1.6em; height: 1.6em; margin: -.8em 0 0 -.8em; }
#h-hitx::before, #h-hitx::after { content: ""; position: absolute; left: 50%; top: -10%; width: 2px; height: 120%; margin-left: -1px; background: #fff; box-shadow: 0 0 2px #000; transform: rotate(45deg); -webkit-mask: linear-gradient(#000 30%, transparent 30% 70%, #000 70%); mask: linear-gradient(#000 30%, transparent 30% 70%, #000 70%); }
#h-hitx::after { transform: rotate(-45deg); }
#h-hitx.big { width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; } #h-hitx.big::before, #h-hitx.big::after { background: #ff3b30; width: 3px; }
#h-dmg { position: absolute; left: 50%; top: calc(50% + 2.4em); transform: translateX(-50%); font-weight: 700; letter-spacing: .12em; font-size: .85em; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; } #h-dmg.kill { color: #ff6b5e; }
#h-dirs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#h-dirs i { position: absolute; left: -7em; top: -7em; width: 14em; height: 14em; box-sizing: border-box; border-radius: 50%; border: .45em solid transparent; border-top-color: #ff3b30; opacity: 0; -webkit-mask: conic-gradient(from -20deg, #000 40deg, transparent 40deg); mask: conic-gradient(from -20deg, #000 40deg, transparent 40deg); }
#h-dirs i.amber { border-top-color: #ffb347; }
#h-lead i { left: -.55em; top: -.55em; width: 1.1em; height: 1.1em; box-sizing: border-box; border: 2px solid #ffd35a; border-radius: 50%; } #h-lead i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: #ffd35a; border-radius: 50%; }
#h-lead span { position: absolute; top: .9em; left: -6em; width: 12em; text-align: center; font-size: .7em; color: #ffd35a; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.fall span { position: absolute; top: -2.6em; left: -6em; width: 12em; text-align: center; font-size: .8em; font-weight: 700; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; } .fall.hit span { color: #ff6b5e; }
/* flight-path marker: where the plane is actually going */
#h-fpm i { left: -.45em; top: -.45em; width: .9em; height: .9em; box-sizing: border-box; border: 1.5px solid #7dffa0; border-radius: 50%; box-shadow: 0 0 2px #000; }
#h-fpm i::before, #h-fpm i::after { content: ""; position: absolute; top: 50%; width: .7em; height: 1.5px; margin-top: -1px; background: #7dffa0; } #h-fpm i::before { right: 100%; } #h-fpm i::after { left: 100%; }

/* ---- one reticle per kind of control: r-foot, r-ship, r-gun, r-sub, r-scope, r-jet, r-heli ---- */
#h-cross.r::before, #h-cross.r::after { content: none; }
#h-cross.r { --c: rgba(255, 255, 255, .92); --gap: .35em; border: 0; border-radius: 0; }
#h-cross.r.enemy { --c: var(--foe); } #h-cross.r.friend { --c: var(--ally); }
#h-cross.r i { position: absolute; display: block; background: var(--c); box-shadow: 0 0 2px #000; }
#h-cross.r .l.t, #h-cross.r .l.b { left: 50%; width: 2px; height: .55em; margin-left: -1px; } #h-cross.r .l.lf, #h-cross.r .l.rt { top: 50%; height: 2px; width: .55em; margin-top: -1px; }
#h-cross.r .l.t { bottom: calc(50% + var(--gap)); } #h-cross.r .l.b { top: calc(50% + var(--gap)); } #h-cross.r .l.lf { right: calc(50% + var(--gap)); } #h-cross.r .l.rt { left: calc(50% + var(--gap)); }
#h-cross.r .dot { left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; }
#h-cross.r .ring { display: none; left: 50%; top: 50%; background: none; border: 1.5px solid var(--c); border-radius: 50%; box-sizing: border-box; }
/* marine: four lines that open and close (--gap is set every frame) */
#h-cross.r-foot .l.t, #h-cross.r-foot .l.b { height: .4em; } #h-cross.r-foot .l.lf, #h-cross.r-foot .l.rt { width: .4em; }
/* ship guns and mounted guns: a ranging ring with long ticks */
#h-cross.r-ship, #h-cross.r-gun { --gap: .95em; } #h-cross.r-ship .ring, #h-cross.r-gun .ring { display: block; width: 1.9em; height: 1.9em; margin: -.95em; }
#h-cross.r-ship .l.t, #h-cross.r-ship .l.b, #h-cross.r-gun .l.t, #h-cross.r-gun .l.b { height: .7em; } #h-cross.r-ship .l.lf, #h-cross.r-ship .l.rt, #h-cross.r-gun .l.lf, #h-cross.r-gun .l.rt { width: .7em; }
#h-cross.r-gun .ring { width: 1.3em; height: 1.3em; margin: -.65em; } #h-cross.r-gun { --gap: .65em; }
/* submarine on the surface or below: a plain cross; through the periscope the scope overlay is the reticle */
#h-cross.r-sub { --gap: .2em; } #h-cross.r-scope .l, #h-cross.r-scope .ring { display: none; }
/* planes: the centre is only where you are looking (a small dot); the gunsight is the nose marker */
#h-cross.r-jet .l { display: none; } #h-cross.r-jet .dot { width: 4px; height: 4px; margin: -2px; opacity: .8; }
/* helicopters: gun and missile ring */
#h-cross.r-heli { --gap: 1.15em; } #h-cross.r-heli .ring { display: block; width: 2.3em; height: 2.3em; margin: -1.15em; } #h-cross.r-heli .l.t, #h-cross.r-heli .l.lf, #h-cross.r-heli .l.rt { display: none; } #h-cross.r-heli .l.b { height: .5em; }
#h-rinfo { position: absolute; left: 50%; top: calc(50% + 3.9em); transform: translateX(-50%); font-size: .72em; letter-spacing: .12em; color: rgba(232, 241, 247, .85); text-shadow: 0 1px 2px #000; white-space: nowrap; }
/* the plane's gunsight (where the nose and guns point): ring, pipper and wing ticks */
#h-nose i::before { content: ""; position: absolute; left: -.6em; right: -.6em; top: 50%; height: 2px; margin-top: -1px; background: #7be08a; -webkit-mask: linear-gradient(90deg, #000 18%, transparent 18% 82%, #000 82%); mask: linear-gradient(90deg, #000 18%, transparent 18% 82%, #000 82%); }
/* periscope: bearing ticks along the horizontal wire and range marks on the vertical one */
#h-scope span::after { content: ""; position: absolute; left: 50%; top: calc(36vh - .2em); width: 60vh; height: .9em; margin-left: -30vh; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .75) 0 1px, transparent 1px 3vh); }
#h-scope span::before { content: ""; position: absolute; left: 50%; top: 24vh; width: 1.2em; height: 24vh; margin-left: -.6em; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .75) 0 1px, transparent 1px 2.4vh); }

/* ---- score bar: labelled sides, kills, carrier health, and the goal ---- */
#h-score { gap: 1.6em; padding: .4em 1.1em; font-size: .82em; letter-spacing: .08em; }
#h-score .side { display: flex; align-items: center; gap: .9em; } #h-score .side.en { flex-direction: row-reverse; }
#h-score .nm { font-size: 1.05em; letter-spacing: .14em; white-space: nowrap; }
#h-score .kl, #h-score .cvl { display: flex; align-items: center; gap: .35em; white-space: nowrap; color: #e8f1f7; }
#h-score svg { width: 1.15em; height: 1.15em; flex: none; opacity: .9; } #h-score .cvl svg { width: 1.7em; }
#h-score .cvl i { display: block; width: 6.5em; height: .5em; background: rgba(255, 255, 255, .14); border-radius: .2em; overflow: hidden; } #h-score .cvl i u { display: block; height: 100%; }
#h-score .cvl.mid { color: #ffd98a; } #h-score .cvl.low { color: #ff9c92; }
#h-score .cvl.flash { animation: cvflash .25s steps(2) 3; } @keyframes cvflash { 50% { color: #fff; filter: brightness(2.2); } }
#h-score .goal { padding: .25em .9em; border: 1px solid var(--line); border-radius: .3em; font-weight: 700; letter-spacing: .16em; color: #ffe9a8; white-space: nowrap; }

/* ---- friend / foe colours (the colour-blind setting swaps the two variables) ---- */
#hud { --ally: #5fe07a; --foe: #ff4a3d; }
#h-feed .win, #h-feed .good { border-color: var(--ally); } #h-feed .mine { border-color: var(--ally); color: #fff; font-weight: 600; } #h-feed .loss { border-color: var(--foe); } #h-feed .bad { border-color: var(--foe); color: #ffd9d4; }
#h-radar .legend { display: grid; grid-template-columns: 1fr 1fr; gap: .1em .6em; margin-top: .35em; font-size: .62em; letter-spacing: .04em; color: var(--dim); } #h-radar .legend b { font-weight: 700; }

/* ---- Credits ---- */
.wallet { display: inline-block; padding: .3em .8em; border: 1px solid #c9a94a; border-radius: .3em; color: #ffe9a8; font-weight: 700; letter-spacing: .06em; background: rgba(60, 46, 10, .45); white-space: nowrap; }
.title-col .wallet { margin: .2em 0 .6em; }
#h-econ { position: absolute; right: 1.4em; bottom: 12.5em; padding: .45em .8em; font-size: .82em; min-width: 15em; }
#h-econ .cr { color: #ffe9a8; font-weight: 700; font-size: 1.15em; letter-spacing: .05em; }
#h-econ .inf { margin-top: .25em; color: var(--dim); font-size: .85em; } #h-econ .inf i { display: block; height: .3em; margin-top: .2em; background: rgba(255, 255, 255, .12); border-radius: .15em; overflow: hidden; } #h-econ .inf u { display: block; height: 100%; background: #ffd35a; }
#h-econ .inf.full { color: #8a959c; } #h-econ .inf.full u { background: #7b858c; }
#h-pops { position: absolute; left: calc(50% + 3.2em); top: calc(50% - 1.6em); display: flex; flex-direction: column; gap: .15em; pointer-events: none; }
#h-pops div { color: #ffe07a; font-weight: 700; letter-spacing: .06em; text-shadow: 0 1px 3px #000; animation: payup 1.9s ease-out forwards; white-space: nowrap; }
@keyframes payup { 0% { opacity: 0; transform: translateY(.6em); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1.2em); } }
.paytable { width: 100%; border-collapse: collapse; margin: .8em 0; } .paytable th, .paytable td { text-align: left; padding: .35em .2em; border-bottom: 1px solid rgba(160, 200, 230, .14); } .paytable th { color: var(--dim); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8em; } .paytable td:last-child, .paytable th:last-child { text-align: right; color: #ffe9a8; }
.stat em { font-style: normal; color: #ffb347; font-size: .85em; margin-left: .4em; } .stat.total { border-top: 1px solid var(--line); font-weight: 700; } .stat.total span:last-child { color: #ffe9a8; }
#h-feed .mine { border-color: #ffe07a; }

/* ---- Hangar ---- */
.htabs { display: flex; gap: .3em; flex-wrap: wrap; } .htabs button { flex: 1; }
.hitem { display: grid; grid-template-columns: 1fr auto; gap: .1em .6em; width: 100%; text-align: left; margin-top: .4em; padding: .55em .7em; border: 1px solid var(--line); border-left: .3em solid var(--tier); border-radius: .3em; background: rgba(20, 44, 64, .7); color: inherit; font: inherit; cursor: pointer; }
.hitem:hover { background: rgba(40, 80, 112, .9); }
/* a look the unit on show cannot wear: greyed out, with the reason under its name (still selectable, to buy it or to preview it elsewhere) */
.hitem.na { filter: grayscale(.85); opacity: .58; } .hitem.na.on { opacity: .8; } .hitem .only { grid-column: 1; font-style: normal; font-size: .72em; color: #d7dde2; } .hitem.on { outline: 2px solid var(--tier); background: rgba(46, 88, 122, .95); }
.hitem b { font-weight: 600; } .hitem small { grid-column: 1; color: var(--tier); font-size: .74em; letter-spacing: .08em; text-transform: uppercase; } .hitem .st { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .78em; letter-spacing: .06em; color: #ffe9a8; white-space: nowrap; }
.hitem .lock { display: inline-block; width: .62em; height: .52em; margin-right: .4em; border-radius: .08em; background: #ffe9a8; position: relative; } .hitem .lock::before { content: ""; position: absolute; left: .1em; right: .1em; top: -.36em; height: .4em; border: .1em solid #ffe9a8; border-bottom: 0; border-radius: .3em .3em 0 0; }
.hsel { display: flex; align-items: center; gap: .6em; margin: .2em 0 .4em; color: var(--dim); font-size: .85em; } .hsel select { flex: 1; padding: .35em; background: #10273a; color: inherit; border: 1px solid var(--line); border-radius: .3em; font: inherit; }
.hnote { color: var(--dim); font-size: .8em; line-height: 1.4; margin: .5em 0 0; } .hmsg { min-height: 2.6em; color: #ffd98a; } .need { color: #ff9c92; font-weight: 700; }
.hact { display: flex; flex-direction: column; gap: .5em; margin-top: auto; } .unitinfo .hact .btn { margin-top: 0; }
.hdrag { cursor: grab; pointer-events: auto; } .hdrag:active { cursor: grabbing; }

/* ---- store and account ---- */
.storerow { display: flex; gap: .5em; margin: 0 0 .6em; } .soon { color: var(--dim); font-size: .8em; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .6em; }
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; margin: 1em 0; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5em; padding: 1.3em .6em 1em; border: 1px solid var(--line); border-radius: .5em; background: rgba(20, 44, 64, .7); }
.pack b { font-size: 1.35em; color: #ffe9a8; } .pack .price { font-weight: 700; letter-spacing: .04em; } .pack.best { border-color: #ffcf4a; box-shadow: 0 0 0 1px #ffcf4a inset; }
.pack .tag { position: absolute; top: -.75em; padding: .15em .6em; border-radius: .25em; background: #ffcf4a; color: #2b2204; font-size: .68em; font-weight: 800; letter-spacing: .1em; }
.field { display: flex; flex-direction: column; gap: .3em; margin: .7em 0; color: var(--dim); font-size: .85em; letter-spacing: .08em; text-transform: uppercase; }
.field input { padding: .6em .7em; font: inherit; font-size: 1.15em; letter-spacing: .04em; text-transform: none; color: #e8f1f7; background: #10273a; border: 1px solid var(--line); border-radius: .3em; }

.lockic { vertical-align: -1px; opacity: .85; color: #ffcf4a; }
