/* Moss 打飞机 — shooter-only styles (shared/ untouched). Loaded after shared/css/shell.css. */
  /* shooter-only additions (shared/ untouched) */
  #hud #pausebtn { font: inherit; font-size: 13px; line-height: 1; min-width: 34px; min-height: 28px; cursor: pointer; }
  #hud #pausebtn[hidden] { display: none; }
  #hint {
    position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 6;
    display: none; align-items: center; gap: 10px; max-width: calc(100% - 20px);
    background: #121624ee; border: 2px solid #e0143c; color: var(--ink);
    padding: 8px 10px; font-size: 12px; line-height: 1.5;
  }
  #hint.show { display: flex; }
  #hint button { flex: 0 0 auto; background: transparent; color: var(--dim); border: 1px solid var(--dim); font: inherit; font-size: 11px; padding: 4px 8px; min-height: 30px; }
  #toast {
    position: absolute; left: 50%; top: 16%; transform: translateX(-50%); z-index: 7; pointer-events: none;
    display: none; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .12em; white-space: nowrap;
    text-shadow: 0 0 6px #e0143c, 0 2px 0 #000;
  }
  #toast.show { display: block; }
  #overlay .card .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
  #overlay .card button.sub { background: #2a3144; }
  #overlay .card .new { color: #fff; background: #e0143c; padding: 1px 6px; font-size: 11px; letter-spacing: .1em; margin-left: 6px; }
  #overlay .card[data-act] { cursor: pointer; }
  #overlay .card .wait { opacity: .35; }
  #overlay .card .opts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; margin-top: 8px; }
  #overlay .card .opts button { margin-top: 0; }
  #overlay .card small { color: var(--dim); font-size: 10px; line-height: 1.4; }
  #overlay .card .row button { margin-top: 8px; }
  #overlay .card.wide { max-width: 400px; padding: 14px 12px; }
  #overlay .card h3 { margin: 10px 0 4px; font-size: 12px; letter-spacing: .12em; color: var(--ink); }
  #overlay .card ul.ach { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; text-align: left; }
  #overlay .card ul.ach li { border: 1px solid #2a3144; padding: 4px 6px; opacity: .45; }
  #overlay .card ul.ach li.got { opacity: 1; border-color: #e0143c; }
  #overlay .card ul.ach b { display: block; font-size: 11px; color: var(--ink); }
  #overlay .card ul.ach span { display: block; font-size: 9px; color: var(--dim); line-height: 1.35; }
  #overlay .card table.stats { width: 100%; font-size: 10px; color: var(--dim); border-collapse: collapse; }
  #overlay .card table.stats td { padding: 2px 3px; text-align: left; }
  #overlay .card table.stats td:nth-child(2n) { color: var(--ink); text-align: right; }
  #achtoast {
    position: absolute; left: 50%; top: 34px; transform: translateX(-50%); z-index: 7; pointer-events: none;
    display: none; background: #121624ee; border: 1px solid #e0143c; color: var(--ink); font-size: 11px; padding: 5px 10px; white-space: nowrap;
  }
  #achtoast.show { display: block; }
  #warn {
    position: absolute; left: 0; right: 0; top: 24%; z-index: 6; pointer-events: none; display: none; text-align: center;
    background: linear-gradient(90deg, transparent, #e0143c33 20%, #e0143c33 80%, transparent); padding: 10px 0;
    border-top: 1px solid #e0143c88; border-bottom: 1px solid #e0143c88;
  }
  #warn.show { display: block; animation: warnblink .48s steps(2) infinite; }
  #warn b { display: block; color: #ff3355; font-size: 26px; letter-spacing: .3em; text-shadow: 0 2px 0 #000; }
  #warn span { display: block; color: var(--ink); font-size: 11px; letter-spacing: .2em; margin-top: 2px; }
  @keyframes warnblink { 50% { opacity: .35; } }
  #bossbar { position: absolute; left: 8px; right: 8px; top: 6px; z-index: 5; pointer-events: none; display: none; }
  #bossbar.show { display: block; }
  #bossname { font-size: 10px; color: var(--ink); letter-spacing: .12em; margin-bottom: 2px; text-shadow: 0 1px 0 #000; }
  #bossbg { position: relative; height: 5px; background: #1a1c26; border: 1px solid #3a4258; }
  #bossfill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #e0143c; }
  #bossticks i { position: absolute; top: -2px; bottom: -2px; width: 1px; background: #e8ecf4; }
  /* portrait-only game: in landscape hide the pad, overlay covers the stage */
  body[data-orient="landscape"] #pad { visibility: hidden; }


