:root {
  color-scheme: dark;
  --obsidian: #0a0806;
  --cosmos: #050814;
  --gold: #d4af5a;
  --gold-bright: #f5df9d;
  --ivory: #efe8da;
  --muted: rgba(239, 232, 218, 0.65);
  --line: rgba(212, 175, 90, 0.28);
  --serif: "Cinzel", "Cormorant Garamond", "Songti SC", "STSong", Georgia, serif;
  --sans: "Space Grotesk", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Preloader Curtain */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #19130b 0%, #070504 72%);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.9s;
}

.preloader.done {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-sigil {
  width: 58px;
  height: 58px;
  position: relative;
  display: grid;
  place-items: center;
}

.loader-sigil i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 90, 0.65);
  transform: rotate(45deg);
  animation: spinSlow 5s linear infinite;
}

.loader-sigil b {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(245, 223, 157, 0.9);
  border-radius: 50%;
  animation: spinRev 3.6s linear infinite;
}

@keyframes spinSlow { to { transform: rotate(405deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }

.loader-brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--ivory);
}

.loader-brand em {
  font-style: normal;
  color: var(--gold);
}

.loader-track {
  width: 190px;
  height: 1px;
  background: rgba(212, 175, 90, 0.2);
  overflow: hidden;
}

.loader-track i {
  display: block;
  width: 12%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px var(--gold);
  transition: width 0.25s ease;
}

.loader-pct {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: rgba(245, 223, 157, 0.72);
}

/* Art Deco Subtle Corner Filigree Frame */
.deco-frame {
  position: fixed;
  inset: 12px;
  z-index: 15;
  pointer-events: none;
}

.deco-frame i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(212, 175, 90, 0.34);
  border-style: solid;
  border-width: 0;
}

.deco-frame .tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.deco-frame .tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.deco-frame .bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.deco-frame .br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.stage.pointer-hover { cursor: pointer; }
.stage.drag-ready { cursor: grab; }
.stage.dragging { cursor: grabbing; }

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 1px solid rgba(245, 223, 157, 0.82);
  box-shadow: 0 0 20px rgba(212, 175, 90, 0.4), inset 0 0 12px rgba(245, 223, 157, 0.16);
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(0.65);
  transition: opacity 0.2s ease;
}

.cursor-ring.active { opacity: 1; }

/* Top minimal chrome */
.chrome-top {
  position: fixed;
  top: 24px;
  left: clamp(24px, 3.2vw, 48px);
  right: clamp(24px, 3.2vw, 48px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.chrome-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.brand-sigil {
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  position: relative;
  display: inline-block;
}

.brand-sigil::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--gold);
}

.brand-name {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--ivory);
}

.brand-name em {
  font-style: normal;
  color: var(--gold);
}

.source-pill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 8, 6, 0.48);
  color: var(--muted);
  backdrop-filter: blur(12px);
}

.source-pill[data-source="tripo"] {
  border-color: rgba(212, 175, 90, 0.58);
  color: var(--gold-bright);
}

.chrome-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.chrome-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 232, 218, 0.22);
  background: rgba(8, 10, 18, 0.46);
  backdrop-filter: blur(14px);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chrome-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 90, 0.18);
  color: var(--gold-bright);
}

.chrome-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(239, 232, 218, 0.35);
}

.chrome-btn[aria-pressed="true"] .dot {
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold);
}

.chrome-btn.play-btn {
  border-color: rgba(212, 175, 90, 0.56);
  background: rgba(212, 175, 90, 0.14);
  color: var(--gold-bright);
}

.chrome-btn.play-btn[aria-pressed="true"] {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 90, 0.28);
  box-shadow: 0 0 18px rgba(212, 175, 90, 0.34);
}

.play-icon {
  font-size: 9px;
  line-height: 1;
}

.chrome-btn.rec-btn .rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(235, 95, 85, 0.65);
}

.chrome-btn.rec-btn[aria-pressed="true"] {
  border-color: rgba(255, 102, 92, 0.85);
  background: rgba(190, 38, 32, 0.32);
  color: #ffd4d0;
}

