/* Bright Minds Club: playful sticker style (matches approved prototype).
   Cream background, ink outlines, hard offset shadows, Baloo 2 / Fredoka headings. */

:root {
  --orange: #ff6b26;
  --orange-dark: #cf4410;
  --purple: #7130c4;
  --purple-dark: #4b1f82;
  --purple-soft: #eee0ff;
  --cream: #fffaf7;
  --ink: #291840;
  --ink-soft: #62546f;
  --line: #ddcdec;
  --yellow: #ffd44d;
  --mint: #65d6b1;
  --green: #22c55e;
  --gold: #ffc93c;
  --card: #ffffff;
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, .display {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
}

h2, h3 {
  font-family: "Baloo 2", "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
}

a { color: var(--purple); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons: chunky stickers, ink outline, hard offset shadow ---------- */
.btn {
  display: inline-block;
  border: 3px solid var(--ink);
  cursor: pointer;
  font-family: "Baloo 2", "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 30px;
  min-height: 56px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 5px 6px 0 var(--ink);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 4px 0 var(--ink); }
.btn:active { transform: translate(5px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn-primary {
  background: var(--orange);
  color: #241325;
}
.btn-purple {
  background: var(--purple);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--purple-dark);
}
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- landing ---------- */
.hero {
  background: linear-gradient(160deg, #7130c4 0%, #8a3ee0 45%, #ff6b26 130%);
  color: #fff;
  border-radius: 0 0 48px 48px;
  padding: 34px 0 64px;
  overflow: hidden;
  position: relative;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 26px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Baloo 2", "Fredoka", sans-serif; font-size: 1.35rem; font-weight: 700; }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; object-fit: cover; }
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { background: rgba(255,255,255,0.18); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin-bottom: 16px; }
.hero p.sub { font-size: 1.2rem; opacity: 0.95; margin: 0 0 26px; max-width: 34rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -30px; border-radius: 50%;
  border: 12px solid var(--yellow);
  opacity: 0.9;
  pointer-events: none;
  transform: rotate(-4deg);
}
.k2-chip {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.1rem;
  border: 3px solid var(--ink); border-radius: 14px; padding: 4px 14px;
  box-shadow: 3px 4px 0 var(--ink); transform: rotate(-3deg); margin-bottom: 14px;
}
.hero-art img { width: 100%; max-width: 380px; border-radius: 36px; box-shadow: 8px 10px 0 var(--ink); display: block; margin: 0 auto; position: relative; border: 4px solid var(--ink); transform: rotate(2deg); }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; transform: rotate(-1deg); }
.trust-pill { background: rgba(255,255,255,0.16); border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; color: #fff; }

.section { padding: 56px 0; }
.section h2 { font-size: 2rem; margin-bottom: 8px; text-align: center; }
.section p.lead { text-align: center; color: var(--ink-soft); font-size: 1.1rem; max-width: 40rem; margin: 0 auto 30px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature-card { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: 6px 7px 0 var(--ink); text-align: center; border: 3px solid var(--ink); }
.feature-card .emoji { font-size: 2.2rem; width: 78px; height: 78px; margin: 0 auto; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: var(--purple-soft); }
.feature-card:nth-child(2) .emoji { background: #ffe8d1; }
.feature-card:nth-child(3) .emoji { background: #dcfce7; }
.feature-card:nth-child(4) .emoji { background: #fef3c7; }
.feature-card:nth-child(5) .emoji { background: #e0f2fe; }
.feature-card:nth-child(6) .emoji { background: #f3e4ff; }
.feature-card h3 { margin: 14px 0 6px; }
.feature-card p { color: var(--ink-soft); margin: 0; }

.game-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.game-strip .mini { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 5px 6px 0 var(--ink); border: 3px solid var(--ink); }
.game-strip .mini img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.game-strip .mini div { padding: 10px 12px; font-weight: 800; font-size: 0.9rem; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 720px; margin: 0 auto; }
.price-card { background: #fff; border-radius: 30px; padding: 32px; text-align: center; box-shadow: 7px 8px 0 var(--ink); border: 3px solid var(--ink); position: relative; }
.price-card.best { border: 4px solid var(--ink); transform: rotate(1deg) scale(1.03); box-shadow: 10px 12px 0 var(--ink); }
.price-card .flag { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--orange); color: #241325; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 0.9rem; padding: 6px 18px; border-radius: 999px; white-space: nowrap; border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.price-card .amount { font-family: "Baloo 2", sans-serif; font-size: 3rem; font-weight: 800; }
.price-card .per { color: var(--ink-soft); font-weight: 700; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; }
.price-card li { padding: 6px 0; font-weight: 600; }
.price-card li::before { content: "✓ "; color: var(--green); font-weight: 800; }

.faq { max-width: 680px; margin: 0 auto; }
.faq details { background: #fff; border-radius: 18px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 4px 5px 0 var(--ink); border: 3px solid var(--ink); }
.faq summary { font-weight: 800; cursor: pointer; font-size: 1.05rem; }
.faq p { color: var(--ink-soft); }

footer { background: var(--ink); color: #cfc3ec; padding: 36px 0; margin-top: 40px; border-radius: 48px 48px 0 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ---------- app shell ---------- */
.app-top {
  background: linear-gradient(160deg, #7130c4, #8a3ee0);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--gold);
}
.app-top .wrap { display: flex; align-items: center; gap: 14px; }
.app-top .brand img { width: 44px; height: 44px; }
.tabs { display: flex; gap: 6px; margin-left: 12px; flex-wrap: wrap; }
.tabs button {
  background: transparent; border: none; color: #fff; font-family: "Baloo 2", "Fredoka", sans-serif;
  font-weight: 600; font-size: 1rem; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  opacity: 0.75;
}
.tabs button.active { background: rgba(255,255,255,0.22); opacity: 1; }
.kid-switch { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kid-switch img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: cover; border: 3px solid var(--gold); cursor: pointer; }
.avatar-wrap { position: relative; }
.kid-menu { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); padding: 6px; z-index: 60; min-width: 130px; }
.kid-menu.hidden { display: none; }
.kid-menu button { display: block; width: 100%; text-align: left; border: none; background: none; font-family: inherit; font-weight: 600; font-size: 0.95rem; color: var(--purple-dark); padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.kid-menu button.active { background: var(--purple-soft); }
.kid-switch select {
  font-family: "Baloo 2", "Fredoka", sans-serif; font-weight: 700; font-size: 1rem;
  border-radius: 999px; padding: 8px 12px; border: none; background: #fff; color: var(--ink);
}
.star-balance {
  display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.25);
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 1.05rem;
  border: 3px solid var(--ink);
}

.view { display: none; padding: 28px 0 60px; }
.view.active { display: block; }

.next-step {
  background: var(--orange);
  border-radius: 20px; padding: 14px 16px; color: #241325;
  display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
  box-shadow: 6px 7px 0 var(--ink);
  border: 3px solid var(--ink);
}
.next-step img { width: 72px; height: 56px; object-fit: cover; border-radius: 12px; flex: none; border: 3px solid var(--ink); }
.next-step img { width: 72px; height: 56px; object-fit: cover; border-radius: 12px; flex: none; }
.next-step h3 { font-size: 1.05rem; margin: 0; line-height: 1.15; }
.next-step p { margin: 2px 0 8px; opacity: 0.95; font-size: 0.9rem; line-height: 1.3; }
.next-step .btn { padding: 10px 22px; font-size: 0.95rem; background: #fff; color: var(--ink); min-height: 0; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; align-items: center; }
.filters .chip {
  border: 3px solid var(--ink); background: #fff; color: var(--purple-dark);
  font-family: "Baloo 2", "Fredoka", sans-serif; font-weight: 700; padding: 8px 18px; border-radius: 14px; cursor: pointer;
  box-shadow: 3px 4px 0 var(--ink);
}
.filters .chip.active { background: var(--purple); border-color: var(--ink); color: #fff; box-shadow: 3px 4px 0 var(--ink); }
.filters .grade-chip.active { background: var(--orange); border-color: var(--ink); color: #241325; }

.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.game-card {
  background: #fff; border-radius: 22px; overflow: hidden; cursor: pointer;
  box-shadow: 6px 7px 0 var(--ink); transition: transform 0.12s ease;
  border: 3px solid var(--ink); text-align: left; padding: 0; font-family: inherit; color: inherit;
  position: relative;
}
.game-card:hover { transform: translateY(-4px); }
.game-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--purple-soft); }
.game-card .meta { padding: 12px 14px; }
.game-card .meta b { display: block; font-size: 0.98rem; }
.game-card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800; margin-top: 6px;
  padding: 3px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-dark);
}
.game-card .tag.reading { background: #dcfce7; color: #15803d; }
.new-badge {
  position: absolute; top: 8px; left: 8px; background: var(--orange); color: #fff;
  font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.done-check {
  position: absolute; top: 8px; right: 8px; background: var(--green); color: #fff;
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 800; box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* ---------- player ---------- */
.player-full {
  position: fixed; inset: 0; background: #1a1033; z-index: 200;
  display: flex; flex-direction: column;
}
.player-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(0,0,0,0.45); color: #fff;
}
.player-bar .title { font-family: "Baloo 2", "Fredoka", sans-serif; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  border: none; background: rgba(255,255,255,0.16); color: #fff; cursor: pointer;
  font-size: 1.15rem; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.icon-btn:hover { background: rgba(255,255,255,0.3); }
.player-frame-wrap { flex: 1; position: relative; }
.player-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; background: #fff; }
.star-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-weight: 800; padding: 14px 26px; border-radius: 999px;
  opacity: 0; transition: all 0.3s ease; z-index: 300; pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); font-size: 1.1rem;
}
.star-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.time-warning {
  position: fixed; inset: 0; z-index: 400; display: none;
  align-items: center; justify-content: center; background: rgba(26,16,51,0.7);
}
.time-warning.show { display: flex; }
.time-warning .box {
  background: #fff; border-radius: 28px; padding: 36px; max-width: 420px; text-align: center;
  box-shadow: 8px 10px 0 var(--ink); border: 3px solid var(--ink);
}
.time-warning .box img { width: 120px; border-radius: 24px; }

/* ---------- paths ---------- */
.trail { position: relative; margin: 10px 0 40px; padding-left: 8px; }
.trail-stop {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border-radius: 20px; padding: 14px 18px; margin-bottom: 18px;
  box-shadow: 5px 6px 0 var(--ink); border: 3px solid var(--ink);
}
.trail-stop img { width: 92px; height: 70px; object-fit: cover; border-radius: 14px; }
.trail-stop .node {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: #c4b5fd;
}
.trail-stop.done .node { background: var(--green); }
.trail-stop.current .node { background: var(--orange); box-shadow: 0 0 0 6px rgba(255,140,46,0.25); }
.trail-stop.current { border: 3px solid var(--ink); box-shadow: 5px 6px 0 var(--orange); }
.trail-stop.locked { opacity: 0.55; }
.trail-stop .grow { flex: 1; }
.trail-stop .grow b { font-size: 1.05rem; }
.trail-stop .grow p { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .shop-layout { grid-template-columns: 1fr; } }
.dressing-room {
  background: var(--purple-soft);
  border-radius: 28px; padding: 26px; text-align: center;
  box-shadow: 7px 8px 0 var(--ink); border: 3px solid var(--ink); position: sticky; top: 90px;
}
.dressing-room img { width: 100%; max-width: 260px; border-radius: 24px; background: #fff; border: 3px solid var(--ink); }
.dressing-room h3 { margin: 14px 0 4px; }
.dressing-room p { color: var(--ink-soft); margin: 0 0 14px; }
.outfit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.outfit-card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 5px 6px 0 var(--ink); border: 3px solid var(--ink); }
.outfit-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--purple-soft); }
.outfit-card .meta { padding: 14px 16px; }
.outfit-card .meta b { font-size: 1.02rem; }
.outfit-card .meta p { color: var(--ink-soft); font-size: 0.88rem; margin: 4px 0 10px; }
.price-tag { font-weight: 800; color: var(--orange-dark); }
.owned-tag { font-weight: 800; color: var(--green); }
.outfit-card .row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.small-btn {
  border: 3px solid var(--ink); cursor: pointer; font-family: "Baloo 2", "Fredoka", sans-serif; font-weight: 700;
  padding: 9px 16px; border-radius: 14px; font-size: 0.92rem;
  box-shadow: 3px 4px 0 var(--ink); transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.small-btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--ink); }
.small-btn.buy { background: var(--orange); color: #fff; }
.small-btn.equip { background: var(--purple); color: #fff; }
.small-btn.ghost { background: var(--purple-soft); color: var(--purple-dark); }
.small-btn:disabled { opacity: 0.45; cursor: default; }

/* ---------- dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 5px 6px 0 var(--ink); border: 3px solid var(--ink); }
.stat-card .big { font-family: "Baloo 2", sans-serif; font-size: 2.2rem; font-weight: 800; }
.stat-card .label { color: var(--ink-soft); font-weight: 700; }
.panel { background: #fff; border-radius: 24px; padding: 26px; box-shadow: 6px 7px 0 var(--ink); border: 3px solid var(--ink); margin-bottom: 24px; }
.panel h3 { margin-bottom: 14px; }
.activity { display: flex; gap: 12px; padding: 10px 0; border-bottom: 2px solid #f5f0ff; align-items: center; }
.activity:last-child { border-bottom: none; }
.activity .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--purple-soft); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.activity small { color: var(--ink-soft); }
.skill-bar { margin: 10px 0; }
.skill-bar .top { display: flex; justify-content: space-between; font-weight: 800; font-size: 0.95rem; }
.skill-bar .track { height: 14px; background: var(--purple-soft); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.skill-bar .fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--orange)); border-radius: 999px; transition: width 0.5s ease; }
.form-row { display: flex; gap: 12px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.form-row label { font-weight: 800; min-width: 180px; }
.form-row input[type="number"], .form-row input[type="text"], .form-row input[type="email"] {
  font-family: inherit; font-size: 1rem; padding: 10px 14px; border-radius: 14px;
  border: 3px solid var(--purple-soft); width: 220px;
}
.switch { position: relative; width: 56px; height: 32px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #d6c9f5; border-radius: 999px; cursor: pointer; transition: 0.2s; }
.switch .slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(24px); }

.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(26,16,51,0.7); padding: 20px; }
.modal.show { display: flex; }
.modal .box { background: #fff; border-radius: 28px; padding: 32px; max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; border: 3px solid var(--ink); box-shadow: 8px 10px 0 var(--ink); }
.modal .box h3 { margin-bottom: 12px; }

.email-preview { border: 3px solid var(--purple-soft); border-radius: 18px; padding: 20px; background: #fbfaff; }
.email-preview h4 { margin: 0 0 8px; font-family: "Baloo 2", "Fredoka", sans-serif; }

.notice { background: #fef3c7; border: 3px solid #fcd34d; border-radius: 16px; padding: 14px 18px; font-weight: 600; margin: 16px 0; }

/* Parent login gate (magic link) */
.login-gate { z-index: 600; }
.login-email { width: 100%; padding: 14px 16px; border: 3px solid var(--ink); border-radius: 16px; font: inherit; font-weight: 600; color: var(--ink); background: #fff; box-sizing: border-box; }
.login-email:focus { outline: none; border-color: var(--purple); }
.login-email::placeholder { color: #a89bc4; }

img { max-width: 100%; }

/* Cover fallback tile: shows the game title on brand colors if a cover image
   ever fails to load, so a card never renders as a blank box. */
.cover-fallback {
  width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  color: #fff; font-family: "Baloo 2", "Fredoka", "Nunito", sans-serif; font-weight: 800;
  font-size: 1.05rem; text-align: center; padding: 14px; line-height: 1.25;
}

/* ---------- mobile (phones) ---------- */
@media (max-width: 700px) {
  /* App header: single line on phones. Tabs left, kid cat + stars right. Brand cat removed. */
  .app-top .wrap { flex-wrap: nowrap; align-items: center; gap: 6px; }
  .app-top .brand { display: none; }
  .tabs { order: 0; width: auto; margin-left: 0; justify-content: flex-start; gap: 0; flex-wrap: nowrap; flex: 1 1 auto; }
  .tabs button { font-size: 0.82rem; padding: 10px 7px; white-space: nowrap; }
  .kid-switch { margin-left: auto; gap: 6px; width: auto; flex: none; }
  .kid-switch img { width: 34px; height: 34px; }
  #kidSelect { display: none; }
  .star-balance { font-size: 0.92rem; padding: 8px 12px; }

  /* Landing nav wraps instead of squeezing */
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav .brand { font-size: 1.1rem; }
  .nav .brand img { width: 44px; height: 44px; }
  .nav-links { flex-wrap: wrap; gap: 6px; }
  .nav-links a { padding: 9px 12px; font-size: 0.92rem; }

  /* Hero stacks to one column, art first */
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 230px; }
  .hero h1 { font-size: 2.4rem; }

  /* Pricing cards do not scale up on small screens */
  .price-card.best { transform: none; }

  /* Next-step banner stays a compact horizontal row on phones */
  .next-step { padding: 12px 14px; gap: 10px; border-radius: 18px; }
  .next-step img { width: 64px; height: 50px; }
  .next-step .cover-fallback { width: 64px; height: 50px; flex: none; aspect-ratio: auto; font-size: 0.7rem; padding: 4px; }
  .next-step h3 { font-size: 1rem; }
  .next-step p { font-size: 0.85rem; }

  /* Trail stops get breathing room */
  .trail-stop { gap: 12px; }
  .trail-stop img { width: 76px; height: 58px; }
  .trail-stop .cover-fallback { width: 76px; height: 58px; aspect-ratio: auto; font-size: 0.75rem; padding: 6px; }

  /* Dressing room is not sticky under the taller mobile header */
  .dressing-room { position: static; }

  /* Library: two chunky columns */
  .library-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-card .meta b { font-size: 0.92rem; }

  /* Chunkier tap targets */
  .small-btn { padding: 11px 18px; }
  .filters .chip { padding: 10px 18px; }

  /* Roomier panels and modals */
  .panel { padding: 20px; }
  .modal .box { padding: 24px; }

  /* Chunky player controls */
  .icon-btn { width: 48px; height: 48px; }
}
