:root {
  --bg: #03060b;
  --bg-2: #071018;
  --ink: #e8f2f4;
  --ink-dim: #8da3ac;
  --ink-faint: #556c76;
  --pearl: #f4efe2;
  --cyan: #8fe8ff;
  --cyan-2: #4db7d2;
  --cyan-dim: rgba(143, 232, 255, .28);
  --orange: #ff8a3d;
  --orange-hot: #ffd08a;
  --orange-deep: #c95b1d;
  --red: #ff5b56;
  --violet: #b06cff;
  --violet-hot: #e3b6ff;
  --panel: rgba(3, 10, 17, .72);
  --panel-2: rgba(5, 14, 23, .9);
  --line: rgba(143, 232, 255, .18);
  --line-bright: rgba(143, 232, 255, .55);
  --line-orange: rgba(255, 138, 61, .5);
  --display: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  --body: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Microsoft JhengHei", monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--ink);
}
body {
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, canvas { display: block; }
.hidden { display: none !important; }
.dim { color: var(--ink-faint); }

#scene {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  outline: none;
  background: #010204;
}
#overlay {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
}
#ui { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#ui .screen, #ui .panel button, #ui input, #ui .ability { pointer-events: auto; }

/* ============ typography helpers ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: .9;
}
h1, h2, h3, p, dl, dd, dt, blockquote { margin: 0; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px; height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line);
  background: rgba(143, 232, 255, .06);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  border-radius: 2px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 46px;
  padding: 0 26px;
  border: 1px solid var(--line-bright);
  background: rgba(8, 22, 32, .62);
  color: var(--pearl);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn:hover { background: rgba(143, 232, 255, .12); border-color: var(--cyan); box-shadow: 0 0 26px rgba(143, 232, 255, .13); }
.btn:active { transform: translateY(1px); }
.btn b { font-size: 20px; line-height: 1; color: var(--cyan); font-weight: 400; }
.btn.primary {
  border-color: var(--line-orange);
  background: linear-gradient(180deg, rgba(255, 138, 61, .22), rgba(201, 91, 29, .12));
  color: var(--orange-hot);
}
.btn.primary:hover {
  background: linear-gradient(180deg, rgba(255, 138, 61, .34), rgba(201, 91, 29, .18));
  border-color: var(--orange);
  box-shadow: 0 0 34px rgba(255, 138, 61, .18);
}
.btn.ghost { background: rgba(3, 10, 17, .4); color: var(--ink-dim); font-size: 12px; height: 42px; padding: 0 18px; }

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel), rgba(3, 10, 17, .55));
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--line-bright);
  border-style: solid;
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.bar {
  position: relative;
  height: 7px;
  background: rgba(143, 232, 255, .08);
  border: 1px solid rgba(143, 232, 255, .14);
  overflow: hidden;
}
.bar i {
  display: block; height: 100%;
  width: 100%;
  transform-origin: left center;
  transition: transform .18s linear, background .3s;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan));
  box-shadow: 0 0 12px rgba(143, 232, 255, .5);
}
.bar.hull i { background: linear-gradient(90deg, #7fe0b8, var(--cyan)); }
.bar.hull.low i { background: linear-gradient(90deg, var(--orange-deep), var(--orange)); box-shadow: 0 0 12px rgba(255, 138, 61, .6); }
.bar.hull.crit i { background: linear-gradient(90deg, #8f1f1f, var(--red)); box-shadow: 0 0 14px rgba(255, 91, 86, .65); }
.bar.shield i { background: linear-gradient(90deg, #4a8dff, var(--cyan)); }
.bar.earth i { background: linear-gradient(90deg, #43c6a0, #9be8b0); }
.bar.earth.low i { background: linear-gradient(90deg, var(--orange-deep), var(--orange)); }
.bar.hp i { background: linear-gradient(90deg, var(--violet), #d7a5ff); }
.bar.hp.iff i { background: linear-gradient(90deg, var(--orange-deep), var(--orange)); box-shadow: 0 0 12px rgba(255,138,61,.45); }

/* ============ HUD ============ */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 318px minmax(320px, 560px) 300px;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 0;
}
.status { padding: 12px 14px 10px; }
.status-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; }
.ship-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  border: 1px solid var(--line-orange);
  padding: 1px 5px;
  letter-spacing: .1em;
}
.ship-name {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .15em;
  color: var(--pearl);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-row { display: grid; grid-template-columns: 44px 1fr 48px; align-items: center; gap: 8px; margin-bottom: 6px; }
.bar-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-dim); }
.bar-row b { font-family: var(--mono); font-size: 11px; color: var(--ink); text-align: right; font-weight: 500; }
.status-sub {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 8px; padding-top: 7px;
  border-top: 1px solid rgba(143, 232, 255, .1);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-dim);
}

