/* Home page: arcade machines, high score boards and notes. */
.cabinets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cabinet-machine a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--navy); background: var(--navy); border: var(--border); box-shadow: var(--shadow); transition: transform .12s; }
.cabinet-machine a:hover, .cabinet-machine a:focus-visible { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--navy); }
.machine-marquee { display: block; padding: 14px 10px; background: var(--yellow); border-bottom: var(--border); font: 12px/1.5 var(--f-display); text-align: center; }
.machine-screen { flex: 1; display: grid; justify-items: center; align-content: center; gap: 12px; margin: 14px; padding: 22px 14px; min-height: 190px; background: var(--sky); border: var(--border); text-align: center; }
.machine-sprite { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.machine-tagline { font-size: 14px; line-height: 1.5; }
.machine-hiscore { font: 20px/1 var(--f-score); color: var(--orange); letter-spacing: .04em; }
.machine-play { display: block; margin: 0 14px 14px; padding: 12px; background: var(--yellow); border: 3px solid var(--white); font: 11px/1.5 var(--f-display); text-align: center; }

.cabinet-machine:first-child { grid-column: span 3; }
.cabinet-machine:first-child .machine-marquee { font-size: clamp(16px, 2.4vw, 26px); padding: 20px; background: var(--pink); color: var(--white); }
.cabinet-machine:first-child .machine-screen { min-height: 260px; grid-template-columns: auto minmax(0, 32ch); column-gap: 28px; justify-content: center; text-align: left; justify-items: start; }
.cabinet-machine:first-child .machine-sprite { width: 120px; height: 120px; grid-row: span 2; }
.cabinet-machine:first-child .machine-tagline { font-size: 18px; }
.cabinet-machine:first-child .machine-hiscore { font-size: 28px; }
.cabinet-machine:first-child .machine-play { font-size: 15px; padding: 18px; }


.notes h2 { font-size: clamp(16px, 2.4vw, 24px); line-height: 1.5; margin-bottom: 20px; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.note-list li { padding: 16px 18px; }
.note-list p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.note-list span { font: 16px/1.2 var(--f-score); color: var(--blue); }

.site-header .btn-sm { min-width: 0; }

@media (max-width: 900px) {
  .cabinets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cabinet-machine:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .site-header .header-row .btn.btn-sm { padding-inline: 12px; }
  .site-header .btn-sm img { display: none; }
  .cabinets { gap: 14px; }
  .machine-marquee { font-size: 9px; padding: 10px 6px; }
  .machine-screen { margin: 8px; padding: 12px 8px; gap: 8px; }
  .machine-sprite { width: 40px; height: 40px; }
  .machine-tagline { font-size: 12px; }
  .machine-play { margin: 0 8px 8px; padding: 9px; font-size: 9px; }
  .cabinet-machine:first-child .machine-screen { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; min-height: 0; }
  .cabinet-machine:first-child .machine-sprite { width: 80px; height: 80px; grid-row: auto; }
  .machine-screen { min-height: 0; }
}

.arcade-intro { background: var(--navy); color: var(--white); padding-block: clamp(40px, 6vw, 72px); border-bottom: 4px solid var(--yellow); }
.arcade-intro-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.arcade-intro h1 { font-size: clamp(26px, 5vw, 56px); line-height: 1.3; color: var(--yellow); text-shadow: 4px 4px 0 var(--pink); margin-bottom: 16px; }
.arcade-intro p { max-width: 48ch; font-size: 16px; line-height: 1.6; }
.arcade-goal { padding: 18px; background: var(--cream); color: var(--navy); border: var(--border); box-shadow: 6px 6px 0 var(--yellow); }
.arcade-goal p { margin: 0 0 10px; font: 22px/1.2 var(--f-score); letter-spacing: .04em; }
.arcade-goal .btn { margin-top: 14px; }
@media (max-width: 760px) { .arcade-intro-row { grid-template-columns: minmax(0, 1fr); } }

.hero .hero-copy { max-width: 860px; margin-inline: auto; text-align: center; }
.hero .hero-copy h1 { justify-items: center; }
.hero .hero-sub, .hero .hero-bridge { margin-inline: auto; }
.hero .live-total { justify-content: center; }
.hero { padding-bottom: clamp(28px, 4vw, 48px); }
#quest { padding-top: clamp(8px, 2vw, 24px); }
.quest-stats { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
.hero .hero-sub { max-width: 46ch; text-wrap: balance; }

.quiz-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.quiz-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 8px 16px; align-items: center; height: 100%; padding: 18px; color: var(--navy); text-decoration: none; background: var(--sky); transition: transform .12s, box-shadow .12s; }
.quiz-card:hover, .quiz-card:focus-visible { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--navy); background: var(--yellow); }
.quiz-card img { grid-row: span 2; width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; }
.quiz-card span { font: 13px/1.6 var(--f-display); }
.quiz-card b { font: 11px/1.5 var(--f-display); color: var(--orange); }