/* ===== DEVS 主题 v1（游戏区统一）— 原样复制自 /workspace/sync/project_notes/游戏区DEVS主题规范.md §9 =====
   只覆盖 shared/css/shell.css 的外观，不改 shared 本身；结构、尺寸逻辑、横竖屏规则沿用 shell.css。
   红色只用于「运行中」与痕迹（细线、选中竖条、击中闪光）；分数、评级、失败一律银白 / 灰。 */
:root {
  --dv-ink: #07080a;            /* 页面底 */
  --dv-ink-2: #0c0e11;          /* 卡片 / 弹层底 */
  --dv-ink-3: #12151a;          /* 悬浮 / 按下 */
  --dv-graphite: #1a1d22;
  --dv-line: rgba(220, 226, 234, .08);
  --dv-line-2: rgba(220, 226, 234, .16);
  --dv-line-3: rgba(220, 226, 234, .30);
  --dv-silver: #d9dee5;
  --dv-silver-hi: #f1f3f6;
  --dv-silver-dim: #8b929c;
  --dv-mute: #5d636c;
  --dv-crimson: #e2273a;        /* 痕迹红：细线、选中竖条、击中闪光 */
  --dv-crimson-line: rgba(255, 70, 86, .55);
  --dv-hair-red: #b0000a;       /* 标题卡血红细线（规范 §4.1） */
  --dv-lamp: #ff2d3f;           /* 运行灯 */
  --dv-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --dv-sans: "Inter", "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --dv-ease-out: cubic-bezier(.16, 1, .3, 1);
  --dv-r-card: 10px; --dv-r-btn: 6px;
  /* shell.css 旧变量改指向新色板（注意：shell 里 --ink 是「文字色」，所以映射到银白，不是底色） */
  --bg: var(--dv-ink); --panel: var(--dv-ink-2); --ink: var(--dv-silver-hi); --dim: var(--dv-silver-dim);
  --red: var(--dv-crimson); --pink: var(--dv-silver); --hair: var(--dv-silver); --line: var(--dv-graphite);
}
html, body { background: var(--dv-ink); color: var(--dv-silver); font-family: var(--dv-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--dv-crimson); color: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus, a:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--dv-line-3); outline-offset: 2px; }

/* HUD：返回 / 标题 / 读数 / 暂停 */
#hud { min-height: 52px; padding: 4px 12px; gap: 10px;
  background: linear-gradient(90deg, var(--dv-crimson) 0 18px, var(--dv-line-2) 18px 100%) 0 100% / 100% 1px no-repeat; }
#hud h1 { font-family: var(--dv-sans); font-weight: 300; font-size: 14px; letter-spacing: .24em; color: var(--dv-silver-hi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#hud h1 .en { display: block; font-family: var(--dv-mono); font-weight: 400; font-size: 9px; letter-spacing: .3em; color: var(--dv-silver-dim); margin-bottom: 2px; }
#hud .back, #hud .ghost, #hud button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 36px; padding: 0 10px; border: 0; border-radius: var(--dv-r-btn);
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--dv-line-2);
  font-family: var(--dv-mono); font-size: 11px; letter-spacing: .18em; color: var(--dv-silver-dim);
  text-decoration: none; cursor: pointer; position: relative; white-space: nowrap;
  transition: color .2s ease, box-shadow .2s ease, transform .12s ease; }
#hud .back::after, #hud .ghost::after, #hud button::after { content: ""; position: absolute; inset: -4px 0; } /* 触控区 ≥ 44px */
#hud .back:hover, #hud .ghost:hover, #hud button:hover { color: var(--dv-silver-hi); box-shadow: inset 0 0 0 1px var(--dv-line-3); }
#hud .back:active, #hud .ghost:active, #hud button:active { transform: translateY(1px); }
#hudstats { font-family: var(--dv-mono); font-size: 11px; letter-spacing: .14em; color: var(--dv-silver-dim); }
#hudstats b { color: var(--dv-silver-hi); font-weight: 500; font-variant-numeric: tabular-nums; }

