/* ─── Platytutor home — storybook UI ──────────────────────────────────────
   Warm cream paper, hand-drawn vibes, deep navy ink.
   Staggered reveals on load. Hover micro-interactions that nod to
   paper stickers. Platypus mascot is the anchor.                        */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

/* Base body + grain overlay live in css/components.css. This page only adds
   the containment needed for the absolutely-positioned hero floaters. */
body {
  position: relative;
  overflow-x: hidden;
}

.page-layer {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ─── Top bar ───────────────────────────────────────────────────────── */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 3vw, 2.2rem);
  max-width: 1280px;
  margin: 0 auto;
  /* Keep the header (and the user dropdown in it) above main content, whose
     hover transforms create competing stacking contexts. */
  position: relative;
  z-index: 100;
}

/* .brand / .brand-mark base are in components.css; the home hero uses a
   slightly larger, softer mark. */
.brand { font-size: 1.45rem; font-variation-settings: "SOFT" 50, "WONK" 1; }
.brand-mark { --brand-mark-size: 44px; border-radius: 14px; font-size: 1.3rem; }

.top-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* .chip / .chip-dot base are in components.css. */
.user-chip { padding-left: 0.4rem; }
.user-chip.user-chip--avatar-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: default;
}
.user-chip.user-chip--avatar-only:hover,
.user-chip.user-chip--avatar-only:active {
  transform: none;
  box-shadow: none;
}
.user-chip.no-avatar { padding-left: 0.95rem; }

/* Hero entrance keyframes + .hero-copy/.mascot-stage motion live in
   components.css. */

/* ─── User dropdown menu ────────────────────────────────────────────── */

/* The avatar trigger reads as a button: same pill/border/stamp-shadow
   language as .chip, with a caret that flips when the menu is open. */
.user-chip.user-menu-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.45rem 0.25rem 0.25rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--card);
  box-shadow: var(--shadow-stamp-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.user-chip.user-menu-trigger:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(27,58,91,0.92); }
.user-chip.user-menu-trigger:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(27,58,91,0.92); }
.user-menu-caret {
  display: inline-flex;
  color: var(--ink-muted);
  transition: transform 0.18s ease;
}
.user-chip.user-menu-trigger[aria-expanded="true"] .user-menu-caret { transform: rotate(180deg); }
.user-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  min-width: 170px;
  padding: 0.35rem;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-stamp-sm);
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.user-menu-item:hover { background: rgba(27, 58, 91, 0.08); }
.user-menu-item.is-active { background: rgba(27, 58, 91, 0.12); }
a.user-menu-item { text-decoration: none; }
.user-menu-divider {
  height: 1.5px;
  margin: 0.35rem 0.5rem;
  background: var(--line-strong);
  opacity: 0.35;
  border-radius: 1px;
}

/* ─── Hero ──────────────────────────────────────────────────────────── */

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.2rem) 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 2.5rem) 0 2rem;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: var(--coral-deep);
  line-height: 1;
  transform: rotate(-2deg);
  margin-bottom: 0.4rem;
}

.hero-eyebrow svg { flex-shrink: 0; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

.hero-title .word-coral { color: var(--coral); display: inline-block; }
.hero-title .word-ink { display: inline-block; position: relative; }
.hero-title .word-ink::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6%;
  height: 18%;
  background: var(--sun);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1.5deg);
}

.hero-title .wonky { font-style: italic; font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144; }

.hero-lead {
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 1.8rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* .btn-stamp + variants live in components.css. */

.hero-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--line-strong);
}

.hero-stat-n {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* Mascot stage — .mascot-stage / .mascot-bubble / mascot-float keyframes are
   in components.css; only the home page's image wrapper lives here. */

.mascot-img-wrap {
  position: absolute;
  inset: 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mascot-float 6s ease-in-out infinite;
}

.mascot-img-wrap img,
.mascot-img-wrap svg {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(6px 10px 0 rgba(27, 58, 91, 0.18));
  will-change: transform;
}

.mascot-placeholder {
  position: absolute;
  inset: 12%;
  border: 3px dashed var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.2;
}

.mascot-placeholder span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

/* Decorative floaters (.floater*) + tilt keyframes live in components.css. */

/* ─── Section dividers ──────────────────────────────────────────────── */

.wave-divider {
  display: block;
  width: 100%;
  height: 40px;
  margin: 3rem 0 1.5rem;
  color: var(--ink);
  opacity: 0.55;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 1.2rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.section-emoji-chip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-stamp-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transform: rotate(-5deg);
}

.section-emoji-chip[data-tone="mint"] { background: var(--mint); }
.section-emoji-chip[data-tone="coral"] { background: var(--coral); color: var(--on-color); }
.section-emoji-chip[data-tone="sun"]   { background: var(--sun); }
.section-emoji-chip[data-tone="sky"]   { background: var(--sky); color: var(--on-color); }

.section-hint {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-soft);
  transform: rotate(-1.5deg);
}

