/* HYPERCYCLE: pixel UI over the low-res 3D arena. --px is one art pixel in CSS
   pixels; everything pixel-art scales by whole multiples of it. */
:root {
  --px: 3;
  --pink: #ff3fb4;
  --cyan: #1ff2ff;
  --orange: #ff8c1a;
  --lime: #9dff2e;
  --purple: #a45bff;
  --gold: #ffd23a;
  --ink: #0b0620;
  --panel: rgba(13, 6, 32, 0.9);
  --line: #4a2a7a;
  --text: #f6ecff;
  --muted: #b8a6d8;
  --unit: calc(var(--px) * 1px);
  --fs: max(9px, calc(var(--px) * 3px));
  --fs-big: calc(var(--px) * 6px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: 'Press Start 2P', ui-monospace, 'Courier New', monospace;
  font-size: var(--fs);
  line-height: 1.6;
  -webkit-font-smoothing: none;
  user-select: none;
}

#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
[hidden] { display: none !important; }

.screen, #hud, .overlay { position: fixed; inset: 0; z-index: 10; }

button, select, input { font: inherit; color: inherit; }

button {
  cursor: pointer;
  border: var(--unit) solid var(--line);
  background: #1a0c38;
  padding: calc(var(--unit) * 3) calc(var(--unit) * 5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 var(--unit) 0 #050210, inset 0 var(--unit) 0 rgba(255, 255, 255, 0.08);
}
button:hover, button:focus-visible { border-color: var(--cyan); color: #fff; outline: none; background: #24104c; }
button:active { transform: translateY(var(--unit)); box-shadow: none; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.primary { background: linear-gradient(#ff5ac0, #c2187f); border-color: #ffb6e4; color: #fff; text-shadow: 0 var(--unit) 0 #6a0a44; }
button.primary:hover, button.primary:focus-visible { background: linear-gradient(#ff7ad0, #e0209a); border-color: #fff; }
button.primary.on { background: linear-gradient(#b4ff5a, #4fb814); border-color: #e6ffc8; text-shadow: 0 var(--unit) 0 #1f4a06; color: #0b1a02; }
button.small { padding: calc(var(--unit) * 2) calc(var(--unit) * 3); font-size: max(8px, calc(var(--px) * 2.5px)); }
button.ghost { background: transparent; }
button.big { padding: calc(var(--unit) * 4) calc(var(--unit) * 10); font-size: calc(var(--px) * 4px); }

input, select {
  background: #07031a;
  border: var(--unit) solid var(--line);
  padding: calc(var(--unit) * 2.5) calc(var(--unit) * 3);
  text-transform: uppercase;
  outline: none;
}
input:focus, select:focus { border-color: var(--cyan); }

.eyebrow { margin: 0 0 calc(var(--unit) * 2); color: var(--cyan); font-size: max(8px, calc(var(--px) * 2.5px)); letter-spacing: 0.12em; }
.muted { color: var(--muted); }
.hint { color: var(--muted); margin-left: 1em; }
.status { min-height: 1.6em; color: var(--muted); margin: 0; }
.status.ok { color: var(--lime); }
.status.bad { color: var(--orange); }
.keys { color: var(--muted); font-size: max(8px, calc(var(--px) * 2.5px)); margin: 0; }
.keys b { color: var(--text); font-weight: normal; }
.title-stack > .keys { max-width: 100%; text-align: center; line-height: 2; }
.jump-hint { color: var(--cyan); }

/* ---- title ---- */
#title { display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 16px; background: radial-gradient(ellipse at 50% 60%, rgba(11, 6, 32, 0.15), rgba(11, 6, 32, 0.6)); }
.title-stack { display: flex; flex-direction: column; align-items: center; gap: calc(var(--unit) * 5); max-width: 100%; }
.title-stack { margin: auto 0; width: min(780px, 100%); flex-shrink: 0; }
#logo { width: calc(var(--unit) * 260); max-width: calc(100vw - 32px); height: auto; filter: drop-shadow(0 0 calc(var(--unit) * 6) rgba(255, 63, 180, 0.55)); }
.tagline { margin: 0; color: var(--gold); letter-spacing: 0.3em; text-shadow: 0 0 calc(var(--unit) * 3) rgba(255, 210, 58, 0.6); }
.field { display: flex; align-items: center; gap: calc(var(--unit) * 3); }
.field span { color: var(--muted); }
.field input { width: 16ch; }
.menu { display: grid; gap: calc(var(--unit) * 3); width: min(calc(var(--unit) * 130), calc(100vw - 32px)); }
.menu > button { width: 100%; }
.menu-step { display: grid; gap: calc(var(--unit) * 3); }
.menu-step > button { width: 100%; }
.edition-choice { min-height: 72px; display: grid; gap: 9px; text-align: center; }
.edition-choice small { font-size: 7px; line-height: 1.8; color: var(--muted); }
.edition-label { color: var(--cyan); margin: 0; letter-spacing: 0.1em; }
.menu-help { max-width: 720px; }
.join { display: grid; grid-template-columns: 1fr auto; gap: calc(var(--unit) * 2); }
.join input { width: 100%; letter-spacing: 0.3em; text-align: center; }
.menu.offline .online, .menu.offline .online-row { display: none; }

/* ---- lobby ---- */
#lobby { display: flex; flex-direction: column; gap: calc(var(--unit) * 3); padding: 12px 16px 16px; overflow-y: auto; background: rgba(11, 6, 32, 0.55); }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.lobby-head h1 { margin: 0; font-size: calc(var(--px) * 7px); color: var(--gold); letter-spacing: 0.25em; text-shadow: 0 0 calc(var(--unit) * 4) rgba(255, 210, 58, 0.5); }
.lobby-head-actions { display: flex; gap: 8px; }
.street-wrap { display: flex; justify-content: center; overflow-x: auto; }
#street { cursor: pointer; border: var(--unit) solid var(--line); background: #12062a; flex: none; }
.lobby-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: calc(var(--unit) * 3); align-items: start; }
.lobby-body > div { background: var(--panel); border: var(--unit) solid var(--line); padding: calc(var(--unit) * 4); }
.rider-card { display: flex; gap: calc(var(--unit) * 4); align-items: flex-start; }
#rider-portrait { width: calc(var(--unit) * 64); height: calc(var(--unit) * 64); flex: none; }
.rider-card h2 { margin: 0 0 calc(var(--unit) * 2); font-size: calc(var(--px) * 5px); }
.rider-card p { margin: 0 0 calc(var(--unit) * 2); }
.rider-card > div { min-width: 0; }
#roster { list-style: none; margin: 0 0 calc(var(--unit) * 3); padding: 0; display: grid; gap: calc(var(--unit) * 1.5); }
#roster li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: calc(var(--unit) * 2.5); padding: calc(var(--unit) * 1) calc(var(--unit) * 2); background: rgba(255, 255, 255, 0.03); border-left: calc(var(--unit) * 1.5) solid var(--c, #fff); }
#roster canvas { width: calc(var(--unit) * 16); height: calc(var(--unit) * 16); }
#roster .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#roster .tag { font-size: max(7px, calc(var(--px) * 2px)); padding: 1px 4px; border: 1px solid currentColor; margin-left: 0.6em; color: var(--muted); }
#roster .tag.host { color: var(--gold); }
#roster .state { color: var(--muted); font-size: max(8px, calc(var(--px) * 2.5px)); }
#roster .state.ready { color: var(--lime); }
#roster select { padding: 2px 4px; font-size: max(8px, calc(var(--px) * 2.3px)); }
#roster .remove { padding: 2px 6px; }
.host-tools { display: flex; flex-wrap: wrap; gap: calc(var(--unit) * 2); align-items: center; }
.toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: max(8px, calc(var(--px) * 2.3px)); }
.ready-card { display: flex; flex-direction: column; align-items: center; gap: calc(var(--unit) * 3); text-align: center; }
.ready-card p { margin: 0; }
.arena-picker { display: grid; width: 100%; gap: calc(var(--unit) * 3); padding-bottom: calc(var(--unit) * 4); border-bottom: 1px solid var(--line); }
.arena-picker .eyebrow { margin: 0; }
#arena-map { width: 100%; min-width: 0; color: var(--cyan); }
#arena-map:disabled { opacity: 1; color: var(--muted); }
#arena-description, #arena-host-hint { line-height: 1.8; }
.small-print { font-size: max(7px, calc(var(--px) * 2.2px)); }

/* ---- HUD ---- */
#hud { pointer-events: none; }
#hud button { pointer-events: auto; }
#aim-reticle { position: fixed; width: 18px; height: 18px; transform: translate(-50%, -50%); pointer-events: none; color: var(--cyan); filter: drop-shadow(0 1px 2px #09041b); }
#aim-reticle::before, #aim-reticle::after { content: ''; position: absolute; background: currentColor; box-shadow: 0 0 5px rgba(0, 255, 238, 0.65); }
#aim-reticle::before { left: 0; top: 8px; width: 18px; height: 2px; }
#aim-reticle::after { left: 8px; top: 0; width: 2px; height: 18px; }
#aim-reticle { transition: transform 160ms ease-out, color 160ms ease-out; }
#aim-reticle.hit { color: #ff5fa2; transform: translate(-50%, -50%) rotate(45deg) scale(1.4); transition: none; }
body.aiming-active #view, body.aiming-active #hud, body.aiming-active #hud * { cursor: none; }
#modern-touch { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
#modern-touch > div { display: flex; gap: 8px; }
#modern-touch button { min-width: 56px; min-height: 48px; padding: 7px 10px; font-size: 8px; background: rgba(11, 6, 32, 0.84); touch-action: none; }
#modern-touch button.held, #fire.held { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
body.modern-edition.in-game #view { touch-action: none; }
body.modern-edition.in-game #minimap-panel { bottom: 100px; }
body.modern-edition.in-game .icon-button { bottom: calc(160px + var(--unit) * 96); }
#chips { position: absolute; left: 12px; top: 12px; margin: 0; padding: 0; list-style: none; display: grid; gap: calc(var(--unit) * 1.5); }
#chips li { display: grid; grid-template-columns: auto auto; gap: calc(var(--unit) * 2); align-items: center; background: rgba(11, 6, 32, 0.72); border-left: var(--unit) solid var(--c); padding: var(--unit) calc(var(--unit) * 2) var(--unit) var(--unit); min-width: calc(var(--unit) * 56); }
#chips li.dead { opacity: 0.4; filter: grayscale(0.7); }
#chips li.you { background: rgba(40, 14, 70, 0.85); }
#chips canvas { width: calc(var(--unit) * 20); height: calc(var(--unit) * 20); }
#chips .name { font-size: max(8px, calc(var(--px) * 2.4px)); white-space: nowrap; color: var(--c); }
#chips .cpu { font-size: max(6px, calc(var(--px) * 1.8px)); border: 1px solid var(--muted); color: var(--muted); padding: 0 3px; margin-left: 4px; vertical-align: middle; }
#chips .pips { display: flex; gap: var(--unit); margin: 2px 0; }
#chips .pips i { width: calc(var(--unit) * 3); height: calc(var(--unit) * 3); background: #2a1a4a; }
#chips .pips i.on { background: var(--c); box-shadow: 0 0 calc(var(--unit) * 2) var(--c); }
#chips .mini { height: var(--unit); width: calc(var(--unit) * 30); background: #2a1a4a; }
#chips .mini b { display: block; height: 100%; background: var(--c); }
#clock { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-shadow: 0 var(--unit) 0 #000; }
#timer { font-size: calc(var(--px) * 7px); font-weight: normal; color: #fff; }
#clock.sudden #timer, #clock.sudden #clock-sub { color: #ff4a6a; animation: blink 0.5s steps(2) infinite; }
#round-label, #clock-sub { color: var(--muted); font-size: max(8px, calc(var(--px) * 2.4px)); }
#feed { position: absolute; right: 12px; top: 12px; margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; justify-items: end; font-size: max(8px, calc(var(--px) * 2.4px)); }
#feed li { background: rgba(11, 6, 32, 0.72); padding: 3px 8px; }
#banner { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-size: calc(var(--px) * 18px); line-height: 1.1; pointer-events: none; }
#banner .chrome { display: inline-block; }
#banner small { display: block; font-size: max(9px, calc(var(--px) * 3.5px)); text-shadow: 0 var(--unit) 0 #000; color: var(--muted); margin-top: calc(var(--unit) * 4); }
#callout { position: absolute; left: 0; right: 0; top: 21%; text-align: center; pointer-events: none; }
#callout.out { opacity: 0; transition: opacity 220ms ease-in; }
#callout span { display: inline-block; font-size: max(16px, calc(var(--px) * 9px)); color: #fff; text-shadow: 0 var(--unit) 0 #000, 0 0 10px #ff5fa2; }
#callout small { display: block; font-size: max(9px, calc(var(--px) * 4px)); text-shadow: 0 var(--unit) 0 #000; margin-top: calc(var(--unit) * 3); }
#me-panel { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: calc(var(--unit) * 4); align-items: center; background: rgba(11, 6, 32, 0.72); padding: calc(var(--unit) * 2) calc(var(--unit) * 4); border: var(--unit) solid var(--line); }
.meter { display: flex; align-items: center; gap: calc(var(--unit) * 2); }
.meter-label { color: var(--muted); font-size: max(8px, calc(var(--px) * 2.4px)); }
.bar { width: calc(var(--unit) * 60); height: calc(var(--unit) * 4); background: #1a0c38; border: var(--unit) solid #3a2266; }
.bar i { display: block; height: 100%; width: 100%; background: var(--c, var(--cyan)); box-shadow: 0 0 calc(var(--unit) * 3) var(--c, var(--cyan)); }
.jump { padding: 2px 8px; border: var(--unit) solid var(--line); color: var(--muted); font-size: max(8px, calc(var(--px) * 2.4px)); background: linear-gradient(to right, rgba(157, 255, 46, 0.25) var(--fill, 0%), transparent var(--fill, 0%)); }
.jump.ready { color: #0b1a02; background: var(--lime); border-color: #e6ffc8; }
#rail-control { --rail-color: var(--cyan); display: grid; gap: 4px; width: 98px; flex: none; text-align: center; }
#fire { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; padding: 5px 7px; color: var(--rail-color); border-color: var(--rail-color); touch-action: manipulation; }
#fire > span { font-size: 11px; }
#fire small { font-size: 6px; line-height: 1.4; white-space: nowrap; }
#fire:disabled { opacity: 1; cursor: default; color: var(--muted); border-color: var(--line); }
#rail-status { color: var(--rail-color); font-size: 8px; line-height: 1.5; min-height: 12px; }
.rail-meter { display: block; height: 3px; background: #33204e; }
.rail-meter i { display: block; height: 100%; width: var(--rail-fill, 100%); background: var(--rail-color); }
#rail-control[data-state="charging"] { --rail-color: var(--gold); }
#rail-control[data-state="charging"] #fire { color: var(--gold); border-color: var(--gold); }
#rail-control[data-state="cooldown"] { --rail-color: var(--muted); }
#spectate { position: absolute; left: 50%; bottom: calc(18px + var(--unit) * 18); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(11, 6, 32, 0.72); padding: 6px 12px; }
#spectate small { color: var(--muted); font-size: max(7px, calc(var(--px) * 2px)); }
#minimap-panel { position: absolute; right: 12px; bottom: 12px; width: calc(var(--unit) * 96 * 1.5); background: rgba(8, 3, 22, 0.85); border: var(--unit) solid var(--line); }
#minimap { display: block; width: 100%; aspect-ratio: 8 / 5; image-rendering: pixelated; }
#minimap-level, #minimap-ramp-key { margin: 0; padding: 5px; font-size: max(8px, calc(var(--px) * 2.4px)); line-height: 1.7; text-align: center; }
#minimap-level { color: var(--text); border-bottom: 1px solid var(--line); }
#minimap-ramp-key { color: var(--muted); border-top: 1px solid var(--line); }
#minimap-ramp-key span:first-child { color: var(--cyan); }
#minimap-ramp-key span:last-child { color: var(--gold); }

/* ---- overlays ---- */
.overlay { display: grid; place-items: center; padding: 16px; background: rgba(8, 3, 22, 0.55); z-index: 20; }
.panel { background: var(--panel); border: var(--unit) solid var(--line); padding: calc(var(--unit) * 6); min-width: min(calc(var(--unit) * 150), calc(100vw - 32px)); max-width: calc(100vw - 32px); box-shadow: 0 0 0 var(--unit) #000, 0 0 calc(var(--unit) * 12) rgba(255, 63, 180, 0.25); }
.panel.narrow { display: flex; flex-direction: column; align-items: center; gap: calc(var(--unit) * 4); min-width: 0; }
.panel h2 { margin: 0 0 calc(var(--unit) * 4); font-size: calc(var(--px) * 6px); }
.standings { list-style: none; margin: 0 0 calc(var(--unit) * 4); padding: 0; display: grid; gap: calc(var(--unit) * 1.5); }
.standings li { display: grid; grid-template-columns: calc(var(--unit) * 10) auto 1fr auto; align-items: center; gap: calc(var(--unit) * 3); padding: var(--unit) calc(var(--unit) * 2); border-left: calc(var(--unit) * 1.5) solid var(--c); background: rgba(255, 255, 255, 0.03); }
.standings li.win { background: rgba(255, 210, 58, 0.12); }
.standings canvas { width: calc(var(--unit) * 16); height: calc(var(--unit) * 16); }
.standings .place { color: var(--muted); }
.standings .pips { display: flex; gap: var(--unit); }
.standings .pips i { width: calc(var(--unit) * 3); height: calc(var(--unit) * 3); background: #2a1a4a; }
.standings .pips i.on { background: var(--c); }
.final-layout { display: flex; gap: calc(var(--unit) * 6); align-items: center; flex-wrap: wrap; justify-content: center; }
#victory { width: calc(var(--unit) * 72 * 2); height: calc(var(--unit) * 128 * 2); border: var(--unit) solid var(--line); max-height: 70vh; object-fit: contain; }
.final-actions { display: flex; gap: calc(var(--unit) * 3); align-items: center; flex-wrap: wrap; }

.chrome {
  background: linear-gradient(to bottom, #5ab8f0 0%, #ffffff 48%, #1a0a30 50%, #8a3a0e 52%, #ffd890 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px #ff3fb4;
  filter: drop-shadow(0 calc(var(--unit) * 1) 0 #1a0630);
}

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--panel); border: var(--unit) solid var(--cyan); padding: 8px 14px; max-width: calc(100vw - 32px); text-align: center; }
.icon-button { position: fixed; right: 12px; top: 12px; z-index: 40; padding: 4px 10px; }
body.in-game .icon-button { top: auto; bottom: calc(72px + var(--unit) * 96); }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; }

@keyframes blink { 50% { opacity: 0.35; } }
@keyframes pop { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pop { animation: pop 0.25s steps(4) both; }

@media (max-width: 900px) {
  .lobby-body { grid-template-columns: 1fr; }
  #chips { transform: scale(0.8); transform-origin: top left; }
  #minimap-panel { width: calc(var(--unit) * 96); }
  body.in-game .icon-button { bottom: calc(72px + var(--unit) * 60); }
  body.modern-edition.in-game .icon-button { bottom: calc(160px + var(--unit) * 60); }
}
@media (max-width: 640px) {
  #me-panel { bottom: 12px; gap: 8px; padding: 6px 8px; max-width: calc(100vw - 16px); }
  #me-panel .bar { width: clamp(48px, 17vw, 90px); }
  #rail-control { width: 86px; }
  #rail-status { font-size: 7px; }
  #minimap-panel { width: min(34vw, 150px); bottom: 112px; right: 8px; }
  #minimap-level, #minimap-ramp-key { font-size: 7px; padding: 4px; }
  body.in-game .icon-button { bottom: calc(182px + min(34vw, 150px) * 0.625); right: 8px; }
  body.modern-edition #me-panel { bottom: 80px; }
  body.modern-edition.in-game #minimap-panel { bottom: 178px; }
  body.modern-edition.in-game .icon-button { bottom: calc(248px + min(34vw, 150px) * 0.625); }
  #modern-touch { left: 8px; right: 8px; bottom: 12px; gap: 8px; }
  #modern-touch button { padding: 7px; min-width: 56px; font-size: 7px; }
  .edition-label { font-size: 10px; text-align: center; }
  .rider-card { gap: 12px; }
  #rider-portrait { width: 80px; height: 80px; }
  .panel.narrow .keys { max-width: 100%; line-height: 2; overflow-wrap: anywhere; }
}
@media (max-height: 650px) {
  .title-stack { gap: 10px; }
  .title-stack > .keys { line-height: 1.7; }
  .title-stack #logo { max-width: min(360px, calc(100vw - 32px)); }
}
@media (pointer: fine) and (min-width: 901px) {
  #modern-touch { display: none; }
  body.modern-edition.in-game #minimap-panel { bottom: 12px; }
  body.modern-edition.in-game .icon-button { bottom: calc(72px + var(--unit) * 96); }
}
@media (prefers-reduced-motion: reduce) {
  .pop, #clock.sudden #timer { animation: none; }
}

/* Audio stays accessible from every screen; native sliders support touch and keys. */
#audio-tools { position: fixed; right: 12px; top: 12px; z-index: 40; display: flex; align-items: center; gap: 7px; }
#audio-tools button { min-height: 36px; min-width: 36px; padding: 7px 10px; font: 650 11px/1.2 'Segoe UI', Arial, sans-serif; border: 1px solid #70c9dc70; border-radius: 10px; background: #0a1d2de8; }
#audio-tools .icon-button { position: static; font-size: 18px; }
#audio-tools #mute.off { color: #ffb54f; border-color: #ffb54f; }
#audio-settings { width: min(360px, calc(100% - 28px)); max-height: calc(100% - 28px); margin: auto; padding: 24px; overflow-y: auto; color: #ecf9ff; background: #091a29; border: 2px solid #68f4ff80; border-radius: 22px; box-shadow: 0 12px 60px #0009; font: 500 15px/1.4 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
#audio-settings::backdrop { background: #020a15bc; }
#audio-settings form { display: grid; gap: 22px; }
#audio-settings h2 { margin: 0; font-size: 24px; font-weight: 700; }
#audio-settings .volume-setting { display: grid; gap: 8px; }
#audio-settings label { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
#audio-settings output { color: #68f4ff; font-variant-numeric: tabular-nums; }
#audio-settings input[type='range'] { width: 100%; min-width: 0; height: 32px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: #68f4ff; cursor: pointer; touch-action: pan-y; }
#audio-settings input:focus-visible, #audio-settings button:focus-visible, #audio-tools button:focus-visible { outline: 2px solid #ffb54f; outline-offset: 4px; }
#audio-settings p { margin: 0; color: #a7c4d5; font-size: 12px; }
#audio-settings #audio-muted-notice { color: #ffcf87; }
#audio-settings .audio-actions { display: flex; justify-content: space-between; gap: 12px; }
#audio-settings button { min-height: 44px; flex: 1; padding: 10px; font: 600 14px/1.2 'Segoe UI', Arial, sans-serif; text-transform: none; letter-spacing: 0; border: 1px solid #6da2b4; border-radius: 12px; background: #153344; box-shadow: none; }
#audio-settings #audio-done { color: #061823; border-color: #68f4ff; background: #68f4ff; }
#audio-settings #audio-mute[aria-pressed='true'] { color: #ffcf87; border-color: #ffb54f; }
@media (max-width: 520px) {
  #audio-tools { right: 8px; top: 8px; gap: 5px; }
  #audio-tools button { min-height: 44px; min-width: 44px; padding: 7px; }
  #audio-settings { padding: 20px; }
}