/* 舞台：近黑 + 极淡网格 + 暗角（DEVS .bg） */
#stage { background:
    radial-gradient(120% 90% at 50% 40%, transparent 0 46%, rgba(0,0,0,.66) 100%),
    linear-gradient(var(--dv-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--dv-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--dv-ink); }
#stage canvas { background: var(--dv-ink); box-shadow: 0 0 0 1px var(--dv-line-2), 0 30px 80px -30px rgba(0,0,0,.9); }

/* 虚拟手柄换皮（只改颜色变量与按钮外观，不动尺寸逻辑） */
#pad, .pad { --joy-base: rgba(12,14,17,.78); --joy-ring: rgba(220,226,234,.22); --joy-tick: #8b929c; --joy-tick-on: #f1f3f6;
  --joy-knob: #15181c; --joy-knob-on: #1d2127; --joy-knob-ring: rgba(220,226,234,.55); }
.ab .btn { background: var(--dv-ink-2); border: 1px solid var(--dv-line-2); color: var(--dv-silver);
  font-family: var(--dv-mono); font-weight: 500; font-size: 15px; letter-spacing: .1em; --ab-press: rgba(220,226,234,.10); }
.ab .btn.a { border-color: var(--dv-crimson-line); color: var(--dv-silver-hi); --ab-press: rgba(226,39,58,.16); }
.ab .btn.b { border-color: var(--dv-line-3); color: var(--dv-silver); --ab-press: rgba(220,226,234,.12); }
.ab .btn.on { background: linear-gradient(var(--ab-press), var(--ab-press)), var(--dv-ink-2); }

/* 弹层：遮罩 + 卡片 + 卡头（英文小标签在上、中文标题在下、血红细线） */
#overlay { background: rgba(7,8,10,.66); }
#overlay .card { background: var(--dv-ink-2); border: 0; border-radius: var(--dv-r-card); color: var(--dv-silver);
  box-shadow: inset 0 0 0 1px var(--dv-line-2), 0 30px 80px -30px rgba(0,0,0,.9);
  padding: 18px 16px 16px; }
#overlay.enter .card { animation: devs-pop .32s var(--dv-ease-out) both; }  /* 只在切换界面时播放（JS 给 #overlay 加 .enter 约 1.4s） */
#overlay .card h2 { font-family: var(--dv-sans); font-weight: 300; font-size: 17px; letter-spacing: .2em; color: var(--dv-silver-hi); }
#overlay .card p { color: var(--dv-silver-dim); font-size: 12px; line-height: 1.6; }
#overlay .card .score { color: var(--dv-silver-hi); font-family: var(--dv-mono); font-weight: 300; }
#overlay .card button, #overlay .card .go {
  appearance: none; border: 0; border-radius: var(--dv-r-btn); min-height: 44px; padding: 10px 16px;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--dv-line-2); color: var(--dv-silver);
  font-family: var(--dv-sans); font-size: 13px; letter-spacing: .14em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, transform .12s ease; }
#overlay .card button:hover, #overlay .card .go:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--dv-line-3); }
#overlay .card button:active, #overlay .card .go:active { transform: translateY(1px); }
#overlay .card button:disabled { opacity: .32; cursor: default; }
@keyframes devs-pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes devs-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes devs-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes devs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes devs-breathe { 0%, 100% { opacity: .55; transform: scale(.88); } 50% { opacity: 1; transform: scale(1); } }
.devs-lamp { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dv-lamp);
  box-shadow: 0 0 0 2px rgba(255,45,63,.14), 0 0 10px rgba(255,45,63,.7); animation: devs-breathe 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  #overlay.enter .card, .devs-lamp { animation: none; }
}
/* ===== DEVS 主题 v1 结束 ===== */

/* ===================== Moss 打飞机 · 本游戏专用（DEVS 主题重做 2026-11-13；原赛博朋克皮肤整段替换，布局 / 尺寸不变） ===================== */
#stage canvas { background: var(--dv-ink); }
#stage::after {               /* 只留暗角，去 CRT 扫描线（浏览器合成，不占画布开销） */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(7,8,10,.55) 100%); }
#hud #pausebtn { min-width: 44px; }

