:root {
  color-scheme: dark;
  --bg-dark: #0c0e10;
  --panel-bg: rgba(17, 20, 23, .92);
  --panel-border: #35383a;
  --cyan: #c8d6d8;
  --amber: #e8ad63;
  --emerald: #9bb6a2;
  --magenta: #d38978;
  --purple: #aca5be;
  --crimson: #d07165;
  --text-main: #eeeae2;
  --text-muted: #a2a5a4;
  --font-display: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg-dark); color: var(--text-main); font-family: var(--font-display); }
button, summary, kbd { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
button:active { transform: translateY(1px); }
kbd { font: 10px var(--font-mono); border: 1px solid #4e5050; padding: 3px 5px; border-radius: 2px; color: #d4d4cd; white-space: nowrap; }
.hidden { display: none !important; }
#game-canvas-container { position: fixed; inset: 0; z-index: 1; cursor: none; }
#screen-vignette { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .18s; box-shadow: inset 0 0 100px rgba(183, 43, 31, .55); }

/* A field manual wrapped around the live scene. */
.hangar { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: linear-gradient(90deg, rgba(10,12,14,.65), rgba(10,12,14,.08) 38%, rgba(10,12,14,.65) 67%, #101214 100%); cursor: default; }
.hangar > * { flex-shrink: 0; }
.hangar-header { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 30px 4%; border-bottom: 1px solid rgba(220,220,210,.12); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-main); font-size: 21px; letter-spacing: .13em; font-weight: 750; }
.brand-mark { color: var(--amber); font-size: 32px; line-height: 1; }
.brand-edition { padding-left: 18px; margin-left: 8px; border-left: 1px solid #454744; font: 10px var(--font-mono); letter-spacing: .1em; color: var(--text-muted); }
.hangar-status { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #b3b7ae; }
.hangar-status i { width: 5px; height: 5px; background: #b7c4a1; border-radius: 50%; }
.hangar-story { position: absolute; top: 21%; left: 4%; pointer-events: none; }
.eyebrow, .section-label, .preview-caption, .hangar-footer, .game-logo-tag { font: 10px var(--font-mono); letter-spacing: .1em; }
.eyebrow { margin-bottom: 23px; color: var(--amber); }
.hangar-story h1 { font-size: clamp(37px, 4.2vw, 66px); line-height: 1.25; letter-spacing: -.045em; font-weight: 600; }
.hangar-story h1 span { color: var(--amber); }
.hangar-intro { margin-top: 22px; font-size: 12px; line-height: 1.9; color: #b2b4b1; }
.preview-caption { position: absolute; bottom: 16%; left: 29%; display: flex; flex-direction: column; gap: 10px; color: #a5aaa7; font-size: 9px; }
.preview-caption #preview-model-name { color: var(--text-main); font-size: 12px; letter-spacing: .14em; }
.caption-rule { width: 40px; height: 1px; background: var(--amber); margin-bottom: 6px; }
.hangar-panel { position: relative; width: 370px; margin: 125px 4% 28px auto; }
.section-label { display: flex; justify-content: space-between; color: var(--text-muted); padding-bottom: 16px; border-bottom: 1px solid #3b3c39; }
.section-label span:first-child { color: var(--amber); }
.hangar-panel h2 { margin-top: 23px; font-weight: 550; font-size: 26px; letter-spacing: -.04em; }
.panel-intro { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.mech-grid { display: flex; flex-direction: column; margin-top: 24px; gap: 7px; }
.mech-select-card { display: flex; align-items: center; gap: 15px; background: rgba(22,25,27,.8); border: 1px solid #35383a; padding: 18px 16px; text-align: left; width: 100%; transition: border-color .16s, background .16s; border-radius: 2px; }
.mech-select-card:hover { background: #242728; border-color: #75776e; }
.mech-select-card.selected { border-color: var(--amber); background: rgba(232,173,99,.08); }
.mech-number { font: 10px var(--font-mono); color: #969b96; }
.selected .mech-number { color: var(--amber); }
.mech-copy { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mech-card-title { font-size: 15px; font-weight: 550; }
.mech-card-title span { margin-left: 8px; color: #acaeaa; font: 10px var(--font-mono); }
.mech-card-desc { color: #a6aaa4; font-size: 11px; }
.selection-indicator { width: 13px; height: 13px; border: 1px solid #686b65; border-radius: 50%; }
.selected .selection-indicator { border-color: var(--amber); background: var(--amber); box-shadow: inset 0 0 0 3px #29251e; }
.loadout-detail { margin: 23px 0 25px; }
.loadout-heading { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); }
.loadout-heading span:last-child { color: var(--amber); }
#loadout-desc { color: #b9bcb5; font-size: 11px; line-height: 1.8; margin: 12px 0 18px; min-height: 40px; }
.loadout-stats { display: grid; grid-template-columns: repeat(4,1fr); }
.loadout-stats div + div { padding-left: 16px; border-left: 1px solid #383b37; }
.loadout-stats dt { font-size: 10px; color: var(--text-muted); margin-bottom: 7px; }
.loadout-stats dd { font: 20px var(--font-mono); letter-spacing: -.05em; }
.loadout-stats small { font-size: 10px; color: var(--text-muted); margin-left: 3px; }
.btn-primary, .btn-secondary { min-height: 46px; padding: 13px 22px; border-radius: 2px; border: 1px solid transparent; font-size: 13px; font-weight: 600; transition: background .16s, transform .16s; }
.btn-primary { background: var(--amber); color: #191a17; }
.btn-primary:hover { background: #f2c38a; }
.btn-secondary { background: transparent; color: var(--text-main); border-color: #62645c; }
.btn-secondary:hover { background: #30322e; }
.launch-button { display: flex; align-items: center; gap: 15px; width: 100%; font-size: 14px; min-height: 52px; padding: 0 18px; }
.launch-button > span { font-size: 21px; font-weight: 400; }
.launch-button kbd { margin-left: auto; color: #4a402f; border-color: rgba(36,30,22,.3); font-size: 9px; }
.launch-note { text-align: center; font-size: 10px; color: #969d96; margin-top: 11px; }
.field-guide { margin-top: 23px; border-top: 1px solid #383a36; }
.field-guide summary { padding: 16px 0; font-size: 11px; cursor: pointer; color: #c0c4bb; }
.field-guide summary span { float: right; color: #92998e; font: 9px var(--font-mono); }
.guide-content p { font-size: 10px; color: #abb2a6; margin: 0 0 15px; line-height: 1.9; }
.guide-content kbd { margin-right: 4px; font-size: 9px; }
.device-note { color: var(--amber) !important; }
.hangar-footer { position: relative; left: auto; right: auto; margin: auto 4% 0; padding: 23px 0; background: linear-gradient(transparent,#0c0e10); border-top: 1px solid rgba(220,220,210,.12); color: #9ba196; display: flex; justify-content: space-between; font-size: 9px; pointer-events: none; }
.hangar-footer > span:first-child { color: #cccfc5; letter-spacing: .2em; }
.selection-hint kbd { margin-right: 5px; padding: 1px 4px; }

/* Combat instruments: status at the edges, clear space at the center. */
#hud-layer { position: fixed; inset: 0; z-index: 10; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.hud-top { display: grid; grid-template-columns: 245px minmax(0,1fr) 245px; gap: 22px; align-items: start; }
.hud-card { background: var(--panel-bg); border: 1px solid var(--panel-border); padding: 13px 15px; border-radius: 2px; }
.mech-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mech-name { font-size: 11px; font-weight: 600; color: #deded5; }
.mech-level { color: var(--amber); font: 10px var(--font-mono); white-space: nowrap; }
.bar-row { margin-top: 9px; }
.bar-label { display: flex; justify-content: space-between; font-size: 9px; color: #aeb5b1; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.bar-track, .event-bar-track, .skill-bar-track, .combo-timer-track, .boss-bar-track { height: 3px; background: #363d3b; overflow: hidden; }
.bar-fill, #bar-beacon, .skill-bar-fill, .combo-timer-fill, .boss-bar-fill { height: 100%; transition: width .12s; }
.bar-fill.hp { background: var(--emerald); }
.bar-fill.shield { background: #bdcdd3; }
.bar-fill.xp { background: var(--amber); }
.augment-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.augment-strip:empty { display: none; }
.augment-pill { font-size: 9px; color: #c0c7bd; border: 1px solid #41463f; padding: 3px 5px; }
.augment-pill b { color: var(--amber); font-weight: 400; }
.hud-center-top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wave-badge { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 11px 16px; background: var(--panel-bg); border-bottom: 1px solid #5f6258; }
.wave-num { color: #eeeae2; font: 13px var(--font-mono); white-space: nowrap; }
.wave-divider { height: 13px; width: 1px; background: #53564e; }
.wave-enemies { font-size: 10px; color: #b7beb4; white-space: nowrap; }
#map-event-hud { width: min(100%,340px); padding: 9px 12px; background: var(--panel-bg); }
.event-top-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 10px; line-height: 1.5; margin-bottom: 7px; }
#map-event-title { color: #c0c7bb; }
#map-event-status { color: var(--amber); font-size: 9px; }
#bar-beacon { background: var(--emerald); }
#boss-hud { background: #261e1b; border-top: 2px solid var(--crimson); width: min(100%,400px); padding: 12px; }
.boss-title-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.boss-name { color: #e0b7a6; font-size: 11px; }
.boss-shield-tag { font-size: 9px; color: #c4bba9; }
.boss-bar-fill { background: var(--crimson); }
.hud-right { display: flex; flex-direction: column; gap: 9px; }
.score-top-grid { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.style-rank-box { display: flex; align-items: center; gap: 10px; }
.style-rank-letter { font: 32px var(--font-mono); color: #c2cec4; }
.style-rank-letter.rank-s { color: var(--amber); }
.style-rank-letter.rank-sss { color: var(--magenta); }
.style-rank-title { font-size: 9px; color: var(--text-muted); margin-bottom: 5px; }
.combo-badge { font: 10px var(--font-mono); color: var(--amber); }
.score-right-box { text-align: right; }
.score-label { font-size: 9px; color: var(--text-muted); margin-bottom: 4px; }
.score-value { font: 22px var(--font-mono); color: #eeeae2; }
.combo-timer-track { margin-top: 12px; height: 2px; }
.combo-timer-fill { background: var(--amber); }
.quick-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; pointer-events: auto; }
.hud-btn { min-height: 32px; padding: 6px 8px; font-size: 9px; background: #181d20; border: 1px solid #454a48; border-radius: 2px; color: #bdc5c0; }
.hud-btn:hover { border-color: #b2b5a4; }
.hud-btn.active { color: var(--amber); border-color: #8e744e; }
.hud-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.bottom-left-cluster { display: flex; gap: 16px; align-items: flex-end; }
.radar-card { width: 112px; height: 112px; position: relative; border: 1px solid #646b5f; border-radius: 50%; background: rgba(15,20,21,.8); padding: 5px; flex-shrink: 0; }
#minimap-canvas { width: 100%; height: 100%; border-radius: 50%; display: block; }
.radar-label { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: #151b1c; color: #b0b9ac; font: 8px var(--font-mono); letter-spacing: .08em; padding: 3px 7px; white-space: nowrap; }
.controls-hint { font-size: 9px; color: #c5c9c0; background: var(--panel-bg); padding: 9px; line-height: 1.9; }
.controls-hint span { margin: 0 6px; color: #646d65; }
.skill-dock { display: flex; gap: 6px; }
.skill-slot { width: 122px; padding: 11px; border: 1px solid #414943; background: var(--panel-bg); border-radius: 2px; }
.skill-slot.ready { border-top-color: #a6b1a1; }
.skill-slot.ult-ready { border-color: var(--amber); }
.skill-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; margin-bottom: 12px; }
.skill-name { font-size: 10px; }
.skill-key { font: 8px var(--font-mono); color: #b2bba9; }
.skill-bar-fill { background: #bac9c5; }
.skill-bar-fill.missile, .skill-bar-fill.ult { background: var(--amber); }
.skill-status { margin-top: 7px; font: 9px var(--font-mono); color: #b6bdb0; text-align: right; }
#center-banner { position: fixed; top: 25%; left: 50%; transform: translate(-50%,8px); opacity: 0; transition: opacity .2s, transform .2s; z-index: 15; text-align: center; pointer-events: none; width: min(85%,600px); }
#center-banner.show { opacity: 1; transform: translate(-50%,0); }
.banner-title { font: 24px var(--font-mono); letter-spacing: .1em; color: #f2eee5; text-shadow: 0 2px 8px #000; }
.banner-sub { color: #c8c6b8; font-size: 11px; line-height: 1.7; margin-top: 9px; text-shadow: 0 2px 6px #000; }
#floating-text-layer { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.floating-text { position: absolute; font: 600 12px var(--font-mono); text-shadow: 0 2px 4px #000; white-space: nowrap; pointer-events: none; }
#custom-crosshair { position: fixed; top: 50%; left: 50%; width: 26px; height: 26px; transform: translate(-50%,-50%); z-index: 25; pointer-events: none; transition: width .08s,height .08s; }
#custom-crosshair.bloom { width: 34px; height: 34px; }
.ch-ring { position: absolute; inset: 5px; border: 1px solid rgba(236,232,215,.7); border-radius: 50%; }
.ch-dot { position: absolute; top: 50%; left: 50%; width: 2px; height: 2px; background: var(--amber); transform: translate(-50%,-50%); }
.ch-tick { position: absolute; background: #eeeae2; }
.ch-tick.top,.ch-tick.bottom { left: 50%; width: 1px; height: 4px; }
.ch-tick.top { top: 0; }.ch-tick.bottom { bottom: 0; }
.ch-tick.left,.ch-tick.right { top: 50%; width: 4px; height: 1px; }
.ch-tick.left { left: 0; }.ch-tick.right { right: 0; }
#hitmarker { position: absolute; inset: 1px; opacity: 0; transform: rotate(45deg); }
#hitmarker.active { opacity: 1; }
.hm-line { position: absolute; background: #fff; }
.hm-line.h { top: 50%; left: 20%; right: 20%; height: 2px; }
.hm-line.v { left: 50%; top: 20%; bottom: 20%; width: 2px; }
#hitmarker.crit .hm-line { background: var(--amber); }

/* In-mission decisions share the same quiet instrument language. */
.modal-overlay { position: fixed; inset: 0; z-index: 30; padding: 30px; display: flex; align-items: center; justify-content: center; overflow-y: auto; background: rgba(8,11,12,.82); backdrop-filter: blur(5px); cursor: default; }
.modal-box { width: min(880px,100%); padding: 36px; background: #171b1d; border: 1px solid #53564d; border-radius: 3px; text-align: left; max-height: 100%; overflow-y: auto; }
.game-logo-tag { color: var(--amber); margin-bottom: 18px; }
.game-title { font-size: clamp(25px,3vw,36px); font-weight: 500; letter-spacing: -.04em; line-height: 1.35; margin-bottom: 13px; }
.game-subtitle { color: #adb5aa; font-size: 12px; line-height: 1.9; margin-bottom: 26px; }
.upgrade-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.upgrade-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 25px; background: #202526; border: 1px solid #51594e; border-top: 2px solid #9aafa0; border-radius: 2px; padding: 20px; text-align: left; min-height: 250px; transition: background .16s, border-color .16s; }
.upgrade-card.epic { border-top-color: var(--purple); }
.upgrade-card.legendary { border-top-color: var(--amber); }
.upgrade-card:hover { background: #2a302d; border-color: var(--amber); }
.upgrade-icon { font: 28px var(--font-mono); color: #c7d1c0; margin: 4px 0 22px; }
.upgrade-shortcut { position: absolute; right: 17px; top: 20px; color: #b5bda9; font: 10px var(--font-mono); border: 1px solid #626b5c; padding: 4px 7px; }
.upgrade-rarity { color: #b6b6c0; font-size: 9px; margin-bottom: 12px; letter-spacing: .05em; }
.legendary .upgrade-rarity { color: var(--amber); }
.upgrade-title { font-size: 17px; font-weight: 500; margin-bottom: 13px; }
.upgrade-desc { font-size: 11px; color: #b4bcaf; line-height: 1.9; }
.upgrade-level-tag { padding-top: 13px; border-top: 1px solid #41483d; font: 10px var(--font-mono); color: #d3d8c9; }
#pause-modal .modal-box { max-width: 470px; }
#gameover-modal .modal-box { max-width: 680px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px 16px; margin: 30px 0; }
.stat-box { border-top: 1px solid #485044; padding-top: 14px; }
.stat-box-label { color: var(--text-muted); font-size: 10px; margin-bottom: 10px; }
.stat-box-val { color: var(--text-main); font: 26px var(--font-mono); }

@media (min-width: 1500px) { .hangar-panel { width: 405px; margin-top: 155px; } .mech-select-card { padding: 22px 18px; } .hangar-story { top: 24%; } }
@media (max-width: 1100px) { .hangar-story h1 { font-size: 39px; } .hangar-panel { width: 335px; } .hangar-story { left: 4%; } .hangar-intro { max-width: 200px; font-size: 11px; } .hud-top { grid-template-columns: 215px minmax(0,1fr) 215px; gap: 12px; } .controls-hint { display: none; } .skill-slot { width: 115px; } }
@media (max-width: 900px) { .hangar { background: linear-gradient(180deg,rgba(11,14,15,.45),rgba(11,14,15,.15) 270px,rgba(11,14,15,.08) 360px,#101415 510px); } .hangar-header { padding: 22px 5%; position: relative; } .brand-edition { display: none; } .wordmark { font-size: 17px; } .hangar-story { position: relative; top: auto; left: auto; margin: 28px 5% 0; pointer-events: none; } .eyebrow { margin-bottom: 12px; font-size: 9px; } .hangar-story h1 { font-size: 32px; } .hangar-intro { max-width: 100%; margin-top: 14px; font-size: 11px; } .preview-caption { display: none; } .hangar-panel { width: auto; margin: 175px 5% 35px; padding: 22px; border: 1px solid #3b423a; background: #171c1d; } .hangar-footer { position: relative; margin: 0 5%; left: auto; right: auto; font-size: 8px; } .selection-hint { display: none; } .hud-top { grid-template-columns: 190px minmax(0,1fr) 190px; gap: 8px; } .wave-badge { flex-direction: column; gap: 5px; padding: 8px; } .wave-divider { display: none; } #map-event-hud { padding: 7px; } .event-top-row { font-size: 9px; } #hud-layer { padding: 12px; } .upgrade-card { padding: 17px; } }
@media (max-width: 600px) { .hangar-panel { margin-top: 190px; padding: 19px; } .hangar-panel h2 { font-size: 24px; } .mech-card-title { font-size: 14px; } .mech-card-title span { font-size: 9px; } .mech-select-card { gap: 10px; padding: 16px 12px; } .loadout-stats div + div { padding-left: 12px; } .hangar-footer > span:nth-child(2) { display: none; } .hud-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; } .hud-center-top { grid-column: 1 / -1; grid-row: 2; gap: 6px; } .wave-badge { flex-direction: row; width: auto; padding: 7px 12px; } #map-event-hud { width: min(100%,330px); } .hud-card { padding: 10px; } .mech-name { font-size: 9px; } .mech-header { gap: 4px; } .score-value { font-size: 17px; } .style-rank-title { display: none; } .style-rank-letter { font-size: 26px; } .quick-toggles { gap: 4px; } .hud-btn { font-size: 8px; min-height: 30px; } .radar-card { width: 65px; height: 65px; } .radar-label { display: none; } .hud-bottom { gap: 8px; } .skill-dock { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(75%,310px); gap: 4px; } .skill-slot { width: auto; padding: 8px; } .skill-top { margin-bottom: 7px; } .skill-name { font-size: 9px; } .skill-key { font-size: 7px; } .skill-status { font-size: 8px; } .upgrade-grid { grid-template-columns: 1fr; } .upgrade-card { min-height: 0; padding: 17px; gap: 13px; } .upgrade-icon { display: none; } .upgrade-rarity { margin-bottom: 8px; padding-right: 24px; } .upgrade-title { font-size: 16px; margin-bottom: 8px; } .modal-overlay { padding: 18px; align-items: flex-start; } .modal-box { padding: 23px; margin: auto 0; } .stats-grid { grid-template-columns: repeat(2,1fr); } #center-banner { top: 42%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-height: 800px) and (min-width: 901px) {
  .hangar-header { padding-top: 20px; padding-bottom: 20px; }
  .hangar-panel { margin-top: 90px; margin-bottom: 28px; }
  .section-label { padding-bottom: 12px; }
  .hangar-panel h2 { margin-top: 15px; font-size: 24px; }
  .panel-intro { display: none; }
  .mech-grid { margin-top: 20px; }
  .mech-select-card { padding: 12px 15px; }
  .mech-copy { gap: 6px; }
  .loadout-detail { margin: 18px 0; }
  #loadout-desc { margin: 9px 0 13px; min-height: 0; }
  .loadout-stats dd { font-size: 19px; }
  .launch-button { min-height: 48px; }
  .field-guide { margin-top: 14px; }
  .field-guide summary { padding: 12px 0; }
}
.skill-dock { pointer-events: auto; }
button.skill-slot { text-align: left; }
button.skill-slot:hover { background: #2b302c; border-color: #a8b29d; }
button.skill-slot[aria-disabled="true"] { cursor: default; }
.hangar { scrollbar-width: none; }
.hangar::-webkit-scrollbar { display: none; }

/* Earn the upgrade in combat; choose the moment to install it. */
.upgrade-ready { position: fixed; left: 50%; bottom: 124px; z-index: 18; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; min-width: 234px; padding: 13px 16px; text-align: left; background: #232720; color: var(--text-main); border: 1px solid #95805d; border-radius: 3px; box-shadow: 0 8px 24px #0004; animation: upgrade-notice-in .3s ease-out both; }
.upgrade-ready:hover { background: #30352a; border-color: var(--amber); }
.upgrade-ready:active { transform: translateX(-50%); }
.upgrade-ready-mark { color: var(--amber); font-size: 26px; font-weight: 300; }
.upgrade-ready strong { display: block; font-size: 12px; font-weight: 500; color: var(--amber); }
.upgrade-ready small { display: block; font-size: 10px; margin-top: 5px; color: #bbc2b3; }
.upgrade-ready kbd { margin-left: auto; }
.upgrade-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
#upgrade-feedback { font-size: 11px; color: var(--text-muted); line-height: 1.7; }
.upgrade-footer .btn-secondary { font-size: 11px; min-height: 38px; padding: 9px 13px; white-space: nowrap; }
.upgrade-footer kbd { margin-left: 10px; font-size: 9px; }
#upgrade-modal:not(.hidden) { animation: upgrade-overlay-in .28s ease-out both; }
#upgrade-modal:not(.hidden) .upgrade-card { animation: upgrade-card-in .28s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--card-order) * 45ms); transition: background .16s, border-color .16s, opacity .22s; }
#upgrade-modal.confirming .upgrade-card:not(.chosen) { opacity: .32; }
#upgrade-modal.confirming .upgrade-card.chosen { border-color: var(--amber); background: #34372a; }
#upgrade-modal.confirming #upgrade-feedback { color: var(--amber); }
#upgrade-modal.leaving { animation: upgrade-overlay-out .18s ease-in both; pointer-events: none; }
#upgrade-modal.leaving .upgrade-card { animation: none; }
@keyframes upgrade-notice-in { from { opacity: 0; margin-bottom: -6px; } to { opacity: 1; margin-bottom: 0; } }
@keyframes upgrade-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes upgrade-overlay-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes upgrade-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .upgrade-ready { bottom: 166px; min-width: 220px; padding: 11px 14px; } .upgrade-footer { align-items: flex-start; flex-direction: column; gap: 12px; } }
