/* Boulder Dash Fan Site - style.css
   Dark earth identity: #1b0e03 bg, Press Start 2P headings, Share Tech Mono body,
   #f5c218 diamond-gold accent, #7c4a1e earth-brown secondary.
   Advanced CSS: boulder-roll @keyframes on section breaks. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg:           #1b0e03;
  --bg-card:      #251408;
  --bg-card-2:    #2e1a0a;
  --accent:       #f5c218;
  --brown:        #7c4a1e;
  --text:         #e8d5b0;
  --text-muted:   #8a6a3a;
  --border:       rgba(245, 194, 24, 0.2);
  --border-brown: rgba(124, 74, 30, 0.4);
  --font-head:    'Press Start 2P', monospace;
  --font-body:    'Share Tech Mono', monospace;
  --radius:       4px;
  --player-h:     90px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  padding-bottom: var(--player-h);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   Nav
   ============================================================ */
#site-nav {
  background: rgba(27, 14, 3, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
}
.nav-brand {
  font-family: var(--font-head);
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.15rem;
  margin-left: auto;
}
.nav-link {
  display: block;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--accent); background: rgba(245, 194, 24, 0.08); text-decoration: none; }
.nav-link--active { color: var(--accent); background: rgba(245, 194, 24, 0.1); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1rem;
  margin-left: auto;
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(27, 14, 3, 0.98); flex-direction: column; padding: 0.5rem; border-bottom: 1px solid var(--border); }
  .nav-menu--open { display: flex; }
  .nav-link { padding: 0.65rem 0.75rem; }
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-section {
  padding: 3.5rem 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.75rem; }
.mt-lg { margin-top: 2.5rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 4rem 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0700 0%, #1b0e03 60%, #251408 100%);
  border-bottom: 2px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(245, 194, 24, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(124, 74, 30, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.7rem;
  color: var(--brown);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 4vw, 2.4rem);
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(245, 194, 24, 0.3);
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-bottom: 1.75rem;
}
.hero-stat { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-head); font-size: 1.1rem; color: var(--accent); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.55rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #ffd23a; text-decoration: none; color: var(--bg); }
.btn-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover { background: rgba(245, 194, 24, 0.1); text-decoration: none; }

/* ============================================================
   Section labels and headings
   ============================================================ */
.section-label {
  display: block;
  font-size: 0.65rem;
  color: var(--brown);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 680px;
}
h1.section-title { font-size: clamp(0.9rem, 2.8vw, 1.4rem); }
h2.section-title { font-size: clamp(0.8rem, 2vw, 1.05rem); }
h3 { font-family: var(--font-head); font-size: 0.7rem; color: var(--accent); margin-bottom: 0.75rem; line-height: 1.5; }

/* ============================================================
   Boulder roll section break
   Advanced CSS technique: boulders rolling and falling via @keyframes
   ============================================================ */
@keyframes boulder-roll {
  0%   { transform: translateX(-120px) translateY(0px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  80%  { transform: translateX(calc(100vw + 60px)) translateY(8px) rotate(540deg); opacity: 1; }
  90%  { transform: translateX(calc(100vw + 60px)) translateY(60px) rotate(600deg); opacity: 0.5; }
  100% { transform: translateX(calc(100vw + 60px)) translateY(120px) rotate(660deg); opacity: 0; }
}

@keyframes boulder-fall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  15%  { opacity: 1; }
  70%  { transform: translateY(80px) rotate(270deg); opacity: 1; }
  100% { transform: translateY(160px) rotate(360deg); opacity: 0; }
}

@keyframes diamond-sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.15); filter: brightness(1.4); }
}

.section-break {
  position: relative;
  height: 60px;
  margin: 1.5rem 0;
  overflow: hidden;
}
.section-break::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.boulder-anim {
  position: absolute;
  top: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a6a3a, #3d2008 60%, #1b0e03);
  border: 2px solid #5c3a10;
  box-shadow: inset -4px -4px 8px rgba(0,0,0,0.6), 2px 2px 6px rgba(0,0,0,0.4);
  animation: boulder-roll 4.5s linear infinite;
  pointer-events: none;
}
.boulder-anim:nth-child(2) { animation-delay: 2.2s; width: 28px; height: 28px; top: 15px; }
.boulder-anim:nth-child(3) { animation-delay: 3.8s; width: 22px; height: 22px; top: 20px; }

/* ============================================================
   Cards
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
a.game-card:hover { border-color: var(--accent); }
.card-img-wrap {
  aspect-ratio: 4/3;
  background: var(--bg-card-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 0.75rem; }
.card-title { font-family: var(--font-head); font-size: 0.5rem; color: var(--accent); margin-bottom: 0.4rem; line-height: 1.5; }
.card-year { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.card-desc { font-size: 0.8rem; color: var(--text); line-height: 1.5; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  border-radius: 3px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-brown);
  color: var(--text-muted);
  font-family: var(--font-body);
}
.badge-primary { background: rgba(245, 194, 24, 0.1); border-color: rgba(245, 194, 24, 0.3); color: var(--accent); }
.badge-platform { margin-right: 0.2rem; }

.platform-badges { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.4rem; }

/* ============================================================
   Filter controls
   ============================================================ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.filter-btn {
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn--active { background: rgba(245, 194, 24, 0.1); border-color: var(--accent); color: var(--accent); }

/* ============================================================
   Screenshot strip
   ============================================================ */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
