:root {
  color-scheme: dark;
  --orange: #8fd4ff;
  --cyan: #5ee0ff;
  --gold: #e0b24a;
  --orange-accent: #ff6e19;
  --orange-soft: #ffad6a;
  --violet: #b07aff;
  --red: #ff2743;
  --ink: #07060e;
  --glass: rgba(8, 8, 14, .76);
  --line: rgba(255, 255, 255, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #05070c; }
body { color: #fff; user-select: none; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

#shatter-canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  outline: none;
}

#game-ui { position: fixed; inset: 0; pointer-events: none; }

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 13px clamp(16px, 2vw, 34px);
  background: linear-gradient(to bottom, rgba(3, 3, 4, .73), transparent);
  pointer-events: none;
}

.topbar a,
.topbar button { pointer-events: auto; }

.back-link {
  justify-self: start;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.mission-mark { text-align: center; letter-spacing: .16em; }
.mission-mark strong, .mission-mark small { display: block; }
.mission-mark strong { font-size: 12px; }
.mission-mark small { margin-top: 4px; color: rgba(255, 255, 255, .43); font-size: 8px; }
.top-actions { justify-self: end; display: flex; gap: 7px; }
.top-actions button {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, .74);
  background: rgba(4, 4, 5, .46);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
  cursor: pointer;
}

.hud {
  position: absolute;
  z-index: 10;
  top: 70px;
  left: clamp(16px, 2vw, 34px);
  right: clamp(16px, 2vw, 34px);
  display: none;
  grid-template-columns: 1fr minmax(260px, 440px) 1fr;
  align-items: start;
  gap: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}

.hud.visible { display: grid; opacity: 1; }
.hud-cluster { display: flex; gap: 8px; }
.hud-cluster.right { justify-content: flex-end; }
.hud-stat {
  min-width: 82px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(5, 5, 7, .47);
  backdrop-filter: blur(11px);
}
.hud-stat span, .hud-stat b { display: block; }
.hud-stat span { color: rgba(255, 255, 255, .43); font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.hud-stat b { margin-top: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.hull-track { display: inline-block; width: 58px; height: 5px; margin: 8px 7px 0 0; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .12); vertical-align: top; }
.hull-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #55e68b, #e7f477); transform-origin: left; }
.core-track { display: inline-block; width: 58px; height: 5px; margin: 8px 7px 0 0; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .12); vertical-align: top; }
.core-track i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #3ec7ff, #e0b24a); transform-origin: left; box-shadow: 0 0 10px rgba(94, 224, 255, .55); }
.hud-stat .hull-track + b { display: inline-block; }

.hud-center { text-align: center; text-shadow: 0 2px 12px #000; }
.hud-center span { display: block; color: #b8d9ff; font-size: 8px; font-weight: 850; letter-spacing: .2em; }
.hud-center strong { display: block; margin-top: 5px; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.progress-track { position: relative; height: 3px; margin-top: 10px; border-radius: 4px; background: rgba(255, 255, 255, .13); }
.progress-track > i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5ee0ff, #c49a3a); box-shadow: 0 0 12px rgba(94, 224, 255, .75); }
.progress-track em { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 24.7%, #fff 25% 25.4%, transparent 25.7% 49.7%, #fff 50% 50.4%, transparent 50.7% 74.7%, #fff 75% 75.4%, transparent 75.7%); opacity: .4; }

.combat-status {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  display: none;
  gap: 7px;
  transform: translateX(-50%);
}
.combat-status.visible { display: flex; }
.combat-status output {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  color: rgba(255, 255, 255, .48);
  background: rgba(5, 5, 7, .48);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .14em;
}
.combat-status output.active { color: #fff; border-color: rgba(94, 224, 255, .5); box-shadow: inset 0 0 18px rgba(80, 180, 255, .18); }

.boost-meter {
  position: absolute;
  z-index: 10;
  left: clamp(16px, 2vw, 34px);
  bottom: 24px;
  display: none;
  width: 178px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 9px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 138, 49, .2);
  border-radius: 10px;
  background: rgba(5, 5, 7, .52);
  backdrop-filter: blur(11px);
}
.hud.visible ~ .boost-meter { display: grid; }
.hud.visible ~ .core-meter { display: grid; }
.boost-meter span { color: rgba(255, 255, 255, .5); font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.boost-meter > div { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.boost-meter i { display: block; width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, #ff5721, #ffcc72 72%, #fff3c4); box-shadow: 0 0 14px rgba(255, 100, 26, .72); }
.boost-meter b { color: rgba(255, 255, 255, .76); font-size: 8px; font-variant-numeric: tabular-nums; }
.boost-meter.active { border-color: rgba(255, 162, 67, .68); box-shadow: inset 0 0 22px rgba(255, 88, 18, .2), 0 0 24px rgba(255, 92, 16, .15); }

.rear-threat {
  position: absolute;
  z-index: 11;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  color: #ff4b57;
  font-size: 25px;
  font-weight: 950;
  filter: drop-shadow(0 0 10px rgba(255, 28, 52, .82));
  transform: translateY(-50%) scale(.9);
  transition: opacity .12s, transform .12s;
}
.rear-threat span { font-size: 7px; letter-spacing: .16em; writing-mode: vertical-rl; }
.rear-threat.left { left: 18px; }
.rear-threat.right { right: 18px; }
.rear-threat.right span { transform: rotate(180deg); }
.rear-threat.visible { opacity: 1; transform: translateY(-50%) scale(1); animation: threat-pulse .55s ease-in-out infinite alternate; }
@keyframes threat-pulse { to { filter: drop-shadow(0 0 18px rgba(255, 32, 51, 1)); } }

.hazard-warning {
  position: absolute;
  z-index: 12;
  right: clamp(20px, 2.4vw, 42px);
  bottom: 88px;
  display: grid;
  grid-template-columns: 12px auto auto;
  align-items: center;
  gap: 8px;
  min-width: 198px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 164, 80, .22);
  border-radius: 9px;
  opacity: 0;
  color: rgba(255, 229, 201, .82);
  background: rgba(22, 8, 8, .62);
  backdrop-filter: blur(10px);
  transform: translateX(14px);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}
.hazard-warning.visible { opacity: 1; transform: translateX(0); }
.hazard-warning i {
  width: 8px;
  height: 8px;
  border: 2px solid #ff913f;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(255, 112, 40, .7);
}
.hazard-warning span { font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.hazard-warning b { justify-self: end; color: #ffb36e; font-size: 9px; font-variant-numeric: tabular-nums; }
.hazard-warning.danger { border-color: rgba(255, 47, 64, .62); animation: hazard-pulse .44s ease-in-out infinite alternate; }
.hazard-warning.danger i { border-color: #ff3148; box-shadow: 0 0 16px rgba(255, 32, 54, .95); }
.hazard-warning.danger b { color: #ff5568; }
@keyframes hazard-pulse { to { background: rgba(62, 6, 12, .72); } }

.checkpoint-cinematic {
  position: absolute;
  z-index: 15;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 60px));
  opacity: 0;
  text-align: center;
  text-shadow: 0 4px 24px #000;
  transform: translate(-50%, -42%) scale(.94);
  pointer-events: none;
}
.checkpoint-cinematic small,
.checkpoint-cinematic strong { display: block; }
.checkpoint-cinematic small {
  color: #ffc286;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .32em;
}
.checkpoint-cinematic strong {
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 60px);
  letter-spacing: .12em;
}
.checkpoint-cinematic span {
  display: block;
  width: 0;
  height: 2px;
  margin: 15px auto 0;
  background: linear-gradient(90deg, transparent, #ffab67 22%, #d68aff 78%, transparent);
  box-shadow: 0 0 18px rgba(255, 124, 72, .8);
}
.checkpoint-cinematic.active { animation: checkpoint-card 2.6s ease both; }
.checkpoint-cinematic.active span { animation: checkpoint-line 2.25s .15s ease both; }
@keyframes checkpoint-card {
  0% { opacity: 0; transform: translate(-50%, -37%) scale(.9); filter: blur(8px); }
  18%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -57%) scale(1.03); }
}
@keyframes checkpoint-line {
  0% { width: 0; opacity: 0; }
  18%, 72% { width: 74%; opacity: 1; }
  100% { width: 18%; opacity: 0; }
}

.storm-vignette,
.boost-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.storm-vignette {
  z-index: 5;
  opacity: var(--storm-intensity, 0);
  background:
    linear-gradient(112deg, transparent 7%, rgba(91, 33, 111, .13) 37%, transparent 58%),
    radial-gradient(ellipse at center, transparent 24%, rgba(77, 30, 81, .14) 62%, rgba(24, 8, 30, .48) 100%);
  mix-blend-mode: screen;
  animation: storm-breathe 4.8s ease-in-out infinite alternate;
}
.boost-vignette {
  z-index: 6;
  opacity: var(--boost-intensity, 0);
  background: radial-gradient(ellipse at center, transparent 28%, rgba(255, 102, 20, .08) 57%, rgba(255, 66, 10, .28) 100%);
  box-shadow: inset 0 0 100px rgba(255, 91, 16, .18);
}
@keyframes storm-breathe {
  to { filter: hue-rotate(10deg) brightness(1.18); transform: scale(1.025); }
}

.target-reticle {
  position: absolute;
  z-index: 9;
  display: none;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 7px rgba(255, 58, 36, .8));
}
.target-reticle.visible { display: block; }
.target-reticle i { position: absolute; width: 18px; height: 18px; border-color: #ff543b; border-style: solid; }
.target-reticle i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.target-reticle i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.target-reticle i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.target-reticle i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.target-reticle span { position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }

.damage-flash { position: absolute; z-index: 8; inset: 0; opacity: 0; background: radial-gradient(circle, transparent 25%, rgba(255, 19, 39, .42)); transition: opacity .15s; }
.damage-flash.active { opacity: 1; }

.game-toast {
  position: absolute;
  z-index: 40;
  left: 50%;
  top: 17%;
  max-width: min(580px, calc(100vw - 40px));
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  opacity: 0;
  color: white;
  background: rgba(8, 5, 6, .72);
  backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
  text-align: center;
  transform: translate(-50%, -8px);
  transition: opacity .2s, transform .2s;
}
.game-toast.visible { opacity: 1; transform: translate(-50%, 0); }

.overlay {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: none;
  place-items: center;
  padding: 80px 24px 28px;
  pointer-events: auto;
  background: radial-gradient(circle at 50% 40%, rgba(30, 20, 55, .28), rgba(6, 6, 14, .72));
  backdrop-filter: blur(4px);
}
.overlay.active { display: grid; }

.preflight-panel,
.compact-panel,
.results-panel {
  width: min(620px, 100%);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 10, 10, .89), rgba(5, 5, 8, .83));
  box-shadow: 0 35px 100px rgba(0, 0, 0, .5);
}
.eyebrow { margin: 0 0 13px; color: #8fd4ff; font-size: 9px; font-weight: 850; letter-spacing: .22em; }
.preflight-panel h1, .compact-panel h2, .results-panel h2 { margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: .86; letter-spacing: -.055em; }
.brief { max-width: 520px; margin: 20px 0 25px; color: rgba(255, 255, 255, .62); line-height: 1.55; }
.craft-picker { display: grid; gap: 8px; margin-top: 22px; }
.craft-picker span { color: rgba(255, 255, 255, .5); font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.craft-picker select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .055);
  font-weight: 750;
  cursor: pointer;
}
.preflight-specs { display: flex; gap: 22px; margin: 20px 0; color: rgba(255, 255, 255, .47); font-size: 8px; letter-spacing: .12em; }
.preflight-specs b { color: white; font-size: 11px; }
.primary-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 55px;
  border: 1px solid rgba(255, 179, 106, .6);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #1a5f9c, #5ee0ff 70%, #e0b24a);
  box-shadow: 0 12px 38px rgba(60, 160, 255, .28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  cursor: pointer;
}
.primary-action kbd { padding: 4px 7px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 5px; background: rgba(0, 0, 0, .16); font-size: 8px; }
.quick-controls { display: flex; flex-wrap: wrap; gap: 13px 18px; margin-top: 18px; color: rgba(255, 255, 255, .42); font-size: 7px; letter-spacing: .11em; }
kbd { font-family: inherit; }
.quick-controls kbd { color: rgba(255, 255, 255, .8); }

.compact-panel { max-width: 470px; text-align: center; }
.compact-panel .primary-action { margin: 28px 0 16px; }
.compact-panel a, .results-panel a { color: rgba(255, 255, 255, .53); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-decoration: none; }
.compact-panel p:not(.eyebrow) { color: rgba(255, 255, 255, .55); }
.failure .eyebrow { color: #ff5267; }

.results-panel { max-width: 680px; text-align: center; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 28px 0 22px; }
.results-grid span { padding: 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; color: rgba(255, 255, 255, .43); font-size: 7px; letter-spacing: .13em; }
.results-grid b { display: block; margin-top: 7px; color: #fff; font-size: 12px; letter-spacing: .02em; }
.results-panel .primary-action { margin-bottom: 15px; }

.respawn-overlay {
  position: absolute;
  z-index: 26;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  pointer-events: none;
  background: rgba(0, 0, 0, .32);
}
.respawn-overlay.active { display: grid; }
.respawn-overlay span, .respawn-overlay strong, .respawn-overlay small { display: block; }
.respawn-overlay span { color: #ff5d72; font-size: 10px; font-weight: 850; letter-spacing: .2em; }
.respawn-overlay strong { margin: 7px 0; font-size: 62px; font-variant-numeric: tabular-nums; }
.respawn-overlay small { color: rgba(255, 255, 255, .5); font-size: 8px; letter-spacing: .17em; }

dialog {
  width: min(620px, calc(100% - 30px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  color: #fff;
  background: rgba(10, 8, 10, .94);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
  pointer-events: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, .58); backdrop-filter: blur(6px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; padding: 27px 28px 17px; }
.dialog-heading h2 { margin: 0; font-size: 31px; }
.dialog-heading button { width: 35px; height: 35px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; color: white; background: transparent; cursor: pointer; }
.control-list { padding: 0 28px; }
.control-list > div { display: grid; grid-template-columns: 1fr auto minmax(130px, auto); gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.control-list span { font-size: 12px; font-weight: 700; }
.control-list kbd { padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; font-size: 8px; }
.control-list output, .control-list b { color: rgba(255, 255, 255, .42); font-size: 7px; letter-spacing: .11em; text-align: right; }
.control-list .unavailable { grid-template-columns: 1fr auto; }
dialog > p { margin: 18px 28px 26px; color: rgba(255, 255, 255, .46); font-size: 10px; line-height: 1.5; }

.desktop-required {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: none;
  place-items: center;
  padding: 30px;
  text-align: center;
  background: #080608;
  pointer-events: auto;
}
.desktop-required img { width: 62px; }
.desktop-required h2 { margin: 12px 0; font-size: 34px; }
.desktop-required p:not(.eyebrow) { max-width: 480px; color: rgba(255, 255, 255, .58); line-height: 1.55; }
.desktop-required a { display: inline-block; margin-top: 18px; color: #ff9b5d; font-size: 10px; font-weight: 850; letter-spacing: .15em; }

@media (pointer: coarse) and (hover: none) {
  .desktop-required { display: grid; }
}

@media (max-width: 1050px) {
  .hud { grid-template-columns: 1fr auto 1fr; }
  .hud-cluster { flex-direction: column; }
  .hud-stat { min-width: 72px; padding: 7px 9px; }
  .hud-stat:nth-child(3) { display: none; }
  .hud-center { min-width: 240px; }
  .boost-meter { bottom: 17px; width: 150px; }
}

@media (max-width: 720px) {
  .mission-mark { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .preflight-panel { padding: 25px; }
  .preflight-panel h1 { font-size: 52px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Rear-view mirror + boss HP */
.rear-mirror {
  position: absolute;
  z-index: 14;
  right: clamp(16px, 2vw, 34px);
  top: 78px;
  display: none;
  width: min(240px, 28vw);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(4, 5, 10, .72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.rear-mirror.visible { display: block; }
.rear-mirror.alert {
  border-color: rgba(255, 70, 90, .65);
  box-shadow: 0 0 22px rgba(255, 40, 60, .25), 0 12px 40px rgba(0, 0, 0, .45);
}
.rear-mirror-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .55);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .16em;
}
.rear-mirror canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #05060c;
}
.rear-mirror-hint {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .38);
  font-size: 6px;
  font-weight: 750;
  letter-spacing: .12em;
}
.boss-hud {
  position: absolute;
  z-index: 14;
  left: 50%;
  top: 108px;
  display: none;
  width: min(420px, 55vw);
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid rgba(255, 50, 70, .35);
  border-radius: 12px;
  background: rgba(20, 4, 8, .62);
  backdrop-filter: blur(10px);
  text-align: center;
  pointer-events: none;
}
.boss-hud.visible { display: grid; gap: 6px; }
.boss-hud span {
  color: #ff8a9a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .22em;
}
.boss-track {
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}
.boss-track i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, #ff2038, #ff8a40 70%, #ffe0a0);
  box-shadow: 0 0 14px rgba(255, 40, 60, .7);
}
.boss-hud b {
  color: rgba(255, 255, 255, .85);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .rear-mirror { width: min(170px, 36vw); top: 70px; }
  .boss-hud { top: 96px; width: min(340px, 70vw); }
}


/* Flight music picker */
.music-picker { margin-top: 10px; }
.music-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 10px 0 4px;
}
.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}
.music-toggle input { accent-color: #7cf0ff; width: 16px; height: 16px; }
.music-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
}
.music-volume input[type="range"] {
  width: 110px;
  accent-color: #7cf0ff;
}
.music-controls button {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 8px 12px;
}
#music-status.active { color: #7cf0ff; border-color: rgba(124,240,255,.35); }
#music-hud-mute[aria-pressed="true"] { color: #ff8a9a; border-color: rgba(255,100,120,.4); }