.chrome-btn.rec-btn[aria-pressed="true"] .rec-dot {
  background: #ff4d42;
  box-shadow: 0 0 10px #ff4d42;
  animation: recPulse 1s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Right vertical chapter dots */
.act-nav {
  position: fixed;
  right: clamp(20px, 2.6vw, 38px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  transition: opacity 0.28s ease;
}

body.inspecting .act-nav,
body.inspect-3d .act-nav {
  opacity: 0;
  pointer-events: none;
}

/* Whisper-quiet cinema HUD during auto-play (like AXIS video!) */
body.playing .chrome-top,
body.playing .inspect-dock {
  opacity: 0.24;
  transition: opacity 0.45s ease;
}

body.playing .act-nav {
  opacity: 0.22;
  transition: opacity 0.45s ease;
}

body.playing .chrome-top:hover,
body.playing .act-nav:hover,
body.playing .inspect-dock:hover {
  opacity: 1;
}

.act-nav button {
  background: none;
  border: none;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  cursor: pointer;
  color: rgba(239, 232, 218, 0.52);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.98), 0 0 14px rgba(0, 0, 0, 0.92), 0 0 26px rgba(0, 0, 0, 0.75);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  transition: color 0.25s, transform 0.25s;
}

.act-nav button em {
  font-style: normal;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
}

.act-nav button:hover em,
.act-nav button[aria-current="step"] em {
  opacity: 1;
  transform: translateX(0);
}

.act-nav button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 90, 0.6);
  background: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.96)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.82));
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.act-nav button[aria-current="step"] {
  color: var(--gold-bright);
}

.act-nav button[aria-current="step"]::after {
  background: var(--gold-bright);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(212, 175, 90, 0.85);
}

/* Discreet Bottom-Left 3D Sculpture Inspect Dock */
.inspect-dock {
  position: fixed;
  left: clamp(24px, 3.2vw, 48px);
  bottom: 24px;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.inspect-dock.hidden-act {
  opacity: 0;
  pointer-events: none;
}

.inspect-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 90, 0.38);
  background: rgba(10, 8, 6, 0.56);
  backdrop-filter: blur(14px);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.inspect-trigger i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-bright);
  transform: rotate(45deg);
}

.inspect-trigger:hover,
.inspect-trigger[aria-pressed="true"] {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 90, 0.2);
  box-shadow: 0 0 16px rgba(212, 175, 90, 0.24);
}

.inspect-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 90, 0.32);
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(16px);
}

.inspect-bar[hidden] { display: none; }

.inspect-bar button {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}

.inspect-bar button[aria-pressed="true"] {
  border-color: rgba(212, 175, 90, 0.55);
  background: rgba(212, 175, 90, 0.18);
  color: var(--gold-bright);
}

.inspect-bar .inspect-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(239, 232, 218, 0.45);
  padding: 0 6px;
}

.inspect-bar .inspect-exit {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Shared Act Overlays */
.act-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
  transition: filter 0.3s ease;
}

body.inspect-3d .act-overlay {
  opacity: 0 !important;
}

/* Act 1 */
.act-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(58px, 7.6vh, 88px);
  background: linear-gradient(to top, rgba(10, 8, 5, 0.82) 0%, rgba(10, 8, 5, 0.38) 26%, transparent 50%);
}

.hero-caption { text-align: center; }

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 72px);
  letter-spacing: 0.36em;
  padding-left: 0.36em;
  color: var(--ivory);
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.82);
}

.display-sub {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
}

.display-sub span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.display-cn {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.hero-actions {
  margin-top: 16px;
  pointer-events: auto;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 90, 0.62);
  background: rgba(14, 11, 7, 0.58);
  backdrop-filter: blur(14px);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.hero-play-btn:hover {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 90, 0.24);
  box-shadow: 0 0 24px rgba(212, 175, 90, 0.32);
  transform: translateY(-1px);
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: rgba(245, 223, 157, 0.68);
  transition: opacity 0.4s;
  white-space: nowrap;
}

.scroll-cue i {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulseCue 2s ease-in-out infinite;
}

@keyframes pulseCue {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Act 2 */
.act-2 {
  display: flex;
  align-items: center;
  padding-left: clamp(36px, 7.5vw, 128px);
  background: linear-gradient(to right, rgba(10, 8, 5, 0.65) 0%, rgba(10, 8, 5, 0.24) 30%, transparent 52%);
}

.order-caption { max-width: 340px; }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.order-caption h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0.14em;
  color: var(--ivory);
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.78);
}

