/* =========================================================
   Fat Guy Haircuts: the shop
   ========================================================= */
:root {
  --red: #c8553d;          /* sun-faded pole red */
  --red-deep: #9b302a;     /* cracked vinyl */
  --blue: #3d6a8a;         /* faded pole blue */
  --blue-deep: #24445a;
  --cream: #f3e9d2;
  --paper: #efe2c4;
  --wood: #6b4226;
  --wood-dark: #4a2c17;
  --chrome: #c9ced3;
  --chrome-dark: #8f959b;
  --ink: #1c1612;
  --ink-soft: #3a2e26;
  --pink: #ff4fa3;
  --teal: #2de2d0;
  --gold: #ffd166;
  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "VT323", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --focus: 0 0 0 3px var(--ink), 0 0 0 6px var(--teal);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--cream); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
.small { font-size: .9rem; }
.empty { font-family: var(--mono); font-size: 1.5rem; opacity: .8; margin: 1rem 0; list-style: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.3em; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-size: 1rem; letter-spacing: .02em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn--neon {
  background: var(--ink); color: #fff;
  box-shadow: 0 0 0 3px var(--pink), 0 0 18px rgba(255, 79, 163, .6), inset 0 0 12px rgba(255, 79, 163, .35);
  text-shadow: 0 0 8px var(--pink);
}
.btn--neon:hover { box-shadow: 0 0 0 3px var(--teal), 0 0 22px rgba(45, 226, 208, .7), inset 0 0 12px rgba(45, 226, 208, .35); text-shadow: 0 0 8px var(--teal); }
.btn--neon:focus-visible { box-shadow: var(--focus); }
.btn--chrome {
  background: linear-gradient(#f4f6f7, var(--chrome) 45%, var(--chrome-dark));
  color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #5f656b;
}
.btn--chrome[aria-pressed="true"] { background: linear-gradient(#ffd9e9, #ff9cc8 45%, #e0558f); }
.btn--small { min-height: 40px; padding: .4em 1em; font-size: .85rem; }

/* ---------- Barber pole ---------- */
.pole {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: 34px; height: 140px;
}
.pole__cap {
  width: 42px; height: 16px; border-radius: 50% 50% 8px 8px;
  background: linear-gradient(90deg, #8f959b, #f4f6f7 40%, #8f959b);
}
.pole__cap:last-child { border-radius: 8px 8px 50% 50%; }
.pole__glass {
  flex: 1; width: 100%; border-radius: 4px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, var(--cream) 12px 24px, var(--blue) 24px 36px, var(--cream) 36px 48px);
  background-size: 100% 200%;
  animation: pole 2.4s linear infinite;
  box-shadow: inset 6px 0 8px rgba(255, 255, 255, .45), inset -8px 0 10px rgba(0, 0, 0, .3);
}
@keyframes pole { to { background-position: 0 -67.88px; } }
.pole--mini { width: 14px; height: 30px; }
.pole--mini .pole__glass { border-radius: 4px; background-size: 100% 200%; }
.pole--big { width: 46px; height: 180px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: none;
  place-items: center; align-content: center; gap: 18px; background: var(--ink); color: var(--cream);
  transition: opacity .4s ease;
}
.js .loader { display: grid; }
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__text { font-family: var(--mono); font-size: 1.6rem; margin: 0; }

/* ---------- Neon ---------- */
.neon { font-family: var(--display); margin: 0; line-height: 1; }
.neon--open {
  display: inline-block; padding: .18em .4em; font-size: 2.4rem; color: #ffe6f3;
  border: 4px solid var(--teal); border-radius: 12px;
  text-shadow: 0 0 6px var(--pink), 0 0 16px var(--pink), 0 0 30px var(--pink);
  box-shadow: 0 0 10px var(--teal), 0 0 24px rgba(45, 226, 208, .6), inset 0 0 10px rgba(45, 226, 208, .5);
  animation: flicker 7s infinite;
}
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .35; text-shadow: none; }
}

/* ---------- Door (opening scene) ---------- */
.door {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; align-content: center; gap: 18px;
  padding: 20px; color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 209, 102, .25), transparent 60%),
    repeating-linear-gradient(90deg, #6e6a62 0 2px, #7c776e 2px 90px),
    #77726a;
  transition: opacity .6s ease, transform .6s ease;
}
.door[hidden] { display: none; }
.door.is-leaving { opacity: 0; transform: scale(1.15); pointer-events: none; }
.door__frame {
  position: relative; width: min(360px, 82vw); aspect-ratio: 3 / 5; max-height: 64vh;
  padding: 16px; border-radius: 6px;
  background: linear-gradient(90deg, #a8adb3, #eef1f3 20%, #a8adb3 50%, #eef1f3 80%, #a8adb3);
  box-shadow: var(--shadow);
}
.door__glass {
  height: 100%; border-radius: 3px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center;
  background: linear-gradient(160deg, rgba(120, 200, 220, .35), rgba(20, 30, 40, .9) 60%), #18222a;
  padding: 16px;
}
.door__hours { font-family: var(--mono); font-size: 1.05rem; line-height: 1.1; margin: 0; color: #d7f6f2; }
.door__title {
  font-family: var(--display); font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1; margin: 0;
  color: var(--cream); text-shadow: 3px 3px 0 var(--red);
}
.door__sub { margin: 0; font-size: .95rem; }
.door__handle {
  position: absolute; right: 26px; top: 52%; width: 12px; height: 70px; border-radius: 6px;
  background: linear-gradient(90deg, #8f959b, #fff, #8f959b);
}
.door__bell {
  position: absolute; left: 50%; top: -18px; width: 26px; height: 22px; margin-left: -13px;
  border-radius: 13px 13px 4px 4px; background: radial-gradient(circle at 35% 30%, #fff3c4, #d6a93a 60%, #8a6619);
  transform-origin: 50% 0;
}
.door.is-leaving .door__bell { animation: ring .5s ease 2; }
@keyframes ring { 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }
.door__hint { margin: 0; font-family: var(--mono); font-size: 1.2rem; opacity: .85; }

/* ---------- Top bar & nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(16px, 3vw, 32px);
  background: rgba(28, 22, 18, .92); color: var(--cream);
  border-bottom: 3px solid var(--red);
  backdrop-filter: blur(6px);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 4px; background: var(--blue);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font-family: var(--display); font-size: 1.05rem; letter-spacing: .02em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="true"] { background: var(--cream); color: var(--ink); }
.navtoggle {
  display: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--cream);
  background: transparent; color: var(--cream); font-weight: 700; cursor: pointer;
}
.plain__back { color: var(--cream); font-weight: 700; }

/* ---------- The scene (desktop) ---------- */
.scene-wrap { background: #120e0b; }
.scene {
  position: relative; width: 100%; max-width: 1600px; margin: 0 auto;
  aspect-ratio: 16 / 9; max-height: calc(100vh - 60px); min-height: 520px;
  overflow: hidden; container-type: inline-size;
}
.scene__ceiling {
  position: absolute; inset: 0 0 auto; height: 7%;
  background: repeating-linear-gradient(90deg, #ddd5c3 0 calc(12.5% - 3px), #b8af9d calc(12.5% - 3px) 12.5%);
  box-shadow: 0 4px 0 #8b8270;
}
.scene__paper {
  position: absolute; left: 0; right: 0; top: 7%; height: 36%;
  background:
    linear-gradient(rgba(255, 238, 200, .25), rgba(0, 0, 0, .05)),
    repeating-linear-gradient(90deg, #e9d8b4 0 22px, #dcc79c 22px 26px, #e9d8b4 26px 48px, #b9cbd3 48px 52px);
  filter: sepia(.15) saturate(.85);
}
.scene__wainscot {
  position: absolute; left: 0; right: 0; top: 43%; height: 23%;
  background:
    linear-gradient(#3a2414, #3a2414) top / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--wood) 0 6%, #7b4d2c 6% 6.4%, var(--wood-dark) 6.4% 6.7%, #5e3920 6.7% 12%);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .35);
}
.scene__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  perspective: 600px; overflow: hidden; background: #2b2420;
}
.scene__checks {
  position: absolute; left: -50%; right: -50%; top: 0; height: 300%;
  transform-origin: top center; transform: rotateX(62deg);
  background:
    conic-gradient(#e8e0cf 25%, #262220 0 50%, #e8e0cf 0 75%, #262220 0) 0 0 / 80px 80px;
  filter: sepia(.25) brightness(.95);
}
.scene__vhs {
  position: absolute; inset: 0; pointer-events: none; z-index: 40; mix-blend-mode: overlay; opacity: .35;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .25) 2px 3px);
}
.scene__vhs::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6%; top: -10%;
  background: linear-gradient(transparent, rgba(255, 255, 255, .35), transparent);
  animation: tracking 9s linear infinite;
}
@keyframes tracking { 0% { top: -10%; } 30%, 100% { top: 110%; } }
.scene__hint {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); z-index: 30; margin: 0;
  font-family: var(--mono); font-size: clamp(1rem, 1.5cqi, 1.5rem); color: var(--cream);
  background: rgba(0, 0, 0, .55); padding: 2px 12px; border-radius: 6px;
}

.obj { position: absolute; z-index: 10; }
.window {
  left: 1.5%; top: 11%; width: 15%; height: 52%;
  border: 1cqi solid #a8adb3; border-radius: 4px;
  background: linear-gradient(170deg, #9ad4e0 0%, #f7c58f 55%, #f39b7a 100%);
  display: grid; place-items: center; align-content: start; gap: 8%; padding-top: 12%; overflow: hidden;
}
.window .neon--open { font-size: 2.1cqi; border-width: .3cqi; }
.window__letters {
  margin: 0; font-family: var(--display); font-size: 1.3cqi; color: rgba(255, 255, 255, .85); text-align: center; line-height: 1.1;
  transform: scaleX(-1); /* reads backwards from inside */
}
.blinds {
  position: absolute; inset: 0 0 auto; height: 22%;
  background: repeating-linear-gradient(#f3e9d2 0 6px, #d7cbb0 6px 8px);
}
.pole-stand { left: 17.5%; top: 15%; }
.pole-stand .pole { width: 2.2cqi; height: 16cqi; }
.pole-stand .pole__cap { width: 2.8cqi; height: 1cqi; }

.clock { left: 46.5%; top: 9%; width: 7cqi; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); z-index: 12; }
.clock svg line { transform-origin: 50px 50px; }

.mirror {
  left: 40%; top: 20%; width: 20%; height: 30%;
  border: .7cqi solid #c9ced3; border-radius: 14px 14px 4px 4px;
  background: linear-gradient(135deg, #9fb4bd, #dfe9ec 40%, #8ea4ad 70%, #c6d5da);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .2), 0 6px 12px rgba(0, 0, 0, .3); overflow: hidden;
}
.mirror__shine { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 46%, transparent 52%); }
.mirror__sticker {
  position: absolute; left: 6%; top: 8%; padding: 2px 6px; font-family: var(--display); font-size: .9cqi;
  background: var(--cream); color: var(--red); transform: rotate(-4deg); border-radius: 3px;
}
.plaque-nail { left: 36.5%; top: 26%; width: .6cqi; height: .6cqi; border-radius: 50%; background: #777; }

/* Hotspots */
.hotspot {
  display: block; text-decoration: none; cursor: pointer; border-radius: 12px;
  transition: transform .25s ease, filter .25s ease;
}
.hotspot:hover, .hotspot:focus-visible { filter: drop-shadow(0 0 10px rgba(45, 226, 208, .8)) brightness(1.08); }
.hotspot:focus-visible { box-shadow: none; outline: 3px dashed var(--teal); outline-offset: 6px; }
.tag {
  position: absolute; left: 50%; top: -1.2cqi; transform: translate(-50%, -100%) rotate(-3deg);
  white-space: nowrap; padding: .3cqi .8cqi; border-radius: 4px;
  font-family: var(--display); font-size: max(13px, 1.05cqi); color: var(--ink);
  background: var(--cream); box-shadow: 2px 3px 0 var(--red);
  opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.hotspot:hover .tag, .hotspot:focus-visible .tag, .scene.show-tags .tag { opacity: 1; transform: translate(-50%, -110%) rotate(-3deg); }

.radio-shelf { left: 21%; top: 24%; width: 14%; }
.shelf { position: absolute; left: -10%; right: -10%; bottom: -1cqi; height: 1.2cqi; background: var(--wood-dark); border-radius: 2px; box-shadow: 0 6px 6px rgba(0, 0, 0, .35); }
.radio-art__needle { transition: transform .4s ease; }

.chair { left: 42%; top: 35%; width: 16%; z-index: 14; perspective: 800px; }
.chair__spin { display: block; transform-style: preserve-3d; }
.chair:hover .chair__spin, .chair:focus-visible .chair__spin { animation: spin 1.1s ease-in-out; }
@keyframes spin { to { transform: rotateY(360deg); } }

.photowall { left: 63%; top: 12%; width: 18%; height: 30%; }
.photowall__board {
  position: absolute; inset: 0; border-radius: 6px; padding: 6%;
  background: radial-gradient(#b48a5a 1px, transparent 1.4px) 0 0 / 8px 8px, #9c7346;
  box-shadow: inset 0 0 0 .5cqi #5a3a20, 0 6px 10px rgba(0, 0, 0, .35);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; align-items: center;
}
.polaroid {
  position: relative; display: block; aspect-ratio: 4 / 5; background: #fbf7ee; padding: 6% 6% 22%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.polaroid::before { content: ""; display: block; height: 100%; background: linear-gradient(160deg, #8ea9b6, #4f6a77); }
.p1 { transform: rotate(-6deg); } .p2 { transform: rotate(4deg); } .p3 { transform: rotate(-2deg); }
.p4 { transform: rotate(3deg); } .p5 { transform: rotate(-5deg); } .p6 { transform: rotate(6deg); }
.p2::before { background: linear-gradient(160deg, #c9a37c, #7a5536); }
.p4::before { background: linear-gradient(160deg, #e3b59a, #a0604a); }
.p6::before { background: linear-gradient(160deg, #a7b78f, #59683f); }
.polaroid .ribbon {
  position: absolute; right: -14%; top: -14%; width: 2cqi; height: 2cqi; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: var(--display); font-size: .7cqi; display: grid; place-items: center;
  box-shadow: 0 0 0 .25cqi var(--gold);
}

.counter { left: 63%; top: 50%; width: 19%; z-index: 13; }
.jukebox { left: 83.5%; top: 30%; width: 12%; z-index: 13; }
.jukebox__arc { animation: glowcycle 4s linear infinite; }
@keyframes glowcycle { 50% { filter: hue-rotate(90deg) brightness(1.2); } }
.jukebox:hover .jukebox__records { animation: wobble .6s linear infinite; transform-origin: center; }
@keyframes wobble { 50% { opacity: .75; } }

.waiting { left: 19%; top: 62%; width: 17%; z-index: 12; }
.cat {
  left: 25.5%; top: 59.5%; width: 7%; z-index: 13; padding: 0; border: 0; background: none; cursor: pointer;
}
.cat__body { transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.05); } }
.cat__z {
  position: absolute; right: 10%; top: -20%; font-family: var(--display); color: var(--cream); font-size: 1.3cqi;
  animation: zzz 3s ease-in-out infinite;
}
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 10px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -14px); } }
.cat.is-petted .cat__body { animation: purr .12s linear 12; }
@keyframes purr { 50% { transform: translateX(1px); } }

/* Mobile storefront: hidden on desktop */
.storefront { display: none; }

/* ---------- Stations (shared) ---------- */
.station { position: relative; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.station__inner { max-width: 1120px; margin: 0 auto; }
.station__head { margin-bottom: 28px; }
.station__kicker { margin: 0 0 6px; font-family: var(--mono); font-size: 1.35rem; letter-spacing: .04em; }
.station h2 {
  margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.05;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
}
.station__lede { margin: 10px 0 0; font-size: 1.15rem; max-width: 60ch; }

/* Radio station */
.station--radio {
  background:
    repeating-linear-gradient(90deg, var(--wood) 0 70px, #74492a 70px 72px, var(--wood-dark) 72px 74px),
    var(--wood);
  color: var(--cream);
}
.station--radio h2 { text-shadow: 4px 4px 0 var(--red-deep); }
.radio__cabinet {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: clamp(16px, 3vw, 32px);
  border-radius: 40px; background: linear-gradient(160deg, #8a5532, #5e3820); border: 6px solid #3a2414;
  box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, .15);
}
.radio__grille {
  border-radius: 24px; min-height: 220px;
  background: repeating-linear-gradient(#d8c7a0 0 10px, #a89272 10px 14px);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .35);
}
.radio__face { display: grid; gap: 18px; align-content: start; }
.radio__window {
  position: relative; height: 72px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(#ffeab0, #f2cf7a); border: 4px solid #3a2414; box-shadow: inset 0 0 18px rgba(255, 170, 40, .7);
}
.radio__scale {
  display: flex; justify-content: space-between; padding: 8px 16px; font-family: var(--mono); font-size: 1.3rem; color: var(--ink-soft);
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(58, 46, 38, .5) 9px 10px) bottom / 100% 14px no-repeat;
  height: 100%;
}
.radio__needle {
  position: absolute; top: 4px; bottom: 4px; width: 4px; left: 12%; background: var(--red); border-radius: 2px;
  box-shadow: 0 0 6px rgba(200, 85, 61, .8); transition: left .5s cubic-bezier(.5, 1.6, .5, 1);
}
.radio__static {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 63% 71%, #000 0 1px, transparent 1px 2px);
  background-size: 7px 7px, 5px 5px;
}
.radio__static.is-on { animation: static .55s steps(6) 1; }
@keyframes static { 0% { opacity: .9; background-position: 0 0, 3px 1px; } 50% { background-position: 4px 2px, 0 4px; opacity: .8; } 100% { opacity: 0; background-position: 1px 5px, 2px 0; } }
.radio__display { background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 12px 16px; }
.radio__now { margin: 0; font-family: var(--mono); font-size: 1.15rem; opacity: .85; }
.radio__station { margin: 2px 0; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold); }
.radio__genres { margin: 0; }
.radio__controls { display: grid; gap: 12px; }
.radio__dial-label { font-weight: 700; }
.radio__dial {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 7px; cursor: pointer;
  background: linear-gradient(90deg, #3a2414, #1c1209); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6);
}
.radio__dial::-webkit-slider-thumb {
  -webkit-appearance: none; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--chrome) 45%, #6c7277);
  border: 3px solid #3a2414; box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
}
.radio__dial::-moz-range-thumb {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--chrome) 45%, #6c7277);
  border: 3px solid #3a2414;
}
.radio__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.radio__presets button {
  min-height: 44px; padding: 6px 14px; border-radius: 10px; cursor: pointer;
  background: #2a1a0f; color: var(--cream); border: 2px solid #a8adb3; font-weight: 700;
}
.radio__presets button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.radio__note { margin: 18px 4px 0; font-size: .95rem; opacity: .9; }

/* Tales */
.station--tales {
  background:
    linear-gradient(rgba(18, 26, 34, .9), rgba(18, 26, 34, .96)),
    repeating-linear-gradient(transparent 0 3px, rgba(45, 226, 208, .07) 3px 4px);
  color: var(--cream);
}
.station--tales h2 { color: #fff; text-shadow: 0 0 12px rgba(45, 226, 208, .7), 3px 3px 0 var(--blue); }
.tales__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 44px; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-weight: 700;
  background: transparent; color: var(--cream); border: 2px solid rgba(243, 233, 210, .5);
}
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.series { margin-bottom: 36px; }
.series__title { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0 0 4px; color: var(--gold); }
.series__blurb { margin: 0 0 14px; opacity: .9; }
.tapes {
  list-style: none; margin: 0; padding: 14px 14px 22px; display: flex; gap: 14px; overflow-x: auto;
  background: linear-gradient(transparent calc(100% - 14px), var(--wood-dark) 0); scroll-snap-type: x mandatory;
}
.tape {
  flex: 0 0 auto; width: 170px; scroll-snap-align: start; text-align: left; cursor: pointer;
  border: 0; padding: 0; background: none; color: inherit;
}
.tape__box {
  display: flex; flex-direction: column; justify-content: space-between; height: 230px; padding: 12px;
  border-radius: 6px; background: #111; box-shadow: 4px 6px 0 rgba(0, 0, 0, .4); position: relative; overflow: hidden;
}
.tape__box::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--c1, #3d6a8a), var(--c2, #1c1612) 70%);
  opacity: .85;
}
.tape__box > * { position: relative; }
.tape__label {
  background: var(--cream); color: var(--ink); padding: 6px 8px; border-radius: 3px;
  font-family: var(--mono); font-size: 1.15rem; line-height: 1.05;
}
.tape__ep { font-family: var(--display); font-size: .8rem; color: var(--gold); }
.tape__meta { font-family: var(--mono); font-size: 1rem; opacity: .9; }
.tape:hover .tape__box, .tape:focus-visible .tape__box { transform: translateY(-6px) rotate(-1deg); transition: transform .2s ease; }
.tape[aria-disabled="true"] { cursor: default; opacity: .7; }
.tape__soon { font-family: var(--display); font-size: .75rem; background: var(--red); color: #fff; padding: 2px 6px; border-radius: 3px; align-self: start; }

/* Rate the Cut */
.station--rate {
  background:
    radial-gradient(#b48a5a 1.2px, transparent 1.6px) 0 0 / 10px 10px,
    #a47a4b;
  color: var(--ink);
}
.station--rate h2 { color: var(--cream); text-shadow: 4px 4px 0 var(--blue-deep); }
.station--rate .station__kicker, .station--rate .station__lede { color: #fff7e6; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.rate__layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rate__layout > * { min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rate__wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.rate__wall .empty { color: var(--cream); grid-column: 1 / -1; }
.cut {
  background: #fbf7ee; padding: 10px 10px 12px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transform: rotate(var(--tilt, 0deg));
  border-radius: 2px;
}
.cut img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd; }
.cut__cap { margin: 8px 0 2px; font-family: var(--mono); font-size: 1.2rem; line-height: 1.1; }
.cut__by { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.cut__score { margin: 6px 0; font-weight: 700; }
.cut__score strong { font-family: var(--display); font-size: 1.3rem; color: var(--red); }
.cut__rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cut__rate button {
  min-height: 36px; border: 2px solid var(--ink); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 700;
}
.cut__rate button:hover, .cut__rate button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cut__rate button:disabled { cursor: default; opacity: .6; }
.cut__report { margin-top: 8px; background: none; border: 0; padding: 4px 0; font-size: .85rem; text-decoration: underline; cursor: pointer; color: var(--ink-soft); }
.rate__week {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 32px;
  background: var(--cream); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.rate__ribbon {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--blue); color: #fff; font-family: var(--display); font-size: .8rem; line-height: 1.15;
  box-shadow: 0 0 0 6px var(--gold), 0 0 0 9px var(--blue);
  position: relative;
}
.rate__ribbon::after {
  content: ""; position: absolute; bottom: -42px; left: 34px; width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--red) 50%, transparent 50%) left / 50% 100% no-repeat, linear-gradient(225deg, var(--red) 50%, transparent 50%) right / 50% 100% no-repeat;
  z-index: -1;
}
.rate__week-body { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; }
.rate__week-body img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border: 8px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.rate__upload { background: var(--cream); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.rate__upload h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input[type="text"], .field input[type="file"] {
  width: 100%; min-height: 46px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 8px; background: #fff;
}
.opt { font-weight: 400; color: var(--ink-soft); }
.hint { margin: 4px 0 0; font-size: .85rem; color: var(--ink-soft); }
.up-preview { margin-top: 10px; max-height: 180px; border: 6px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.checks { border: 2px dashed var(--ink-soft); border-radius: 10px; padding: 10px 14px; margin: 16px 0; }
.checks legend { font-weight: 700; padding: 0 6px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.checks input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--red); }
.form-msg { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; }
.form-msg.is-error { color: #a12318; }
.form-msg.is-ok { color: #1c6b3a; }

/* Jukebox */
.station--jukebox {
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 79, 163, .35), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(45, 226, 208, .25), transparent 50%),
    #1d1220;
  color: var(--cream);
}
.station--jukebox h2 { color: #ffe6f3; text-shadow: 0 0 10px var(--pink), 0 0 22px var(--pink); }
.jukebox__toolbar { margin-bottom: 16px; }
.switch { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--pink); }
.jukebox__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; counter-reset: song; }
.song {
  counter-increment: song; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: var(--cream); color: var(--ink); border-radius: 8px; padding: 10px 12px;
  border-left: 10px solid var(--pink);
}
.song:nth-child(3n+2) { border-left-color: var(--teal); }
.song:nth-child(3n) { border-left-color: var(--gold); }
.song::before { content: counter(song, decimal-leading-zero); font-family: var(--display); font-size: 1.1rem; color: var(--red); }
.song__title { margin: 0; font-weight: 700; }
.song__note { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.badge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-family: var(--display); font-size: .7rem; vertical-align: middle; letter-spacing: .03em; }
.badge--x { background: var(--ink); color: #fff; border: 1px solid #fff; }
.song .badge--x { border-color: var(--ink); }
.hide-explicit .song--x { display: none; }

/* Counter */
.station--counter {
  background:
    linear-gradient(var(--wood-dark), var(--wood-dark)) top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--wood) 0 90px, #74492a 90px 92px),
    var(--wood);
  color: var(--cream);
}
.station--counter h2 { text-shadow: 4px 4px 0 var(--blue-deep); }
.counter__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.item { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.item__art { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.item__art svg { width: 70%; }
.item h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.item p { margin: 0; }
.item__tag { position: relative; justify-self: start; font-family: var(--mono); font-size: 1.3rem; background: var(--gold); padding: 0 10px 0 18px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }

/* Footer */
.footer {
  background: var(--ink); color: var(--cream); padding: 40px clamp(16px, 4vw, 40px) 120px;
  border-top: 6px solid var(--red); box-shadow: 0 -12px 0 var(--cream) inset, 0 -18px 0 var(--blue) inset;
}
.footer__inner { max-width: 1120px; margin: 0 auto; }
.footer__brand { font-family: var(--display); font-size: 1.5rem; margin: 0 0 8px; }
.footer__ai { background: rgba(255, 255, 255, .08); padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--teal); }
.footer a { color: var(--teal); }

/* Sound toggle */
.sound {
  position: fixed; left: 16px; bottom: 16px; z-index: 95; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 14px 6px 10px; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--cream); border: 2px solid var(--cream); font-weight: 700; box-shadow: var(--shadow);
}
.sound__icon { width: 22px; height: 22px; position: relative; }
.sound__icon::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 10px; background: currentColor; clip-path: polygon(0 20%, 40% 20%, 100% -20%, 100% 120%, 40% 80%, 0 80%); transform: scale(1.4); transform-origin: left; }
.sound__icon::after { content: ""; position: absolute; left: 14px; top: 4px; width: 2px; height: 16px; background: var(--red); transform: rotate(45deg); }
.sound[aria-pressed="true"] { border-color: var(--teal); }
.sound[aria-pressed="true"] .sound__icon::after { width: 6px; height: 12px; top: 5px; background: none; border: 2px solid currentColor; border-left: 0; border-radius: 0 12px 12px 0; transform: none; }

/* Mini player dock */
.dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 96; width: min(340px, calc(100vw - 32px));
  background: #1b120b; color: var(--cream); border-radius: 16px; overflow: hidden;
  border: 3px solid var(--wood); box-shadow: var(--shadow);
}
.dock[hidden] { display: none; }
.dock__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.dock__led { width: 10px; height: 10px; border-radius: 50%; background: #57f28a; box-shadow: 0 0 8px #57f28a; flex: none; }
.dock__title { margin: 0; flex: 1; font-family: var(--mono); font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__btn { min-height: 36px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--cream); background: transparent; color: var(--cream); cursor: pointer; font-size: .85rem; font-weight: 700; }
.dock__screen { aspect-ratio: 16 / 9; background: #000; }
.dock__screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.dock.is-collapsed .dock__screen { height: 1px; aspect-ratio: auto; overflow: hidden; opacity: 0; }
.has-dock .sound { bottom: 16px; }

/* Modal */
.modal {
  width: min(860px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--cream); color: var(--ink); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(10, 8, 6, .8); }
.modal__inner { padding: 22px; position: relative; }
.modal__close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.6rem; cursor: pointer; }
.modal__title { margin: 0 48px 12px 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.modal__body p { margin: 0 0 12px; }

/* YouTube facade */
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  background: #000 center / cover no-repeat; border-radius: 10px; overflow: hidden;
}
.yt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 36px no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
.yt:hover::after, .yt:focus-visible::after { background-color: var(--pink); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-live::after { display: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); z-index: 120; opacity: 0;
  background: var(--cream); color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 700;
  box-shadow: 4px 4px 0 var(--red); transition: opacity .2s ease, transform .2s ease; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Plain pages */
.plain { background: var(--cream); }
.plain__main { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.plain__article h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; }

/* ---------- Mobile: stacked stations ---------- */
@media (max-width: 860px) {
  html { scroll-snap-type: y proximity; }
  .navtoggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 10px 16px 16px; display: none; border-bottom: 3px solid var(--red); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 14px; font-size: 1.1rem; }

  .scene { display: none; }
  .storefront {
    display: grid; justify-items: center; gap: 14px; text-align: center; padding: 40px 16px 48px; color: var(--cream);
    background:
      linear-gradient(rgba(20, 15, 12, .3), rgba(20, 15, 12, .85)),
      repeating-linear-gradient(90deg, var(--wood) 0 40px, var(--wood-dark) 40px 42px);
    scroll-snap-align: start;
  }
  .storefront__title { margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 12vw, 3.6rem); line-height: 1; text-shadow: 4px 4px 0 var(--red); }
  .storefront__sub { margin: 0; font-family: var(--mono); font-size: 1.4rem; }
  .storefront__list { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; max-width: 420px; display: grid; gap: 10px; }
  .storefront__list a {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px; border-radius: 14px; text-decoration: none;
    background: var(--cream); color: var(--ink); font-weight: 700; font-size: 1.1rem; box-shadow: 4px 4px 0 var(--red);
  }
  .station { scroll-snap-align: start; padding-top: 48px; padding-bottom: 56px; }
  .radio__cabinet { grid-template-columns: 1fr; border-radius: 24px; }
  .radio__grille { min-height: 60px; order: 2; }
  .rate__layout { grid-template-columns: minmax(0, 1fr); }
  .rate__upload { order: -1; }
  .rate__wall { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .rate__week { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rate__week-body { grid-template-columns: 1fr; justify-items: center; }
  .rate__ribbon::after { display: none; }
  .dock { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .has-dock .sound { bottom: auto; top: 76px; left: auto; right: 12px; }
  .sound { left: 12px; bottom: 12px; }
}
@media (max-width: 380px) {
  .rate__wall { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .neon--open { animation: none; }
  .scene__vhs::after { display: none; }
}

/* Memorial plaque (only shows when switched on) */
.plaque { left: 35.2%; top: 24%; width: 4.2%; }
.plaque__plate {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: .3cqi; text-align: center;
  font-family: var(--display); font-size: .6cqi; line-height: 1.1; color: #3a2a0a;
  background: linear-gradient(135deg, #f3d98a, #b8862b 60%, #e8c66a); border: .25cqi solid #6b4f12; border-radius: 4px;
}
.station--memorial { background: #1a1410; color: var(--cream); text-align: center; }
.memorial__plate {
  max-width: 640px; margin: 0 auto; padding: 32px; border-radius: 10px; color: #2e2208;
  background: linear-gradient(135deg, #f3d98a, #c9993a 55%, #edd27d); border: 8px solid #6b4f12;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .4);
}
.memorial__plate h2 { color: #2e2208; text-shadow: none; }
