:root { color-scheme: dark; font-family: 'Avenir Next', 'DIN Alternate', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #f0f5ed; background: #1b3540; font-synthesis: none; --gold: #ffd082; --muted: #b8cbd0; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#app { position: relative; width: 100%; height: 100svh; min-height: 360px; overflow: hidden; isolation: isolate; }
#battlefield { display: block; width: 100%; height: 100%; touch-action: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #102630d9, #142d3330 17%, transparent 30%, transparent 63%, #0b2630a8), linear-gradient(90deg, #102b39bf, transparent 51%); transition: opacity .5s; }
[data-screen=playing] .vignette, [data-screen=paused] .vignette { background: linear-gradient(180deg, #0b2332db, #12333b30 22%, transparent 38%, transparent 69%, #0b2433af); }
.header { position: absolute; z-index: 2; inset: max(26px, env(safe-area-inset-top)) 38px auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-icon { height: 43px; width: 43px; display: grid; place-items: center; border: 1px solid #b8d0ce40; border-radius: 13px; color: var(--gold); background: #25404b66; }
.brand strong { font-size: 18px; letter-spacing: -.45px; white-space: nowrap; }
.brand em { font-style: normal; color: var(--gold); }
.brand small { display: block; font-size: 8px; letter-spacing: 3px; margin-top: 4px; color: #c3d1cf; }
.stages { display: flex; gap: 12px; align-items: center; font-size: 11px; margin-right: 70px; }
.stage { display: flex; gap: 8px; align-items: center; color: #afc4c37d; white-space: nowrap; }
.stage b { font-size: 11px; width: 28px; height: 28px; display: grid; place-items: center; background: #162d3455; border: 1px solid #91afa32d; border-radius: 50%; font-weight: 500; }
.stage.current { color: #e8eeea; }
.stage.current b { color: #243e43; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 16px #ffd08220; }
.stage.complete b { color: var(--gold); border-color: #ffd08277; }
.stages i { height: 1px; width: 18px; background: #b8cfd033; }
.header-actions { display: flex; gap: 9px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid #b5c6be33; color: #e5f0ed; background: #1b354566; transition: background .2s; }
.icon-button:hover { background: #3d5c66aa; }
.icon-button:disabled { opacity: .3; }
.icon-button svg { width: 18px; height: 18px; }
.operation { position: absolute; left: 40px; top: 132px; display: flex; flex-direction: column; pointer-events: none; gap: 7px; }
.operation-line { width: 24px; height: 3px; background: var(--gold); margin-bottom: 8px; }
.operation small { font-size: 8px; letter-spacing: 2.5px; color: #c7d9d6bd; }
.operation strong { font-size: 13px; letter-spacing: 2.2px; font-weight: 600; }
.operation-chinese { font-size: 10px; color: #c5d2cf; letter-spacing: 3px; }
[data-screen=home] .operation { top: 112px; }
[data-screen=home] .operation-chinese { display: none; }
.intro { position: absolute; left: 6%; top: 50%; transform: translateY(-40%); width: 376px; }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: 3px; margin: 0 0 23px; }
.eyebrow > span { display: inline-block; height: 5px; width: 5px; background: var(--gold); border-radius: 50%; vertical-align: 2px; margin-right: 9px; box-shadow: 0 0 12px #ffd08260; }
h1 { font-size: clamp(38px, 3.7vw, 58px); font-weight: 800; line-height: 1.4; letter-spacing: -2px; margin: 0 0 24px; text-shadow: 0 3px 24px #17333d33; }
h1 span { color: var(--gold); }
.intro-copy { font-size: 13px; color: #d0ddd9; line-height: 1.9; margin: 0 0 30px; letter-spacing: .5px; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 17px 22px; background: linear-gradient(105deg, #ffe6a6, #ffc473); color: #243839; border: 1px solid #ffe7b0; border-bottom: 3px solid #b88d49; border-radius: 8px; box-shadow: 0 5px 0 #97672e66, 0 10px 30px #17272c26; font-weight: 750; font-size: 15px; letter-spacing: 1px; transition: transform .18s, filter .18s; }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-2px); }
.primary-button:active { transform: translateY(2px); }
.primary-button:disabled { opacity: .65; }
.primary-button svg { width: 20px; height: 20px; }
.instructions { display: flex; align-items: center; gap: 12px; margin-top: 23px; color: #bececb; }
.move-arrow { font-size: 28px; }
.instructions p { margin: 0; }
.instructions strong { font-size: 10px; font-weight: 400; letter-spacing: .8px; }
.instructions small { display: block; font-size: 9px; margin-top: 7px; color: #aabfbb; letter-spacing: .5px; }
.intro-note { font-size: 7px; letter-spacing: 1.6px; color: #c5d5cc90; margin-top: 26px; }
.intro-note i { margin: 0 9px; font-style: normal; }
footer { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 39px; right: 39px; display: flex; justify-content: space-between; color: #b2c5bf7a; font-size: 7px; letter-spacing: 2px; pointer-events: none; }
footer i { font-style: normal; padding: 0 6px; }
footer b { font-weight: 400; color: #d0ddd1; }
.live-ui { position: absolute; inset: 0; pointer-events: none; }
.live-ui button { pointer-events: auto; }
.mission-progress { position: absolute; left: 40px; right: 40px; top: 102px; height: 2px; background: #c8ded738; }
.mission-progress > span { display: block; height: 100%; background: var(--gold); width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.mission-progress b { position: absolute; right: 0; top: -10px; color: #dde5cc; font-size: 16px; font-weight: 400; }
.kills { position: absolute; right: 41px; top: 139px; text-align: right; display: flex; flex-direction: column; }
.kills > small { color: #cbd9d4a3; font-size: 8px; letter-spacing: 2.5px; }
.kills strong { font-size: 36px; font-weight: 500; line-height: 1.5; }
.kills > span { font-size: 8px; color: #c2d4cfaa; letter-spacing: 1px; }
.kills b { margin-left: 5px; font-weight: 500; color: #dae8dd; }
.squad-panel { position: absolute; bottom: 136px; left: 39px; width: 125px; padding: 17px 17px 14px; background: #16333dda; border: 1px solid #afc8c328; border-left: 2px solid #67cce5; border-radius: 4px 13px 13px 4px; box-shadow: 0 10px 30px #0623311a; }
.squad-panel > small { font-size: 8px; letter-spacing: 2px; display: flex; align-items: center; gap: 6px; color: #b4cbd0; }
.squad-panel svg { width: 12px; height: 12px; }
.squad-panel > div:not(.squad-meter) { display: flex; gap: 7px; align-items: baseline; margin-top: 9px; }
.squad-panel strong { font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.squad-panel > div > span { font-size: 10px; color: #9ebac0; }
.squad-panel p { font-size: 9px; color: #99b5bd; margin: 9px 0 12px; letter-spacing: 1px; }
.squad-meter { display: flex; flex-wrap: wrap; gap: 3px; max-width: 84px; min-height: 4px; }
.squad-meter i { width: 5px; height: 3px; background: #7dd8e9; }
.weapon-panel { position: absolute; bottom: 57px; left: 39px; display: flex; gap: 11px; align-items: center; }
.weapon-icon { display: grid; place-items: center; width: 36px; height: 42px; color: #98dbea; border: 1px solid #b7d0c42a; border-radius: 9px; background: #1b3e4b9c; }
.weapon-panel small { font-size: 7px; letter-spacing: 1.5px; color: #c4d4c3bb; display: block; }
.weapon-panel strong { display: block; font-size: 12px; letter-spacing: 1px; margin: 4px 0 8px; font-weight: 550; }
.weapon-bars { display: flex; gap: 4px; }
.weapon-bars i { width: 18px; height: 2px; background: #c9dece33; }
.weapon-bars .active { background: var(--gold); }
.airstrike { position: absolute; bottom: 55px; right: 40px; display: flex; align-items: center; gap: 12px; padding: 14px 17px; background: #153442ec; color: var(--gold); border: 1px solid #fdd78c38; border-radius: 9px; box-shadow: 0 4px 16px #0e293040; }
.airstrike strong { display: block; color: #e6efe2; font-size: 13px; font-weight: 550; letter-spacing: .5px; }
.airstrike b { color: var(--gold); font-weight: 500; margin-left: 5px; }
.airstrike small { display: block; text-align: left; font-size: 8px; letter-spacing: 2px; margin-top: 6px; color: #c6b47fa6; }
.airstrike:hover { background: #315562; }
.airstrike:disabled { opacity: .43; }
.move-hint { position: absolute; bottom: 53px; left: 50%; transform: translateX(-50%); color: #bdceccad; font-size: 12px; white-space: nowrap; }
.move-hint span { font-size: 9px; margin: 0 17px; letter-spacing: 2px; }
.toast { position: absolute; z-index: 4; top: 31%; left: 50%; transform: translate(-50%, -10px); opacity: 0; background: #e1f4eedf; color: #244650; border: 1px solid #c2e5dc; padding: 12px 22px; border-radius: 5px; font-size: 12px; font-weight: 650; letter-spacing: .5px; pointer-events: none; transition: transform .3s, opacity .3s; white-space: nowrap; max-width: 93%; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.danger { background: #f8d8cfe8; color: #773c37; border-color: #eaa798; }
.wave-label { position: absolute; left: 50%; top: 23%; transform: translateX(-50%); font-size: 12px; font-weight: 500; letter-spacing: 4px; text-shadow: 0 2px 10px #284752; opacity: 0; transition: opacity .4s; color: #ffdac0; pointer-events: none; }
.wave-label.visible { opacity: 1; }
.boss-hud { position: absolute; top: 125px; width: min(370px, 45%); left: 50%; transform: translateX(-50%); }
.boss-hud > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.boss-hud span, .boss-hud strong { font-size: 8px; font-weight: 500; letter-spacing: 1px; color: #ffd7b6; }
.boss-track { height: 7px; background: #342e3b99; border: 1px solid #ee8c753b; border-radius: 1px; }
#boss-health { display: block; height: 100%; width: 100%; background: #ec745d; transform-origin: left; transition: transform .12s; }
.damage-flash { position: absolute; pointer-events: none; inset: 0; z-index: 5; box-shadow: inset 0 0 130px #cf4b4b; opacity: 0; }
.damage-flash.active { animation: flash .4s ease-out; }
@keyframes flash { from { opacity: .75; } to { opacity: 0; } }
dialog { padding: 0; color: #edf2e8; width: min(420px, calc(100% - 36px)); border: 1px solid #b4caca36; border-radius: 18px; background: linear-gradient(140deg, #213e4cee, #112936f7); box-shadow: 0 35px 100px #081e3170; max-height: calc(100svh - 28px); }
dialog::backdrop { background: #0e2532a3; backdrop-filter: blur(8px); }
.dialog-content { text-align: center; padding: 33px 31px 27px; }
.result-icon { display: grid; place-items: center; width: 67px; height: 67px; margin: 0 auto 24px; border-radius: 22px; border: 1px solid #ffda8f40; color: var(--gold); background: #edba5820; transform: rotate(-8deg); }
.result-icon svg { width: 33px; height: 33px; transform: rotate(8deg); }
.dialog-content .eyebrow { font-size: 9px; margin-bottom: 19px; }
.dialog-content h2 { font-size: 25px; letter-spacing: -.5px; margin: 0 0 12px; }
.dialog-content > p:not(.eyebrow) { color: #b3c8cc; font-size: 12px; line-height: 1.8; margin: 0 0 25px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #aecbc426; border-bottom: 1px solid #aecbc426; padding: 20px 0; margin: 0 0 23px; }
.result-stats > div + div { border-left: 1px solid #b5c9bd29; }
.result-stats small { display: block; font-size: 9px; color: #acc2c6; }
.result-stats strong { display: block; font-size: 24px; margin-top: 10px; font-weight: 500; }
.dialog-content .primary-button { justify-content: center; position: relative; min-height: 53px; font-size: 13px; }
.dialog-content .primary-button svg { position: absolute; right: 20px; }
.secondary-button { margin-top: 17px; width: 100%; padding: 12px; border: 1px solid #b2c4c333; border-radius: 6px; background: transparent; color: #d3e0d8; font-size: 12px; }
.text-button { border: 0; color: #b8cacd; background: transparent; font-size: 11px; padding: 18px; }
.difficulty-shortcut { border: 0; border-bottom: 1px solid #ffd08255; padding: 0 0 5px; font: inherit; font-size: 10px; color: var(--gold); background: transparent; letter-spacing: 1px; }
.difficulty-label { display: block; margin: 25px 0 10px; text-align: left; font-size: 12px; color: #c7dad8; }
#difficulty-select { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 15px; color: #f1e8d3; background: #183442; border: 1px solid #b7ccc75c; border-radius: 6px; }
#difficulty-select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
#settings-dialog .difficulty-description { min-height: 44px; text-align: left; margin: 13px 0 22px; }
#settings-dialog #difficulty-effect { font-size: 11px; color: var(--gold); }
.best { display: block; margin-top: 8px; font-size: 7px; letter-spacing: 2px; color: #829ea7; }
.best b { font-weight: 500; color: #b2c4c4; margin-left: 6px; }
.error { position: absolute; inset: 0; z-index: 20; display: grid; align-content: center; justify-items: center; background: #183843; padding: 30px; text-align: center; }
.error p { color: #b7d0cf; line-height: 1.8; }
.error button { padding: 12px 22px; border: 0; border-radius: 5px; background: var(--gold); color: #25454d; }
@media (min-width: 1600px) { .intro { left: 9%; } }
@media (max-width: 1050px) { .stages { margin-right: 0; gap: 9px; } .stage > span { display: none; } .intro { width: 320px; } }
@media (max-width: 650px) {
  .header { top: max(21px, env(safe-area-inset-top)); left: 20px; right: 20px; gap: 10px; }
  .brand { gap: 8px; } .brand-icon { width: 31px; height: 34px; border-radius: 9px; } .brand-icon svg { width: 19px; height: 19px; }
  .brand strong { font-size: 13px; letter-spacing: -.3px; } .brand small { font-size: 5px; letter-spacing: 1.9px; }
  .header-actions { gap: 6px; } .icon-button { width: 31px; height: 33px; border-radius: 8px; } .icon-button svg { width: 16px; height: 16px; }
  #fullscreen { display: none; } .stages { position: absolute; right: 0; top: 62px; gap: 6px; } .stages i { width: 5px; } .stage b { width: 22px; height: 22px; font-size: 9px; }
  .operation { left: 22px; top: 103px; gap: 6px; } .operation-line { width: 20px; height: 2px; margin-bottom: 7px; } .operation small { font-size: 6px; letter-spacing: 2px; } .operation strong { font-size: 10px; letter-spacing: 1.4px; } .operation-chinese { font-size: 8px; letter-spacing: 2px; }
  .intro { left: 23px; top: auto; bottom: 53px; transform: none; width: min(340px, calc(100% - 46px)); }
  .eyebrow { font-size: 8px; letter-spacing: 2.6px; margin-bottom: 15px; } h1 { font-size: 36px; line-height: 1.36; letter-spacing: -1.5px; margin-bottom: 17px; }
  .intro-copy { font-size: 11px; line-height: 1.8; margin-bottom: 21px; } .primary-button { min-height: 54px; padding: 14px 17px; font-size: 14px; }
  .instructions { margin-top: 17px; gap: 10px; } .instructions strong { font-size: 9px; } .instructions small { font-size: 8px; margin-top: 6px; } .move-arrow { font-size: 23px; } .intro-note { font-size: 5px; letter-spacing: 1px; margin: 16px 0 0; }
  .vignette { background: linear-gradient(180deg, #15303ec9 0%, transparent 23%, transparent 37%, #183843c9 66%, #102d3bed 100%); }
  footer { left: 21px; right: 21px; bottom: max(16px, env(safe-area-inset-bottom)); font-size: 5px; letter-spacing: 1.1px; } footer i { padding: 0 3px; }
  .mission-progress { left: 22px; right: 22px; top: 81px; } .kills { top: 123px; right: 23px; } .kills > small { font-size: 6px; letter-spacing: 1.5px; } .kills strong { font-size: 27px; } .kills > span { font-size: 6px; }
  [data-screen=playing] .stages, [data-screen=paused] .stages, [data-screen=result] .stages { display: none; }
  .squad-panel { left: 21px; bottom: 151px; width: 93px; padding: 13px 12px 12px; border-radius: 3px 10px 10px 3px; } .squad-panel > small { font-size: 6px; letter-spacing: 1px; } .squad-panel strong { font-size: 39px; } .squad-panel p { font-size: 8px; } .squad-meter { max-width: 66px; gap: 2px; } .squad-meter i { width: 4px; }
  .weapon-panel { left: 22px; bottom: 60px; gap: 8px; } .weapon-icon { width: 30px; height: 38px; } .weapon-panel small { font-size: 6px; letter-spacing: 1px; } .weapon-panel strong { font-size: 10px; } .weapon-panel svg { width: 18px; }
  .airstrike { right: 21px; bottom: 59px; gap: 8px; padding: 12px 11px; } .airstrike svg { width: 21px; } .airstrike strong { font-size: 10px; } .airstrike small { font-size: 6px; letter-spacing: 1.4px; margin-top: 5px; }
  .move-hint { bottom: 33px; font-size: 10px; } .move-hint span { font-size: 7px; margin: 0 12px; }
  .toast { top: 29%; padding: 11px 13px; font-size: 10px; letter-spacing: 0; } .wave-label { font-size: 9px; letter-spacing: 2px; }
  .boss-hud { top: 193px; width: calc(100% - 74px); } .boss-hud span, .boss-hud strong { font-size: 7px; }
}
@media (max-height: 700px) and (min-width: 651px) { .intro { transform: translateY(-35%); } h1 { font-size: 40px; margin-bottom: 14px; } .intro-copy { margin-bottom: 19px; } .intro .eyebrow { margin-bottom: 13px; } .intro-note { margin-top: 17px; } .operation { top: 108px; } }
@media (max-height: 700px) and (max-width: 650px) { .intro { bottom: 40px; } h1 { font-size: 30px; margin-bottom: 12px; } .intro-copy { margin-bottom: 15px; } .intro-note { display: none; } .instructions { margin-top: 14px; } .operation-chinese { display: none; } .dialog-content { padding: 22px; } .result-icon { width: 45px; height: 45px; margin-bottom: 16px; } }
@media (max-height: 500px) and (orientation: landscape) { .header { top: 14px; } .operation { top: 78px; } .operation-chinese, .intro-note, .intro-copy, .stages { display: none; } .intro { top: 145px; bottom: auto; transform: none; width: 300px; } h1 { font-size: 28px; } h1 br { display: none; } .intro .eyebrow { margin-bottom: 8px; } .instructions { margin-top: 12px; } .mission-progress { top: 67px; } .kills { top: 91px; } .squad-panel { bottom: 106px; padding: 10px 12px; } .squad-panel strong { font-size: 28px; } .squad-panel p { display: none; } .squad-meter { margin-top: 8px; } .boss-hud { top: 89px; } .dialog-content { padding: 20px 28px; } .result-icon, .best { display: none; } .result-stats { padding: 10px 0; margin-bottom: 14px; } .dialog-content h2 { font-size: 21px; } .dialog-content .eyebrow { margin-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