.objective { padding: 12px 16px 10px; text-align: center; }
.obj-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--cyan); opacity: .8; }
.obj-title {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--pearl);
  margin: 4px 0 2px;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(143, 232, 255, .18);
}
.obj-sub { font-size: 12px; color: var(--ink-dim); letter-spacing: .03em; min-height: 16px; }
.earth-block { margin: 9px auto 8px; max-width: 400px; }
.earth-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-dim); margin-bottom: 4px; }
.earth-head b { color: #9be8b0; font-weight: 600; }
.obj-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-faint);
  border-top: 1px solid rgba(143, 232, 255, .1); padding-top: 7px;
}
.obj-footer b { color: var(--orange); font-size: 12px; }
.obj-wave { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--cyan); }

.target { padding: 11px 13px 9px; }
.target.no-lock { opacity: .55; }
.tgt-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--ink-faint); }
.tgt-head b { font-family: var(--display); font-size: 13px; letter-spacing: .1em; color: var(--pearl); font-weight: 700; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgt-sub { display: flex; justify-content: space-between; margin: 5px 0 7px; font-family: var(--mono); font-size: 10px; color: var(--ink-dim); letter-spacing: .06em; }
.tgt-foot { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--mono); font-size: 9px; color: var(--ink-faint); letter-spacing: .1em; }

/* boss */
.boss-bar {
  position: absolute;
  top: 206px;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, 64vw);
  padding: 10px 16px 11px;
  background: linear-gradient(180deg, rgba(24, 8, 32, .82), rgba(8, 4, 14, .62));
  border: 1px solid rgba(176, 108, 255, .35);
  backdrop-filter: blur(8px);
  animation: bossIn .5s ease-out;
}
@keyframes bossIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.boss-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.boss-type { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--violet); opacity: .85; }
.boss-name { font-family: var(--display); font-size: 15px; letter-spacing: .16em; color: #f0dcff; font-weight: 700; }
.boss-range { font-family: var(--mono); font-size: 10px; color: var(--ink-dim); }
.boss-track { position: relative; height: 9px; background: rgba(176, 108, 255, .1); border: 1px solid rgba(176, 108, 255, .22); overflow: hidden; }
.boss-track i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, #5d2b8f, var(--violet), #e3b6ff); box-shadow: 0 0 16px rgba(176, 108, 255, .55); transition: transform .2s linear; }
.boss-parts { display: flex; gap: 6px; margin-top: 7px; justify-content: center; flex-wrap: wrap; }
.boss-part {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em;
  padding: 2px 7px; border: 1px solid rgba(176, 108, 255, .3); color: #c9a6ee;
  background: rgba(176, 108, 255, .07);
}
.boss-part.down { color: var(--ink-faint); border-color: rgba(255, 255, 255, .1); text-decoration: line-through; background: transparent; }
.boss-part.core { color: var(--orange-hot); border-color: var(--line-orange); }
.boss-hint { text-align: center; font-size: 10.5px; color: var(--ink-dim); margin-top: 6px; letter-spacing: .05em; }

/* bottom */
.hud-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(240px, 300px);
  align-items: end;
  gap: 18px;
  padding: 0 22px 18px;
}
.bottom-left { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.comms {
  min-height: 42px;
  padding: 9px 13px;
  border-left: 2px solid var(--orange);
  background: linear-gradient(90deg, rgba(255, 138, 61, .10), rgba(3, 10, 17, .2) 70%, transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.comms.on { opacity: 1; transform: none; }
.comms-who { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .24em; color: var(--orange); margin-bottom: 2px; }
.comms-text { font-size: 13.5px; line-height: 1.45; color: var(--pearl); letter-spacing: .01em; }
.hint {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--cyan); opacity: 0; transition: opacity .3s;
  padding-left: 14px;
}
.hint.on { opacity: .8; }

.abilities { display: flex; gap: 7px; align-items: flex-end; pointer-events: none; }
.ability {
  position: relative;
  width: 80px; height: 56px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 26, 36, .8), rgba(3, 10, 17, .7));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  transition: border-color .2s, box-shadow .2s;
}
.ability.ready { border-color: var(--line-orange); box-shadow: 0 0 18px rgba(255, 138, 61, .1) inset; }
.ability.active { border-color: var(--cyan); box-shadow: 0 0 22px rgba(143, 232, 255, .25); }
.ability .ab-key { font-family: var(--mono); font-size: 9px; color: var(--orange); letter-spacing: .1em; }
.ability .ab-name { font-family: var(--display); font-size: 10px; letter-spacing: .13em; color: var(--pearl); }
.ability.static { opacity: .5; }
.ability.counting .ab-key, .ability.counting .ab-name { opacity: .12; }
.ab-timer { pointer-events: none; }
.ab-cd {
  position: absolute; inset: 0;
  background: rgba(3, 8, 12, .78);
  transform-origin: bottom;
  transform: scaleY(0);
  pointer-events: none;
}
.ab-timer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 15px; color: var(--orange-hot); font-weight: 600;
  text-shadow: 0 0 10px #000;
}
.radar-wrap { padding: 8px 8px 5px; justify-self: end; }
#radar { width: 190px; height: 190px; }
.radar-label { display: flex; justify-content: space-between; margin-top: 5px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: var(--ink-faint); }
.radar-label b { color: var(--cyan); font-weight: 500; }