/* 弹层卡片 */
#overlay .card { max-width: 340px; }
#overlay .card.wide { max-width: 400px; padding: 18px 14px 14px; }
#overlay .card h2 { margin: 0 0 12px; padding-bottom: 10px;
  background: linear-gradient(90deg, var(--dv-crimson) 0 18px, var(--dv-line-2) 18px 100%) 0 100% / 100% 1px no-repeat; }
#overlay .card h3 { margin: 14px 0 6px; font-family: var(--dv-mono); font-weight: 400; font-size: 10px; letter-spacing: .3em; color: var(--dv-silver-dim); }
#overlay .card p b { color: var(--dv-silver-hi); font-weight: 500; }
#overlay .card small { color: var(--dv-mute); font-size: 11px; line-height: 1.5; letter-spacing: .04em; }
#overlay .card .row { gap: 8px; }
#overlay .card .row button { margin-top: 8px; flex: 1 1 0; min-width: 0; }
#overlay .card .opts { gap: 8px; }
#overlay .card button.sub { background: rgba(255,255,255,.035); color: var(--dv-silver); box-shadow: inset 0 0 0 1px var(--dv-line-2); }
#overlay .card .row button:not(.sub) { box-shadow: inset 0 0 0 1px var(--dv-crimson-line); color: var(--dv-silver-hi); }  /* 主按钮：红细框 */
#overlay .card .score { font-size: 30px; letter-spacing: .04em; vertical-align: -4px; margin-left: 4px; text-shadow: none; }
#overlay .card .new { background: transparent; color: var(--dv-silver-hi); border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--dv-line-3);
  font-family: var(--dv-mono); font-size: 9px; letter-spacing: .22em; padding: 2px 7px; margin-left: 8px; vertical-align: 4px; text-shadow: none; }
#overlay .card.over h2 { color: var(--dv-silver); }  /* 结束 = 失败类：银灰，不用红 */
/* 成就（成绩类：银白，不用红 / 金） */
#overlay .card ul.ach { gap: 6px; }
#overlay .card ul.ach li { border: 0; border-radius: 6px; padding: 6px 8px; opacity: 1; box-shadow: inset 0 0 0 1px var(--dv-line); color: var(--dv-mute); }
#overlay .card ul.ach li b { color: var(--dv-silver-dim); font-weight: 400; font-size: 11px; letter-spacing: .06em; }
#overlay .card ul.ach li span { color: var(--dv-mute); }
#overlay .card ul.ach li.got { border: 0; box-shadow: inset 0 0 0 1px var(--dv-line-3); background: rgba(255,255,255,.035); }
#overlay .card ul.ach li.got b { color: var(--dv-silver-hi); text-shadow: none; }
#overlay .card ul.ach li.got span { color: var(--dv-silver-dim); }
#overlay .card table.stats { font-family: var(--dv-mono); font-size: 10px; letter-spacing: .04em; color: var(--dv-silver-dim); }
#overlay .card table.stats td { padding: 4px 3px; border-bottom: 1px solid var(--dv-line); }
#overlay .card table.stats td:nth-child(2n) { color: var(--dv-silver-hi); font-variant-numeric: tabular-nums; }
#overlay .card .obtns button.locked { background: rgba(255,255,255,.02); color: var(--dv-mute); box-shadow: inset 0 0 0 1px var(--dv-line); cursor: default; }
#overlay .card .obtns button.sel, #overlay .card .row button.sel { box-shadow: inset 2px 0 0 var(--dv-crimson), inset 0 0 0 1px var(--dv-line-3); color: var(--dv-silver-hi); }

/* 游戏内提示 / 播报 */
#hint { top: 10px; gap: 10px; background: rgba(12,14,17,.92); border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--dv-line-2), inset 2px 0 0 var(--dv-crimson);
  color: var(--dv-silver); font-family: var(--dv-sans); font-size: 12px; letter-spacing: .04em; padding: 8px 10px 8px 12px; }
#hint button { color: var(--dv-silver-dim); border: 0; border-radius: var(--dv-r-btn); box-shadow: inset 0 0 0 1px var(--dv-line-2); background: transparent;
  font-family: var(--dv-mono); font-size: 10px; letter-spacing: .2em; min-height: 32px; padding: 4px 10px; }
