/* ==========================================================
   Rick 'n' Roll Radio — retro.css
   80s synthwave + 8/16-bit console UI. Pixel-perfect-ish.
   ========================================================== */

@font-face {
  font-family: 'RickNRollNeon';
  src: url('../fonts/RickNRollNeon.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0618;
  --bg2: #160a2e;
  --panel: #1a0b36;
  --panel-2: #24104a;
  --ink: #f4ecff;
  --ink-dim: #b9a7d9;
  --pink: #ff2d95;
  --pink-deep: #b3176a;
  --cyan: #2de2ff;
  --cyan-deep: #0f8ea8;
  --purple: #8a2be2;
  --yellow: #ffe066;
  --orange: #ff7a2d;
  --green: #39ff88;
  --red: #ff3b3b;
  --lcd: #0a1a10;
  --lcd-ink: #7dffb0;
  --shadow: #05020c;
  --px: 4px;
  --font-logo: 'RickNRollNeon', 'Press Start 2P', monospace;
  --font-ui: 'Press Start 2P', 'VT323', monospace;
  --font-body: 'VT323', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.25;
  background: transparent;
  overflow-x: hidden;
  min-height: 100vh;
}
img { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--cyan); }
a:hover { color: var(--yellow); }
b { color: var(--ink); }
kbd {
  font-family: var(--font-ui); font-size: 9px; padding: 2px 5px;
  background: var(--panel-2); border: 2px solid var(--ink-dim); color: var(--yellow);
}
.hidden { display: none !important; }
.small { font-size: 16px; color: var(--ink-dim); }
.mono { font-family: var(--font-body); letter-spacing: 0.5px; }
.center { text-align: center; }
.blink { animation: blink 1s steps(1) infinite; }
.blink-slow { animation: blink 2s steps(1) infinite; }
.pulse { animation: pulse 0.8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { color: var(--yellow); } }