/* ─── Journeys panels ───────────────────────────────────────────────── */
/* Visually its own module — a distinct panel, not just another section in
   the plain task grid below — so picking a journey reads as a different
   kind of choice from picking a single game. Journeys still ahead and ones
   already finished each get their own panel, so the two read as separate
   shelves rather than one long list. */

.journey-panel {
  background: var(--paper-deep);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-stamp);
  padding: 1.6rem 1.6rem 0.6rem;
  margin: 1.8rem 0 2.8rem;
}

.journey-panel .section-head {
  margin-top: 0;
}

/* The finished shelf is an archive, not the thing to do next: it sits back
   with a flatter, paler treatment so the open journeys keep the emphasis. */
.journey-panel--done {
  background: var(--paper);
  box-shadow: var(--shadow-stamp-sm);
}

.journey-panel--done .game-card {
  opacity: 0.82;
}

.journey-panel--done .game-card:hover,
.journey-panel--done .game-card:focus-visible {
  opacity: 1;
}

/* ─── Game grid & cards ─────────────────────────────────────────────── */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-stamp);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.22s ease,
              rotate 0.22s ease;
  rotate: 0deg;
  animation: card-in 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--card-i, 0) * 70ms + 150ms);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.game-card:hover {
  transform: translate(-3px, -5px);
  box-shadow: 7px 9px 0 rgba(27,58,91,0.92);
  rotate: -0.8deg;
}

.game-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(27,58,91,0.92);
}

/* Every card gets a randomized tone via nth-child — the look breathes */
.game-card[data-tone="mint"]  .card-scene { background: linear-gradient(165deg, #c8ece6, #7ecec4); }
.game-card[data-tone="coral"] .card-scene { background: linear-gradient(165deg, #ffd0c5, #ff9f8f); }
.game-card[data-tone="sun"]   .card-scene { background: linear-gradient(165deg, #ffe9a5, var(--sun)); }
.game-card[data-tone="sky"]   .card-scene { background: linear-gradient(165deg, #b8daec, #6fb3e0); }
.game-card[data-tone="berry"] .card-scene { background: linear-gradient(165deg, #f2b4d4, var(--berry)); color: var(--on-color); }
.game-card[data-tone="ink"]   .card-scene { background: linear-gradient(165deg, #3d5775, var(--ink)); color: var(--on-color); }

.card-status-dot {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-stamp-sm);
  pointer-events: none;
}

.card-status-dot[data-status="draft"] { background: var(--sun); }
.card-status-dot[data-status="reviewed"] { background: var(--mint); }
.card-status-dot[data-status="published"] { background: var(--success); }
.card-status-dot[data-status="needs_correction"] { background: var(--coral); }

/* Stamped badge marking a game type that requires a mobile device
   (e.g. orientation/motion sensors) — opposite corner from .card-status-dot
   so the two never collide. */
.card-mobile-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-stamp-sm);
  pointer-events: none;
}

.card-mobile-badge svg { width: 21px; height: 21px; }

.card-scene {
  position: relative;
  min-height: 170px;
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 2.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  overflow: hidden;
}

.card-scene::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.card-scene::after {
  content: "";
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(27, 58, 91, 0.08);
  pointer-events: none;
}

.card-type-sticker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-full);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-stamp-sm);
  align-self: flex-start;
  transform: rotate(-3deg);
}

.card-type-sticker svg { width: 14px; height: 14px; }

.card-scene-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-stamp-sm);
  z-index: 1;
  transform: rotate(4deg);
  transition: transform 0.3s ease;
}

.game-card:hover .card-scene-icon {
  transform: rotate(-10deg) scale(1.08);
}

.card-scene-icon svg { width: 44px; height: 44px; color: var(--ink); }

.card-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.card-sub {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.journey-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.journey-progress-track {
  flex: 1;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--paper-deep);
  overflow: hidden;
}

.journey-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--mint-deep);
  transition: width 0.3s ease;
}

.journey-progress-label {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1.5px dashed var(--line-strong);
}

.card-foot-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-play {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--coral-deep);
  transition: gap 0.2s ease;
}

.game-card:hover .card-play { gap: 0.65rem; color: var(--ink); }
.card-play-arrow { width: 18px; height: 18px; }

.game-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.15rem;
}

