/* ==========================================================
   bitwize radio — bitwize.css
   A diner booth, a CRT, two controllers. NES palette, always
   lowercase. Bevels mandatory, milkshakes optional.
   ========================================================== */

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

:root {
  --bg: #070705;
  --bg2: #0f0e0a;
  --panel: #16150f;
  --panel-2: #23211a;
  --booth: #313619;
  --booth-2: #4a5020;
  --wood: #4f463e;
  --wood-2: #6d5135;
  --ink: #ece6d6;
  --ink-dim: #a39b85;
  --red: #e0201a;
  --red-deep: #a50d0a;
  --orange: #ea9544;
  --cream: #f2e6c8;
  --green: #39ff14;
  --green-dim: #1f8f0f;
  --blue: #3cbcfc;
  --blue-deep: #0f5f8a;
  --yellow: #ffd23f;
  --lcd: #061006;
  --lcd-ink: #39ff14;
  --shadow: #000000;
  --px: 4px;
  --font-logo: 'bitwizeRadio', '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); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.25;
  background: var(--bg) url('../img/wall.png') repeat;
  image-rendering: pixelated;
  overflow-x: hidden;
  min-height: 100vh;
}
img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--orange); }
a:hover { color: var(--yellow); }
b { color: var(--ink); }
kbd {
  font-family: var(--font-ui); font-size: 8px; padding: 2px 4px;
  background: var(--panel-2); border: 2px solid var(--ink-dim); color: var(--yellow);
}
::selection { background: var(--red); color: #fff; }
.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; }
.pulse { animation: pulse 0.8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { color: var(--yellow); } }

/* ---------- CRT OVERLAYS ---------- */
.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.2) 3px, rgba(0,0,0,0.2) 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.6) 100%);
}

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