.order-caption h2 em {
  font-style: italic;
  font-size: 0.56em;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.poetic-cn {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.08em;
  color: rgba(239, 232, 218, 0.82);
}

/* Act 3 */
.act-3 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(54px, 10vh, 110px);
  background: linear-gradient(to top, rgba(8, 6, 4, 0.84) 0%, rgba(8, 6, 4, 0.42) 22%, transparent 44%);
}

.ignite-caption { text-align: center; }

.ignite-caption h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: 0.18em;
  color: var(--ivory);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 0 34px rgba(245, 223, 157, 0.45);
}

.ignite-caption p {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(245, 223, 157, 0.94);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

/* Act 4: Cosmic Archive Tunnel & Click-to-Inspect Dossier */
.tunnel-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 20, 0.6);
  backdrop-filter: blur(16px);
  white-space: nowrap;
  transition: opacity 0.3s;
}

.tunnel-hint span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
}

.tunnel-hint em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.inspector {
  position: fixed;
  right: clamp(46px, 6vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  width: min(410px, 38vw);
  padding: 28px 30px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 90, 0.28);
  background: linear-gradient(155deg, rgba(10, 14, 30, 0.86), rgba(5, 8, 20, 0.92));
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(245, 223, 157, 0.2);
  pointer-events: auto;
  z-index: 25;
}

.inspector[hidden] { display: none; }

.inspector-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.insp-rule { color: var(--gold-bright); }
.insp-year { color: var(--muted); }

.inspector h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.06em;
  color: #fff;
}

.insp-author {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.insp-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(239, 232, 218, 0.86);
}

.insp-grammar {
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(212, 175, 90, 0.08);
  margin-bottom: 14px;
}

.insp-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 5px;
}

.insp-grammar p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(239, 232, 218, 0.9);
}

.insp-credit {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  color: rgba(239, 232, 218, 0.48);
}

.insp-actions { display: flex; gap: 8px; }

.insp-actions button {
  flex: 1;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.insp-actions button:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 90, 0.16);
  color: var(--gold-bright);
}

.insp-actions button.primary {
  border-color: rgba(212, 175, 90, 0.55);
  color: var(--gold-bright);
}

/* Act 5: Finale */
.act-5 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.finale-wrap { width: min(920px, 86vw); text-align: center; }

.finale-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 9vw, 128px);
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: #fff;
  text-shadow: 0 0 54px rgba(212, 175, 90, 0.38);
}

.finale-sub {
  margin: 8px 0 38px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.finale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
  padding: 22px 0;
  border-top: 1px solid rgba(212, 175, 90, 0.26);
  border-bottom: 1px solid rgba(212, 175, 90, 0.18);
}

.grid-head {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.finale-grid p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(239, 232, 218, 0.78);
}

.finale-cta { margin-top: 28px; pointer-events: auto; }

.replay-btn {
  height: 38px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 90, 0.6);
  background: rgba(212, 175, 90, 0.1);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.replay-btn:hover {
  background: rgba(212, 175, 90, 0.24);
  box-shadow: 0 0 26px rgba(212, 175, 90, 0.32);
  transform: translateY(-1px);
}

.progress-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  z-index: 32;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  pointer-events: auto;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: height 0.2s ease, background 0.2s ease;
}

.progress-bar:hover .progress-track,
.progress-bar.scrubbing .progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-track i {
  position: relative;
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px var(--gold);
}

.progress-track i::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold-bright);
  transform: translateY(-50%) scale(0);
  transition: transform 0.18s ease;
}

.progress-bar:hover .progress-track i::after,
.progress-bar.scrubbing .progress-track i::after {
  transform: translateY(-50%) scale(1);
}

.progress-track .tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(245, 223, 157, 0.45);
  pointer-events: none;
}

.scrub-tip {
  position: fixed;
  bottom: 18px;
  left: 0;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 90, 0.45);
  background: rgba(8, 7, 6, 0.86);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  white-space: nowrap;
  pointer-events: none;
}

.scrub-tip[hidden] { display: none; }

.toast {
  position: fixed;
  top: 66px;
  right: clamp(20px, 3vw, 44px);
  z-index: 35;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 90, 0.45);
  background: rgba(10, 8, 6, 0.8);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}