.card-toolbar .chip,
.card-toolbar .btn-stamp {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.card-toolbar .btn-stamp {
  cursor: pointer;
}

.card-status-badge[data-status="needs_correction"] {
  background: rgba(232, 81, 77, 0.15);
  border-color: var(--coral);
}

/* Empty / error states use the shared .empty-state--card / .empty-state--muted
   modifiers in components.css. */

/* ─── Login overlay (paper card) ──────────────────────────────────────
   Overlay backdrop, .login-card, .login-close, headings, error/success,
   and the note list/items are all in components.css. This page keeps only
   the mascot badge, OAuth buttons, and legal footer. */

.login-mascot {
  width: 70px;
  height: 70px;
  margin: -3.2rem auto 0.6rem;
  border-radius: 50%;
  background: var(--sun);
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-stamp-sm);
}

.login-mascot svg { width: 42px; height: 42px; color: var(--ink); }

/* ─── Avatar picker (inside the login-card modal) ───────────────────── */

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  max-height: min(52vh, 390px);
  overflow-y: auto;
  /* Room for the scrollbar and the hover scale-up, so the right column's
     circles never get clipped. */
  scrollbar-gutter: stable;
  padding: 0.3rem 0.5rem 0.3rem 0.3rem;
}

.avatar-grid-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
  font-weight: 700;
  margin: 0.6rem 0;
}

.avatar-option {
  appearance: none;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2.5px solid var(--line-strong);
  background: var(--paper-deep);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-option:hover { transform: scale(1.08); border-color: var(--ink); box-shadow: var(--shadow-stamp-sm); }
.avatar-option.is-selected { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(232, 81, 77, 0.28); }
.avatar-option.is-saving { opacity: 0.55; }
.avatar-option:disabled { cursor: wait; }

.card-toolbar .btn-stamp.has-open-notes {
  border-color: var(--coral);
  background: rgba(232, 81, 77, 0.15);
}

.login-legal {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0.9rem 0 0;
  line-height: 1.4;
}

/* Consent checkbox (login overlays + parent invite form): the SSO buttons stay
   disabled / the form refuses to submit until this is ticked. */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0 0 1rem;
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.1rem 0 0;
  accent-color: var(--coral);
  cursor: pointer;
}
.consent-check a { color: var(--coral-deep); }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(27, 58, 91, 0.18);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-google:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(27, 58, 91, 0.3);
}
.btn-google:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(27, 58, 91, 0.18);
}

.btn-microsoft {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(27, 58, 91, 0.18);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-microsoft:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(27, 58, 91, 0.3);
}
.btn-microsoft:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(27, 58, 91, 0.18);
}

/* Until the consent checkbox is ticked (see .consent-check). */
.btn-google:disabled,
.btn-microsoft:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 3px 0 rgba(27, 58, 91, 0.18);
}

/* ─── Responsive (tokens.css: sm 576 / md 768 / lg 992) ──────────────── */

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 0.5rem;
  }

  .mascot-stage {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .top-bar { padding: 0.8rem 1rem; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.1rem; }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hero-lead { font-size: 1rem; }
  .hero-stat-n { font-size: 1.7rem; }

  .floater--a, .floater--b, .floater--c { font-size: 0.82rem; padding: 0.4rem 0.65rem; }
  .floater--b { right: -4%; }

  .btn-stamp { padding: 0.8rem 1.25rem; font-size: 0.95rem; }
  .game-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mascot-img-wrap,
  .floater--a,
  .floater--b,
  .floater--c,
  .game-card,
  .hero-copy > *,
  .mascot-stage { animation: none !important; opacity: 1 !important; transform: none !important; }
}