.banner {
  position: absolute;
  left: 50%; top: 32%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0;
  transition: opacity .4s;
  text-align: center;
  pointer-events: none;
}
.banner.on { opacity: 1; }
.banner b {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: .28em;
  color: var(--pearl);
  text-shadow: 0 0 30px rgba(143, 232, 255, .4), 0 2px 10px #000;
  white-space: nowrap;
}
.banner span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .34em; color: var(--orange); }
.banner-line { width: 240px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-bright), transparent); }

.killfeed {
  position: absolute; right: 26px; top: 244px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--ink-dim);
}
.killfeed div { padding: 2px 7px; background: rgba(3, 10, 17, .55); border-right: 1px solid var(--line-orange); animation: kfIn .2s ease-out; }
.killfeed b { color: var(--orange-hot); font-weight: 500; }
@keyframes kfIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.damage {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(255, 40, 30, .38) 100%);
  opacity: 0;
  transition: opacity .18s;
}
.lowhp {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(255, 30, 20, .22) 100%);
  opacity: 0;
}
.lowhp.on { animation: lowPulse 1.6s ease-in-out infinite; }
@keyframes lowPulse { 0%,100% { opacity: .25; } 50% { opacity: .7; } }

.hud-keys {
  position: absolute; left: 22px; bottom: 128px;
  display: flex; gap: 14px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; color: var(--ink-faint);
}
.hud-keys span { display: flex; align-items: center; gap: 4px; }
.hud-keys em { font-style: normal; }

.debug {
  position: absolute; right: 14px; bottom: 6px;
  font-family: var(--mono); font-size: 10px; color: var(--cyan);
  background: rgba(0, 0, 0, .5); padding: 4px 8px;
}

/* ============ screens ============ */
.screen { position: absolute; inset: 0; }
.overlay { background: rgba(2, 5, 9, .72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }

.boot {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, #081722, #020509 70%);
  transition: opacity .5s;
}
.boot-inner { text-align: center; }
.brand-mark { font-size: 30px; color: var(--orange); margin-bottom: 16px; animation: markPulse 2.4s ease-in-out infinite; }
@keyframes markPulse { 0%,100% { opacity: .55; text-shadow: 0 0 12px rgba(255,138,61,.3); } 50% { opacity: 1; text-shadow: 0 0 34px rgba(255,138,61,.7); } }
.boot-title { font-family: var(--display); font-size: 22px; letter-spacing: .34em; color: var(--pearl); margin-bottom: 18px; }
.boot-bar { width: 280px; height: 2px; margin: 0 auto 12px; background: rgba(143, 232, 255, .12); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transition: width .3s; }
.boot-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--ink-faint); }
.boot-error { margin-top: 18px; color: var(--red); font-family: var(--mono); font-size: 11px; max-width: 560px; line-height: 1.6; }