.screenshot-strip img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-brown);
}

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item { position: relative; }
.gallery-item figure {
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 4px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.gallery-item.portrait img { aspect-ratio: 4/5; }
.gallery-item figcaption {
  padding: 0.5rem 0.3rem 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   Video grid
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-meta { padding: 0.75rem; }
.video-title { font-family: var(--font-head); font-size: 0.5rem; color: var(--accent); margin-bottom: 0.3rem; line-height: 1.5; }
.video-channel { font-size: 0.75rem; color: var(--text-muted); }
.video-category {
  font-family: var(--font-head);
  font-size: 0.55rem;
  color: var(--brown);
  text-transform: uppercase;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-brown);
}

/* ============================================================
   Trivia and blockquotes
   ============================================================ */
.trivia {
  background: rgba(124, 74, 30, 0.15);
  border-left: 3px solid var(--brown);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--text);
  margin: 1.5rem 0;
  line-height: 1.65;
}
.dev-quote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(245, 194, 24, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.dev-quote p {
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.dev-quote cite {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ============================================================
   People / biography
   ============================================================ */
.bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.bio-name {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.bio-role { font-size: 0.78rem; color: var(--brown); margin-bottom: 1rem; }
.bio-body { font-size: 0.88rem; line-height: 1.7; }
.bio-body p { margin-bottom: 0.75rem; }

/* ============================================================
   Flagship / article pages
   ============================================================ */
.article-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.article-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}
.article-body { font-size: 0.92rem; line-height: 1.75; }
.article-body p { margin-bottom: 1.1rem; }
.article-body h2 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  line-height: 1.5;
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.article-img {
  margin: 1.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 4px;
}
.article-img img { border-radius: 2px; }
.article-img figcaption {
  padding: 0.5rem 0.3rem 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   Game flag / title section in flagship
   ============================================================ */
.game-section {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-brown);
}
.game-section:last-child { border-bottom: none; }
.game-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.game-box-art {
  flex-shrink: 0;
  width: 120px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 4px;
}
.game-box-art img { border-radius: 2px; }
.game-header-meta { flex: 1; }
.game-title-head {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.game-subtitle { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   Reviews
   ============================================================ */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.review-source { font-family: var(--font-head); font-size: 0.55rem; color: var(--accent); margin-bottom: 0.4rem; }
.review-score { font-family: var(--font-head); font-size: 1.2rem; color: var(--accent); float: right; }
.review-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.review-body { font-size: 0.85rem; line-height: 1.65; }
.review-verdict { font-style: italic; color: var(--text); margin-top: 0.5rem; }

/* ============================================================
   Resources
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.resource-item {
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.75rem;
  align-items: start;
}
.resource-name {
  font-family: var(--font-head);
  font-size: 0.5rem;
  color: var(--accent);
  line-height: 1.5;
}
.resource-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   Modern / status badges
   ============================================================ */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
  font-family: var(--font-head);
  border-radius: 3px;
  margin-left: 0.5rem;
}
.status-active { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); color: #4ade80; }
.status-complete { background: rgba(245, 194, 24, 0.1); border: 1px solid rgba(245, 194, 24, 0.3); color: var(--accent); }
.status-wip { background: rgba(124, 74, 30, 0.2); border: 1px solid rgba(124, 74, 30, 0.4); color: #cd8a4e; }

/* ============================================================
   Music / SID player track browser
   ============================================================ */
.track-browser { margin-top: 1.5rem; }
.track-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  transition: border-color 0.15s;
}
.track-row:hover { border-color: var(--accent); }
.track-row--active { border-color: var(--accent); background: rgba(245, 194, 24, 0.06); }
.track-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.track-thumb-placeholder {
  width: 48px;
  height: 48px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-brown);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.track-info { flex: 1; min-width: 0; }
.track-title { font-family: var(--font-head); font-size: 0.5rem; color: var(--accent); line-height: 1.5; margin-bottom: 0.25rem; }
.track-meta { font-size: 0.72rem; color: var(--text-muted); }
.track-group-head {
  font-family: var(--font-head);
  font-size: 0.55rem;
  color: var(--brown);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-brown);
  text-transform: uppercase;
}
.track-expand-btn, .track-play-btn {
  background: none;
  border: 1px solid var(--border-brown);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.track-expand-btn:hover, .track-play-btn:hover { border-color: var(--accent); color: var(--accent); }
.subtune-list { background: var(--bg-card-2); border: 1px solid var(--border-brown); border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 0.5rem; margin-bottom: 0.5rem; }
.subtune-item { padding: 0.3rem 0.5rem; font-size: 0.78rem; color: var(--text-muted); cursor: pointer; border-radius: 3px; }
.subtune-item:hover { background: rgba(245, 194, 24, 0.06); color: var(--accent); }

/* ============================================================
   Player bar
   ============================================================ */
#player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-h);
  background: rgba(13, 7, 0, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  z-index: 300;
}
.player-controls { display: flex; gap: 0.25rem; }
.player-btn {
  background: none;
  border: 1px solid var(--border-brown);
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.12s;
}
.player-btn:hover { border-color: var(--accent); color: var(--accent); }
.player-btn--active { border-color: var(--accent); color: var(--accent); background: rgba(245, 194, 24, 0.1); }
.player-info { flex: 1; min-width: 0; }
#player-now-playing { font-size: 0.72rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-subtune-row { display: flex; gap: 0.25rem; margin-top: 0.2rem; flex-wrap: wrap; }
.subtune-btn { background: none; border: 1px solid var(--border-brown); color: var(--text-muted); font-size: 0.6rem; padding: 0.1rem 0.35rem; border-radius: 3px; cursor: pointer; }
.subtune-btn--active { border-color: var(--accent); color: var(--accent); }
#player-vu {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 28px;
  --vu-level: 0;
}
.vu-bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
  animation: vu-bounce 0.4s ease-in-out infinite alternate;
}
.vu-bar:nth-child(1) { animation-delay: 0s; }
.vu-bar:nth-child(2) { animation-delay: 0.05s; }
.vu-bar:nth-child(3) { animation-delay: 0.1s; }
.vu-bar:nth-child(4) { animation-delay: 0.15s; }
.vu-bar:nth-child(5) { animation-delay: 0.2s; }
.vu-bar:nth-child(6) { animation-delay: 0.25s; }
@keyframes vu-bounce {
  from { height: calc(4px + 24px * var(--vu-level) * 0.3); }
  to   { height: calc(4px + 24px * var(--vu-level)); }
}
.player-vol-group { display: flex; align-items: center; gap: 0.35rem; }
#player-vol { width: 70px; accent-color: var(--accent); }
.player-deepsid { font-size: 0.65rem; }
@media (max-width: 600px) {
  #player-bar { flex-wrap: wrap; height: auto; padding: 0.5rem; gap: 0.5rem; }
  .player-info { width: 100%; order: -1; }
  #player-vol { width: 50px; }
  .player-deepsid { display: none; }
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border-brown);
  padding: 1.5rem 1.25rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   Rockford easter egg overlay
   ============================================================ */
@keyframes rockford-wink {
  0%, 85%, 100% { transform: scaleY(1); }
  90%  { transform: scaleY(0.05); }
}

@keyframes rockford-blink {
  0%, 80%, 100% { opacity: 1; }
  90% { opacity: 0; }
}

@keyframes rockford-tap {
  0%, 70%, 100% { transform: translateY(0); }
  80% { transform: translateY(4px); }
  90% { transform: translateY(-2px); }
}

@keyframes rockford-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes rockford-slide-out {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

.rockford-overlay {
  position: fixed;
  bottom: calc(var(--player-h) + 16px);
  right: 24px;
  z-index: 9999;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  animation: rockford-slide-in 0.35s ease forwards;
  min-width: 180px;
}
.rockford-overlay.closing {
  animation: rockford-slide-out 0.3s ease forwards;
}
.rockford-sprite {
  margin: 0 auto 0.75rem;
  position: relative;
}
.rockford-pixel-art {
  display: grid;
  grid-template-columns: repeat(8, 8px);
  gap: 1px;
  width: fit-content;
  margin: 0 auto;
}
.rp { width: 8px; height: 8px; border-radius: 1px; }
.rp-bg  { background: transparent; }
.rp-sk  { background: #f5c060; }  /* skin */
.rp-sh  { background: #f55a1a; }  /* shirt stripe */
.rp-sw  { background: #ffffff; }  /* shirt white */
.rp-ey  { background: #1a1000; }  /* eye */
.rp-hp  { background: #7c4a1e; }  /* hair */
.rp-gr  { background: #3d8a3d; }  /* pants */
.rp-sd  { background: #8a5a2e; }  /* shoe */
.rp-eye-left { animation: rockford-wink 3.5s ease-in-out infinite; transform-origin: center; }
.rp-eye-right { animation: rockford-blink 4s ease-in-out infinite; transform-origin: center; }
.rockford-foot { animation: rockford-tap 2s ease-in-out infinite; display: inline-block; }
.rockford-label {
  font-family: var(--font-head);
  font-size: 0.45rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}
.rockford-hint { font-size: 0.65rem; color: var(--text-muted); }
.rockford-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
}
.rockford-close:hover { color: var(--accent); }

/* ============================================================
   Misc utilities
   ============================================================ */
.page-header {
  background: linear-gradient(180deg, #0d0700 0%, #1b0e03 100%);
  border-bottom: 1px solid var(--border-brown);
  padding: 3rem 1.25rem 2rem;
}
.page-header .container { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 2rem; }

.diamond-accent {
  display: inline-block;
  color: var(--accent);
  animation: diamond-sparkle 2.5s ease-in-out infinite;
}
.diamond-accent::before { content: '\25C6'; }  /* diamond ◆ */
