/* Evergreen Facts — Forest Arcade (Evergreen Speedway, Evergreen's Trail Run, Critter Trails). */
.arcade-grades { flex-wrap: wrap; }
.arcade-grades .grade-btn { min-width: 52px; }
.arcade-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 18px 0; }
.arcade-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow); font: inherit; color: inherit; transition: transform .15s ease, box-shadow .15s ease;
}
.arcade-card:hover, .arcade-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20,61,46,.16); }
.arcade-card.is-suggested { border-color: var(--gold-deep); }
.arcade-card canvas { width: 100%; height: auto; aspect-ratio: 24 / 13; border-radius: 14px; }
.ac-title { font-weight: 800; font-size: 1.2rem; }
.ac-blurb { color: var(--ink-soft); flex: 1; }
.arcade-card .go { align-self: flex-start; background: var(--cedar); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; }

.arcade-stage { margin-bottom: 24px; }
.arcade-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.arcade-bar h2 { margin: 0; font-size: 1.3rem; flex: 1; }
.arcade-hud { margin: 0; font-weight: 800; color: var(--sky-deep); }
.arcade-q {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border-radius: 18px; padding: 10px 16px; margin: 0 auto 10px; max-width: 900px;
  box-shadow: var(--shadow); font-size: 1.5rem; font-weight: 800; text-align: center; min-height: 58px;
}
.q-label { display: block; width: 100%; font-size: .85rem; font-weight: 700; color: var(--sky-deep); text-transform: uppercase; letter-spacing: .04em; }
.q-visual { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; }
.q-op { font-size: 1.8rem; margin: 0 8px; }
.q-hear { border: 0; background: var(--gold); border-radius: 999px; width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; }
.arcade-canvas-wrap { position: relative; margin: 0 auto; width: 100%; }
.arcade-canvas-wrap canvas { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); touch-action: none; background: #cfe9d8; }
.arcade-toast {
  position: absolute; left: 50%; top: 18%; transform: translate(-50%, 0) scale(.6); opacity: 0; pointer-events: none;
  background: var(--gold); color: var(--cedar-deep); font-weight: 900; font-size: 1.5rem; padding: 8px 18px; border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
}
.arcade-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.arcade-toast.no { background: #fff6e8; color: var(--ink); font-size: 1.1rem; }
.arcade-pads { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 10px; max-width: 900px; margin: 12px auto 0; }
.pad-btn {
  position: relative; min-height: 64px; font: inherit; font-size: 1.6rem; font-weight: 900; cursor: pointer;
  border-radius: 18px; border: 3px solid var(--cedar); background: var(--paper); color: var(--ink);
  box-shadow: 0 5px 0 var(--cedar-deep); transition: transform .08s ease;
}
.pad-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--cedar-deep); }
.pad-key { position: absolute; top: 4px; left: 8px; font-size: .7rem; opacity: .5; }
.pad-btn.is-picked { background: var(--gold); }
.pad-btn.is-right { background: #3f8f6b; color: #fff; border-color: #2d6e51; animation: pad-pop .35s ease; }
.pad-btn.is-wrong { background: #ffe1db; border-color: var(--berry); }
.pad-btn:disabled { cursor: default; }
@keyframes pad-pop { 50% { transform: scale(1.08); } }
.arcade-help { text-align: center; }
.arcade-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }
.unlock-note { font-weight: 800; color: var(--cedar); }
.rarity { color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 800; }
.journal-grid canvas { margin: 0 auto; }

/* K-2: big, chunky targets and minimal reading */
.band-k2 .pad-btn { min-height: 88px; font-size: 2.2rem; border-radius: 24px; }
.band-k2 .arcade-q { font-size: 1.9rem; }
.band-k2 .arcade-help { display: none; }

/* 6-8 and 9-12: sleeker, darker */
.arcade-page.band-g68, .arcade-page.band-g912 { background: radial-gradient(900px 400px at 10% -10%, #24443a 0%, transparent 55%), #0f1c18; color: #e8f1ed; }
.band-g68 .arcade-q, .band-g912 .arcade-q, .band-g68 .arcade-card, .band-g912 .arcade-card,
.band-g68 .intro-card, .band-g912 .intro-card, .band-g68 .break-card, .band-g912 .break-card { background: #16261f; color: #e8f1ed; border-color: rgba(126,224,200,.18); }
.band-g68 .ac-blurb, .band-g912 .ac-blurb, .band-g68 .lede, .band-g912 .lede { color: #b8cfc6; }
.band-g68 .pad-btn, .band-g912 .pad-btn { background: #0f1c18; color: #f4c15d; border-color: #7ee0c8; box-shadow: 0 4px 0 #0a4a3c; border-radius: 12px; font-size: 1.35rem; }
.band-g68 .pad-btn.is-picked, .band-g912 .pad-btn.is-picked { background: #f4c15d; color: #0f1c18; }
.band-g68 .pad-btn.is-right, .band-g912 .pad-btn.is-right { background: #1f8a62; color: #fff; }
.band-g68 .pad-btn.is-wrong, .band-g912 .pad-btn.is-wrong { background: #3a1f1c; color: #ffb4a8; }
.band-g68 .arcade-hud, .band-g912 .arcade-hud, .band-g68 .q-label, .band-g912 .q-label { color: #7ee0c8; }
.band-g68 .site-footer, .band-g912 .site-footer, .band-g68 .site-footer a, .band-g912 .site-footer a, .band-g68 .brand, .band-g912 .brand { color: #cfe3dc; }
.band-g68 a, .band-g912 a { color: #9ad7ff; }
.band-g68 .arcade-q, .band-g912 .arcade-q { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.3rem; }

@media (max-width: 640px) {
  .arcade-q { font-size: 1.2rem; padding: 8px 10px; }
  .pad-btn { min-height: 56px; font-size: 1.3rem; }
  .band-k2 .pad-btn { min-height: 76px; font-size: 1.9rem; }
  .arcade-bar h2 { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .arcade-card, .pad-btn, .arcade-toast { transition: none; animation: none; } }
.arcade-q[hidden], .arcade-pads[hidden], .arcade-overlay[hidden] { display: none; }
.arcade-overlay {
  position: absolute; inset: 0; overflow-y: auto; z-index: 5; border-radius: 20px; padding: 14px;
  background: rgba(255, 246, 232, 0.98); -webkit-overflow-scrolling: touch;
}
.overlay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; position: sticky; top: -14px; background: inherit; padding: 4px 0 8px; }
.overlay-head h3 { margin: 0; }
.arcade-overlay .collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.arcade-overlay .critter-card { padding: 10px; text-align: center; }
.arcade-overlay .critter-card h3 { font-size: 1rem; margin: 4px 0; }
.arcade-overlay .critter-card p { font-size: .85rem; margin: 4px 0; }
.band-g68 .arcade-overlay, .band-g912 .arcade-overlay { background: rgba(12, 22, 19, 0.98); color: #e8f1ed; }
.band-g68 .arcade-overlay .critter-card, .band-g912 .arcade-overlay .critter-card { background: #16261f; color: #e8f1ed; }
@media (max-width: 640px) { .arcade-overlay { position: fixed; inset: 8px; z-index: 40; } }