/* ---------- SKY / CRT OVERLAYS ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(to bottom, rgba(11,6,24,0) 0%, rgba(11,6,24,0.35) 45%, rgba(11,6,24,0.92) 78%, var(--bg) 100%),
    url('../img/bg-sunset.png') top center / cover no-repeat;
  image-rendering: pixelated;
}
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.22) 3px, rgba(0,0,0,0.22) 4px);
  mix-blend-mode: multiply;
}
body.no-scan .scanlines { display: none; }
.vignette {
  position: fixed; inset: 0; z-index: 49; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- PAGE ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 16px; }

/* ---------- MASTHEAD ---------- */
.masthead {
  display: grid; grid-template-columns: 150px 1fr 200px; align-items: center; gap: 12px;
  padding: 18px 16px 10px;
  background: linear-gradient(180deg, rgba(26,11,54,0.85), rgba(11,6,24,0.85));
  border: var(--px) solid var(--pink);
  box-shadow: 0 0 0 var(--px) var(--bg), 0 0 0 calc(var(--px) * 2) var(--cyan), 0 0 24px rgba(255,45,149,0.45), inset 0 0 40px rgba(45,226,255,0.08);
  position: relative;
}
.mast-title { text-align: center; min-width: 0; }
.logo { margin: 0; font-family: var(--font-logo); font-weight: 700; line-height: 1; }
.logo-line { display: block; position: relative; letter-spacing: 2px; }
.logo-line.l1 {
  font-size: 52px;
  color: var(--pink);
  text-shadow: 0 0 2px #fff, 0 0 10px var(--pink), 0 0 26px var(--pink), 4px 4px 0 var(--pink-deep), 8px 8px 0 var(--shadow);
}
.logo-line.l2 {
  font-size: 32px; margin-top: 8px;
  color: var(--cyan);
  letter-spacing: 14px;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--cyan), 0 0 24px var(--cyan), 3px 3px 0 var(--cyan-deep), 6px 6px 0 var(--shadow);
}
.tagline { font-family: var(--font-ui); font-size: 9px; color: var(--yellow); margin-top: 14px; line-height: 1.8; }
.onair {
  display: inline-block; font-family: var(--font-ui); font-size: 9px; color: #fff;
  background: var(--red); padding: 4px 8px; border: 2px solid #fff; margin-right: 8px;
  box-shadow: 0 0 10px var(--red); vertical-align: middle;
}
.onair.off { background: #444; box-shadow: none; }
.onair .dot { display: inline-block; width: 8px; height: 8px; background: #fff; margin-right: 4px; animation: blink 1s steps(1) infinite; }
.mast-right { text-align: right; }
.mast-boombox { width: 192px; height: 128px; filter: drop-shadow(0 6px 0 rgba(0,0,0,0.5)); animation: bounce 0.5s steps(2) infinite; animation-play-state: paused; }
body.playing .mast-boombox { animation-play-state: running; }
@keyframes bounce { 50% { transform: translateY(-3px); } }

/* ---------- PIXEL RICK ---------- */
.rick-stage { position: relative; width: 144px; height: 150px; margin: 0 auto; }
.rick-sprite {
  position: absolute; left: 0; bottom: 6px; width: 96px; height: 96px;
  transform: scale(1.5); transform-origin: bottom left;
  background: url('../img/rick/south.png') no-repeat 0 0;
  image-rendering: pixelated;
}
.rick-sprite.idle { background-image: url('../img/rick/idle.png'); animation: rick-idle 1.2s steps(4) infinite; }
.rick-sprite.dance {
  width: 132px; height: 132px; left: -18px; bottom: -8px; transform: scale(1.1);
  background-image: url('../img/rick/dance.png'); animation: rick-dance 1.1s steps(12) infinite;
}
.rick-sprite.dance.hyper { animation-duration: 0.4s; }
@keyframes rick-idle { to { background-position: -384px 0; } }
@keyframes rick-dance { to { background-position: -1584px 0; } }
@keyframes rick-dance-alt { to { background-position: -1188px 0; } }
.rick-shadow { position: absolute; left: 22px; bottom: 0; width: 100px; height: 10px; background: radial-gradient(ellipse, rgba(0,0,0,0.55), rgba(0,0,0,0) 70%); }

/* ---------- TICKER ---------- */
.ticker {
  overflow: hidden; white-space: nowrap; margin: 12px 0;
  background: var(--shadow); border: var(--px) solid var(--cyan-deep); color: var(--cyan);
  font-family: var(--font-ui); font-size: 10px; line-height: 2.6; padding: 0 0;
  box-shadow: inset 0 0 12px rgba(45,226,255,0.3);
}
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- COLUMNS ---------- */
.columns { display: grid; grid-template-columns: 232px 1fr 232px; gap: 14px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- PANELS ---------- */
.panel {
  background: var(--panel); border: var(--px) solid var(--purple);
  box-shadow: 0 0 0 2px var(--shadow), 4px 4px 0 2px var(--shadow), inset 0 0 0 2px rgba(255,255,255,0.05);
  padding: 10px 12px 12px; position: relative;
}
.panel-title {
  font-family: var(--font-ui); font-size: 10px; color: var(--yellow);
  background: linear-gradient(90deg, var(--purple), var(--pink-deep));
  margin: -10px -12px 10px; padding: 8px 10px; letter-spacing: 1px;
  border-bottom: 2px solid var(--pink);
  text-shadow: 2px 2px 0 var(--shadow);
}
.panel-hint { float: right; color: var(--cyan); font-size: 8px; font-weight: normal; }
.panel p { margin: 6px 0; }
.panel-art { display: block; margin: 4px auto 6px; width: 64px; height: 64px; }
.navlist { list-style: none; margin: 0; padding: 0; }
.navlist li { margin: 0; }
.navlist a {
  display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 5px 6px;
  color: var(--ink); border-bottom: 2px dotted rgba(185,167,217,0.25);
}
.navlist a:hover { background: var(--panel-2); color: var(--yellow); }
.navlist img { flex: none; }
.stream-url { word-break: break-all; font-size: 15px; }

/* pixel buttons */
.pxbtn {
  font-family: var(--font-ui); font-size: 9px; color: var(--ink); cursor: pointer;
  background: var(--panel-2); border: 0; padding: 8px 10px;
  box-shadow: inset -3px -3px 0 var(--shadow), inset 3px 3px 0 rgba(255,255,255,0.25), 0 0 0 2px var(--shadow);
  text-transform: uppercase;
}
.pxbtn:hover { background: var(--purple); color: var(--yellow); }
.pxbtn:active { box-shadow: inset 3px 3px 0 var(--shadow), inset -3px -3px 0 rgba(255,255,255,0.15), 0 0 0 2px var(--shadow); transform: translate(1px,1px); }
.pxbtn.small-btn { display: block; width: 100%; margin-top: 8px; }
.pxbtn.tiny { padding: 6px 7px; font-size: 8px; }
.pxbtn.on { background: var(--pink-deep); color: #fff; }
.sleep-row { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }

.odometer {
  display: inline-block; font-family: var(--font-ui); font-size: 14px; letter-spacing: 3px;
  background: #000; color: var(--green); border: 3px solid #555; padding: 6px 8px; margin: 4px 0;
  text-shadow: 0 0 6px var(--green);
}

/* ---------- CONSOLE (PLAYER) ---------- */
.console {
  background: linear-gradient(180deg, #2b1552, #140a2a);
  border: var(--px) solid var(--cyan);
  box-shadow: 0 0 0 2px var(--shadow), 0 0 0 6px var(--pink-deep), 6px 6px 0 6px var(--shadow), 0 0 30px rgba(45,226,255,0.35);
  padding: 0; overflow: hidden;
}
.console-top {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(90deg, var(--pink), var(--purple) 60%, var(--cyan-deep));
  border-bottom: var(--px) solid var(--shadow);
  font-family: var(--font-ui); font-size: 10px; color: #fff; text-shadow: 2px 2px 0 var(--shadow);
}
.console-brand .ver { color: var(--yellow); margin-left: 4px; font-size: 8px; }
.console-leds { display: flex; gap: 6px; margin-left: 4px; }
.led { width: 10px; height: 10px; border: 2px solid var(--shadow); background: #333; }
.led.pwr.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.led.sig.on { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation: blink 0.6s steps(1) infinite; }
.led.live { background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1s steps(1) infinite; }
.console-status { margin-left: auto; color: var(--yellow); }
.console-body { padding: 12px; }

.crt {
  background: #050a07; border: var(--px) solid #3a2a5c; padding: 6px;
  box-shadow: inset 0 0 0 2px #000, inset 0 0 30px rgba(125,255,176,0.08);
}
.crt-inner { background: var(--lcd); color: var(--lcd-ink); text-shadow: 0 0 6px rgba(125,255,176,0.6); padding: 6px; }
.crt-row { display: flex; align-items: center; gap: 10px; }
.lcd-time { font-family: var(--font-ui); font-size: 22px; min-width: 110px; }
.viz { flex: 1; height: 48px; background: #061009; border: 2px solid #0d2a18; min-width: 0; }
.lcd-right { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.lcd-tag { font-family: var(--font-ui); font-size: 8px; border: 2px solid var(--lcd-ink); padding: 3px 5px; }
.lcd-ticker { overflow: hidden; white-space: nowrap; margin-top: 6px; border-top: 2px dashed rgba(125,255,176,0.3); padding-top: 4px; font-family: var(--font-ui); font-size: 10px; line-height: 1.8; }
.lcd-ticker-track { display: inline-block; padding-left: 100%; animation: ticker 22s linear infinite; }

.genre-strip {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px;
  font-family: var(--font-ui);
}
.genre-label { font-size: 9px; color: var(--ink-dim); }
.genre-name { font-size: 18px; color: var(--yellow); text-shadow: 0 0 10px var(--orange), 3px 3px 0 var(--shadow); }
.genre-ver { font-size: 9px; color: var(--cyan); }

/* health-bar progress */
.hpbar { position: relative; height: 22px; background: #0b0618; border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--shadow); overflow: hidden; }
.hpbar-fill {
  height: 100%; width: 0; transition: width 1s linear;
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, #22c766 6px 8px);
}
.hpbar.low .hpbar-fill { background: repeating-linear-gradient(90deg, var(--red) 0 6px, #b32020 6px 8px); }
.hpbar-label { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 6px; font-size: 15px; line-height: 16px; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }

.controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.abtn {
  width: 48px; height: 44px; font-size: 18px; color: #fff; cursor: pointer; border: 0;
  background: var(--purple);
  box-shadow: inset -4px -4px 0 var(--shadow), inset 4px 4px 0 rgba(255,255,255,0.3), 0 0 0 2px var(--shadow);
  font-family: var(--font-body);
}
.abtn.play { background: var(--green); color: #052; }
.abtn.stop { background: var(--red); }
.abtn.mute { background: var(--cyan-deep); }
.abtn:hover { filter: brightness(1.15); }
.abtn:active, .abtn.active { box-shadow: inset 4px 4px 0 var(--shadow), inset -4px -4px 0 rgba(255,255,255,0.15), 0 0 0 2px var(--shadow); transform: translate(1px,1px); }
.abtn.play.active { background: var(--yellow); }
.vol { display: flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 9px; }
.vol input[type=range] { width: 120px; accent-color: var(--pink); }
.vol-val { font-size: 16px; min-width: 2ch; color: var(--cyan); }
.status-pill {
  margin-left: auto; font-family: var(--font-ui); font-size: 9px; padding: 6px 8px;
  background: var(--shadow); color: var(--ink-dim); border: 2px solid var(--ink-dim);
}
.status-pill.playing { color: var(--green); border-color: var(--green); box-shadow: 0 0 8px rgba(57,255,136,0.5); }
.status-pill.error { color: var(--red); border-color: var(--red); }

.np { display: flex; gap: 12px; align-items: center; padding: 12px; background: rgba(0,0,0,0.35); border-top: var(--px) solid var(--shadow); }
.np-art-wrap { position: relative; flex: none; }
.np-art { width: 96px; height: 96px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); background: #000; object-fit: cover; }
body.playing .np-art.vinyl { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.np-art-badge { position: absolute; right: -6px; bottom: -6px; font-family: var(--font-ui); font-size: 8px; background: var(--pink); color: #fff; padding: 3px 5px; border: 2px solid #fff; }
.np-text { min-width: 0; }
.np-label { font-family: var(--font-ui); font-size: 9px; color: var(--pink); margin-bottom: 6px; }
.np-title { font-size: 24px; color: var(--ink); line-height: 1.1; word-break: break-word; }
.np-artist { font-size: 18px; color: var(--cyan); }
.np-sub { margin-top: 4px; }

/* animated cassette (5 frames, 64x40) */
.cassette-anim { display: inline-block; width: 64px; height: 40px; background: url('../img/cassette-anim.png') no-repeat 0 0; image-rendering: pixelated; animation: cassette-spin 0.6s steps(5) infinite; animation-play-state: paused; }
body.playing .cassette-anim { animation-play-state: running; }
@keyframes cassette-spin { to { background-position: -320px 0; } }

/* ---------- UP NEXT / HISTORY ---------- */
.next { display: flex; gap: 12px; align-items: center; }
.next-art { width: 64px; height: 64px; border: 3px solid var(--ink-dim); flex: none; object-fit: cover; background: #000; }
.next-title { font-size: 22px; }
.next-when { color: var(--yellow); }
.history-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.history-table th { font-family: var(--font-ui); font-size: 8px; color: var(--cyan); text-align: left; padding: 4px 6px; border-bottom: 2px solid var(--purple); }
.history-table td { padding: 4px 6px; border-bottom: 2px dotted rgba(185,167,217,0.2); vertical-align: top; }
.history-table td.rank { font-family: var(--font-ui); font-size: 9px; color: var(--yellow); }
.history-table td.t { color: var(--ink-dim); white-space: nowrap; }
.history-table td.v { color: var(--cyan); white-space: nowrap; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.stat-table td { padding: 3px 4px; border-bottom: 2px dotted rgba(185,167,217,0.2); }
.stat-table td:last-child { text-align: right; color: var(--yellow); }

/* ---------- TROPHIES ---------- */
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.trophy {
  display: flex; gap: 8px; align-items: center; padding: 6px; background: var(--bg);
  border: 2px solid var(--purple); opacity: 0.45; filter: grayscale(1);
}
.trophy.unlocked { opacity: 1; filter: none; border-color: var(--yellow); box-shadow: 0 0 10px rgba(255,224,102,0.35); }
.trophy img { width: 32px; height: 32px; flex: none; }
.trophy-name { font-family: var(--font-ui); font-size: 8px; color: var(--yellow); line-height: 1.5; }
.trophy-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.1; }

/* ---------- ABOUT ---------- */
.about-art { float: right; margin: 0 0 8px 12px; width: 128px; height: 128px; }
.about::after { content: ''; display: block; clear: both; }

/* ---------- RULES / ROULETTE ---------- */
.rules { list-style: none; margin: 0; padding: 0; font-size: 18px; }
.rules li { padding: 3px 0; border-bottom: 2px dotted rgba(185,167,217,0.2); }
.rules .chk { color: var(--green); font-weight: bold; margin-right: 6px; }
.rules .chk.off { color: var(--red); }
.roulette {
  font-family: var(--font-ui); font-size: 11px; color: var(--yellow); background: #000;
  border: 3px solid var(--orange); padding: 12px 6px; margin: 4px 0; min-height: 44px;
  text-shadow: 0 0 8px var(--orange); overflow: hidden;
}
.roulette.spinning { animation: shake 0.1s steps(2) infinite; }
@keyframes shake { 50% { transform: translateX(2px); } }

/* ---------- NEON AD ---------- */
.neon-ad { text-align: center; border-color: var(--pink); background: #1b0520; }
.ad-label { font-family: var(--font-ui); font-size: 7px; color: var(--ink-dim); margin: -4px 0 6px; }
.ad-art { width: 96px; height: 128px; margin: 0 auto; display: block; }
.ad-brand { font-family: var(--font-logo); font-size: 26px; color: var(--pink); text-shadow: 0 0 8px var(--pink), 3px 3px 0 var(--shadow); line-height: 1; margin: 6px 0; animation: neon 3s steps(1) infinite; }
@keyframes neon { 0%, 93%, 96%, 100% { opacity: 1; } 94%, 97% { opacity: 0.45; } }
.ad-copy { font-size: 17px; color: var(--ink-dim); }
.ad-cta { font-family: var(--font-ui); font-size: 8px; color: var(--cyan); margin: 8px 0 4px; }
.ad-fine { font-size: 13px; color: var(--ink-dim); opacity: 0.8; }

/* ---------- BADGES ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.badge {
  width: 88px; height: 31px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 6px; line-height: 1.4; text-align: center;
  border: 2px solid; color: #fff; text-shadow: 1px 1px 0 #000;
}
.b-crt { background: #222; border-color: #999; }
.b-mp3 { background: #0a3d62; border-color: var(--cyan); }
.b-bit { background: #4a1a7a; border-color: var(--purple); }
.b-cast { background: #1b5e20; border-color: var(--green); }
.b-cf { background: #f38020; border-color: #ffd0a0; color: #000; text-shadow: none; }
.b-rick { background: var(--pink-deep); border-color: var(--pink); }

/* ---------- THE ROAD ---------- */
.road {
  position: relative; height: 64px; margin: 16px 0 0; overflow: hidden;
  background: linear-gradient(180deg, transparent 0 30px, #1b1035 30px 34px, #0b0618 34px);
  border-top: 2px solid var(--cyan-deep);
}
.road::after {
  content: ''; position: absolute; left: 0; right: 0; top: 48px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 24px, transparent 24px 48px);
  animation: dash 1s linear infinite;
}
@keyframes dash { to { background-position: -48px 0; } }
.road-car { position: absolute; bottom: 6px; left: -120px; width: 96px; height: 48px; animation: drive 18s linear infinite; }
@keyframes drive { 0% { left: -120px; } 100% { left: 110%; } }
.road-rick {
  position: absolute; bottom: 4px; left: -100px; width: 96px; height: 96px; transform: translateY(32px);
  background: url('../img/rick/walk-east.png') no-repeat 0 0; image-rendering: pixelated;
  animation: rick-walk 0.8s steps(8) infinite, stroll 40s linear infinite;
}
@keyframes rick-walk { to { background-position: -768px 0; } }
@keyframes stroll { 0% { left: -100px; } 100% { left: 110%; } }

/* ---------- FOOTER ---------- */
.footer { text-align: center; margin: 20px 0 10px; color: var(--ink-dim); font-size: 17px; }
.footer p { margin: 4px 0; }

/* ---------- ATTRACT SCREEN ---------- */
.attract {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(5,2,12,0.86); backdrop-filter: blur(1px);
}
.attract.hidden { display: none; }
.attract-inner { text-align: center; padding: 24px; border: var(--px) solid var(--pink); background: var(--bg2); box-shadow: 0 0 0 4px var(--shadow), 0 0 0 8px var(--cyan), 0 0 40px var(--pink); max-width: 90vw; }
.attract-rick { width: 144px; height: 144px; }
.attract-title { font-family: var(--font-logo); font-size: 44px; color: var(--pink); text-shadow: 0 0 10px var(--pink), 4px 4px 0 var(--shadow); line-height: 1; margin: 6px 0; }
.attract-title .n { color: var(--yellow); }
.attract-title small { font-size: 26px; color: var(--cyan); letter-spacing: 12px; text-shadow: 0 0 10px var(--cyan), 3px 3px 0 var(--shadow); }
.attract-copy { font-family: var(--font-ui); font-size: 9px; color: var(--yellow); line-height: 2; margin: 10px 0; }
.attract-start { font-family: var(--font-ui); font-size: 14px; color: #fff; background: var(--pink-deep); border: 0; padding: 14px 20px; cursor: pointer; box-shadow: inset -4px -4px 0 var(--shadow), inset 4px 4px 0 rgba(255,255,255,0.3), 0 0 0 3px var(--shadow); }
.attract-start:hover { background: var(--pink); }
.attract-fine { font-family: var(--font-ui); font-size: 7px; color: var(--ink-dim); margin-top: 12px; }

/* ---------- TOASTS ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 9px; color: var(--yellow);
  background: var(--bg2); border: 3px solid var(--yellow); padding: 10px 14px; box-shadow: 4px 4px 0 var(--shadow);
  animation: toast-in 0.2s steps(3) both;
}
.toast img { width: 32px; height: 32px; }
.toast small { display: block; color: var(--ink-dim); font-size: 7px; margin-top: 4px; }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } }

/* ---------- ULTRA RICK MODE ---------- */
.ultra { position: fixed; inset: 0; z-index: 95; pointer-events: none; display: none; align-items: center; justify-content: center; }
body.ultra-mode .ultra { display: flex; }
.ultra-text { font-family: var(--font-logo); font-size: 64px; color: #fff; text-shadow: 0 0 20px var(--pink), 6px 6px 0 var(--shadow); animation: ultra-pop 0.5s steps(4) 6 both; opacity: 0; }
@keyframes ultra-pop { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
body.ultra-mode .sky { animation: hue 2s linear infinite; }
body.ultra-mode .masthead, body.ultra-mode .console { animation: hue 1s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
body.ultra-mode .rick-sprite { animation-duration: 0.3s !important; }
.ultra-rick { position: fixed; bottom: -10px; width: 132px; height: 132px; background: url('../img/rick/dance.png') no-repeat 0 0; image-rendering: pixelated; animation: rick-dance 0.5s steps(12) infinite; z-index: 94; pointer-events: none; }
.ultra-rick.alt { background-image: url('../img/rick/dance-alt.png'); animation-name: rick-dance-alt; animation-timing-function: steps(9); }
.disco-drop { position: fixed; top: -60px; width: 48px; height: 48px; background: url('../img/disco-anim.png') no-repeat 0 0; image-rendering: pixelated; animation: drop 1.2s steps(12) forwards, disco-spin 1s steps(5) infinite; z-index: 94; pointer-events: none; }
@keyframes drop { to { top: 10px; } }
@keyframes disco-spin { to { background-position: -240px 0; } }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .lcd-ticker-track, .road-car, .road-rick, .mast-boombox { animation: none !important; }
  .rick-sprite { animation-duration: 2s !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .columns { grid-template-columns: 1fr 1fr; }
  .main { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 640px) {
  .page { padding: 10px; }
  .masthead { grid-template-columns: 1fr; text-align: center; padding: 12px 8px; }
  .mast-left { order: 2; }
  .mast-right { display: none; }
  .logo-line.l1 { font-size: 30px; }
  .logo-line.l2 { font-size: 20px; letter-spacing: 8px; }
  .tagline { font-size: 7px; }
  .columns { grid-template-columns: 1fr; }
  .lcd-time { font-size: 16px; min-width: 80px; }
  .lcd-right { display: none; }
  .np { flex-direction: column; text-align: center; }
  .about-art { float: none; display: block; margin: 0 auto 8px; }
  .attract-title { font-size: 30px; }
  .attract-title small { font-size: 18px; letter-spacing: 6px; }
  .ultra-text { font-size: 32px; }
  .status-pill { margin-left: 0; width: 100%; text-align: center; }
}
