/* ============================================================
   games.css — game runner + engine widgets + reward screen
   ============================================================ */

/* ---------- Game shell ---------- */
.game {
  gap: var(--sp-2);
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.game-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
}

/* Progress dots */
.game-progress { display: flex; gap: 10px; justify-content: center; align-items: center; }
.game-progress .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(117, 88, 50, .18);
  border: 2px solid rgba(255,255,255,.58);
  transition: transform .2s, background .2s;
}
.game-progress .dot.active { background: var(--w-primary); transform: scale(1.35); }
.game-progress .dot.done { background: var(--w-accent); }

/* Prompt bar */
.game-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,248,232,.82);
  border-radius: var(--radius);
  padding: var(--sp-1);
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255,255,255,.78);
  width: min(100%, 1180px);
  min-height: 72px;
  position: relative;
  overflow: hidden;
}
.game-prompt::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(117, 88, 50, .18);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.prompt-mascot {
  position: relative;
  z-index: 1;
  width: clamp(54px, 6vw, 76px);
  height: clamp(54px, 6vw, 76px);
  border-radius: 22px;
  box-shadow: 0 5px 12px rgba(91, 66, 38, .15);
  background: #fff4d4;
}
.prompt-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 900;
  color: var(--w-primary-d);
  line-height: 1.12;
}
.hearbtn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-fun); font-weight: 800; font-size: var(--fs-sm);
  color: #fff; background: var(--w-primary); border: 2px solid rgba(255,255,255,.78);
  border-radius: 999px; padding: 10px 18px; min-height: 48px; min-width: 124px; cursor: pointer;
  box-shadow: 0 4px 0 var(--w-primary-d);
}
.hearbtn:active { transform: translateY(3px); box-shadow: none; }
.hearbtn .icon { font-size: 1.3em; }

/* Shared feedback animations */
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }
@keyframes pop-correct { 0%{transform:scale(1)} 50%{transform:scale(1.12)} 100%{transform:scale(1)} }
.wrong { animation: shake .45s ease; }
.correct { animation: pop-correct .45s ease; }

/* ---------- QUIZ ---------- */
.quiz, .match, .seq, .cbn, .sort, .build, .dots, .trace {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,248,232,.72)),
    var(--paper);
  border: 4px solid rgba(255,255,255,.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3);
}
.quiz::before, .match::before, .seq::before, .cbn::before, .sort::before, .build::before, .dots::before, .trace::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(117, 88, 50, .18);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

