/* Match presentation, loaded after screen-specific layout styles. Visibility,
   pointer lock, team colours and live meter values remain owned by game code. */

/* Panels and typography */
#scoreboard, #settings-panel, #class-panel, #team-panel, #tut-card,
#ms-table, #fullmap-frame, .overlay-slab {
  background: var(--ui-surface);
  border: var(--ui-border-width) solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  color: var(--ui-text);
}
#scoreboard { backdrop-filter: none; -webkit-backdrop-filter: none; }
#settings-panel::before, #settings-panel::after, #fullmap-frame::before { content: none; }
#fullmap-frame::after { border-color: var(--ui-border-hi); border-radius: 4px; box-shadow: none; }
#settings-panel h2, #class-panel h2, #team-panel h2, #tut-title,
.overlay-slab h2, #sb-mode, #ms-headline, #death-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 3px #0008;
}
#settings-panel h2, #class-panel h2, #team-panel h2, #tut-title,
.overlay-slab h2 { color: var(--ui-text-hi); font-size: clamp(22px, 2vw, 30px); }
#death-panel h2 { color: var(--ui-danger); }
#ms-headline { font-size: clamp(30px, 4vw, 60px); color: var(--ui-gold-text); }
#match-summary #ms-subline { font-family: var(--font-body); color: var(--ui-muted); letter-spacing: .5px; text-shadow: none; }
.overlay-prompt, .team-option-count, .tut-class-desc { font-style: normal; }
:where(#hud, #settings-panel, #shop-panel, #death-panel, #build-menu-panel,
  #class-panel, #team-panel, #tutorial, #match-summary, #resume-overlay, #quit-confirm) {
  scrollbar-color: #697174 var(--ui-well);
  scrollbar-width: thin;
}
:where(#hud, #settings-panel, #shop-panel, #death-panel, #build-menu-panel,
  #class-panel, #team-panel, #tutorial, #match-summary, #resume-overlay, #quit-confirm)
  :is(button, input, select, textarea, [role='button']):focus-visible {
  outline: 3px solid var(--ui-gold-edge);
  outline-offset: 2px;
}

/* Actions match PLAY NOW and the menu's quieter secondary buttons. */
.btn-carved, #settings-panel .settings-close, #tut-buttons #tut-next, #ms-lobby, #asset-retry {
  background: var(--ui-gold-fill);
  border: var(--ui-border-width) solid var(--ui-gold-edge);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-gold-shadow);
  color: #10110e;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .5px;
  text-shadow: none;
  cursor: pointer;
}
.btn-carved:hover:not(:disabled), #settings-panel .settings-close:hover:not(:disabled),
#tut-next:hover:not(:disabled), #ms-lobby:hover:not(:disabled), #asset-retry:hover:not(:disabled) {
  border-color: var(--ui-gold-edge);
  box-shadow: var(--ui-gold-shadow);
  filter: brightness(1.12);
}
.btn-iron, #settings-panel .settings-reset, #settings-panel .preset-btn,
#tut-buttons #tut-skip, #tut-buttons #tut-prev, #class-close, #team-close, .onboard-skip {
  background: #262b2d;
  border: 1px solid var(--ui-border-hi);
  border-radius: var(--ui-radius-sm);
  box-shadow: none;
  color: var(--ui-text-hi);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .5px;
  text-shadow: none;
}
.btn-iron:hover:not(:disabled), #settings-panel .settings-reset:hover:not(:disabled),
#tut-buttons #tut-skip:hover, #tut-buttons #tut-prev:hover, #class-close:hover, #team-close:hover, .tb-btn:hover:not(:disabled) {
  background: var(--ui-hover);
  border-color: var(--ui-gold);
}