#toast { color: var(--dv-silver-hi); font-family: var(--dv-sans); font-weight: 300; font-size: 15px; letter-spacing: .24em; text-shadow: 0 1px 0 #000, 0 0 12px rgba(7,8,10,.9); }
#toast.show { animation: devs-rise .35s var(--dv-ease-out) both; }
#achtoast { background: rgba(12,14,17,.94); border: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--dv-line-3); color: var(--dv-silver-hi);
  font-family: var(--dv-sans); font-size: 11px; letter-spacing: .1em; padding: 6px 12px; }
#achtoast.show { animation: devs-fade .3s ease both; }
/* Boss 来袭：银白细字 + 上下血红细线（痕迹），不做红色告警底 */
#warn { background: linear-gradient(90deg, transparent, rgba(7,8,10,.78) 18%, rgba(7,8,10,.78) 82%, transparent);
  border: 0; padding: 12px 0; }
#warn::before, #warn::after { content: ""; position: absolute; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--dv-hair-red) 30%, var(--dv-hair-red) 70%, transparent); }
#warn::before { top: 0; } #warn::after { bottom: 0; }
#warn.show { animation: warnblink 1.2s ease-in-out infinite; }
@keyframes warnblink { 50% { opacity: .55; } }
#warn b { color: var(--dv-silver-hi); font-family: var(--dv-sans); font-weight: 200; font-size: 24px; letter-spacing: .5em; text-indent: .5em; text-shadow: none; }
#warn span { color: var(--dv-silver-dim); font-family: var(--dv-sans); font-size: 11px; letter-spacing: .24em; margin-top: 4px; }
/* Boss 血条：石墨槽 + 银白填充，阶段刻度细白线 */
#bossbar { left: 12px; right: 12px; top: 8px; }
#bossname { color: var(--dv-silver); font-family: var(--dv-mono); font-size: 10px; letter-spacing: .2em; margin-bottom: 4px; text-shadow: 0 1px 0 #000; }
#bossbg { height: 4px; background: rgba(220,226,234,.08); border: 0; border-radius: 2px; box-shadow: none; overflow: hidden; }
#bossfill { background: linear-gradient(90deg, var(--dv-mute), var(--dv-silver)); box-shadow: none; }
#bossticks i { background: rgba(7,8,10,.9); width: 2px; }

/* 手柄：沿用模板（A 红细线，B 银细线），不发光 */
#pad .ab .btn.a { border-color: var(--dv-crimson-line); color: var(--dv-silver-hi); }
#pad .ab .btn.b { border-color: var(--dv-line-3); color: var(--dv-silver); }

/* ---- 标题卡（全屏）：英文小标签 → 逐字母大标题 → 中文名 → 血红细线 → Moss 机体 → 最高分 → 按钮 ---- */
#overlay .tcard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 38%, transparent 0 46%, rgba(0,0,0,.66) 100%),
    linear-gradient(var(--dv-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--dv-line) 1px, transparent 1px) 0 0 / 32px 32px, var(--dv-ink);
  color: var(--dv-silver); padding: max(10px, 2.5%) 0 max(12px, 3%); }
#overlay .tt-head { width: 100%; margin-top: 7%; position: relative; text-align: center; }
#overlay .tt-tag { display: block; font-family: var(--dv-mono); font-size: 10px; letter-spacing: .32em; color: var(--dv-silver-dim); }
#overlay .tt { margin: 12px 0 0; text-align: center; font-family: var(--dv-sans); font-weight: 200; font-size: clamp(30px, 9.4vw, 42px); line-height: .95;
  letter-spacing: .24em; text-indent: .24em; color: #eef1f5; white-space: nowrap; text-shadow: none; }
#overlay .tt span { display: inline-block; letter-spacing: inherit; }
#overlay .tt-cn { margin-top: 10px; font-family: var(--dv-sans); font-weight: 300; font-size: 14px; letter-spacing: .6em; text-indent: .6em; color: var(--dv-silver); }
#overlay .tline { position: relative; height: 1px; width: auto; margin: 18px 22px 0; box-shadow: none;
  background: linear-gradient(90deg, var(--dv-hair-red) 0 22px, var(--dv-line-2) 22px 100%); transform-origin: left center; }