/* ---------- QUIZ ---------- */
.quiz { width: min(100%, 980px); display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.quiz-ask { font-size: var(--fs-lg); color: var(--ink); text-align: center; margin: 0; max-width: 24ch; }
.quiz-options {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  width: 100%; max-width: 900px;
}
.opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1);
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.72), transparent 42%),
    #fff7df;
  border: 5px solid rgba(255,255,255,.92); border-radius: 18px;
  padding: var(--sp-2); min-height: clamp(140px, 18vh, 190px);
  isolation: isolate;
  cursor: pointer; box-shadow: var(--shadow-card); font-family: var(--font-fun);
  transition: transform .12s;
}
.opt::after, .seq-tile::after, .sort-item::after, .build-part::after, .match-item::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(117, 88, 50, .12);
  pointer-events: none;
}
.opt:hover { transform: translateY(-4px); }
.opt-pic { width: clamp(74px, 9vw, 112px); height: clamp(74px, 9vw, 112px); color: var(--w-primary-d); display: grid; place-items: center; }
.opt-pic .icon, .opt-pic .art { width: 100%; height: 100%; }
.opt-label { font-size: var(--fs-md); font-weight: 800; color: var(--ink); }
.opt.correct { border-color: #37b24d; background: #ebfbee; }
.opt.wrong { border-color: var(--storybook-red); }
.opt.locked { cursor: default; }

/* ---------- MATCH ---------- */
.match { display: flex; gap: var(--sp-4); width: min(100%, 900px); }
.match-col { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.match-item {
  position: relative; display: flex; align-items: center; gap: var(--sp-2);
  background: #fff7df; border: 5px solid rgba(255,255,255,.9); border-radius: 18px;
  padding: var(--sp-2); min-height: 86px; cursor: pointer;
  box-shadow: var(--shadow-soft); font-family: var(--font-fun); text-align: left;
  transition: transform .1s, border-color .2s, background .2s;
}
.match-item:hover { transform: translateY(-2px); }
.match-item .mi-pic { flex: 0 0 auto; width: clamp(54px, 7vw, 78px); height: clamp(54px, 7vw, 78px); color: var(--w-primary-d); display: grid; place-items: center; }
.match-item .mi-pic .icon, .match-item .mi-pic .art { width: 100%; height: 100%; }
.match-item .mi-label { font-size: var(--fs-sm); font-weight: 800; color: var(--ink); }
.match-item.sel { border-color: var(--w-primary); transform: scale(1.03); box-shadow: 0 0 0 5px rgba(0,0,0,.06), var(--shadow-soft); }
.match-item.matched { opacity: .96; }
.match-item .mi-check { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; }

/* ---------- SEQUENCE ---------- */
.seq { width: min(100%, 1040px); display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; }
.seq-slots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-1); }
.seq-slot {
  width: clamp(92px, 10vw, 132px); height: clamp(108px, 12vw, 156px);
  border-radius: var(--radius-sm); border: 4px dashed rgba(0,0,0,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,248,232,.62); color: var(--w-primary-d);
}
.seq-slot.filled { border-style: solid; border-color: var(--w-primary); background: var(--paper); box-shadow: var(--shadow-soft); animation: pop-correct .4s ease; }
.seq-num { font-size: var(--fs-lg); font-weight: 900; opacity: .5; }
.seq-arrow { color: var(--w-primary); width: 22px; height: 22px; opacity: .6; }
.seq-arrow .icon { width: 100%; height: 100%; }
.seq-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.seq-tile {
  position: relative;
  width: clamp(92px, 10vw, 132px); height: clamp(108px, 12vw, 156px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #fff7df; border: 5px solid rgba(255,255,255,.9); border-radius: 18px;
  cursor: pointer; box-shadow: var(--shadow-card); font-family: var(--font-fun);
  transition: transform .1s;
}
.seq-tile:hover { transform: translateY(-3px); }
.seq-tile.placed { visibility: hidden; }
.tile-pic, .seq-slot .tile-pic { width: clamp(58px, 7vw, 86px); height: clamp(58px, 7vw, 86px); color: var(--w-primary-d); display: grid; place-items: center; }
.tile-pic .icon, .tile-pic .art { width: 100%; height: 100%; }
.tile-label, .seq-slot .tile-label { font-size: var(--fs-sm); font-weight: 900; color: var(--ink); line-height: 1.05; }

/* ---------- COLOR BY NUMBER ---------- */
.cbn { width: min(100%, 920px); display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; }
.cbn-palette { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.cbn-swatch {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 5px solid rgba(255,255,255,.9); border-radius: 999px;
  padding: 8px 18px 8px 8px; min-height: var(--touch); cursor: pointer;
  box-shadow: var(--shadow-soft); font-family: var(--font-fun);
}
.cbn-swatch .cbn-key {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--swatch); color: #fff; font-weight: 900; font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.cbn-swatch .cbn-name { font-weight: 800; color: var(--ink); text-transform: capitalize; }
.cbn-swatch.sel { border-color: var(--w-primary); transform: scale(1.05); }
.cbn-canvas {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #fff7df;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 22px;
  padding: var(--sp-2);
  box-shadow: inset 0 -5px 0 rgba(117, 88, 50, .08);
}
.cbn-canvas svg, .cbn-art { width: clamp(220px, 40vh, 360px); height: auto; max-height: 46vh; }
.cbn-num { font-family: var(--font-fun); font-weight: 900; font-size: 22px; fill: #adb5bd; pointer-events: none; }
[data-key] { transition: transform .15s; }
[data-key].wrong { animation: shake .45s ease; }
[data-key].filled { cursor: default; }

/* ---------- SORT BUCKETS ---------- */
.sort { width: min(100%, 1000px); display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; }
.sort-tray { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; min-height: 80px; }
.sort-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff7df; border: 5px solid rgba(255,255,255,.9); border-radius: 18px;
  padding: var(--sp-1) var(--sp-2); width: 112px; min-height: 112px; cursor: pointer;
  box-shadow: var(--shadow-card); font-family: var(--font-fun); transition: transform .1s;
}
.sort-item:hover { transform: translateY(-3px); }
.sort-item.sel { border-color: var(--w-primary); transform: scale(1.05); }
.si-pic { width: clamp(48px, 6vw, 72px); height: clamp(48px, 6vw, 72px); color: var(--w-primary-d); display: grid; place-items: center; }
.si-pic .icon, .si-pic .art { width: 100%; height: 100%; }
.si-label { font-size: var(--fs-sm); font-weight: 800; color: var(--ink); }
.sort-bins { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; width: 100%; }
.sort-bin {
  flex: 1 1 200px; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,248,232,.62); border: 5px dashed var(--w-primary);
  border-radius: var(--radius); padding: var(--sp-2); min-height: clamp(140px, 22vh, 220px);
  cursor: pointer; font-family: var(--font-fun); transition: transform .1s, background .2s;
}
.sort-bin:hover { transform: translateY(-2px); }
.sort-bin.flash { background: #ebfbee; }
.bin-pic { width: clamp(40px, 6vw, 60px); height: clamp(40px, 6vw, 60px); color: var(--w-primary-d); }
.bin-pic .icon { width: 100%; height: 100%; }
.bin-label { font-size: var(--fs-md); font-weight: 800; color: var(--w-primary-d); }
.bin-drop { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-content: flex-start; flex: 1; }
.sort-item.in-bin { min-width: 0; padding: 4px 8px; border-width: 3px; box-shadow: var(--shadow-soft); }
.sort-item.in-bin .si-pic { width: 34px; height: 34px; }

/* ---------- BUILD PLAY ---------- */
.build { width: min(100%, 1040px); display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; }
.build-scene {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; align-items: stretch;
  width: 100%; padding: var(--sp-3); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,248,232,.68));
  border: 4px solid rgba(255,255,255,.9);
}
.build-zone {
  flex: 0 1 200px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,248,232,.68); border: 5px dashed var(--w-primary);
  border-radius: var(--radius); padding: var(--sp-2); min-height: clamp(150px, 24vh, 230px);
  cursor: pointer; font-family: var(--font-fun); transition: transform .1s, background .2s;
}
.build-zone:hover { transform: translateY(-2px); }
.build-zone.done { border-style: solid; background: #ebfbee; }
.bz-pic { width: clamp(44px, 6vw, 64px); height: clamp(44px, 6vw, 64px); color: var(--w-primary-d); opacity: .85; }
.bz-pic .icon { width: 100%; height: 100%; }
.build-zone-slot { flex: 1; display: grid; place-items: center; min-height: 56px; }
.build-zone-slot .bp-pic { width: clamp(48px, 7vw, 76px); height: clamp(48px, 7vw, 76px); color: var(--w-primary-d); }
.build-zone-slot .icon { width: 100%; height: 100%; }
.bz-label { font-size: var(--fs-sm); font-weight: 800; color: var(--w-primary-d); }
.build-tray { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.build-part {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff7df; border: 5px solid rgba(255,255,255,.9); border-radius: 18px;
  padding: var(--sp-1) var(--sp-2); width: 112px; min-height: 112px; cursor: pointer;
  box-shadow: var(--shadow-card); font-family: var(--font-fun); transition: transform .1s;
}
.build-part:hover { transform: translateY(-3px); }
.build-part.sel { border-color: var(--w-primary); transform: scale(1.05); }
.bp-pic { width: clamp(48px, 6vw, 74px); height: clamp(48px, 6vw, 74px); color: var(--w-primary-d); display: grid; place-items: center; }
.bp-pic .icon, .bp-pic .art { width: 100%; height: 100%; }
.bp-label { font-size: var(--fs-sm); font-weight: 800; color: var(--ink); }

/* ---------- DOT TO DOT ---------- */
.dots { width: min(100%, 820px); display: flex; justify-content: center; }
.dots-svg { width: clamp(260px, 60vh, 520px); height: auto; max-height: 56vh; touch-action: manipulation; }
.dot-node { cursor: pointer; }
.dot-c { fill: #fff; stroke: var(--w-primary); stroke-width: 1.6; transition: fill .15s; }
.dot-node:hover .dot-c { fill: var(--w-bg-top); }
.dot-node.done .dot-c { fill: var(--w-primary); stroke: var(--w-primary-d); }
.dot-t { font-family: var(--font-fun); font-weight: 900; font-size: 5px; fill: var(--w-primary-d); pointer-events: none; }
.dot-node.done .dot-t { fill: #fff; }
.dot-line { stroke: var(--w-primary); stroke-width: 2.2; stroke-linecap: round; }
.dot-node.wrong { animation: shake .45s ease; }
.dots-reveal { transition: opacity .6s ease; }

/* ---------- TRACE WORD ---------- */
.trace { width: min(100%, 820px); display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; }
.trace-pic { width: clamp(70px, 11vw, 120px); height: clamp(70px, 11vw, 120px); color: var(--w-primary-d); }
.trace-pic .icon { width: 100%; height: 100%; }
.trace-slots { display: flex; flex-wrap: wrap; gap: var(--sp-1); justify-content: center; }
.trace-slot {
  width: clamp(48px, 8vw, 76px); height: clamp(56px, 9vw, 86px);
  border-bottom: 6px solid var(--w-primary); background: rgba(255,248,232,.62);
  border-radius: 10px 10px 4px 4px; display: grid; place-items: center;
  font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; color: var(--w-primary-d);
}
.trace-slot.filled { background: #ebfbee; animation: pop-correct .35s ease; }
.trace-tray { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.trace-tile {
  width: clamp(54px, 8vw, 80px); height: clamp(54px, 8vw, 80px);
  font-family: var(--font-fun); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900;
  color: var(--ink); background: var(--paper); border: 5px solid rgba(255,255,255,.9); border-radius: var(--radius-sm);
  cursor: pointer; box-shadow: var(--shadow-card); transition: transform .1s;
}
.trace-tile:hover { transform: translateY(-3px); }
.trace-tile.placed { visibility: hidden; }

@media (max-width: 760px) {
  .game-stage { padding: var(--sp-1) 0; justify-content: flex-start; }
  .game-prompt {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 22px;
  }
  .prompt-mascot { width: 52px; height: 52px; border-radius: 16px; }
  .hearbtn { grid-column: 1 / -1; width: 100%; }
  .match { flex-direction: column; gap: var(--sp-2); }
  .quiz, .match, .seq, .cbn, .sort, .build, .dots, .trace { padding: var(--sp-2); }
  .seq-slot, .seq-tile { width: 92px; height: 118px; }
}

/* ================================================================
   READING / KARAOKE SCREEN
   Cute · vintage · book-page aesthetic
   ================================================================ */

/* Full-screen reading container */
.rd-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  padding: var(--sp-3);
}

/* The parchment book-page card */
.rd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  width: min(100%, 820px);
  max-height: 88vh;
  overflow-y: auto;

  /* Layered parchment texture */
  background:
    radial-gradient(ellipse at 22% 14%, rgba(255,255,255,.72) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 88%, rgba(255,235,180,.44) 0%, transparent 48%),
    linear-gradient(160deg, #fffbee 0%, #fff3d0 46%, #fae9b8 100%);

  /* Vintage book border */
  border: 3px solid #d4a84b;
  border-radius: 28px;
  box-shadow:
    0 0 0 6px rgba(212,168,75,.18),
    0 0 0 10px rgba(212,168,75,.09),
    0 18px 44px rgba(91,60,20,.22),
    inset 0 1px 0 rgba(255,255,255,.9);

  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}

/* Corner ornaments via pseudo-elements */
.rd-card::before,
.rd-card::after {
  content: "✦";
  position: absolute;
  font-size: 1rem;
  color: #c9922a;
  opacity: .55;
  pointer-events: none;
}
.rd-card::before { top: 14px; left: 18px; }
.rd-card::after  { bottom: 14px; right: 18px; }

/* Top banner — "Read & Listen" ribbon */
.rd-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}
.rd-banner-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #c9922a 40%, transparent);
  max-width: 100px;
}
.rd-banner-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c9922a;
  opacity: .7;
}
.rd-banner-text {
  font-family: var(--font-fun);
  font-size: var(--fs-sm);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a6820;
}

/* Icons row */
.rd-icons {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}
.rd-icon-wrap {
  width: clamp(72px, 11vw, 108px);
  height: clamp(72px, 11vw, 108px);
  background:
    radial-gradient(circle at 38% 28%, rgba(255,255,255,.82), transparent 60%),
    #fff7db;
  border: 3px solid rgba(212,168,75,.45);
  border-radius: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(180,130,40,.18), 0 8px 18px rgba(91,60,20,.12);
  color: var(--w-primary-d);
}
.rd-icon { width: 62%; height: 62%; }

/* Text wrapper — limits width for readability */
.rd-text-wrap {
  width: 100%;
  max-width: 640px;
  background: rgba(255,255,255,.52);
  border: 1.5px dashed rgba(180,130,40,.3);
  border-radius: 18px;
  padding: var(--sp-3) var(--sp-3);
}

/* The karaoke text */
.rd-text {
  margin: 0;
  font-family: var(--font-fun);
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.7;
  text-align: center;
}

/* EN text — full size, primary */
.rd-text--en { font-size: clamp(1.2rem, 2.5vw, 1.85rem); }

/* VI text — slightly smaller, warm teal tint */
.rd-text--vi {
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  color: #2a7a6a;
  margin-top: 4px;
}

/* Divider between EN and VI with language badge */
.rd-lang-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}
.rd-lang-divider::before,
.rd-lang-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(42,122,106,.2);
}
.rd-lang-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #2a7a6a;
  white-space: nowrap;
  letter-spacing: .5px;
}