/* Compact HUD surfaces retain their existing anchors and transparent gaps. */
#health-bar, #score-pill, .resource-item, .inventory-slot, .bh-slot,
#arrow-type, #protected-badge, .voice-row, .kill-message, #fullmap-hint,
#capture-bar, .onboard-card, .loading-tip, #admin-badge,
#interact-prompt, #engine-load-prompt, #bandage-cue {
  background: var(--ui-hud-surface);
  border: 1px solid var(--ui-border-hi);
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-hud-shadow);
  color: var(--ui-text-hi);
}
#health-bar { border-radius: var(--ui-radius); padding: 12px 14px 10px; }
.bar-container, .capture-track, #breath-meter, #draw-meter, .bandage-cue-track {
  background: var(--ui-well);
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  box-shadow: inset 0 1px 3px #0007;
}
.health-fill { background: linear-gradient(180deg, #8fd49d, #4a9a63); }
.stamina-fill { background: var(--ui-gold-fill); }
.stamina-fill.low { background: linear-gradient(180deg, #9f7453, #714f3b); }
#draw-fill { background: var(--ui-faint); }
#draw-meter.full #draw-fill { background: var(--ui-gold-fill); }
#draw-meter.relaxing #draw-fill { background: var(--ui-border-hi); }
.bar-label { font-size: 12px; letter-spacing: .5px; }
.bar-value, .slot-count, .resource-item, #timer, #sb-timer { font-variant-numeric: tabular-nums; }
#armour-name { font-family: var(--font-body); font-size: 12px; letter-spacing: .3px; }
#score-pill { border-radius: var(--ui-radius); }
.score { font-family: var(--font-display); font-size: 24px; }
.team-label { font-family: var(--font-body); font-size: 9px; letter-spacing: .5px; color: var(--ui-muted); }
#map-name { font-size: 12px; letter-spacing: .5px; }
#phase-banner { border-radius: 0 0 var(--ui-radius) var(--ui-radius); font-size: 18px; letter-spacing: 1px; text-align: center; max-width: 44vw; }
.phase-build-hint {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  color: var(--ui-text-hi);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: none;
  text-shadow: 0 1px 3px #000, 0 1px 6px #000;
  pointer-events: none;
}
.inventory-slot { border-width: 2px; border-radius: var(--ui-radius); }
.inventory-slot.selected, .bh-slot.current {
  background: var(--ui-selected);
  border-color: var(--ui-gold);
  box-shadow: inset 0 0 0 1px #ffe0a133, var(--ui-hud-shadow);
}
.inventory-slot > span:first-child { font-family: var(--font-body); font-size: 12px; }
.bh-name { font-size: 13px; }
.bh-cost { font-family: var(--font-body); font-size: 11px; opacity: 1; color: var(--ui-muted); }
#arrow-type .at-name { font-size: 14px; letter-spacing: .5px; }
#protected-badge { color: var(--ui-gold-text); border-color: #a18b5d; font-size: 14px; }
#capture-bar { padding: 10px 14px; }
#capture-label { font-size: 14px; letter-spacing: .5px; }
#capture-counts { font-size: 12px; color: var(--ui-muted); }
#capture-bar.contested { border-color: var(--ui-gold); }
#king-health { background: var(--ui-gold-fill); }
#objective-arrow { color: var(--ui-gold); }
.effect-chip { background: var(--ui-well); box-shadow: 0 0 0 2px var(--ui-border); }
.effect-stacks { background: var(--ui-well); color: var(--ui-text-hi); border-radius: 3px; }
#contribution-points { color: var(--ui-gold-text); text-shadow: 0 1px 3px #000; }
#minimap-clip { border-color: #a18b5d; background: var(--ui-well); }
#minimap-place { font-size: 16px; letter-spacing: .5px; }
#minimap-coords { color: var(--ui-muted); }
#fullmap-hint { font-size: 14px; letter-spacing: .5px; }
.fm-dir { font-size: 16px; }

/* Messages, prompts and guidance */
.kill-message { border-left: 3px solid var(--ui-border-hi); }
.kill-message.mine { background: var(--ui-selected); border-left-color: var(--ui-gold); }
.voice-row.voice-talking { border-left: 3px solid var(--ui-good); }
.voice-timer, #kill-banner .kb-multi, #kill-banner .kb-gold,
#kill-banner .kb-bonus { color: var(--ui-gold-text); }
.voice-bar-fill { background: var(--ui-gold-fill); }
#kill-banner .kb-header { letter-spacing: .5px; font-size: 14px; }
#kill-banner .kb-victim, #kill-banner .kb-assist { font-family: var(--font-body); }
/* The gold a kill earned reads in the body face: the pixel display face blurred
   the numbers at this size (Trello). */
#kill-banner .kb-gold, #kill-banner .kb-bonus { font-family: var(--font-body); letter-spacing: .3px; }
#kill-banner .kb-tag { border-radius: 4px; background: var(--ui-well); border-color: var(--ui-border-hi); }
.streak-line.streak { color: var(--ui-gold-text); letter-spacing: 1px; text-shadow: 0 2px 6px #000c; }
#hint-line { font-size: 14px; letter-spacing: .5px; text-shadow: 0 2px 4px #000; }
#hitmarker-text { font-family: var(--font-display); letter-spacing: .5px; }
.loading-tip-label { font: 600 14px var(--font-display); color: var(--ui-gold-text); letter-spacing: 1px; }
.loading-indicator { font-family: var(--font-display); font-size: 15px; letter-spacing: 1px; }
.loading-tip-nav kbd, .onboard-keys kbd, .onboard-skip kbd, .sb-key {
  background: #262b2d;
  border: 1px solid var(--ui-border-hi);
  border-bottom-width: 3px;
  border-radius: 4px;
  color: var(--ui-text-hi);
  font-family: var(--font-body);
  letter-spacing: .3px;
}
.onboard-card { border-left: 3px solid var(--ui-gold); border-radius: var(--ui-radius); }
.onboard-head { font-size: 13px; letter-spacing: .5px; }
.onboard-card.is-done { border-color: var(--ui-good); box-shadow: var(--ui-hud-shadow); }
.onboard-card.is-done .onboard-text { color: var(--ui-good); }
.onboard-skip { font-size: 14px; }
#chat-box { border-radius: var(--ui-radius); }
#chat-box.is-open { background: var(--ui-hud-surface); border-color: var(--ui-border-hi); box-shadow: var(--ui-hud-shadow); }
#chat-box #chat-input, .bug-report-category, .bug-report-text {
  background: #24292c;
  border: 1px solid var(--ui-border-hi);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text-hi);
  box-shadow: none;
}
#chat-box #chat-input:focus { border-color: var(--ui-gold); box-shadow: none; }
#chat-box.is-team #chat-input { color: var(--chat-team-text); border-color: var(--chat-team-edge); }
#chat-box.is-team #chat-input:focus { box-shadow: none; }
#chat-input::placeholder { color: var(--ui-faint); }
#chat-mode { border-radius: var(--ui-radius-sm); font-size: 14px; letter-spacing: .5px; }
#chat-mode[data-channel='team'] { box-shadow: none; }
.chat-tag { font-size: 13px; letter-spacing: .3px; }
.chat-message.chat-line--system { color: var(--ui-gold-text); }
.chat-bubble { --bubble-background: #202527f5; border-color: var(--ui-border-hi); color: var(--ui-text-hi); box-shadow: var(--ui-hud-shadow); border-radius: var(--ui-radius); }
.chat-bubble--team { --bubble-background: #183527f5; border-color: var(--chat-team-edge); color: var(--chat-team-text); }

/* Shop, restock and build cards. The embedded shop stays part of the spawn sheet. */
.shop-header, #build-menu-panel .bm-header { padding-bottom: 14px; border-bottom: 1px solid var(--ui-rule); }
.shop-card { background: var(--ui-card); border: 2px solid var(--ui-border); border-radius: var(--ui-radius); box-shadow: inset 0 1px 0 #ffffff08; }
.shop-card:not(:disabled):hover { background: var(--ui-selected); border-color: var(--ui-gold); box-shadow: inset 0 0 0 1px #ffe0a133, var(--ui-hud-shadow); }
.shop-card:not(:disabled):active { background: var(--ui-hover); }
.shop-card:disabled { background: var(--ui-card); border-color: var(--ui-rule); color: var(--ui-muted); }
.shop-card.is-purchased { background: #202c26; border-color: #4f6c59; }
.shop-card.is-purchased .shop-card-price { color: var(--ui-good); }
.shop-card-name { font-family: var(--font-display); font-weight: 600; }
.shop-card-price { border-top-color: var(--ui-rule); }
.shop-wallet, .shop-style-pill, .shop-enchant-upgrade { border-radius: var(--ui-radius-sm); }
.shop-style-pill.is-active { background: var(--ui-selected); }
.shop-enchant-upgrade { background: var(--ui-selected); }
.shop-enchant-upgrade:not(:disabled):hover { background: var(--ui-hover); }
#build-menu-panel .bm-grid, #build-menu-panel .bm-detail,
#build-menu-panel .bm-cell, #build-menu-panel .bm-detail-icon,
#build-menu-panel .bm-cost-row, #build-menu-panel .bm-pill,
#build-menu-panel .bm-hint-inner { border-radius: var(--ui-radius-sm); }
#build-menu-panel .bm-cell-item.is-active { background: var(--ui-selected); box-shadow: inset 0 0 0 1px #ffe0a133; }
#build-menu-panel .bm-detail-icon { background: var(--ui-card); }
#build-menu-panel .bm-detail-name { font-family: var(--font-display); }
#build-menu-panel .bm-cost-label, #build-menu-panel .bm-hint-inner { color: var(--ui-text); }
#build-cost .bc-mode { background: var(--ui-hud-surface); border-color: var(--ui-gold); color: var(--ui-gold-text); font-family: var(--font-display); }
#build-cost .bc-item, #build-cost .bc-mode { border-radius: var(--ui-radius-sm); box-shadow: var(--ui-hud-shadow); }
#build-cost .bc-enough { background: #20382aeb; }
#build-cost .bc-short { background: #45252ceb; }

/* Class, team and respawn selection */
#class-options .party-class-btn { gap: 0; border: 2px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: var(--ui-card); overflow: hidden; }
#class-options .party-class-art { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#class-options .party-class-name { width: 100%; padding: 7px 4px; background: #101517b8; letter-spacing: .3px; font-size: 14px; }
#class-options .party-class-btn[aria-pressed='true'] { border-color: var(--ui-gold); background: var(--ui-selected); }
#class-options .party-class-btn[aria-pressed='true'] .party-class-art { box-shadow: none; }
#class-options .party-class-btn:hover:not(:disabled) { border-color: var(--ui-gold); }
.team-option, .tut-class, .ms-award, .ping-wedge { background: var(--ui-card); border-color: var(--ui-border); border-radius: var(--ui-radius-sm); }
.team-option.current, .team-option:hover { background: var(--ui-selected); border-color: var(--ui-gold); box-shadow: none; }
#spawn-map-wrap { border: 2px solid var(--ui-border-hi); border-radius: var(--ui-radius-sm); }
#death-panel p { color: var(--ui-muted); }
#death-panel #spawn-fallback-note { color: var(--ui-gold-text); }

/* Settings: match the menu's tabs, fields and gold sliders in the overlay too. */
#settings-panel .settings-header, #settings-panel .settings-footer { border-color: var(--ui-rule); }
#settings-panel .settings-tab { background: #24292c; border: 1px solid var(--ui-rule); border-radius: var(--ui-radius-sm); font-family: var(--font-display); color: var(--ui-muted); }
#settings-panel .settings-tab.active, #settings-panel .preset-btn.active { background: var(--ui-selected); border-color: var(--ui-gold); box-shadow: inset 0 -2px 0 var(--ui-gold); color: var(--ui-gold-text); }
#settings-panel .settings-tab .tab-icon, #settings-panel .header-gear { stroke: var(--ui-muted); }
#settings-panel .settings-tab.active .tab-icon { stroke: var(--ui-gold-text); }
#settings-panel .set-row { background: #191e20; border-color: var(--ui-rule); border-radius: var(--ui-radius-sm); min-height: 48px; height: auto; padding-block: 8px; }
#settings-panel .settings-pane-title { letter-spacing: 1px; font-size: 16px; color: var(--ui-gold-text); }
#settings-panel .settings-description { display: block; margin-top: 4px; color: var(--ui-faint); font-size: 12px; line-height: 1.4; }
#settings-panel .set-row input[type='range'] { background: linear-gradient(to right, var(--ui-gold) 0 var(--fill, 0%), #30363a var(--fill, 0%) 100%); accent-color: var(--ui-gold); }
#settings-panel .set-row input[type='range']::-webkit-slider-thumb { background: var(--ui-gold); width: 14px; border-radius: 3px; }
#settings-panel .set-row input[type='range']::-moz-range-thumb { background: var(--ui-gold); width: 14px; border-radius: 3px; }
#settings-panel .set-row input[type='checkbox'] { background: #30363a; border-color: var(--ui-border-hi); }
#settings-panel .set-row input[type='checkbox']:checked { background: #b39250; border-color: var(--ui-gold); }
#settings-panel .set-row input[type='checkbox']::before { background: var(--ui-muted); }
#settings-panel .set-row input[type='checkbox']:checked::before { background: var(--ui-text-hi); }
#settings-panel .crosshair-swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#settings-panel .crosshair-preview { font: 36px monospace; padding: 6px 16px; border: 1px solid var(--ui-border); border-radius: 4px; }
#settings-panel .crosshair-swatch { width: 24px; height: 24px; padding: 0; border: 2px solid transparent; cursor: pointer; border-radius: 3px; }
#settings-panel .crosshair-swatch[aria-pressed='true'] { border-color: var(--ui-gold-edge); box-shadow: 0 0 0 2px #a18b5d; }
#settings-panel .language-cards { display: grid; gap: 12px; width: 100%; }
#settings-panel .language-card { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #262c2e; border: 2px solid var(--ui-border-hi); border-radius: var(--ui-radius-sm); color: var(--ui-text); cursor: pointer; }
#settings-panel .language-card[aria-pressed='true'] { color: var(--ui-gold-text); border-color: var(--ui-gold); }

/* Scoreboards and all three match-recap stages */
#sb-header { background: #10151780; border-color: var(--ui-rule); }
#sb-mode { letter-spacing: 1px; text-indent: 0; padding-inline: 80px; }
#sb-mode-sub { letter-spacing: .3px; color: var(--ui-muted); }
#sb-footer { border-color: var(--ui-rule); letter-spacing: .5px; }
#scoreboard thead th { background: #191e20; }
#scoreboard th, #ms-table th { font-family: var(--font-body); font-size: clamp(11px, .8vw, 15px); letter-spacing: .5px; color: var(--ui-muted); opacity: 1; }
.sb-col h3 { font-size: 17px; letter-spacing: .5px; }
#scoreboard .sb-act { background: #262b2d; border-color: var(--ui-border-hi); border-radius: 4px; }
#scoreboard .sb-act:hover { background: var(--ui-selected); border-color: var(--ui-gold); }
#scoreboard .sb-mute.on, #scoreboard .sb-reason { border-color: var(--ui-danger); }
#ms-table { border-width: 2px; }
#match-summary .progression-surface { background: var(--ui-surface); border: 2px solid var(--ui-border); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
#match-summary .progression-tabs { background: var(--ui-well); border-color: var(--ui-border); border-radius: var(--ui-radius-sm); }
#match-summary .progression-tabs button { border-radius: 4px; }
#match-summary .progression-tabs button[aria-pressed='true'] { background: var(--ui-selected); color: var(--ui-gold-text); box-shadow: inset 0 -2px 0 var(--ui-gold); }
#match-summary .progression-track-fill { background: var(--ui-gold-fill); box-shadow: none; }
#match-summary .progression-unlock-card { background: var(--ui-card); border-radius: var(--ui-radius); }
#match-summary .progression-unlock-card[data-unlocked='true'] { border-color: var(--ui-gold); }
#match-summary .progression-stat { background: var(--ui-well); border-color: var(--ui-rule); border-radius: var(--ui-radius-sm); }
#match-summary .award-plate { background: radial-gradient(ellipse at 50% 0,#c1a16a26,transparent 65%),var(--ui-surface); border-color:#8d7853; border-radius:var(--ui-radius); box-shadow:inset 0 1px 0 #ffe0a126,inset 0 0 0 3px #10131566,0 8px 20px #0008; }
#match-summary .award-plate h3 { font-family: var(--font-display); }
#match-summary .award-mvp { background:radial-gradient(ellipse at 50% 0,#d2aa4d3d,transparent 70%),var(--ui-surface); border-color:var(--ui-gold); box-shadow:inset 0 1px 0 #ffe0a163,inset 0 0 0 3px #10131566,0 8px 24px #0009,0 0 18px #f3cb8012; }

/* The emote chips keep the HUD surface; Q and F use procedural stone. */
.ping-wedge { background: var(--ui-hud-surface); border-color: var(--ui-border-hi); box-shadow: var(--ui-hud-shadow); border-radius: var(--ui-radius); }
.ping-wedge.hovered { background: var(--ui-selected); border-color: var(--ui-gold); color: var(--ui-gold-text); box-shadow: var(--ui-hud-shadow); }
.pw-label { font-family: var(--font-display); font-size: 12px; }
.q-menu { color: var(--ui-text-hi); }

/* Small runtime-created indicators use these classes instead of inline paint. */
#interact-prompt, #engine-load-prompt, #bandage-cue { position: fixed; left: 50%; transform: translateX(-50%); padding: 3px 10px; max-width: 80vw; text-align: center; font: 15px/1.2 var(--font-body); pointer-events: none; z-index: 50; display: none; }
#interact-prompt { top: calc(50% + 28px); }
/* First-person fire and frost bands (game/StatusScreenFx.js): over the 3D view
   and #effect-tint (45), under the HUD. */
#status-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 47; }
#status-pulse { position: fixed; inset: 0; pointer-events: none; z-index: 46; opacity: 0; }
#status-pulse.fire { background: radial-gradient(ellipse at 50% 75%, rgba(255,120,30,0) 28%, rgba(255,110,20,.55) 100%); }
#status-pulse.ice { background: radial-gradient(ellipse at 50% 70%, rgba(180,225,255,0) 30%, rgba(200,235,255,.6) 100%); }
#status-pulse.steam { background: rgba(190,220,235,.35); }
/* Keys in a prompt line are caps, like the key tips (InteractTargets.promptParts). */
#interact-prompt, #engine-load-prompt { padding: 4px 10px; line-height: 24px; }
#interact-prompt .tb-kbd, #engine-load-prompt .tb-kbd { height: 20px; min-width: 20px; margin-right: 6px; vertical-align: 1px; font-size: 12px; }
/* The key tips at the bottom right (ClassHints.js): one HUD panel, like the rest. */
#instructions {
  padding: 10px 12px;
  gap: 6px;
  background: var(--ui-hud-surface);
  border: 1px solid var(--ui-border-hi);
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-hud-shadow);
}
#instructions .instr-row { color: var(--ui-text-hi); font: 13px/1.2 var(--font-body); letter-spacing: .3px; text-shadow: none; }
/* The one-line hint under the crosshair, in the same panel, plain case. */
#hint-line {
  padding: 4px 12px;
  background: var(--ui-hud-surface);
  border: 1px solid var(--ui-border-hi);
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-hud-shadow);
  color: var(--ui-text-hi);
  text-transform: none;
  text-shadow: none;
}
#engine-load-prompt { top: calc(50% + 54px); font-size: 14px; }
#bandage-cue { top: calc(50% + 56px); flex-direction: column; align-items: center; gap: 4px; padding: 6px 10px; font-size: 13px; }
.bandage-cue-track { width: 132px; height: 6px; overflow: hidden; }
.bandage-cue-fill { width: 0%; height: 100%; background: var(--ui-gold-fill); }
#admin-badge { position: fixed; left: 12px; bottom: 8px; z-index: 60; padding: 3px 8px; font: 600 11px/1.4 var(--font-body); letter-spacing: .5px; color: var(--ui-gold-text); pointer-events: none; text-transform: uppercase; }
.capture-notification { position: fixed; top: 30%; left: 50%; transform: translateX(-50%); max-width: 80vw; padding: 14px 24px; text-align: center; font: 600 clamp(20px, 2.4vw, 32px)/1.2 var(--font-display); background: var(--ui-hud-surface); border: 2px solid currentColor; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); text-shadow: 0 2px 3px #0008; animation: pulse 2s ease-out forwards; pointer-events: none; z-index: 200; }
.capture-notification[data-team='yellow'] { color: #f1c40f; }
.capture-notification[data-team='blue'] { color: #9fc0ee; }
.capture-notification-worth { margin-top: 6px; color: var(--ui-text-hi); font: 600 14px var(--font-body); }

/* Keep modal contents reachable at smaller desktop sizes and UI scales. */
#class-panel, #team-panel, #tut-card, .overlay-slab { min-width: 0; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
#death-panel { overflow-y: auto; }
@media (max-width: 1100px) {
  #build-menu-panel .bm-categories { flex-basis: 170px; }
  #build-menu-panel .bm-grid { flex-basis: 272px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #build-menu-panel .bm-detail-top { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  #death-panel.with-restock { flex-direction: column; }
  #death-panel.with-restock #death-restock { flex: 0 0 auto; border-left: 0; border-top: 1px solid var(--ui-rule); padding: 18px 0 0; }
  #shop-panel.shop-embedded .shop-grid { max-height: 40vh; overflow-y: auto; }
  #build-menu-panel { overflow-y: auto; }
  #build-menu-panel .bm-body { flex-wrap: wrap; overflow-y: auto; }
  #build-menu-panel .bm-categories { flex: 1 0 100%; flex-direction: row; }
  #build-menu-panel .bm-cat { flex: 0 0 auto; }
  #build-menu-panel .bm-grid { flex: 1 1 260px; }
  #build-menu-panel .bm-cell { width: 100%; }
  #build-menu-panel .bm-detail { flex: 1 1 220px; }
  #build-menu-panel .bm-hint-inner { height: auto; flex-wrap: wrap; gap: 10px 18px; padding: 10px; }
  #phase-banner { max-width: 38vw; padding: 10px 14px; font-size: 15px; }
}
@media (max-width: 600px) {
  .overlay-slab { padding: 24px; }
  #settings-panel:not(.menu-settings-embedded) .set-row { flex-wrap: wrap; padding: 10px; }
  #settings-panel:not(.menu-settings-embedded) .set-row input[type='range'] { flex: 1 1 120px; }
  #settings-panel .settings-header { height: auto; min-height: 56px; gap: 12px; }
  #settings-panel .settings-reset { padding: 8px; letter-spacing: 0; }
  #sb-mode { padding-inline: 45px; }
  #build-menu-panel { padding: 16px; }
  #build-menu-panel .bm-header { gap: 8px; flex-wrap: wrap; }
  #build-menu-panel .bm-resources { gap: 4px; }
  #build-menu-panel .bm-pill { padding-inline: 8px; }
  #death-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-card, .bar-fill, .radial-item, .radial-category, .ping-wedge { transition: none; }
  .capture-notification, .kill-message, .streak-line { animation: none; }
}
