/* =========================================================
   STIJL: CASSETTE & RADIO
   Donker en warm: antraciet, amber en oranje. LCD-cijfers in Share Tech
   Mono, titels in stift (Permanent Marker), tekst in IBM Plex Sans.
   Indeling: radio-ontvanger (start), LCD-scherm + tapedeck boven en een
   cassetterek als lijst eronder (spel).
   ========================================================= */
[data-theme="cassette"] {
  --bg-0: #1b1915;
  --page-bg: radial-gradient(120% 90% at 50% 0%, #29251f 0%, #1b1915 70%);
  --page-texture: repeating-linear-gradient(to bottom, rgba(241, 228, 204, 0.025) 0 1px, transparent 1px 3px);
  --page-texture-size: auto;
  --page-texture-mask: none;

  --metal: linear-gradient(180deg, #312c26, #25221d);
  --panel: #25221d;
  --panel-2: #2d2923;
  --panel-3: #3a352d;
  --sunken: #1f1c18;
  --field-bg: #141210;
  --timeline-bg: #1c1915;

  --lcd-bg: #191307;
  --lcd-ink: #ffb000;
  --lcd-ghost: rgba(255, 176, 0, 0.1);
  --lcd-glow: 0 0 6px rgba(255, 176, 0, 0.55);
  --lcd-lines: repeating-linear-gradient(to bottom, rgba(255, 176, 0, 0.045) 0 1px, transparent 1px 3px);

  --ink: #f1e4cc;
  --muted: #a8987e;
  --line-soft: rgba(241, 228, 204, 0.08);
  --line: rgba(241, 228, 204, 0.16);
  --line-strong: rgba(241, 228, 204, 0.36);
  --hover-wash: rgba(241, 228, 204, 0.05);

  --accent: #ffb000;
  --accent-deep: #8a5f00;
  --accent-ink: #1b1915;
  --accent-soft: rgba(255, 176, 0, 0.1);
  --accent-line: rgba(255, 176, 0, 0.5);
  --orange: #ff7a1a;
  --paper: #f1e4cc;
  --paper-ink: #2b2620;

  --success: #9bd35a;
  --success-soft: rgba(155, 211, 90, 0.12);
  --ok-ink: #dff2c4;
  --error: #ff6a3d;
  --error-soft: rgba(255, 106, 61, 0.12);
  --err-ink: #ffd6c8;
  --warn: #ffb000;
  --focus: #ffb000;

  --font-display: "Share Tech Mono", ui-monospace, "Consolas", monospace;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-num: "Share Tech Mono", ui-monospace, monospace;
  --font-title: "Permanent Marker", "Segoe Print", cursive;
  --display-case: uppercase;
  --display-tracking: 0.06em;
  --title-case: none;
  --title-size: 1.02rem;
  --title-tracking: 0;
  --label-tracking: 0.14em;
  --h1-color: #ffb000;

  --radius-s: 3px;
  --radius-m: 5px;
  --radius-l: 8px;
  --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px rgba(0, 0, 0, 0.45);

  --btn-font: "Share Tech Mono", ui-monospace, monospace;
  --btn-weight: 400;
  --btn-case: uppercase;
  --btn-tracking: 0.1em;
  --btn-size: 1rem;
  --btn-small-size: 0.84rem;
  --btn-radius: 4px;
  --btn-primary-border: #8a5f00;
  --btn-shadow: 0 4px 0 #8a5f00, 0 8px 14px rgba(0, 0, 0, 0.35);
  --btn-shadow-hover: 0 4px 0 #8a5f00, 0 10px 18px rgba(0, 0, 0, 0.4);
  --btn-hover-transform: translateY(-1px);
  --btn-shadow-active: 0 1px 0 #8a5f00, 0 2px 6px rgba(0, 0, 0, 0.35);
  --btn-active-transform: translateY(3px);

  --chip-font: "Share Tech Mono", ui-monospace, monospace;
  --chip-case: uppercase;
  --chip-tracking: 0.08em;
  --chip-size: 0.8rem;
  --chip-radius: 4px;

  --card-bg:
    linear-gradient(to bottom, #ff7a1a 0 4px, transparent 4px),
    repeating-linear-gradient(to bottom, transparent 0 15px, rgba(43, 38, 32, 0.1) 15px 16px),
    #f1e4cc;
  --card-ink: #2b2620;
  --card-muted: #6a5f4c;
  --card-frame: 1px solid rgba(0, 0, 0, 0.35);
  --card-radius: 4px;
  --stub-bg: #191307;
  --stub-ink: #ffb000;
  --title-shadow: none;
  --scrim: none;
  --missed-bg:
    repeating-linear-gradient(to bottom, transparent 0 15px, rgba(43, 38, 32, 0.1) 15px 16px),
    #f6d2c4;
  --missed-stub-ink: #1b1915;

  --play-shadow: none;
  --progress-fill: repeating-linear-gradient(90deg, #ffb000 0 6px, transparent 6px 8px);
  --progress-radius: 0;
  --overlay-bg: rgba(10, 9, 7, 0.8);
  --scroll-thumb: rgba(241, 228, 204, 0.25);
  --scroll-track: rgba(0, 0, 0, 0.3);

  --grade-s: #ffb000;
  --grade-a: #9bd35a;
  --grade-b: #f1e4cc;
  --grade-c: #ff7a1a;
  --grade-d: #ff6a3d;
}

/* ---------- Algemeen: geborsteld metaal, toetsen en LCD ---------- */
html[data-theme="cassette"] .panel {
  background: var(--metal);
  border: 1px solid #0e0c0a;
}

/* Schroefjes in de hoeken van de frontpanelen */
html[data-theme="cassette"] .start-card::before,
html[data-theme="cassette"] .card-section::before,
html[data-theme="cassette"] .end-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #8a8170 0 2px, #3b362e 2.5px 4px, transparent 4.5px),
    radial-gradient(circle, #8a8170 0 2px, #3b362e 2.5px 4px, transparent 4.5px),
    radial-gradient(circle, #8a8170 0 2px, #3b362e 2.5px 4px, transparent 4.5px),
    radial-gradient(circle, #8a8170 0 2px, #3b362e 2.5px 4px, transparent 4.5px);
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-size: 10px 10px;
  background-repeat: no-repeat;
}

html[data-theme="cassette"] .card-section {
  position: relative;
}

html[data-theme="cassette"] .btn-ghost,
html[data-theme="cassette"] .youtube-link,
html[data-theme="cassette"] .dev-small-btn {
  border: 1px solid #0f0d0a;
  background: linear-gradient(#3a352e, #2b2722);
  color: #e3d5ba;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 #0f0d0a;
  font-family: var(--font-num);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="cassette"] .btn-ghost:hover:not(:disabled),
html[data-theme="cassette"] .youtube-link:hover {
  border-color: #0f0d0a;
  background: linear-gradient(#433d35, #322d27);
}

html[data-theme="cassette"] .btn-ghost:active,
html[data-theme="cassette"] .youtube-link:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #0f0d0a;
}

html[data-theme="cassette"] .dev-small-btn.dev-primary {
  background: linear-gradient(#ffc233, #ffb000);
  color: #1b1915;
  box-shadow: 0 3px 0 #8a5f00;
}

html[data-theme="cassette"] .spotify-status {
  border: 2px solid #0b0905;
  border-radius: 4px;
  background: var(--lcd-bg);
  background-image: var(--lcd-lines);
  color: var(--lcd-ink);
  font-family: var(--font-num);
  letter-spacing: 0.04em;
  text-shadow: var(--lcd-glow);
}

/* Voorkeuzetoetsen met een ledje dat amber gaat branden */
html[data-theme="cassette"] .mode-btn {
  border: 1px solid #0f0d0a;
  background: linear-gradient(#3a352e, #2b2722);
  color: #d9cbb0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 #0f0d0a;
}

html[data-theme="cassette"] .mode-btn::before {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #4a4238;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

html[data-theme="cassette"] .mode-btn:hover {
  border-color: #0f0d0a;
  background: linear-gradient(#433d35, #322d27);
}

html[data-theme="cassette"] .mode-btn.active {
  border-color: #0f0d0a;
  background: linear-gradient(#2a2620, #221f1a);
  color: var(--accent);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55), 0 1px 0 #0f0d0a;
  transform: translateY(2px);
}

html[data-theme="cassette"] .mode-btn.active::before {
  content: "";
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent), 0 0 12px rgba(255, 176, 0, 0.5);
}

/* Decennium als afstemschaal met een rode naald */
html[data-theme="cassette"] .mode-group-decade .mode-buttons {
  gap: 0;
  padding: 18px 8px 6px;
  border: 2px solid #0b0905;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 176, 0, 0.35) 0 1px, transparent 1px 10px) left 8px top 6px / calc(100% - 16px) 6px no-repeat,
    var(--lcd-lines),
    var(--lcd-bg);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

html[data-theme="cassette"] .mode-group-decade .mode-btn {
  flex-direction: column;
  gap: 4px;
  min-height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 176, 0, 0.8);
  transform: none;
}

html[data-theme="cassette"] .mode-group-decade .mode-btn::before {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: rgba(255, 176, 0, 0.45);
  box-shadow: none;
}

html[data-theme="cassette"] .mode-group-decade .mode-btn.active {
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .mode-group-decade .mode-btn.active::before {
  height: 20px;
  margin-top: -8px;
  background: #ff4d1f;
  box-shadow: 0 0 8px rgba(255, 77, 31, 0.8);
}

/* Rondes als schuifschakelaar */
html[data-theme="cassette"] .mode-buttons.rounds-switch {
  border: 2px solid #0b0905;
  background: #141210;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

html[data-theme="cassette"] .rounds-btn,
html[data-theme="cassette"] .players-btn,
html[data-theme="cassette"] .lobby-mode-btn,
html[data-theme="cassette"] .seg-btn {
  color: #8f8169;
}

html[data-theme="cassette"] .rounds-btn.active,
html[data-theme="cassette"] .players-btn.active,
html[data-theme="cassette"] .lobby-mode-btn.active,
html[data-theme="cassette"] .seg-btn.active {
  background: linear-gradient(#ffc233, #ffb000);
  color: #1b1915;
  box-shadow: 0 2px 0 #8a5f00, inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- Startscherm: radio-ontvanger ---------- */
html[data-theme="cassette"] .start-card {
  padding: clamp(22px, 2.8vw, 36px);
}

html[data-theme="cassette"] .logo {
  width: 60px;
  height: 60px;
  border: 2px solid #0b0905;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 60%, #1b1915 0 5px, #d9cbb0 5.5px 7px, transparent 7.5px),
    radial-gradient(circle at 70% 60%, #1b1915 0 5px, #d9cbb0 5.5px 7px, transparent 7.5px),
    linear-gradient(to bottom, #ff7a1a 0 10px, #f1e4cc 10px 34px, #3a352d 34px);
  color: transparent;
  box-shadow: 0 3px 0 #0f0d0a;
}

html[data-theme="cassette"] h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(255, 176, 0, 0.35);
}

html[data-theme="cassette"] .subtitle {
  color: var(--muted);
  font-family: var(--font-num);
  font-weight: 400;
}

html[data-theme="cassette"] .start-title::after {
  content: "Stereo · Auto-reverse · Dolby";
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* LCD met je keuze */
html[data-theme="cassette"] .selected-mode-display {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 12px 16px;
  border: 2px solid #0b0905;
  border-radius: 4px;
  background: var(--lcd-bg);
  background-image: var(--lcd-lines);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
  color: var(--lcd-ink);
  font-family: var(--font-num);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .selected-mode-display.is-empty {
  color: var(--error);
  text-shadow: 0 0 6px rgba(255, 106, 61, 0.55);
}

/* Spelregels als opdruk op het frontpaneel: drie korte regels onder "Bediening" */
html[data-theme="cassette"] .rules {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="cassette"] .rules::before {
  content: "Bediening";
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

html[data-theme="cassette"] .rules li {
  padding: 2px 0;
  background: none;
}

html[data-theme="cassette"] .rules li::before {
  font-size: 1rem;
  text-shadow: var(--lcd-glow);
}

/* Starten met een grote PLAY-toets */
html[data-theme="cassette"] .btn-start::before {
  content: "▶";
  font-size: 0.85em;
}

html[data-theme="cassette"] .start-footer {
  border-top: 0;
}

/* ---------- Spelscherm: LCD-scherm, tapedeck en cassetterek ---------- */
html[data-theme="cassette"] .game-topbar {
  border: 2px solid #0b0905;
  background: var(--lcd-bg);
  background-image: var(--lcd-lines);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.75), 0 10px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="cassette"] .game-topbar .stat-label {
  color: rgba(255, 176, 0, 0.5);
  font-family: var(--font-num);
  font-weight: 400;
}

html[data-theme="cassette"] .game-topbar .stat-value,
html[data-theme="cassette"] #streak {
  position: relative;
  color: var(--lcd-ink);
  text-align: right;
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .stat-score .stat-value { min-width: 4ch; }
html[data-theme="cassette"] .stat-streak .stat-value { min-width: 2ch; }

/* Onverlichte segmenten achter de cijfers, zoals op een echt LCD */
html[data-theme="cassette"] .stat-score .stat-value::before,
html[data-theme="cassette"] .stat-streak .stat-value::before {
  position: absolute;
  right: 0;
  color: var(--lcd-ghost);
  text-shadow: none;
}

html[data-theme="cassette"] .stat-score .stat-value::before { content: "8888"; }
html[data-theme="cassette"] .stat-streak .stat-value::before { content: "88"; }

html[data-theme="cassette"] .game-mode-display {
  border: 1px dashed rgba(255, 176, 0, 0.5);
  color: var(--lcd-ink);
  font-family: var(--font-num);
  font-weight: 400;
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .progress-bar {
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(255, 176, 0, 0.12) 0 6px, transparent 6px 8px);
}

html[data-theme="cassette"] .progress-text {
  color: var(--lcd-ink);
  font-family: var(--font-num);
  font-weight: 400;
  text-shadow: var(--lcd-glow);
}

/* Het onbekende nummer als cassette: label, venster en twee spoelen */
html[data-theme="cassette"] .unknown-card {
  grid-template-columns: minmax(0, 1fr) 64px;
  grid-template-rows: 14px auto auto 1fr;
  border: 2px solid #0e0c0a;
  border-radius: 8px;
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 32% 78%, #141210 0 7px, #d9cbb0 7.5px 9px, #4a4339 9.5px 19px, transparent 19.5px),
    radial-gradient(circle at 68% 78%, #141210 0 7px, #d9cbb0 7.5px 9px, #4a4339 9.5px 19px, transparent 19.5px),
    linear-gradient(to bottom, transparent 62%, #121010 62% 92%, transparent 92%) center / 64% 100% no-repeat,
    linear-gradient(#36312a, #2a2620);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.4);
}

html[data-theme="cassette"] .unknown-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 50%;
  border-radius: 3px;
  background:
    linear-gradient(to bottom, #ff7a1a 0 6px, transparent 6px),
    repeating-linear-gradient(to bottom, transparent 0 13px, rgba(43, 38, 32, 0.14) 13px 14px),
    var(--paper);
}

html[data-theme="cassette"] .unknown-card > p {
  padding: 0 4px 0 20px;
}

html[data-theme="cassette"] .unknown-card strong {
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
}

html[data-theme="cassette"] .unknown-card .hint {
  margin-top: 0;
  font-size: 0.7rem;
}

html[data-theme="cassette"] .unknown-icon {
  grid-row: 2 / 4;
  border-left: 0;
  color: #c2410c;
  font-family: var(--font-title);
  font-size: 2.2rem;
}

/* Afspelen: een PLAY-toets en VU-meters met ledsegmenten */
html[data-theme="cassette"] .audio-block {
  grid-template-columns: auto auto;
  align-items: center;
  gap: 14px;
}

html[data-theme="cassette"] .play-btn {
  width: 84px;
  height: 56px;
  border-radius: 5px;
  background: linear-gradient(#ffc233, #ffb000);
  box-shadow: 0 5px 0 #8a5f00, 0 9px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="cassette"] .play-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* Rechthoekige toets: geen voortgangsring, de VU-meters laten het al zien */
html[data-theme="cassette"] .play-btn::after {
  display: none;
}

html[data-theme="cassette"] .play-btn.is-playing {
  animation: none;
  transform: translateY(4px);
  box-shadow: 0 1px 0 #8a5f00, 0 3px 8px rgba(0, 0, 0, 0.4);
}

html[data-theme="cassette"] .wave-container {
  padding: 6px 8px;
  border: 2px solid #0b0905;
  border-radius: 4px;
  background: var(--lcd-bg);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}

html[data-theme="cassette"] #wave-animation {
  align-items: flex-end;
  height: 40px;
  gap: 4px;
}

html[data-theme="cassette"] .wave-bar,
html[data-theme="cassette"] #wave-animation:not(.active) .wave-bar {
  width: 9px;
  height: 40px !important;
  border-radius: 0;
  background:
    repeating-linear-gradient(to top, transparent 0 3px, var(--lcd-bg) 3px 5px),
    linear-gradient(to top, #ffb000 0 66%, #ff4d1f 66%);
}

html[data-theme="cassette"] #wave-animation:not(.active) .wave-bar {
  animation: none;
  opacity: 0.18;
}

html[data-theme="cassette"] #wave-animation.active .wave-bar {
  animation: vuMeter 0.55s ease-in-out infinite alternate;
}

html[data-theme="cassette"] #wave-animation.active .wave-bar:nth-child(2) { animation-duration: 0.42s; }
html[data-theme="cassette"] #wave-animation.active .wave-bar:nth-child(3) { animation-duration: 0.6s; }
html[data-theme="cassette"] #wave-animation.active .wave-bar:nth-child(4) { animation-duration: 0.38s; }
html[data-theme="cassette"] #wave-animation.active .wave-bar:nth-child(5) { animation-duration: 0.5s; }

@keyframes vuMeter {
  from { clip-path: inset(72% 0 0 0); }
  to { clip-path: inset(6% 0 0 0); }
}

/* Bonus en uitslag: een papieren label om op te schrijven */
html[data-theme="cassette"] .guess-section,
html[data-theme="cassette"] .reveal-section {
  --ink: #2b2620;
  --muted: #6a5f4c;
  --line: rgba(43, 38, 32, 0.25);
  --line-strong: rgba(43, 38, 32, 0.5);
  --panel-2: transparent;
  --field-bg: transparent;
  --hover-wash: rgba(43, 38, 32, 0.06);
  --ok-ink: #2f5d12;
  --err-ink: #8a2a0e;
  --success: #4d8a1c;
  --success-soft: rgba(77, 138, 28, 0.14);
  --error: #c2410c;
  --error-soft: rgba(194, 65, 12, 0.12);
  border: 0;
  border-radius: 4px;
  color: var(--paper-ink);
  background:
    linear-gradient(to bottom, #ff7a1a 0 5px, transparent 5px),
    repeating-linear-gradient(to bottom, transparent 0 17px, rgba(43, 38, 32, 0.1) 17px 18px),
    var(--paper);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="cassette"] .guess-toggle-btn {
  border: 0;
  border-bottom: 1.5px dashed var(--line);
  border-radius: 0;
  font-family: var(--font-num);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-theme="cassette"] .guess-toggle-btn::after {
  border-radius: 3px;
  background: var(--paper-ink);
  color: var(--paper);
}

html[data-theme="cassette"] .guess-section .input-group input {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--font-title);
  font-size: 1.05rem;
}

html[data-theme="cassette"] .guess-section .input-group input:focus {
  border-bottom-color: #c2410c;
  box-shadow: none;
}

html[data-theme="cassette"] .song-info h3 {
  color: #c2410c;
  font-family: var(--font-title);
  letter-spacing: 0;
  text-transform: none;
}

html[data-theme="cassette"] #song-year {
  border: 2px solid #0b0905;
  background: var(--lcd-bg);
  color: var(--lcd-ink);
  text-shadow: var(--lcd-glow);
  transform: none;
}

/* Cassettelabels in het rek */
html[data-theme="cassette"] .timeline-card {
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

html[data-theme="cassette"] .timeline-year {
  justify-content: center;
  font-size: 1.3rem;
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .timeline-artist {
  font-family: var(--font-num);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-theme="cassette"] .timeline-card.has-album-cover::before {
  background: none;
}

/* Net geplaatst: amber rand en knipperende LCD-cijfers */
html[data-theme="cassette"] .timeline-card.is-new:not(.is-missed) {
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgba(255, 176, 0, 0.45);
}

html[data-theme="cassette"] .timeline-card.is-new .timeline-year {
  animation: lcdBlink 0.36s steps(1) 4;
}

@keyframes lcdBlink {
  50% { color: transparent; text-shadow: none; }
}

html[data-theme="cassette"] .timeline-missed-label {
  background: var(--paper);
  font-family: var(--font-num);
  font-weight: 400;
}

html[data-theme="cassette"] .drop-zone {
  border: 1.5px dashed rgba(255, 176, 0, 0.3);
  color: rgba(255, 176, 0, 0.7);
  font-family: var(--font-num);
}

html[data-theme="cassette"] .drop-zone span {
  font-weight: 400;
}

html[data-theme="cassette"] .drop-zone::before {
  border-radius: 3px;
  border-color: rgba(255, 176, 0, 0.45);
  color: var(--accent);
}

/* ---------- Eindscherm: LCD-uitlezing ---------- */
html[data-theme="cassette"] .end-card {
  position: relative;
}

html[data-theme="cassette"] .final-score {
  padding: 12px 22px 8px;
  border: 2px solid #0b0905;
  border-radius: 4px;
  background: var(--lcd-bg);
  background-image: var(--lcd-lines);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.75);
  color: var(--lcd-ink);
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.6);
}

html[data-theme="cassette"] .grade {
  border: 0;
  background: #141210;
  box-shadow: 0 0 0 3px #0b0905, 0 0 0 5px currentColor, 0 0 18px currentColor;
  text-shadow: 0 0 10px currentColor;
}

html[data-theme="cassette"] .stat-card {
  border: 2px solid #0b0905;
  background: var(--lcd-bg);
}

html[data-theme="cassette"] .stat-card .stat-value {
  color: var(--lcd-ink);
  text-shadow: var(--lcd-glow);
}

/* ---------- Desktop: indeling van ontvanger en deck ---------- */
@media (min-width: 701px) and (min-height: 501px), (min-width: 701px) and (pointer: fine) {
  /* Radio-ontvanger: merk + LCD boven, toetsen in het midden, bediening + PLAY onder */
  html[data-theme="cassette"] .start-shell {
    width: min(1040px, 100%);
  }

  html[data-theme="cassette"] .start-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas:
      "head display"
      "modes modes"
      "rules start";
    align-items: center;
    column-gap: clamp(20px, 3vw, 40px);
  }

  html[data-theme="cassette"] .start-head { grid-area: head; }
  html[data-theme="cassette"] .mode-panel { grid-area: modes; }
  html[data-theme="cassette"] .rules { grid-area: rules; }

  html[data-theme="cassette"] .start-footer {
    display: contents;
  }

  html[data-theme="cassette"] #selected-mode-display {
    grid-area: display;
  }

  /* De PLAY-toets blijft onderin in beeld op lage schermen */
  html[data-theme="cassette"] #start-btn {
    grid-area: start;
    justify-self: end;
    position: sticky;
    bottom: 16px;
    z-index: 3;
    min-height: 64px;
    min-width: 260px;
    font-size: 1.15rem;
  }

  html[data-theme="cassette"] .mode-panel {
    padding: 16px 0;
    border-block: 1px solid var(--line);
  }

  /* Cassetterek: één gecentreerde lijst van labels, oud boven en nieuw onder */
  html[data-theme="cassette"] .timeline-container {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    border: 2px solid #0b0905;
    background:
      linear-gradient(90deg, #2d2923 0 8px, transparent 8px calc(100% - 8px), #2d2923 calc(100% - 8px)),
      var(--timeline-bg);
  }

  html[data-theme="cassette"] .drop-zone,
  html[data-theme="cassette"] .timeline-card {
    flex: none;
    width: min(880px, 100%);
  }

  html[data-theme="cassette"] .drop-zone {
    height: 32px;
    flex-direction: row;
    gap: 10px;
    padding: 0 12px;
  }

  html[data-theme="cassette"] .drop-zone::before {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
  }

  html[data-theme="cassette"] .drop-zone span {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.72rem;
  }

  html[data-theme="cassette"] .timeline-card {
    height: 64px;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "year info";
    gap: 16px;
    padding: 0 14px 0 0;
  }

  html[data-theme="cassette"] .timeline-year {
    grid-area: year;
    height: auto;
    margin: 0;
    padding: 0;
  }

  html[data-theme="cassette"] .timeline-info {
    grid-area: info;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-right: 44px;
  }

  html[data-theme="cassette"] .timeline-title {
    max-height: 1.3em;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.12rem;
  }

  html[data-theme="cassette"] .timeline-artist {
    max-width: 260px;
    text-align: right;
  }

  html[data-theme="cassette"] .timeline-card.is-missed .timeline-info {
    padding-top: 0;
    padding-right: 140px;
  }

  html[data-theme="cassette"] .timeline-missed-label {
    top: 50%;
    right: 48px;
    transform: translateY(-50%) rotate(-3deg);
  }

  /* Hoes als vierkant rechts op het label, dat naar links uitvloeit */
  html[data-theme="cassette"] .timeline-card .timeline-cover-background {
    inset: 0 0 0 auto;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
    mask-image: linear-gradient(to right, transparent, #000 60%);
  }

  html[data-theme="cassette"] .spotify-source-link {
    top: 50%;
    right: 12px;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* ---------- Telefoon ---------- */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  html[data-theme="cassette"] .mode-group-decade .mode-btn::before {
    display: block;
  }

  html[data-theme="cassette"] .playback-controls {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  html[data-theme="cassette"] .youtube-link {
    width: 100%;
  }

  html[data-theme="cassette"] .start-title::after {
    display: none;
  }

  html[data-theme="cassette"] .reveal-section {
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Record en eindoverzicht ---------- */
html[data-theme="cassette"] .record-display,
html[data-theme="cassette"] .record-hint {
  font-family: var(--font-num);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-theme="cassette"] .record-display.is-new {
  border: 2px solid #0b0905;
  background: var(--lcd-bg);
  background-image: var(--lcd-lines);
  color: var(--lcd-ink);
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .recap-card {
  border-color: rgba(0, 0, 0, 0.35);
  background: var(--card-bg);
  color: var(--paper-ink);
}

html[data-theme="cassette"] .recap-text strong {
  font-family: var(--font-title);
  font-weight: 400;
}

html[data-theme="cassette"] .recap-text span,
html[data-theme="cassette"] .recap-card .recap-mark {
  color: #6a5f4c;
}

html[data-theme="cassette"] .recap-year {
  padding: 4px 6px;
  border-radius: 2px;
  background: var(--lcd-bg);
  color: var(--lcd-ink);
  text-align: center;
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .recap-card.is-placed .recap-mark { color: #2f5d12; }
html[data-theme="cassette"] .recap-card.is-missed .recap-mark { color: #c2410c; }

/* ---------- Feest: LCD-ranglijst ---------- */
html[data-theme="cassette"] .scoreboard {
  gap: 0;
  padding: 3px;
  border: 2px solid #0b0905;
  border-radius: 3px;
  background: var(--lcd-bg);
  background-image: var(--lcd-lines);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

html[data-theme="cassette"] .score-chip {
  border: 0;
  border-radius: 2px;
  color: rgba(255, 176, 0, 0.45);
  font-family: var(--font-num);
}

html[data-theme="cassette"] .score-chip + .score-chip {
  border-left: 1px solid rgba(255, 176, 0, 0.15);
}

html[data-theme="cassette"] .score-name {
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="cassette"] .score-points {
  color: rgba(255, 176, 0, 0.6);
}

html[data-theme="cassette"] .score-chip.is-active {
  background: var(--lcd-ghost);
  color: var(--lcd-ink);
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .score-chip.is-active .score-points {
  color: var(--lcd-ink);
}

html[data-theme="cassette"] .score-chip.is-active .score-name::before {
  content: "\25B6\00A0";
}

/* Banner: het display van de radio */
html[data-theme="cassette"] .turn-banner {
  border: 3px solid #0b0905;
  border-radius: 6px;
  background: var(--lcd-bg);
  background-image: var(--lcd-lines);
  box-shadow: 0 0 0 4px #312c26, 0 18px 50px rgba(0, 0, 0, 0.6);
  color: var(--lcd-ink);
  text-shadow: var(--lcd-glow);
}

/* Podium: de ranglijst op het display */
html[data-theme="cassette"] .podium {
  gap: 0;
  padding: 6px;
  border: 3px solid #0b0905;
  border-radius: 4px;
  background: var(--lcd-bg);
  background-image: var(--lcd-lines);
  box-shadow: 0 0 0 4px #312c26;
}

html[data-theme="cassette"] .podium-row {
  border: 0;
  border-radius: 2px;
  color: rgba(255, 176, 0, 0.6);
  font-family: var(--font-num);
}

html[data-theme="cassette"] .podium-row + .podium-row {
  border-top: 1px dashed rgba(255, 176, 0, 0.2);
  border-radius: 0;
}

html[data-theme="cassette"] .podium-place,
html[data-theme="cassette"] .podium-name,
html[data-theme="cassette"] .podium-stats,
html[data-theme="cassette"] .podium-score {
  color: inherit;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-theme="cassette"] .podium-row.place-1 {
  background: var(--lcd-ghost);
  color: var(--lcd-ink);
  text-shadow: var(--lcd-glow);
}

html[data-theme="cassette"] .podium-row.place-1 .podium-place,
html[data-theme="cassette"] .podium-row.place-1 .podium-name,
html[data-theme="cassette"] .podium-row.place-1 .podium-stats,
html[data-theme="cassette"] .podium-row.place-1 .podium-score {
  color: var(--lcd-ink);
}

html[data-theme="cassette"] .podium-row.place-1 .podium-score {
  font-size: 1.6rem;
}

html[data-theme="cassette"] .podium-row.place-2,
html[data-theme="cassette"] .podium-row.place-3 {
  color: rgba(255, 176, 0, 0.85);
}

html[data-theme="cassette"] .player-row {
  border: 2px solid #0b0905;
  background: var(--field-bg);
}

html[data-theme="cassette"] .player-row::before {
  border-right-color: #0b0905;
  background: var(--lcd-bg);
  color: var(--lcd-ink);
  font-family: var(--font-num);
  text-shadow: var(--lcd-glow);
}

/* ---------- Telefoon: smal cassettelabel, kleine PLAY-toets, tik-lijnen zonder kader ---------- */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  /* Alleen het label (geen spoeltjes): past op één rij naast de toets */
  html[data-theme="cassette"] .unknown-card {
    grid-template-rows: 1fr auto auto 1fr;
    background: linear-gradient(#36312a, #2a2620);
  }

  html[data-theme="cassette"] .unknown-card::before {
    top: 6px;
    bottom: 6px;
    left: 6px;
    right: 6px;
    height: auto;
  }

  html[data-theme="cassette"] .unknown-card > p {
    padding: 0 4px 0 14px;
  }

  html[data-theme="cassette"] .unknown-card strong {
    font-size: 1.05rem;
  }

  html[data-theme="cassette"] .unknown-icon {
    grid-row: 1 / -1;
    font-size: 1.8rem;
  }

  html[data-theme="cassette"] .play-btn {
    width: 60px;
    height: 46px;
  }

  html[data-theme="cassette"] .drop-zone {
    border: 0;
    background: none;
  }

  html[data-theme="cassette"] .drop-zone::after {
    border-top-color: rgba(255, 176, 0, 0.35);
  }
}

/* ---------- Groot scherm: de hoes als scherp vierkantje rechts op het label ---------- */
@media (min-width: 701px) and (min-height: 501px), (min-width: 701px) and (pointer: fine) {
  html[data-theme="cassette"] .timeline-card .timeline-cover-background {
    inset: 50% 8px auto auto;
    width: 50px;
    height: 50px;
    aspect-ratio: auto;
    border-radius: 3px;
    opacity: 1;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    -webkit-mask-image: none;
    mask-image: none;
  }

  html[data-theme="cassette"] .timeline-card.has-album-cover .timeline-info {
    padding-right: 66px;
  }

  /* Spotify-rondje klein op de hoek van de hoes */
  html[data-theme="cassette"] .spotify-source-link {
    top: calc(50% + 11px);
    right: 2px;
    width: 22px;
    height: 22px;
    transform: none;
    box-shadow: 0 0 0 2px var(--card-bg);
  }

  html[data-theme="cassette"] .spotify-source-link .spotify-source-icon {
    width: 16px;
    height: 16px;
  }

  html[data-theme="cassette"] .timeline-card.has-album-cover .timeline-missed-label {
    right: 72px;
  }
}

/* =========================================================
   Groot scherm, solo en feest: nieuwe indeling over het hele scherm
   Links het hifi-deck (LCD, cassette, toetsen, label), rechts een cassettemuur: liggende
   doosjes op planken, met de hoes als J-kaart over de volle hoogte. Bij de onthulling
   komt de hoes groot op het label in het deck.
   ========================================================= */
@media (min-width: 701px) and (min-height: 501px), (min-width: 701px) and (pointer: fine) {
  html[data-theme="cassette"] #game-screen:not([data-online]) {
    --stage-w: clamp(330px, 24vw, 430px);
    --unknown-h: clamp(140px, 19vh, 176px);
    --unknown-max: 240px;
    --reveal-cover: min(100%, 25vh, 250px);
    --reveal-title: 1.65rem;

    /* ---------- Deck ---------- */
    .game-topbar {
      padding: 12px 16px;
    }

    .game-topbar .stat-value {
      font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    }

    .card-section {
      gap: 16px;
      padding: 22px 20px 20px;
    }

    .unknown-card strong {
      font-size: 1.45rem;
    }

    .unknown-icon {
      font-size: 2.8rem;
    }

    .playback-controls {
      grid-template-columns: auto minmax(0, 1fr);
      justify-items: stretch;
      align-items: center;
      gap: 14px;
      padding: 14px;
      border: 2px solid #0b0905;
      border-radius: 6px;
      background: linear-gradient(#2b2722, #221f1a);
      box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55);
    }

    .audio-block {
      grid-template-columns: auto minmax(0, 1fr);
      justify-items: stretch;
    }

    .wave-container {
      display: grid;
      place-items: center;
    }

    .youtube-link {
      height: 100%;
      min-height: 56px;
      padding-inline: 10px;
      white-space: normal;
      text-align: center;
    }

    /* Het label van het deck, met de hoes erop als J-kaart */
    .reveal-section {
      gap: 10px;
      padding: 16px 16px 14px;
    }

    .song-info.has-cover .song-cover {
      border: 3px solid #0e0c0a;
      border-radius: 3px;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    }

    #song-year {
      font-size: 1.4rem;
    }

    /* ---------- Cassettemuur ---------- */
    .timeline-section {
      gap: 12px;
    }

    .timeline-container {
      --rij-start: 2;
      --card-max: 640px;
      --tile-ratio: 0.36;
      --tile-fill-max: 0.24;
      --stub-h: clamp(30px, calc(var(--card-w) * 0.08), 40px);
      --slot-w: 30px;
      --col-gap: 8px;
      --row-gap: 22px;
      --tl-pad-x: 22px;
      --tl-pad-y: 18px;
      --tl-border: 2px;
      justify-content: start;
      align-content: start;
      align-items: center;
      border: 2px solid #0b0905;
      /* Planken onder elke rij, en de zijkanten van het rek */
      background:
        linear-gradient(90deg, #2d2923 0 10px, transparent 10px calc(100% - 10px), #2d2923 calc(100% - 10px)),
        repeating-linear-gradient(to bottom,
          transparent 0 calc(var(--tile-h) + 6px),
          #4a4339 calc(var(--tile-h) + 6px) calc(var(--tile-h) + 9px),
          #2b2620 calc(var(--tile-h) + 9px) calc(var(--tile-h) + 16px),
          transparent calc(var(--tile-h) + 16px) calc(var(--tile-h) + var(--row-gap))),
        var(--timeline-bg);
      background-position: 0 0, 0 var(--tl-pad-y), 0 0;
      background-attachment: local;
    }

    /* Plekken: smalle gleuven tussen de doosjes */
    .drop-zone {
      gap: 8px;
      padding: 8px 0;
      border: 1.5px dashed rgba(255, 176, 0, 0.32);
      border-radius: 4px;
    }

    .drop-zone::before {
      width: 22px;
      height: 22px;
      font-size: 1rem;
    }

    .drop-zone span:not(.zone-pointers) {
      font-size: 0.66rem;
    }

    .drop-zone.is-disabled {
      opacity: 0.22;
    }

    /* Een liggend cassettedoosje: links de hoes als J-kaart, rechts titel, artiest en
       het jaar op een LCD-strookje */
    .timeline-card {
      padding: clamp(8px, calc(var(--tile-h) * 0.08), 14px) 14px 0 calc(var(--tile-h) + 14px);
      gap: 6px;
      border-radius: 5px;
      box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 10px 18px rgba(0, 0, 0, 0.3);
    }

    .timeline-card .timeline-cover-background {
      inset: 0 auto 0 0;
      width: var(--tile-h);
      height: 100%;
      aspect-ratio: auto;
      border-radius: 5px 0 0 5px;
      opacity: 1;
      transform: none;
      box-shadow: 2px 0 0 rgba(0, 0, 0, 0.3);
      -webkit-mask-image: none;
      mask-image: none;
    }

    /* Zonder hoes: een inlegkaart met twee spoelen, nooit een gat */
    .timeline-card:not(.has-album-cover)::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      z-index: 1;
      width: var(--tile-h);
      border-radius: 5px 0 0 5px;
      background:
        radial-gradient(circle at 32% 55%, #141210 0 9%, #d9cbb0 9.5% 12%, #4a4339 12.5% 22%, transparent 22.5%),
        radial-gradient(circle at 68% 55%, #141210 0 9%, #d9cbb0 9.5% 12%, #4a4339 12.5% 22%, transparent 22.5%),
        linear-gradient(to bottom, #ff7a1a 0 8%, transparent 8%),
        linear-gradient(#36312a, #2a2620);
    }

    .timeline-info {
      align-content: center;
      gap: 3px;
    }

    .timeline-title {
      max-height: calc(3 * 1.15em + 1px);
      white-space: normal;
      font-size: clamp(1rem, calc(var(--card-w) / 17), 1.55rem);
    }

    .timeline-artist {
      font-size: clamp(0.72rem, calc(var(--card-w) / 30), 0.92rem);
    }

    .timeline-year {
      justify-content: flex-start;
      margin: 0 -14px;
      padding: 0 14px;
      font-size: clamp(1.1rem, calc(var(--tile-h) / 6), 1.5rem);
    }

    .timeline-card.has-album-cover .timeline-info,
    .timeline-card.is-missed .timeline-info {
      padding: 0;
    }

    .timeline-missed-label,
    .timeline-card.has-album-cover .timeline-missed-label {
      top: 8px;
      right: 8px;
      transform: rotate(3deg);
    }

    /* Spotify-rondje op de hoek van de hoes */
    .spotify-source-link {
      top: auto;
      right: auto;
      bottom: 5px;
      left: calc(var(--tile-h) - 29px);
      width: 24px;
      height: 24px;
      transform: none;
      box-shadow: 0 0 0 2px #f1e4cc;
    }

    .spotify-source-link .spotify-source-icon {
      width: 17px;
      height: 17px;
    }
  }

  /* ---------- Eindscherm: links de LCD-uitlezing, rechts de inlegkaart "Kant A" ---------- */
  html[data-theme="cassette"] #end-screen:not([data-online]) {
    .end-card {
      grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.8fr);
      padding: clamp(22px, 2.4vw, 36px);
    }

    .final-score {
      font-size: clamp(4.4rem, 7vw, 6.6rem);
    }
  }
}

/* ---------- Eindoverzicht (groot scherm en telefoon) ---------- */
html[data-theme="cassette"] #end-screen:not([data-online]) {
  .end-recap {
    padding: 22px 22px 18px;
    border-radius: 4px;
    background:
      linear-gradient(to bottom, #ff7a1a 0 6px, transparent 6px),
      repeating-linear-gradient(to bottom, transparent 0 23px, rgba(43, 38, 32, 0.09) 23px 24px),
      var(--paper);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    color: var(--paper-ink);
  }

  .recap-title {
    color: #c2410c;
    font-family: var(--font-title);
    font-size: 1.5rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .recap-title::before {
    content: "Kant A \00B7  ";
    color: var(--paper-ink);
    font-family: var(--font-num);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: 0.2em;
  }

  #recap-missed-title::before {
    content: "Kant B \00B7  ";
  }

  /* De tracklist: rijen met de hoes, het LCD-jaar, titel en artiest */
  .recap-list {
    --recap-cover: 104px;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--recap-w, 400px), 100%), 1fr));
    gap: 10px 18px;
  }

  .end-recap[data-dicht="1"] .recap-list { --recap-w: 350px; --recap-cover: 88px; }
  .end-recap[data-dicht="2"] .recap-list { --recap-w: 310px; --recap-cover: 74px; }
  .end-recap[data-dicht="3"] .recap-list { --recap-w: 270px; --recap-cover: 62px; }
  .end-recap[data-dicht="4"] .recap-list { --recap-w: 240px; --recap-cover: 52px; }
  .end-recap[data-dicht="5"] .recap-list { --recap-w: 210px; --recap-cover: 44px; }
  .end-recap[data-dicht="6"] .recap-list,
  .end-recap[data-dicht="7"] .recap-list { --recap-w: 190px; --recap-cover: 38px; }

  .recap-card {
    grid-template-columns: var(--recap-cover) auto minmax(0, 1fr) auto;
    grid-template-areas: "cover year text mark";
    gap: 12px;
    padding: 0 12px 0 0;
    border: 0;
    border-bottom: 1.5px dashed rgba(43, 38, 32, 0.25);
    border-radius: 0;
    background: none;
  }

  .recap-cover,
  .recap-card::before {
    width: var(--recap-cover);
    margin: 0;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .recap-card::before {
    background:
      radial-gradient(circle at 32% 55%, #141210 0 9%, #d9cbb0 9.5% 12%, #4a4339 12.5% 22%, transparent 22.5%),
      radial-gradient(circle at 68% 55%, #141210 0 9%, #d9cbb0 9.5% 12%, #4a4339 12.5% 22%, transparent 22.5%),
      linear-gradient(#36312a, #2a2620);
  }

  .recap-year {
    padding: 4px 7px;
  }

  .recap-text {
    padding: 0;
  }

  .recap-text strong {
    font-size: clamp(0.95rem, calc(var(--recap-cover) / 6.5), 1.3rem);
  }

  .recap-text span {
    font-size: 0.8rem;
  }

  .recap-mark {
    padding: 0;
    font-size: 0.9rem;
  }
}

/* Telefoon: één kolom tracklist met kleinere hoezen */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  html[data-theme="cassette"] #end-screen:not([data-online]) {
    .end-recap {
      padding: 16px 12px 12px;
    }

    .recap-list {
      --recap-w: 280px;
      --recap-cover: 56px;
      gap: 6px;
    }

    .recap-card {
      gap: 10px;
    }

    .recap-title {
      font-size: 1.25rem;
    }
  }
}

/* Telefoon: de tijdlijn loopt door tot onderaan, als een rek met zijkanten */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  html[data-theme="cassette"] .timeline-container {
    border: 2px solid #0b0905;
    background:
      linear-gradient(90deg, #2d2923 0 6px, transparent 6px calc(100% - 6px), #2d2923 calc(100% - 6px)),
      var(--timeline-bg);
  }
}