/* title */
.title-screen {
  background:
    radial-gradient(ellipse at 74% 42%, rgba(80, 170, 210, .10), transparent 52%),
    linear-gradient(90deg, rgba(2, 5, 9, .92) 0%, rgba(2, 5, 9, .72) 34%, rgba(2, 5, 9, .1) 66%, transparent 100%);
  animation: fadeIn .7s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.title-vertical {
  position: absolute; right: 5vw; top: 50%; transform: translateY(-50%);
  font-family: "Microsoft JhengHei", "PingFang TC", var(--display);
  font-size: clamp(80px, 12vw, 190px);
  font-weight: 800;
  line-height: .98;
  writing-mode: vertical-rl;
  letter-spacing: .08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143, 232, 255, .16);
  opacity: .9;
  pointer-events: none;
}
.title-glow {
  position: absolute; right: 12vw; top: 50%; width: 55vw; height: 55vw;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 138, 61, .06), transparent 62%);
  pointer-events: none;
}
.title-panel {
  position: absolute;
  left: clamp(28px, 7vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 640px;
}
.title-lockup { display: flex; flex-direction: column; margin: 12px 0 8px; }
.title-en {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: .92;
  letter-spacing: .015em;
  color: var(--pearl);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .8);
}
.title-en.accent { color: var(--orange); text-shadow: 0 0 42px rgba(255, 138, 61, .28); }
.title-zh {
  font-family: "Microsoft JhengHei", "PingFang TC", var(--display);
  font-size: 16px; letter-spacing: .3em; color: var(--cyan); opacity: .85;
  margin-bottom: 18px;
}
.title-zh span { opacity: .4; }
.title-sub { max-width: 470px; font-size: 14.5px; line-height: 1.7; color: var(--ink-dim); margin-bottom: 22px; }
.name-row { display: flex; gap: 14px; margin-bottom: 20px; }
.name-row label { display: flex; flex-direction: column; gap: 6px; }
.name-row label span { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--ink-faint); }
.name-row input {
  width: 190px; height: 38px;
  padding: 0 12px;
  background: rgba(8, 22, 32, .6);
  border: 1px solid var(--line);
  color: var(--pearl);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  outline: none;
  transition: border-color .18s;
}
.name-row input:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(143, 232, 255, .18); }
.title-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.lang-btn { width: 78px; }
.control-strip {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(143, 232, 255, .1);
  border-bottom: 1px solid rgba(143, 232, 255, .1);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--ink-dim);
}
.control-strip span { display: flex; align-items: center; gap: 4px; }
.control-strip em { font-style: normal; margin-left: 2px; }
.title-foot { margin-top: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--ink-faint); }

/* briefing */
.briefing-screen {
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: clamp(28px, 8vw, 150px);
  background: linear-gradient(270deg, rgba(2, 5, 9, .95) 0%, rgba(2, 5, 9, .82) 38%, rgba(2, 5, 9, .1) 75%, transparent 100%);
  animation: fadeIn .5s ease-out;
}
.brief-card {
  width: min(620px, 92vw);
  max-height: 92vh;
  overflow: auto;
  padding: 26px 30px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 15, 24, .88), rgba(3, 8, 14, .8));
  backdrop-filter: blur(10px);
  position: relative;
}
.brief-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--orange), transparent 70%);
}
.brief-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.brief-code { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--ink-faint); }
.brief-title-row { display: flex; align-items: baseline; gap: 14px; }
.brief-title-row h2 {
  font-family: var(--display); font-size: clamp(32px, 4vw, 48px); line-height: 1;
  letter-spacing: .04em; font-weight: 800; color: var(--pearl); text-transform: uppercase;
}
.brief-zh { font-size: 15px; letter-spacing: .28em; color: var(--orange); }
.brief-loc { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--cyan); margin: 8px 0 16px; }
.brief-story { font-size: 14px; line-height: 1.78; color: var(--ink-dim); margin-bottom: 18px; }
.brief-objectives { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 7px; }
.brief-objectives li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink);
  padding: 7px 10px;
  background: rgba(143, 232, 255, .04);
  border-left: 1px solid var(--line);
}
.brief-objectives li b { font-family: var(--mono); font-size: 10px; color: var(--orange); letter-spacing: .1em; padding-top: 2px; }
.brief-quote { border-left: 2px solid var(--orange); padding: 4px 0 4px 14px; margin-bottom: 20px; }
.brief-quote span { font-size: 14px; line-height: 1.6; color: var(--pearl); font-style: italic; }
.brief-quote cite { display: block; margin-top: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--orange); font-style: normal; }
.brief-actions { display: flex; gap: 12px; }
.brief-threat { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(143, 232, 255, .1); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--ink-faint); display: flex; gap: 10px; }
.brief-threat b { color: var(--ink-dim); font-weight: 400; }