/* ---------- MASTHEAD: the booth ---------- */
.masthead {
  display: grid; grid-template-columns: 170px 1fr 170px; align-items: end; gap: 12px;
  padding: 14px 16px 0;
  background:
    linear-gradient(180deg, rgba(7,7,5,0) 0, rgba(7,7,5,0) 58%, var(--booth) 58%, var(--booth) 62%, #1d2010 62%, #1d2010 100%),
    var(--bg2);
  border: var(--px) solid var(--wood);
  box-shadow: 0 0 0 var(--px) var(--shadow), 0 0 0 calc(var(--px) * 2) var(--red-deep), 6px 6px 0 calc(var(--px) * 2) var(--shadow);
  position: relative;
  overflow: hidden;
}
.masthead::after {
  /* table edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--wood); border-top: 3px solid var(--wood-2);
}
.mast-side { position: relative; z-index: 1; text-align: center; padding-bottom: 14px; }
.player-tag {
  display: inline-block; font-family: var(--font-ui); font-size: 8px; color: var(--ink);
  background: var(--shadow); border: 2px solid var(--ink-dim); padding: 4px 6px; margin-bottom: 4px;
}
.player-tag.p1 { border-color: var(--red); }
.player-tag.p2 { border-color: var(--blue); }
.pnum { font-family: var(--font-ui); font-size: 8px; padding: 2px 4px; color: #fff; margin-right: 2px; }
.pnum.p1, .player-tag.p1 .pnum { background: var(--red); }
.pnum.p2, .player-tag.p2 .pnum { background: var(--blue-deep); }
.stat-table .pnum { margin-right: 6px; }
.stage { position: relative; width: 128px; height: 128px; margin: 0 auto; }
.stage-shadow { position: absolute; left: 14px; bottom: 0; width: 100px; height: 10px; background: radial-gradient(ellipse, rgba(0,0,0,0.6), rgba(0,0,0,0) 70%); }
.sprite {
  position: absolute; left: 0; bottom: 4px; width: 64px; height: 64px;
  transform: scale(2); transform-origin: bottom left;
  background: no-repeat 0 0; image-rendering: pixelated;
}
.sprite.p1 { background-image: url('../img/p1/south.png'); }
.sprite.p2 { background-image: url('../img/p2/south.png'); }
.sprite.p1.idle { background-image: url('../img/p1/idle.png'); animation: p1-idle 1.4s steps(4) infinite; }
.sprite.p2.idle { background-image: url('../img/p2/idle.png'); animation: p2-idle 1.6s steps(4) infinite; }
.sprite.dance { width: 84px; height: 84px; left: -10px; bottom: -4px; }
.sprite.p1.dance { background-image: url('../img/p1/dance.png'); animation: p1-dance 1.1s steps(8) infinite; }
.sprite.p2.dance { background-image: url('../img/p2/dance.png'); animation: p2-dance 0.9s steps(8) infinite; }
.sprite.hyper { animation-duration: 0.4s !important; }
@keyframes p1-idle { to { background-position: -256px 0; } }
@keyframes p2-idle { to { background-position: -256px 0; } }
@keyframes p1-dance { to { background-position: -672px 0; } }
@keyframes p2-dance { to { background-position: -672px 0; } }

.mast-title { text-align: center; min-width: 0; position: relative; z-index: 1; padding-bottom: 22px; }
.logo { margin: 0; font-family: var(--font-logo); font-weight: 700; line-height: 1; text-transform: lowercase; }
.logo-line { display: block; position: relative; letter-spacing: 2px; }
.logo-line.l1 {
  font-size: 64px; color: var(--red);
  text-shadow: 3px 3px 0 var(--red-deep), 6px 6px 0 var(--shadow), 0 0 18px rgba(224,32,26,0.45);
}
.logo-line.l2 {
  font-size: 30px; margin-top: 10px; color: var(--cream); letter-spacing: 16px; padding-left: 16px;
  text-shadow: 3px 3px 0 var(--wood-2), 5px 5px 0 var(--shadow);
}
.tagline { font-family: var(--font-ui); font-size: 8px; color: var(--orange); margin-top: 14px; line-height: 2; }
.onair {
  display: inline-block; font-family: var(--font-ui); font-size: 8px; 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; }

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

/* ---------- COLUMNS ---------- */
.columns { display: grid; grid-template-columns: 236px 1fr 236px; 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(--wood);
  box-shadow: 0 0 0 2px var(--shadow), 4px 4px 0 2px var(--shadow), inset 0 0 0 2px rgba(255,255,255,0.04);
  padding: 10px 12px 12px; position: relative;
}
.panel-title {
  font-family: var(--font-ui); font-size: 10px; color: var(--cream);
  background: linear-gradient(90deg, var(--red-deep), #4a1410);
  margin: -10px -12px 10px; padding: 8px 10px; letter-spacing: 1px;
  border-bottom: 2px solid var(--red);
  text-shadow: 2px 2px 0 var(--shadow);
}
.panel-hint { float: right; color: var(--orange); font-size: 7px; font-weight: normal; line-height: 1.6; }
.panel p { margin: 6px 0; }
.panel-art { display: block; margin: 4px auto 6px; width: 48px; height: 48px; }
.panel-art.wide { width: 96px; height: 48px; }
.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(163,155,133,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; }
.dotico { width: 12px; height: 12px; flex: none; border: 2px solid var(--shadow); display: inline-block; }
.dotico.sp { background: #1db954; } .dotico.ap { background: #fc3c44; } .dotico.yt { background: #ff0000; }
.dotico.sc { background: #ff5500; } .dotico.am { background: #25d1da; } .dotico.td { background: #ffffff; } .dotico.ih { background: #c6002b; }

/* pixel buttons */
.pxbtn {
  display: inline-block; font-family: var(--font-ui); font-size: 9px; color: var(--ink); cursor: pointer;
  background: var(--panel-2); border: 0; padding: 9px 10px; text-decoration: none; line-height: 1.4;
  box-shadow: inset -3px -3px 0 var(--shadow), inset 3px 3px 0 rgba(255,255,255,0.22), 0 0 0 2px var(--shadow);
  text-transform: uppercase;
}
.pxbtn:hover { background: var(--red-deep); 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; text-align: center; }
.pxbtn.tiny { padding: 6px 7px; font-size: 8px; }
.pxbtn.on { background: var(--red-deep); color: #fff; }
.pxbtn.alt { background: var(--booth-2); }
.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);
}
.coin-spin { display: block; margin: 4px auto 0; animation: coinflip 1.2s steps(4) infinite; }
@keyframes coinflip { 50% { transform: scaleX(-1); } }

/* ---------- ADVISORY ---------- */
.advisory .adv-id { color: var(--yellow); font-size: 15px; }
.advisory .adv-id b { color: var(--red); }

/* ---------- CONSOLE (PLAYER) ---------- */
.console {
  background: linear-gradient(180deg, #2a2823, #141310);
  border: var(--px) solid #8a847a;
  box-shadow: 0 0 0 2px var(--shadow), 0 0 0 6px var(--red-deep), 6px 6px 0 6px var(--shadow), 0 0 30px rgba(224,32,26,0.25);
  padding: 0; overflow: hidden;
}
.console-top {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(90deg, var(--red-deep), #4a1410 60%, #2a2823);
  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(--red); box-shadow: 0 0 8px var(--red); }
.led.sig.on { background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 0.6s steps(1) infinite; }
.led.live { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation: blink 1s steps(1) infinite; }
.console-status { margin-left: auto; color: var(--yellow); }
.console-body { padding: 12px; }

.crt {
  background: #050a05; border: var(--px) solid #3a3a30; padding: 6px;
  box-shadow: inset 0 0 0 2px #000, inset 0 0 30px rgba(57,255,20,0.08);
}
.crt-inner { background: var(--lcd); color: var(--lcd-ink); text-shadow: 0 0 6px rgba(57,255,20,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: #030803; border: 2px solid #0d2a0d; 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(57,255,20,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 24s linear infinite; }

.track-strip {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px;
  font-family: var(--font-ui);
}
.track-label { font-size: 9px; color: var(--ink-dim); }
.track-name { font-size: 16px; color: var(--yellow); text-shadow: 0 0 10px var(--orange), 3px 3px 0 var(--shadow); word-break: break-word; }
.genre-tag { font-size: 8px; color: var(--shadow); background: var(--green); padding: 3px 6px; border: 2px solid var(--green-dim); }
.genre-tag:empty { display: none; }

/* health bar with a milkshake on the end */
.hpbar { position: relative; display: flex; align-items: center; gap: 6px; }
.hp-cup { width: 16px; height: 24px; flex: none; }
.hpbar-track { position: relative; flex: 1; height: 22px; background: #0b0a07; 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; left: 28px; right: 6px; top: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 6px; font-size: 15px; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; pointer-events: none; }

.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: #5a5650; font-family: var(--font-body);
  box-shadow: inset -4px -4px 0 var(--shadow), inset 4px 4px 0 rgba(255,255,255,0.3), 0 0 0 2px var(--shadow);
}
.abtn.play { background: var(--red); }
.abtn.stop { background: #3a3832; }
.abtn.mute { background: var(--blue-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(--green); color: #052; }
.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(--red); }
.vol-val { font-size: 16px; min-width: 2ch; color: var(--orange); }
.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,20,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.4); 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(--red); 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(--red); 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(--orange); }
.np-sub { margin-top: 4px; }
.np-links { margin-top: 4px; }
.np-links a { margin-right: 10px; }

/* ---------- FEATURED ---------- */
.featured { border-color: var(--red-deep); }
.feat { display: grid; grid-template-columns: 256px 1fr; gap: 16px; align-items: start; }
.feat-art-link { display: block; }
.feat-art { width: 256px; height: 256px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); display: block; }
.feat-art-link:hover .feat-art { border-color: var(--yellow); }
.feat-text { min-width: 0; }
.feat-kicker { font-family: var(--font-ui); font-size: 8px; color: var(--green); }
.feat-title { font-family: var(--font-logo); font-size: 40px; color: var(--red); margin: 6px 0 2px; line-height: 1; text-shadow: 3px 3px 0 var(--red-deep), 5px 5px 0 var(--shadow); }
.feat-tag { font-family: var(--font-ui); font-size: 9px; color: var(--cream); margin: 4px 0 10px; line-height: 1.8; }
.tracklist { columns: 2; column-gap: 20px; margin: 8px 0; padding-left: 26px; font-size: 18px; color: var(--ink-dim); }
.tracklist li { padding: 1px 0; break-inside: avoid; }
.tracklist li::marker { font-family: var(--font-ui); font-size: 8px; color: var(--orange); }
.feat-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- 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(--orange); text-align: left; padding: 4px 6px; border-bottom: 2px solid var(--wood); }
.history-table td { padding: 4px 6px; border-bottom: 2px dotted rgba(163,155,133,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(--orange); }
.history-table td.v a { color: var(--orange); text-decoration: none; border-bottom: 1px dotted; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.stat-table td { padding: 3px 4px; border-bottom: 2px dotted rgba(163,155,133,0.2); }
.stat-table td:last-child { text-align: right; color: var(--yellow); }

/* ---------- CARTRIDGE RACK ---------- */
.np-mark { color: var(--green); }
.rack-filters { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 12px; }
.rack-filters .pxbtn { font-size: 7px; padding: 5px 6px; }
.rack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.cart {
  display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink);
  background: #6f6b63; border: 3px solid #2a2823; padding: 8px 6px 6px; position: relative;
  box-shadow: inset 3px 3px 0 #9a958c, inset -3px -3px 0 #3d3a34, 3px 3px 0 var(--shadow);
  transition: transform 0.08s steps(2);
}
.cart::before { content: ''; position: absolute; left: 10px; right: 10px; top: 2px; height: 3px; border-top: 2px solid #3d3a34; border-bottom: 2px solid #3d3a34; }
.cart:hover { transform: translateY(-4px); color: var(--yellow); }
.cart:hover .cart-label { border-color: var(--yellow); }
.cart.hidden-cart { display: none; }
.cart.hot .cart-name::before { content: '\25BA '; color: var(--green); }
.cart-label {
  width: 80px; height: 80px; background: var(--red-deep); border: 2px solid #2a2823; overflow: hidden;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.cart-label img { width: 80px; height: 80px; object-fit: cover; display: block; }
.cart-label .cart-fallback { font-family: var(--font-ui); font-size: 7px; color: #fff; text-align: center; padding: 4px; line-height: 1.6; text-shadow: 1px 1px 0 #000; }
.cart-name { font-family: var(--font-ui); font-size: 7px; line-height: 1.5; text-align: center; margin-top: 6px; color: #fff; text-shadow: 1px 1px 0 #000; min-height: 22px; }
.cart-genre { font-size: 13px; color: #cfc9ba; text-align: center; line-height: 1.1; }
.cart.explicit .cart-genre::after { content: ' \2022 E'; 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(--wood); opacity: 0.45; filter: grayscale(1);
}
.trophy.unlocked { opacity: 1; filter: none; border-color: var(--yellow); box-shadow: 0 0 10px rgba(255,210,63,0.35); }
.trophy img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.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; }

/* ---------- CO-OP ---------- */
.coop .stat-table td:last-child { color: var(--green); }
.coop .stat-table td.off { color: var(--ink-dim); }

/* ---------- DINER AD ---------- */
.diner-ad { text-align: center; border-color: var(--orange); background: #1a120a; }
.ad-label { font-family: var(--font-ui); font-size: 7px; color: var(--ink-dim); margin: -4px 0 6px; }
.ad-cups { display: flex; justify-content: center; gap: 8px; }
.ad-cups img { width: 32px; height: 48px; }
.ad-brand { font-family: var(--font-logo); font-size: 28px; color: var(--red); text-shadow: 0 0 8px var(--red), 3px 3px 0 var(--shadow); line-height: 1; margin: 6px 0; animation: neon 3s steps(1) infinite; }
.ad-brand small { font-size: 14px; color: var(--cream); letter-spacing: 6px; text-shadow: 2px 2px 0 var(--shadow); }
@keyframes neon { 0%, 93%, 96%, 100% { opacity: 1; } 94%, 97% { opacity: 0.45; } }
.ad-copy { font-size: 17px; color: var(--ink-dim); }
.ad-cta { display: block; font-family: var(--font-ui); font-size: 8px; color: var(--green); margin: 8px 0 4px; text-decoration: none; }
.ad-fine { font-size: 13px; color: var(--ink-dim); opacity: 0.8; }
.socials a { color: var(--ink); }

/* ---------- 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-nes { background: var(--red-deep); border-color: var(--red); }
.b-mp3 { background: #0a3d62; border-color: var(--blue); }
.b-ai { background: #1a1a1a; border-color: var(--green); color: var(--green); }
.b-cast { background: #1b5e20; border-color: var(--green); }
.b-cf { background: #f38020; border-color: #ffd0a0; color: #000; text-shadow: none; }
.b-crt { background: #222; border-color: #999; }

/* ---------- THE DINER FLOOR ---------- */
.floor {
  position: relative; height: 72px; margin: 16px 0 0; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 24px, var(--wood) 24px 28px, transparent 28px),
    repeating-conic-gradient(#1a1a16 0 25%, #0b0b09 0 50%) 0 28px / 24px 24px;
  border-top: 2px solid var(--wood-2);
}
.floor-walker {
  position: absolute; bottom: 2px; left: -80px; width: 64px; height: 64px;
  background: url('../img/p2/walk.png') no-repeat 0 0; image-rendering: pixelated;
  animation: p2-walk 0.9s steps(8) infinite, stroll 36s linear infinite;
}
@keyframes p2-walk { to { background-position: -512px 0; } }
@keyframes stroll { 0% { left: -80px; } 100% { left: 110%; } }
.floor-cart { position: absolute; bottom: 8px; left: -40px; width: 32px; height: 32px; animation: roll 22s linear infinite, tumble 1s steps(4) infinite; }
@keyframes roll { 0% { left: -40px; } 100% { left: 110%; } }
@keyframes tumble { to { transform: rotate(360deg); } }

/* ---------- 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(3,3,2,0.9);
}
.attract.hidden { display: none; }
.attract-inner { text-align: center; padding: 24px 28px; border: var(--px) solid var(--red); background: var(--bg2); box-shadow: 0 0 0 4px var(--shadow), 0 0 0 8px var(--wood), 0 0 40px rgba(224,32,26,0.5); max-width: 90vw; }
.attract-slot { width: 160px; height: 90px; margin: 0 auto 6px; position: relative; background: #2a2823; border: 4px solid #8a847a; border-bottom-width: 10px; box-shadow: inset 0 0 0 3px #000; overflow: hidden; }
.attract-slot::before { content: ''; position: absolute; left: 20px; right: 20px; top: 8px; height: 6px; background: #000; }
.attract-cart { position: absolute; left: 48px; top: 2px; width: 64px; height: 64px; animation: insert 2.4s steps(6) infinite; }
@keyframes insert { 0% { top: -70px; } 40%, 100% { top: 4px; } }
.attract-title { font-family: var(--font-logo); font-size: 48px; color: var(--red); text-shadow: 3px 3px 0 var(--red-deep), 6px 6px 0 var(--shadow); line-height: 1; margin: 10px 0; text-transform: lowercase; }
.attract-title small { display: block; font-size: 22px; color: var(--cream); letter-spacing: 12px; padding-left: 12px; margin-top: 8px; text-shadow: 2px 2px 0 var(--wood-2), 4px 4px 0 var(--shadow); }
.attract-copy { font-family: var(--font-ui); font-size: 9px; color: var(--orange); line-height: 2; margin: 10px 0; }
.attract-start { font-family: var(--font-ui); font-size: 14px; color: #fff; background: var(--red-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(--red); }
.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; max-width: 90vw;
}
.toast img { width: 32px; height: 32px; object-fit: contain; }
.toast small { display: block; color: var(--ink-dim); font-size: 7px; margin-top: 4px; }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } }

/* ---------- GOD MODE (Konami) ---------- */
.godmode { position: fixed; inset: 0; z-index: 95; pointer-events: none; display: none; align-items: center; justify-content: center; }
body.god-mode .godmode { display: flex; }
.godmode-text { font-family: var(--font-logo); font-size: 72px; color: #fff; text-shadow: 0 0 20px var(--red), 6px 6px 0 var(--shadow); animation: god-pop 0.5s steps(4) 6 both; opacity: 0; }
@keyframes god-pop { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
body.god-mode .masthead, body.god-mode .console { animation: hue 1s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
body.god-mode .sprite { animation-duration: 0.3s !important; }
.cart-drop { position: fixed; top: -80px; width: 64px; height: 64px; background: url('../img/cart.png') no-repeat 0 0; image-rendering: pixelated; animation: cart-fall 2.5s linear forwards, tumble 0.8s steps(4) infinite; z-index: 94; pointer-events: none; }
@keyframes cart-fall { to { top: 105vh; } }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .lcd-ticker-track, .floor-walker, .floor-cart, .coin-spin, .attract-cart { animation: none !important; }
  .sprite { animation-duration: 2s !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .columns { grid-template-columns: 1fr 1fr; }
  .main { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 720px) {
  .feat { grid-template-columns: 1fr; }
  .feat-art { margin: 0 auto; }
  .tracklist { columns: 1; }
}
@media (max-width: 640px) {
  .page { padding: 10px; }
  .masthead { grid-template-columns: 1fr 1fr; padding: 10px 8px 0; }
  .mast-title { grid-column: 1 / -1; order: -1; padding-bottom: 10px; }
  .stage { width: 96px; height: 96px; }
  .sprite { transform: scale(1.5); }
  .logo-line.l1 { font-size: 40px; }
  .logo-line.l2 { font-size: 20px; letter-spacing: 8px; padding-left: 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: 34px; }
  .attract-title small { font-size: 16px; letter-spacing: 6px; }
  .godmode-text { font-size: 36px; }
  .status-pill { margin-left: 0; width: 100%; text-align: center; }
  .rack-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .feat-title { font-size: 30px; }
}
