/* Dedicated menu layer. In-game HUD, crosshair and world-space markers stay untouched. */
.menu-shell {
  --menu-ink: #edf6f4;
  --menu-muted: #8da5a9;
  --menu-accent: #b7f9df;
  --menu-line: #accfc922;
  position: fixed; inset: 0; z-index: 40;
  display: block; padding: 0 clamp(20px, 5.4vw, 84px);
  overflow: auto; overscroll-behavior: contain;
  background: linear-gradient(90deg, #061013fa 0%, #061013e8 35%, #0610137d 72%, #061013a6), linear-gradient(0deg, #061013e8, transparent 45%, #06101388);
  backdrop-filter: none;
  font-family: 'Segoe UI', 'Microsoft YaHei', 'Noto Sans CJK SC', Arial, sans-serif;
  color: var(--menu-ink); text-align: left;
  scrollbar-width: thin; scrollbar-color: #65837b #071216;
}
.menu-shell[hidden], .menu-shell [hidden] { display: none !important; }
.menu-shell *, .menu-shell *::before, .menu-shell *::after { box-sizing: border-box; }
.menu-shell .menu-card, .menu-shell .menu-card.holo-panel,
body:is([data-play-state=paused],[data-play-state=won],[data-play-state=lost]) .menu-shell .menu-card {
  width: min(1280px, 100%); max-width: none; min-height: 100svh; margin: 0 auto; padding: 0;
  display: flex; flex-direction: column; position: relative; background: none; border: 0;
  box-shadow: none; transform: none; clip-path: none; filter: none;
  color: var(--menu-ink); font-family: inherit;
}
.menu-shell .menu-card::before, .menu-shell .menu-card::after, .menu-shell .holo-frame { display: none !important; }
.menu-shell :where(.menu-card) p { max-width: none; margin: 0; font: 14px/1.8 'Segoe UI', 'Microsoft YaHei', sans-serif; letter-spacing: 0; color: var(--menu-muted); }
.menu-shell .menu-card h2 { font-family: inherit; font-size: 38px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; margin: 10px 0 0; color: var(--menu-ink); }
.menu-shell .menu-card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: .02em; margin: 0 0 26px; color: var(--menu-ink); }
.menu-shell .menu-card h4 { margin: 28px 0 18px; color: #d1dfdc; font-size: 13px; font-weight: 500; }
.menu-shell .menu-card small { max-width: none; display: block; margin: 0; text-align: left; font-size: 12px; line-height: 1.6; letter-spacing: 0; color: var(--menu-muted); }
.menu-shell .menu-card button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  max-width: none; width: auto; margin: 0; border: 1px solid transparent; padding: 12px 18px;
  border-radius: 3px; background: transparent; box-shadow: none; clip-path: none;
  color: var(--menu-ink); font: 500 14px/1.5 'Segoe UI', 'Microsoft YaHei', sans-serif; letter-spacing: 0; text-align: left;
  cursor: pointer; transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.menu-shell .menu-card button:hover { background: #b7f9df0d; color: #fff; box-shadow: none; }
.menu-shell .menu-card button:disabled { cursor: not-allowed; opacity: .42; transform: none; box-shadow: none; }
.menu-shell :is(button, a, input, select, summary):focus-visible { outline: 2px solid #edffe5 !important; outline-offset: 4px; }
.menu-shell :is(h2, h1):focus { outline: none; }
.menu-shell svg { width: 22px; height: 22px; flex: 0 0 auto; }
.menu-shell .menu-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; border-bottom: 1px solid var(--menu-line); gap: 20px; flex-shrink: 0; }
.menu-shell .menu-brand { display: flex; align-items: center; gap: 13px; color: #daeee6; font: 600 13px/1.5 Consolas, monospace; letter-spacing: .19em; }
.menu-shell .menu-brand > svg { width: 38px; height: 38px; color: var(--menu-accent); }
.menu-shell .menu-brand small { font: 9px/1.7 Consolas, monospace; letter-spacing: .23em; color: #637f80; }
.menu-header-meta { display: flex; align-items: center; gap: 10px; font: 10px Consolas, monospace; color: #90a7a6; letter-spacing: .09em; }
.menu-status-dot, .menu-footer i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: var(--menu-accent); box-shadow: 0 0 10px #a4f3d744; }
.menu-header-divider { color: #577370; padding: 0 8px; }
.menu-views { flex: 1; display: flex; flex-direction: column; }
.menu-view { animation: menu-enter .24s ease-out; }
.menu-shell .menu-home { display: grid; grid-template-columns: minmax(360px, .86fr) 1.14fr; align-items: center; flex: 1; gap: 7vw; padding: 34px 0 32px; min-height: 620px; }
.menu-shell .menu-eyebrow { display: flex; align-items: center; gap: 9px; color: #aecdc4; font: 10px/1.6 Consolas, 'Microsoft YaHei', monospace; letter-spacing: .16em; }
.menu-eyebrow > span { display: inline-block; height: 1px; width: 24px; background: #a4dfc7; }
.menu-home h1 { font: 900 clamp(64px, 6.5vw, 100px)/.86 Arial, sans-serif; letter-spacing: -.075em; color: #eff6f2; margin: 24px 0 16px; text-shadow: 0 8px 38px #0004; }
.menu-home h1 > span { display: block; color: var(--menu-accent); margin-top: 9px; }
.menu-home h1 > i { display: block; margin: 22px 0 0 4px; font: 400 13px/1 'Microsoft YaHei', sans-serif; letter-spacing: .62em; color: #bfd5d1; }
.menu-shell .menu-home-intro { font-size: 13px; color: #779191; margin: 0 0 27px; }
.menu-home-actions { display: grid; gap: 7px; width: min(430px, 100%); }
.menu-shell .menu-home-actions button { display: flex; width: 100%; gap: 18px; min-height: 74px; border: 1px solid #9dc8bc1f; border-left: 2px solid #9dc8bc35; border-radius: 3px; background: #0d1c20b8; padding: 13px 21px; }
.menu-shell .menu-home-actions button > svg:first-child { color: #94b5ac; width: 23px; height: 23px; }
.menu-shell .menu-home-actions button > span { flex: 1; }
.menu-shell .menu-home-actions button b { display: block; font-size: 19px; font-weight: 500; letter-spacing: .1em; }
.menu-shell .menu-home-actions button small { font-size: 11px; margin-top: 2px; color: #78918f; }
.menu-shell .menu-home-actions button > svg:last-child { opacity: .4; width: 20px; }
.menu-shell .menu-home-actions button:not(:disabled):hover { background: #17312fcf; border-color: #b7f9df6b; transform: translateX(4px); }
.menu-shell .menu-home-actions[data-has-save=false] #menu-new,
.menu-shell .menu-home-actions[data-has-save=true] #menu-continue { color: #102a24; background: var(--menu-accent); border-color: var(--menu-accent); box-shadow: 0 4px 30px #7feabc0b; }
.menu-shell .menu-home-actions[data-has-save=false] #menu-new :is(small, svg),
.menu-shell .menu-home-actions[data-has-save=true] #menu-continue :is(small, svg) { color: #285347; opacity: 1; }
.menu-shell .menu-home-actions button:disabled { opacity: .42; background: #0e191d69; border-color: #9dc8bc12; }
.menu-home-scene { display: flex; flex-direction: column; align-items: center; align-self: stretch; justify-content: center; padding-top: 40px; pointer-events: none; }
.menu-signal { position: relative; width: min(330px, 100%); aspect-ratio: 1; color: #a1e0cc77; background: radial-gradient(circle, transparent 46%, #a5e6d508 46.5%, transparent 47.5%); }
.menu-signal::before, .menu-signal::after { content: ''; position: absolute; inset: 35px; border: 1px solid #a0d9c41b; border-radius: 50%; }
.menu-signal::after { inset: 56px; border-style: dashed; opacity: .55; }
.signal-corner { position: absolute; inset: 0; background: linear-gradient(#9fdbce55, #9fdbce55) left top/35px 1px no-repeat, linear-gradient(#9fdbce55, #9fdbce55) left top/1px 35px no-repeat, linear-gradient(#9fdbce55, #9fdbce55) right bottom/35px 1px no-repeat, linear-gradient(#9fdbce55, #9fdbce55) right bottom/1px 35px no-repeat; }
.signal-coordinate { position: absolute; left: 17px; top: 15px; font: 9px Consolas, monospace; letter-spacing: .12em; color: #9bbeb18c; }
.signal-reticle { position: absolute; inset: 0; display: grid; place-items: center; font: 300 32px monospace; opacity: .7; }
.signal-bottom { top: auto; bottom: 15px; right: 17px; display: flex; justify-content: space-between; }
.signal-bottom span { color: #b1e9cf; font-size: 7px; }
.menu-scene-caption { align-self: flex-end; margin-top: 56px; border-left: 2px solid #a5d8c952; padding: 4px 0 4px 22px; }
.menu-scene-caption > span { font: 9px Consolas, monospace; letter-spacing: .22em; color: #82a298; }
.menu-scene-caption strong { display: block; font-size: 21px; font-weight: 400; color: #d3e5dc; margin: 12px 0; letter-spacing: .08em; }
.menu-shell .menu-scene-caption p { font-size: 11px; color: #718f87; }
.menu-shell .menu-footer { position: static; width: 100%; height: auto; min-height: 61px; margin: 0; padding: 18px 0; inset: auto; display: flex; justify-content: space-between; align-items: center; gap: 15px; border: 0; border-top: 1px solid var(--menu-line); background: none; transform: none; box-shadow: none; font: 9px Consolas, monospace; color: #7e9b95; letter-spacing: .07em; pointer-events: auto; }
.menu-footer > span { display: flex; align-items: center; gap: 10px; }
.menu-footer b { font-size: 10px; font-weight: 400; letter-spacing: .01em; color: #627e78; margin-left: 5px; }
.menu-shell kbd { display: inline-flex; justify-content: center; min-width: 24px; padding: 3px 5px; font: 9px Consolas, monospace; border: 1px solid #819b9538; border-radius: 3px; background: #11231e75; color: #a3bcb4; }
.menu-shell .menu-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 67px; gap: 20px; }
.menu-shell #menu-back { font-size: 12px; color: #a6c2b7; padding: 8px 0; }
.menu-shell #menu-back svg { width: 17px; height: 17px; }
.menu-breadcrumb { color: #658379; font-size: 11px; letter-spacing: .04em; }
.menu-shell .menu-subpage { flex: 1; padding: 12px 0 36px; width: 100%; }
.menu-shell .menu-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.menu-shell .menu-page-heading > p { font-size: 12px; text-align: right; color: #829c93; max-width: 390px; }
.menu-shell .menu-page-heading h2 { font-size: 37px; letter-spacing: .01em; }
.menu-shell .menu-chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; max-width: none; margin: 0; }
.menu-shell .menu-chapter-grid a { display: block; position: relative; overflow: hidden; padding: 0; background: #0b1b21d9; border: 1px solid #a5cfbf27; border-radius: 4px; color: var(--chapter-color, #b7f9df); text-decoration: none; letter-spacing: 0; font-family: inherit; transition: border-color .2s, background .2s, transform .2s; }
.menu-shell .menu-chapter-grid a:hover { border-color: var(--chapter-color); background: #11282bcf; transform: translateY(-3px); }
.menu-shell .menu-chapter-grid a[aria-current=page] { border-color: #a5cfbf60; box-shadow: none; }
.menu-level-art { position: relative; height: 146px; overflow: hidden; background: radial-gradient(ellipse at 50% 100%, #99ecc50a, transparent 70%); }
.menu-shell .chapter-art { display: block; width: 100%; height: auto; flex: initial; }
.menu-shell .menu-level-art .chapter-art { height: 100%; }
.chapter-art .scene-light { stroke-width: 2.5; filter: drop-shadow(0 0 5px currentColor); }
.menu-level-art > span { position: absolute; top: 16px; right: 17px; font: 9px Consolas, monospace; letter-spacing: .15em; opacity: .6; }
.menu-level-copy { position: relative; padding: 16px 19px 18px; border-top: 1px solid #b4e7d717; }
.menu-shell .menu-level-copy > small { font: 9px Consolas, monospace !important; letter-spacing: .12em; color: var(--chapter-color) !important; opacity: .7; margin: 0 0 8px !important; }
.menu-level-copy strong { display: block; color: #e0eee7; font-size: 18px; font-weight: 600; }
.menu-shell .menu-level-copy > p { font-size: 10px; color: #7b978e; line-height: 1.6; margin-top: 8px; padding-right: 15px; }
.menu-level-copy > svg { position: absolute; top: 27px; right: 18px; width: 19px; opacity: .65; }
.menu-level-footer { margin: 17px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.menu-shell .menu-level-footer p { font-size: 11px; }
.menu-shell .menu-card .menu-text-button { color: #9fbeb1; padding: 8px 0; font-size: 12px; border: 0; box-shadow: none; background: none; }
.menu-shell .menu-card .menu-text-button:hover { color: #e4fff2; background: none; text-decoration: underline; text-underline-offset: 5px; }
.menu-text-button svg { width: 16px; height: 16px; }
.menu-training { margin-top: 15px; padding: 18px 0 0; border-top: 1px solid var(--menu-line); }
.menu-training > summary { font-size: 13px; color: #adcbbd; cursor: pointer; }
.menu-training > summary > span { font-size: 11px; margin-left: 16px; color: #708e83; }
.menu-shell .campaign-menu { border: 0; margin: 0; padding: 15px 0 0; max-width: none; }
.menu-shell .campaign-actions { display: none; }
.menu-shell .stage-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-shell .stage-choices button { background: #122821; border: 1px solid #6d9d8644; color: #bdd8cc; font: 12px/1.6 'Segoe UI', 'Microsoft YaHei', sans-serif; padding: 12px; justify-content: flex-start; }
.menu-shell .menu-settings-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.menu-settings-panel, .menu-records-grid > section { padding: 28px 30px; background: #0c1c21e0; border: 1px solid var(--menu-line); border-radius: 4px; }
.menu-settings-panel > h3 > svg { width: 19px; color: var(--menu-accent); }
.menu-quality { padding: 0; margin: 0 0 26px; border: 0; min-width: 0; }
.menu-quality legend { font-size: 13px; color: #b7cdc3; padding: 0; margin: 0 0 12px; }
.menu-quality-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-quality-options label { position: relative; cursor: pointer; }
.menu-quality-options input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.menu-quality-options label > span { display: block; padding: 13px 12px; border: 1px solid #a8cbb733; background: #0a151d; border-radius: 3px; color: #a4bdae; font-size: 14px; }
.menu-quality-options input:checked + span { background: #b7f9df12; border-color: #b7f9df95; color: var(--menu-accent); }
.menu-quality-options input:focus-visible + span { outline: 2px solid #efffe6; outline-offset: 3px; }
.menu-shell .menu-quality-options small { font-size: 10px; margin-top: 4px; color: #749183; }
.menu-shell .menu-card #hud-motion { display: flex; justify-content: space-between; width: 100%; padding: 15px 0; border-radius: 0; background: none; border: 0; border-top: 1px solid var(--menu-line); border-bottom: 1px solid var(--menu-line); font: 13px/1.6 'Segoe UI', 'Microsoft YaHei', sans-serif; color: #c1d6ca; margin: 0 0 20px; }
.menu-shell #hud-motion::after { content: ''; width: 27px; height: 14px; flex: 0 0 auto; border-radius: 10px; background: #395548; border: 4px solid #395548; box-shadow: inset 10px 0 #759188; }
.menu-shell #hud-motion[aria-pressed=true]::after { background: #7ba990; border-color: #7ba990; box-shadow: inset -10px 0 #d0ffe4; }
.menu-shell .presentation-controls { display: grid; gap: 20px; margin: 0; padding: 0; max-width: none; }
.menu-shell .presentation-controls label, .menu-shell .sensitivity-setting { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; font: 13px/1.6 'Segoe UI', 'Microsoft YaHei', sans-serif; color: #b8cec1; margin: 0; max-width: none; }
.menu-shell .presentation-controls output, .menu-shell .sensitivity-setting output { color: #c9f5dd; font: 11px Consolas, monospace; }
.menu-shell input[type=range] { width: 100%; grid-column: 1 / -1; height: 5px; margin: 4px 0; accent-color: #a6efcf; cursor: pointer; }
.menu-shell select { font: 12px 'Segoe UI', 'Microsoft YaHei', sans-serif; color: #ddf6e6; background: #10281e; border: 1px solid #718f784d; border-radius: 3px; padding: 7px 12px; min-width: 100px; }
.menu-shell .menu-setting-hint { margin-top: 25px; font-size: 11px; color: #718f81; }
.menu-shell .controls { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; padding: 0; border: 0; max-width: none; }
.menu-shell .controls span { font-size: 11px; line-height: 1.6; color: #7f9d8e; }
.menu-shell .controls b { color: #c3dcd0; font: 12px/1.6 Consolas, monospace; margin-bottom: 3px; }
.menu-page-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 23px; font-size: 11px; color: #688574; }
.menu-shell .menu-card .menu-secondary { background: #152b24; border: 1px solid #a9cfb648; color: #c5e8d3; padding: 12px 22px; }
.menu-shell .menu-card .menu-secondary:hover { background: #254b37; border-color: #b6eac783; }
.menu-shell .menu-context { display: grid; grid-template-columns: 1fr .94fr; grid-template-rows: 1fr auto; column-gap: 7%; row-gap: 28px; align-items: center; flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 25px 0 50px; }
.menu-context-copy { align-self: end; padding-top: 8px; }
.menu-shell #menu-context-title { font-size: clamp(33px, 3.7vw, 56px); line-height: 1.3; color: #edfaef; letter-spacing: -.045em; margin: 18px 0 18px; }
.menu-shell #menu-context-description { max-width: 500px; font-size: 13px; color: #8ba798; line-height: 1.95; }
.menu-result-stats { display: flex; gap: 0; margin: 29px 0 0; }
.menu-result-stats > div { flex: 1; padding: 0 20px; border-left: 1px solid var(--menu-line); }
.menu-result-stats > div:first-child { padding-left: 0; border: 0; }
.menu-result-stats > div:last-child { padding-right: 0; }
.menu-result-stats span { color: #71927e; font-size: 11px; }
.menu-result-stats strong { display: flex; align-items: baseline; gap: 7px; margin-top: 9px; font: 26px/1.25 Consolas, monospace; color: #d9eddf; }
.menu-shell .menu-result-stats strong small { font-size: 11px; }
.menu-result-stats strong.menu-status-value { font-size: 19px; font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; }
.menu-chapter-track { display: flex; list-style: none; align-items: center; gap: 10px; padding: 0; margin: 28px 0 0; }
.menu-chapter-track li { display: grid; place-items: center; min-width: 40px; height: 30px; font: 11px Consolas, monospace; border: 1px solid #afcfbb22; color: #426655; position: relative; background: #0a1817cc; }
.menu-chapter-track li:not(:last-child)::after { content: ''; width: 11px; height: 1px; background: #afcfbb22; position: absolute; left: 100%; }
.menu-chapter-track li[data-status=done] { color: #94bfa6; background: #94bfa60d; }
.menu-chapter-track li[data-status=current] { color: #143725; background: #b7f9df; border-color: #b7f9df; }
.menu-context-preview { position: relative; align-self: center; grid-column: 2; grid-row: 1 / 3; border: 1px solid #9fccb329; border-radius: 3px; background: linear-gradient(160deg, #12292ec7, #0a161ddb); color: var(--chapter-color); overflow: hidden; }
#menu-context-art { padding: 40px 5px 20px; }
.menu-preview-label { padding: 26px 30px 31px; border-top: 1px solid #9fccb31a; background: #101f2377; }
.menu-preview-label > span { display: block; font: 10px Consolas, monospace; letter-spacing: .18em; color: var(--chapter-color); opacity: .75; }
.menu-preview-label > strong { display: block; color: #e1ece4; font-size: 24px; font-weight: 500; margin: 14px 0 7px; }
.menu-shell .menu-preview-label > small { color: #748f82; font-size: 11px; }
.menu-context-action { grid-column: 1; align-self: start; }
.menu-shell .menu-card .menu-primary { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 73px; border: 1px solid #b7f9df; background: var(--menu-accent); color: #103723; border-radius: 3px; padding: 15px 24px; font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.menu-shell .menu-card .menu-primary > span { display: block; }
.menu-shell .menu-card .menu-primary small { color: #3a6954; font-size: 11px; font-weight: 400; margin-top: 4px; letter-spacing: .01em; }
.menu-shell .menu-card .menu-primary > svg { width: 27px; height: 27px; }
.menu-shell .menu-card .menu-primary:hover { color: #082e19; background: #dcffe7; box-shadow: 0 6px 32px #adf8cc15; border-color: #dcffe7; }
.menu-shell #menu-primary-note { margin-top: 12px; font-size: 11px; color: #719082; }
.menu-context-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 21px; margin-top: 14px; }
.menu-context-links .menu-text-button { font-size: 11px !important; }
.menu-context[data-outcome=warning] #menu-context-kicker { color: #ffca9c; }
.menu-shell .menu-records-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.menu-shell .menu-records-grid h3 { margin-bottom: 18px; }
.menu-shell .field-report { border-top: 0; padding: 0; margin: 0; max-width: none; font: 12px/1.8 'Segoe UI', 'Microsoft YaHei', sans-serif; }
.menu-shell .field-report p, .menu-shell .field-report small { font-size: 12px; line-height: 1.8; margin: 14px 0; }
.menu-shell .field-report summary { font-size: 13px; color: #b4ddc4; }
.menu-shell .report-export { background: #264334 !important; border: 1px solid #82b79a80 !important; color: #c8f8d7 !important; }
.menu-shell #star-collection { margin: 0 0 20px !important; padding: 15px 17px !important; font: 12px/1.9 'Segoe UI', 'Microsoft YaHei', sans-serif !important; border-color: #d9c78633 !important; background: #c9ac5f08 !important; border-radius: 3px; color: #cabd8a !important; }
.menu-shell .achievement-panel { border: 0; max-width: none; margin: 0; padding: 0; }
.menu-shell .achievement-panel > summary { display: none; }
.menu-shell .achievement-panel :is(p, span, small) { font-size: 12px; line-height: 1.8; }
.menu-shell .achievement-list article { padding: 13px 0; border-color: #8baf9326; }
.menu-shell .achievement-list strong { color: #c1d6c8; font-size: 13px; margin-bottom: 5px; }
.menu-shell .achievement-list span { color: #8ca994; }
.menu-shell .achievement-panel .challenge-start, .menu-shell .achievement-retry { margin-top: 16px; padding: 12px 18px; background: #233f2c; border: 1px solid #9bcea449; color: #cdf4d3; }
.menu-shell .achievement-rules { margin-top: 18px !important; color: #788f79 !important; }
.menu-shell .menu-empty-report { font-size: 12px; }
.menu-save-row { display: flex !important; width: 100% !important; justify-content: flex-start !important; gap: 22px !important; border: 1px solid var(--menu-line) !important; background: #102221d4 !important; padding: 22px !important; margin-bottom: 12px !important; }
.menu-save-number { font: 24px Consolas, monospace; color: #a4c6ae; }
.menu-save-row > span:nth-child(2) { flex: 1; }
.menu-save-row strong { display: block; font-size: 17px; font-weight: 500; margin-bottom: 5px; }
.menu-shell .menu-save-row small { font-size: 12px; }
.menu-shell #menu-notice { margin: 12px 0; border: 1px solid #ffb98570; background: #382719f2; padding: 14px 18px; color: #ffe2c8; font-size: 13px; line-height: 1.7; border-radius: 3px; }
.menu-confirm { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; overflow: auto; padding: 24px; background: #020a0ee8; backdrop-filter: blur(10px); }
.menu-confirm-card { width: min(520px, 100%); background: #11241f; border: 1px solid #92bba950; border-top: 2px solid #edc792; border-radius: 5px; padding: 35px; box-shadow: 0 25px 100px #0008; }
.menu-shell .menu-confirm-card h2 { font-size: 28px; margin: 16px 0; }
.menu-shell .menu-confirm-card > p:not(.menu-eyebrow) { font-size: 13px; line-height: 1.9; color: #a7c0b1; }
.menu-confirm-card > div { display: flex; gap: 12px; margin-top: 27px; }
.menu-shell .menu-confirm-card #menu-confirm-cancel { min-width: 90px; }
.menu-shell .menu-confirm-card .menu-primary { min-height: 50px; font-size: 15px; padding: 12px 18px; }
.menu-shell .menu-confirm-error { color: #ffc88f !important; margin-top: 14px !important; }
body[data-menu-open=true] > :is(.topbar, .scanlines, .art-stamp, .compass, .left-panel, .right-panel, footer, .mission-tracker, .tactical-radar, .toast, #star-badge, .run-mode, .center-reticle, .hitmarker, .damage-screen) { visibility: hidden !important; }
@keyframes menu-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .menu-home h1 { font-size: 105px; } }
@media (max-height: 780px) and (min-width: 801px) {
  .menu-shell .menu-header { min-height: 70px; }
  .menu-shell .menu-home { min-height: 510px; padding: 24px 0; }
  .menu-home h1 { font-size: 69px; margin: 18px 0 12px; }
  .menu-home h1 > i { margin-top: 17px; font-size: 11px; }
  .menu-shell .menu-home-intro { margin-bottom: 18px; }
  .menu-shell .menu-home-actions button { min-height: 62px; padding: 10px 18px; }
  .menu-shell .menu-home-actions button b { font-size: 17px; }
  .menu-shell .menu-home-actions button small { font-size: 10px; }
  .menu-signal { width: 250px; }
  .menu-scene-caption { margin-top: 37px; }
  .menu-shell .menu-toolbar { min-height: 54px; }
  .menu-shell .menu-context { padding: 17px 0 30px; row-gap: 24px; }
  .menu-shell #menu-context-title { font-size: 37px; margin: 12px 0; }
  .menu-result-stats, .menu-chapter-track { margin-top: 20px; }
  #menu-context-art { padding: 15px 5px 5px; }
  .menu-preview-label { padding: 20px 24px; }
  .menu-shell .menu-footer { min-height: 48px; padding: 12px 0; }
  .menu-level-art { height: 112px; }
  .menu-shell .menu-page-heading { margin-bottom: 22px; }
}
@media (max-width: 1050px) {
  .menu-shell { padding-inline: 35px; }
  .menu-shell .menu-home { gap: 30px; grid-template-columns: minmax(340px, 1fr) 1fr; }
  .menu-scene-caption strong { font-size: 17px; }
  .menu-shell .menu-scene-caption p { font-size: 10px; }
  .menu-signal { width: 240px; }
  .menu-shell .menu-context { gap: 25px; grid-template-columns: 1fr .85fr; }
  .menu-settings-panel, .menu-records-grid > section { padding: 23px; }
  .menu-quality-options label > span { padding: 11px 9px; }
  .menu-level-copy { padding: 15px; }
  .menu-level-copy strong { font-size: 16px; }
  .menu-shell .menu-level-copy > p { font-size: 9px; }
}
@media (max-width: 800px) {
  .menu-shell { padding-inline: 24px; background: linear-gradient(90deg,#071416f5,#071416c9), linear-gradient(0deg,#061013fa,transparent); }
  .menu-shell .menu-header { min-height: 71px; }
  .menu-header-meta { font-size: 9px; gap: 6px; }
  .menu-header-divider { padding-inline: 3px; }
  .menu-shell .menu-home { grid-template-columns: 1fr; padding: 35px 0; min-height: 0; }
  .menu-home-copy { width: min(430px, 100%); margin: auto; }
  .menu-home h1 { font-size: clamp(65px, 13vw, 90px); }
  .menu-home-scene { display: none; }
  .menu-shell .menu-home-actions button { min-height: 68px; }
  .menu-shell .menu-chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .menu-shell .menu-page-heading { display: block; margin-bottom: 24px; }
  .menu-shell .menu-page-heading > p { margin-top: 14px; text-align: left; max-width: none; }
  .menu-shell .menu-settings-grid, .menu-shell .menu-records-grid { grid-template-columns: 1fr; }
  .menu-shell .menu-context { grid-template-columns: 1fr; padding-top: 16px; gap: 24px; }
  .menu-context-copy { grid-column: 1; grid-row: 1; }
  .menu-context-preview { grid-column: 1; grid-row: 3; display: flex; align-items: center; }
  #menu-context-art { width: 40%; flex-shrink: 0; padding: 10px 0; }
  .menu-preview-label { border-top: 0; background: none; padding: 18px; }
  .menu-preview-label > strong { font-size: 18px; margin: 8px 0; }
  .menu-context-action { grid-column: 1; grid-row: 2; }
  .menu-shell #menu-context-title { font-size: 36px; margin: 15px 0; }
  .menu-shell .menu-footer { flex-wrap: wrap; justify-content: space-between; font-size: 8px; }
  .menu-footer b { display: none; }
  .menu-shell .stage-choices { grid-template-columns: 1fr 1fr; }
  .menu-level-footer { flex-direction: column; align-items: flex-start; gap: 3px; }
  .menu-training > summary > span { display: none; }
}
@media (max-width: 460px) {
  .menu-shell { padding-inline: 19px; }
  .menu-shell .menu-brand { font-size: 11px; gap: 9px; }
  .menu-shell .menu-brand > svg { width: 31px; height: 31px; }
  .menu-header-meta { display: none; }
  .menu-shell .menu-home { padding-top: 30px; }
  .menu-home h1 { font-size: 69px; }
  .menu-shell .menu-eyebrow { font-size: 9px; letter-spacing: .06em; }
  .menu-shell .menu-home-actions button { padding: 11px 17px; }
  .menu-shell .menu-home-actions button b { font-size: 18px; }
  .menu-level-art { height: 107px; }
  .menu-level-copy { padding: 12px; }
  .menu-level-copy strong { font-size: 15px; padding-right: 5px; }
  .menu-level-copy > svg { width: 14px; right: 10px; top: 15px; }
  .menu-level-copy > p { min-height: 30px; }
  .menu-shell .menu-context-links { gap: 0 16px; }
  .menu-shell .menu-primary { padding-inline: 18px !important; font-size: 19px !important; }
  .menu-shell .menu-footer { gap: 12px; }
  .menu-shell .menu-key-hints { font-size: 8px; gap: 6px; }
  .menu-shell .menu-page-heading h2 { font-size: 31px; }
  .menu-result-stats > div { padding-inline: 15px; }
  .menu-result-stats strong { font-size: 23px; }
  .menu-result-stats strong.menu-status-value { font-size: 16px; }
  .menu-preview-label > small { font-size: 10px !important; }
  .menu-settings-panel, .menu-records-grid > section { padding: 21px 18px; }
  .menu-shell .menu-quality-options small { font-size: 9px; }
  .menu-confirm-card { padding: 26px 23px; }
  .menu-shell .menu-confirm-card h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-view { animation: none; }
  .menu-shell * { transition: none !important; }
  .menu-shell .menu-home-actions button:hover, .menu-shell .menu-chapter-grid a:hover { transform: none; }
}

/* The old HUD hides every footer while paused; the menu footer is not a HUD element. */
.menu-shell .menu-footer { visibility: visible !important; }
@media (max-height: 700px) {
  .menu-shell .menu-header { min-height: 63px; }
  .menu-shell .menu-home { min-height: 0; padding-top: 20px; padding-bottom: 20px; }
  .menu-home h1 { font-size: 58px; margin-top: 14px; margin-bottom: 10px; }
  .menu-home h1 > span { margin-top: 6px; }
  .menu-home h1 > i { margin-top: 13px; font-size: 10px; }
  .menu-shell .menu-home-intro { font-size: 11px; margin-bottom: 15px; }
  .menu-home-actions { gap: 6px; }
  .menu-shell .menu-home-actions button { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .menu-shell .menu-home-actions button b { font-size: 17px; }
  .menu-shell .menu-home-actions button small { font-size: 10px; }
  .menu-shell .menu-footer { min-height: 44px; padding-block: 12px; }
}

/* Five clean home entries; the achievement collection lives on its own page. */
.menu-shell .menu-home-actions button { min-height: 66px; padding: 10px 20px; }
.menu-shell .menu-home-actions button b { font-size: 18px; }
.menu-shell .menu-achievements-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 24px; align-items: start; }
.menu-achievements-grid > section { background: #0c1c21e0; border: 1px solid var(--menu-line); border-radius: 4px; padding: 29px; }
.menu-achievements-overview { color: #e0d39e; }
.menu-achievements-emblem { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 0 23px; border: 1px solid #dbc68342; border-radius: 50%; background: radial-gradient(circle, #bfa36519, transparent 75%); }
.menu-shell .menu-achievements-emblem svg { width: 38px; height: 38px; color: #e3d294; }
.menu-shell .menu-achievements-overview h3 { margin-bottom: 13px; }
.menu-shell .menu-achievements-intro { font-size: 12px; line-height: 1.9; margin-bottom: 23px; color: #8fa898; }
.menu-challenge-map { margin-top: 26px; border-top: 1px solid var(--menu-line); padding-top: 24px; }
.menu-challenge-map > span { font-size: 11px; color: #789785; }
.menu-challenge-map > strong { display: block; margin: 10px 0 12px; font-size: 16px; line-height: 1.7; font-weight: 500; color: #d0e8d7; }
.menu-shell .menu-challenge-map p { font-size: 12px; margin-bottom: 18px; }
.menu-shell .menu-challenge-map .menu-secondary { font-size: 12px; }
/* SaveHub (settings → 存档备份) */
.menu-shell .menu-save-hub h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; color: #d8f5e4; }
.menu-shell .menu-save-hub .menu-setting-hint { margin-top: 10px; }
.menu-shell .menu-save-hub-health { display: grid; gap: 8px; margin-top: 16px; }
.menu-shell .menu-save-hub-group { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 11px; color: #9fbeb1; }
.menu-shell .menu-save-hub-group > b { color: #c5e8d3; font-weight: 600; letter-spacing: .06em; margin-right: 4px; }
.menu-shell .menu-save-hub-group span[data-status="corrupt"] { color: #ff9a9a; }
.menu-shell .menu-save-hub-group span[data-status="unknown"] { color: #ffd98a; }
.menu-shell .menu-save-hub-group span[data-status="empty"] { color: #5f7a6e; }
.menu-shell .menu-save-hub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.menu-shell .menu-card .menu-save-hub-import { cursor: pointer; display: inline-flex; align-items: center; }
.menu-shell .menu-save-hub-preview { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--menu-line); border-radius: 4px; background: #0a171bcc; font-size: 12px; color: #b9d8c8; }
.menu-shell .menu-save-hub-preview ul { margin: 8px 0; padding-left: 18px; }
.menu-shell .menu-save-hub-preview li[data-action="overwrite"] { color: #ffd98a; }
.menu-shell .menu-save-hub-preview li[data-action="skip"] { color: #8fa79c; }
.menu-shell .menu-save-hub-preview li[data-action="add"] { color: #b6eac7; }
.menu-shell .menu-save-hub [data-save-status][data-error="true"] { color: #ff9a9a; }
.menu-shell .menu-card .menu-save-hub button:disabled { opacity: .45; cursor: not-allowed; }
.menu-shell .menu-telemetry { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; color: #c5e8d3; cursor: pointer; }
.menu-shell .menu-telemetry input { margin-top: 3px; accent-color: #7de3b1; }
.menu-shell .menu-telemetry small { display: block; margin-top: 4px; font-size: 11px; color: #718f81; line-height: 1.5; }
.menu-shell .menu-records-only { grid-template-columns: 1fr; max-width: 880px; }
@media (min-width: 801px) and (min-height: 781px) {
  .menu-home h1 { font-size: clamp(64px, 5.8vw, 88px); margin-top: 20px; margin-bottom: 14px; }
  .menu-shell .menu-home-intro { margin-bottom: 23px; }
}
@media (max-width: 800px) {
  .menu-shell .menu-achievements-grid { grid-template-columns: 1fr; gap: 19px; }
  .menu-achievements-grid > section { padding: 23px; }
}
@media (max-height: 700px), (max-width: 800px) and (max-height: 860px) {
  .menu-shell .menu-home-actions button { min-height: 48px; padding: 9px 18px; }
  .menu-shell .menu-home-actions button b { font-size: 17px; }
  .menu-shell .menu-home-actions button:not(#menu-continue) small { display: none; }
  .menu-shell .menu-home-actions #menu-continue small { font-size: 10px; }
}
@media (max-width: 460px) {
  .menu-achievements-grid > section { padding: 23px 19px; }
}

/* Audio settings panel (Phase 2). */
.menu-shell .menu-audio-panel h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; color: #9fc7b3; }
.menu-shell .menu-audio-sliders { display: grid; gap: 9px; }
.menu-shell .menu-audio-row { display: grid; grid-template-columns: 68px 1fr 44px; gap: 12px; align-items: center; font-size: 12px; color: #c5e8d3; }
.menu-shell .menu-audio-row input[type=range] { width: 100%; accent-color: #7de3b1; }
.menu-shell .menu-audio-row b { text-align: right; font: 11px/1 monospace; color: #9fc7b3; }
.menu-shell .menu-audio-mute { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 12px; color: #c5e8d3; cursor: pointer; }
.menu-shell .menu-audio-mute input { accent-color: #7de3b1; }
.menu-shell .menu-audio-panel .menu-setting-hint { margin-top: 12px; }
.menu-shell .menu-audio-lab { margin-top: 14px; }
.menu-shell .menu-audio-lab summary { font-size: 12px; color: #9fc7b3; cursor: pointer; }
.menu-shell .menu-audio-lab-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.menu-shell .menu-audio-lab-grid .menu-secondary { padding: 6px 10px; font-size: 11px; }

/* Kill streak banner (Phase 2 presentation). */
.streak-banner { position: fixed; left: 50%; top: 27%; z-index: 6; transform: translate(-50%, 0) skewX(-7deg); padding: 6px 18px; border: 1px solid #ffb35c; border-left-width: 4px; background: linear-gradient(90deg, #2a1206f0, #2a120680); color: #ffd28a; font: 900 17px/1.2 'Arial Black', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif; letter-spacing: .14em; text-shadow: 0 0 10px #ff8a2a; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.streak-banner[data-show=true] { opacity: 1; transform: translate(-50%, -8px) skewX(-7deg); }
.streak-banner[data-step="5"] { border-color: #ff6e9a; color: #ffc0d4; text-shadow: 0 0 10px #ff3a7a; }
.streak-banner[data-step="10"] { border-color: #74f8ed; color: #d4fffb; text-shadow: 0 0 12px #34e0d0; }
.hitmarker[data-kind=armor] { color: #9fb4c8; }
.hitmarker[data-kind=core] { color: #74f8ed; text-shadow: 0 0 7px #34e0d0; }

/* batch 8: key bindings, gamepad, accessibility, language */
.menu-shell .menu-binding-group { margin-top: 10px; }
.menu-shell .menu-binding-group-title { display: block; font-size: 10px; letter-spacing: .18em; color: #718f81; margin-bottom: 4px; text-transform: uppercase; }
.menu-shell .menu-binding-row { display: grid; grid-template-columns: 1fr auto 14px; align-items: center; gap: 8px; font-size: 12px; color: #c5e8d3; padding: 3px 0; border-bottom: 1px solid rgba(125, 227, 177, .08); }
.menu-shell .menu-binding-key { min-width: 96px; padding: 3px 8px; font: inherit; font-size: 11px; letter-spacing: .08em; color: #eafff3; background: rgba(125, 227, 177, .08); border: 1px solid rgba(125, 227, 177, .35); border-radius: 4px; cursor: pointer; }
.menu-shell .menu-binding-key:focus-visible, .menu-shell .menu-binding-key:hover:not(:disabled) { border-color: #7de3b1; outline: none; }
.menu-shell .menu-binding-key:disabled { opacity: .45; cursor: default; }
.menu-shell .menu-binding-custom { color: #ffcf6a; font-style: normal; font-size: 9px; }
.menu-shell .menu-binding-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.menu-shell .menu-binding-status { font-size: 11px; color: #7de3b1; }
.menu-shell .menu-gamepad-status[data-connected=true] { color: #7de3b1; }
.menu-shell .menu-language select, .menu-shell .menu-a11y-panel select { font: inherit; font-size: 12px; color: #eafff3; background: #0d1a16; border: 1px solid rgba(125, 227, 177, .35); border-radius: 4px; padding: 2px 6px; }
.menu-shell .menu-a11y-panel .menu-telemetry { margin-top: 10px; }
/* SFX subtitles (accessibility.js) */
.sfx-subtitles { position: fixed; left: 50%; bottom: calc(14vh); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; z-index: 40; font-size: calc(13px * var(--subtitle-scale, 1)); }
.sfx-subtitles div { padding: 3px 12px; border-radius: 4px; background: rgba(4, 10, 8, .78); color: #eafff3; letter-spacing: .06em; border-left: 3px solid #7de3b1; }
.sfx-subtitles div[data-kind=threat] { border-left-color: #ff6a5a; }
.sfx-subtitles div[data-kind=objective] { border-left-color: #ffcf6a; }
body[data-menu-open=true] > .sfx-subtitles { visibility: hidden !important; }
/* high-contrast: stronger HUD text edges */
html[data-color-mode=high-contrast] body { --hud-text-shadow: 0 0 2px #000, 0 0 4px #000; }
html[data-color-mode=high-contrast] .toast, html[data-color-mode=high-contrast] .mission-tracker, html[data-color-mode=high-contrast] #enemy-combat-hud { text-shadow: 0 0 2px #000, 0 0 4px #000; }