/* pause */
.pause-card { width: min(420px, 90vw); padding: 26px 28px; text-align: center; }
.pause-card h2 { font-family: var(--display); font-size: 42px; letter-spacing: .1em; color: var(--pearl); margin: 6px 0 22px; }
.pause-actions { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.pause-actions .btn { width: 100%; }
.pause-foot { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 9px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--ink-dim); }
.pause-foot input[type=range] { width: 100%; accent-color: var(--orange); }

/* results */
.results-screen {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(10, 26, 38, .9), rgba(2, 5, 9, .96) 70%);
  animation: fadeIn .6s ease-out;
}
.result-card { width: min(560px, 92vw); text-align: center; padding: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-card h2 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 52px); letter-spacing: .08em; color: var(--pearl); margin: 8px 0 12px; }
.result-card.victory h2 { color: var(--orange-hot); text-shadow: 0 0 40px rgba(255, 138, 61, .25); }
.result-card.defeat h2 { color: var(--red); text-shadow: 0 0 40px rgba(255, 60, 50, .2); }
.result-line { font-size: 14px; line-height: 1.75; color: var(--ink-dim); max-width: 440px; margin: 0 auto 22px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-bottom: 24px; text-align: left; }
.stats div { background: rgba(3, 10, 17, .92); padding: 9px 13px; display: flex; justify-content: space-between; gap: 8px; }
.stats dt { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--ink-faint); }
.stats dd { font-family: var(--mono); font-size: 12px; color: var(--pearl); }
.result-actions { display: flex; gap: 10px; justify-content: center; }

/* ============ responsive ============ */
@media (max-width: 1280px) {
  .hud-top { grid-template-columns: 280px minmax(280px, 470px) 260px; gap: 12px; padding: 14px 14px 0; }
  .hud-bottom { grid-template-columns: minmax(260px, 1fr) auto minmax(210px, 260px); gap: 12px; padding: 0 14px 14px; }
  #radar { width: 160px; height: 160px; }
  .ability { width: 70px; height: 50px; }
  .obj-title { font-size: 18px; }
  .boss-bar { top: 190px; }
}
@media (max-width: 1120px) {
  .ability.static { display: none; }
}
@media (max-width: 1000px) {
  .hud-top { grid-template-columns: 250px 1fr 230px; }
  .target { display: none; }
  .obj-footer { display: none; }
  .earth-block { margin-bottom: 2px; }
  .hud-keys { display: none; }
  .title-vertical { display: none; }
}
@media (max-height: 760px) {
  .hud-keys { display: none; }
  .hud-top { padding-top: 10px; }
  .objective { padding: 8px 12px 7px; }
  .obj-title { font-size: 17px; margin: 2px 0 1px; }
  .earth-block { margin: 6px auto 4px; }
  .boss-bar { top: 168px; }
  .brief-card { padding: 18px 22px 16px; }
  .brief-story { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
  .brief-objectives { margin-bottom: 12px; }
  .title-en { font-size: clamp(38px, 5.4vw, 68px); }
}
@media (max-height: 620px) {
  .status, .objective { transform: scale(.94); transform-origin: top center; }
  .hud-bottom { padding-bottom: 8px; }
  .comms { min-height: 34px; padding: 6px 10px; }
  .comms-text { font-size: 12px; }
}