#overlay .tline i { position: absolute; right: 0; top: 7px; bottom: auto; left: auto; font-style: normal; font-family: var(--dv-mono); font-size: 9px; letter-spacing: .28em; color: var(--dv-mute); white-space: nowrap; }
#overlay .tt-art { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; }
#overlay #tship { image-rendering: pixelated; image-rendering: crisp-edges; background: transparent; box-shadow: none; filter: none; }
#overlay .tbest { position: relative; margin: 0 0 14px; font-family: var(--dv-mono); font-size: 10px; letter-spacing: .28em; color: var(--dv-silver-dim); }
#overlay .tbest b { margin-left: 6px; color: var(--dv-silver-hi); font-weight: 300; font-size: 18px; letter-spacing: .06em; text-shadow: none; }
#overlay .tbtns { position: relative; display: flex; flex-direction: column; gap: 10px; width: min(68%, 280px); }
#overlay .tbtns button, #overlay .tbtns button.main {
  appearance: none; margin: 0; min-height: 46px; border: 0; border-radius: var(--dv-r-btn); cursor: pointer;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--dv-line-2); color: var(--dv-silver);
  font-family: var(--dv-sans); font-weight: 400; font-size: 14px; letter-spacing: .3em; text-indent: .3em;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, transform .12s ease; }
#overlay .tbtns button.main { box-shadow: inset 0 0 0 1px var(--dv-crimson-line); color: var(--dv-silver-hi); font-size: 15px; }
#overlay .tbtns button:active { transform: translateY(1px); }
#overlay .tbtns button.sel, #overlay .tbtns button.main.sel, #overlay .tbtns button:not(.main).sel {
  background: rgba(255,255,255,.06); box-shadow: inset 2px 0 0 var(--dv-crimson), inset 0 0 0 1px var(--dv-line-3); color: var(--dv-silver-hi); border: 0; }
#overlay .tbtns button.sel::before { content: none; }
#overlay .tkeys { position: relative; margin: 12px 0 0; font-family: var(--dv-sans); font-size: 10px; letter-spacing: .18em; color: var(--dv-mute); }
#overlay button:focus { outline: none; }
#overlay button:focus-visible { outline: 1px solid var(--dv-line-3); outline-offset: 2px; }
/* 入场：只在切换界面时（#overlay.enter） */
#overlay.enter .tt-tag { animation: devs-fade .9s .1s ease both; }
#overlay.enter .tt span { animation: devs-rise .7s var(--dv-ease-out) both; }
#overlay.enter .tt span:nth-child(2) { animation-delay: .04s; } #overlay.enter .tt span:nth-child(3) { animation-delay: .08s; }
#overlay.enter .tt span:nth-child(4) { animation-delay: .12s; } #overlay.enter .tt span:nth-child(5) { animation-delay: .16s; }
#overlay.enter .tt span:nth-child(6) { animation-delay: .20s; } #overlay.enter .tt span:nth-child(7) { animation-delay: .24s; }
#overlay.enter .tt-cn { animation: devs-fade .9s .35s ease both; }
#overlay.enter .tline { animation: devs-draw .8s .3s var(--dv-ease-out) both; }
#overlay.enter .tt-art, #overlay.enter .tbest, #overlay.enter .tbtns, #overlay.enter .tkeys { animation: devs-rise .6s .45s var(--dv-ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  #overlay.enter .tt-tag, #overlay.enter .tt span, #overlay.enter .tt-cn, #overlay.enter .tline, #overlay.enter .tt-art, #overlay.enter .tbest,
  #overlay.enter .tbtns, #overlay.enter .tkeys, #toast.show, #achtoast.show, #warn.show { animation: none; }
}
/* portrait-only game: in landscape hide the pad, overlay covers the stage */
body[data-orient="landscape"] #pad { visibility: hidden; }
/* HUD 窄屏：读数 5 项 + 标题挤在一行，收紧字距让「Moss 打飞机」不被省略（440 / 390） */
#hud { gap: 8px; }
#hud h1 { font-size: 13px; letter-spacing: .12em; flex: 0 1 auto; }
#hudstats { font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; margin-left: auto; }
#hudstats b { letter-spacing: 0; }
@media (max-width: 400px) {
  #hud .back { padding: 0 8px; letter-spacing: .1em; }
  #hud:has(#hudstats:not(:empty)) h1 { font-size: 0; letter-spacing: 0; }          /* 对局中窄屏：只留英文小标签 SHOOTER，读数不挤 */
  #hud:has(#hudstats:not(:empty)) h1 .en { font-size: 9px; margin: 0; }
}