/* Individual word spans */
.rd-word {
  display: inline;
  border-radius: 6px;
  padding: 1px 3px;
  transition: background .08s, color .08s, transform .08s;
}

/* Highlighted (currently spoken) word */
.rd-word--active {
  background: #ffd166;
  color: #6b3e00;
  box-shadow: 0 2px 8px rgba(255,180,0,.35);
  transform: scale(1.06);
  display: inline-block;
}

/* Action buttons row */
.rd-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* "Hear again" button — soft ghost style */
.rd-replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: #9a6820;
  background: rgba(255,255,255,.7);
  border: 2.5px solid #d4a84b;
  border-radius: 999px;
  padding: 12px 24px;
  min-height: var(--touch);
  min-width: 148px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(180,130,40,.22);
  transition: transform .1s, box-shadow .1s;
}
.rd-replay-btn:active { transform: translateY(3px); box-shadow: none; }
.rd-btn-icon { width: 24px; height: 24px; }

/* "Let's Play!" button — big warm CTA */
.rd-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-fun);
  font-weight: 900;
  font-size: var(--fs-md);
  color: #fff;
  background: linear-gradient(160deg, var(--w-primary) 0%, var(--w-primary-d) 100%);
  border: 3px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 14px 32px;
  min-height: var(--touch);
  min-width: 192px;
  cursor: pointer;
  box-shadow: 0 7px 0 var(--w-primary-d), 0 12px 24px rgba(0,0,0,.18);
  transition: transform .1s, box-shadow .1s;
}
.rd-play-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--w-primary-d), 0 16px 28px rgba(0,0,0,.2); }
.rd-play-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--w-primary-d); }

@media (max-width: 760px) {
  .rd-card { padding: var(--sp-3) var(--sp-2); border-radius: 22px; }
  .rd-text { font-size: clamp(1.2rem, 4.5vw, 1.6rem); }
  .rd-actions { flex-direction: column; align-items: center; }
  .rd-play-btn, .rd-replay-btn { width: 100%; max-width: 340px; }
}

/* ---------- REWARD ---------- */
.reward .reward-stars { display: flex; gap: var(--sp-2); justify-content: center; }
.reward-star { width: clamp(56px, 9vw, 96px); height: clamp(56px, 9vw, 96px); color: #d7d2c8; }
.reward-star.on { color: var(--storybook-gold); animation: star-pop .5s cubic-bezier(.2,.9,.3,1.6) both; }
@keyframes star-pop { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
.reward-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.bigbtn.ghost { background: var(--paper); color: var(--w-primary-d); box-shadow: 0 7px 0 rgba(117, 88, 50, .16), var(--shadow-soft); }
.bigbtn.ghost:active { box-shadow: 0 2px 0 rgba(0,0,0,.12); }
