/* LENTERA KECIL — Revisi v2 · Warm & Playful */
:root {
  --or: #f97316;
  --ye: #fbbf24;
  --gr: #4ade80;
  --dk: #78350f;
  --cr: #fef3c7;
  --wh: #fff;
  --sh: rgba(120, 53, 15, 0.15);
  --shd: rgba(120, 53, 15, 0.28);
  --ff: "Baloo 2", cursive;
  --fb: "Nunito", sans-serif;
  --eb: cubic-bezier(0.34, 1.56, 0.64, 1);
  --eo: cubic-bezier(0.16, 1, 0.3, 1);
  /* Layout constants — scene always 58vh, narr always 18vh min */
  --stage-h: 58vh;
  --narr-h: calc(100vh - var(--stage-h) - 58px - 5px); /* remaining space */
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a0a00;
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}
input {
  outline: none;
  font-family: inherit;
}

/* ── SCREENS ── */
.scr {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.scr.active {
  display: flex;
  animation: scrIn 0.4s var(--eo) forwards;
}
@keyframes scrIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ════════════════════════════════════════
   SPLASH
════════════════════════════════════════ */
#scr-splash {
  background: radial-gradient(
    ellipse at 50% 30%,
    #ff9a3c,
    #f97316 35%,
    #c2400a 70%,
    #7c1d00
  );
  align-items: center;
  justify-content: center;
}
.splash-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.sstar {
  position: absolute;
  font-size: clamp(16px, 3vw, 26px);
  animation: starFloat 3s ease-in-out infinite;
}
.sstar.s1 {
  top: 14%;
  left: 8%;
  animation-delay: 0s;
}
.sstar.s2 {
  top: 18%;
  right: 10%;
  animation-delay: 0.7s;
}
.sstar.s3 {
  top: 32%;
  left: 4%;
  animation-delay: 1.3s;
}
.sstar.s4 {
  top: 9%;
  right: 24%;
  animation-delay: 0.3s;
}
@keyframes starFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-12px) rotate(15deg);
    opacity: 1;
  }
}
.fly {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 8px 3px #fde68a;
  animation: flyAnim 4s ease-in-out infinite;
}
.fly.f1 {
  top: 45%;
  left: 15%;
  animation-delay: 0s;
}
.fly.f2 {
  top: 60%;
  left: 78%;
  animation-delay: 1.2s;
}
.fly.f3 {
  top: 68%;
  left: 38%;
  animation-delay: 0.7s;
}
.fly.f4 {
  top: 35%;
  left: 62%;
  animation-delay: 2s;
}
@keyframes flyAnim {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  25% {
    transform: translate(14px, -18px);
    opacity: 1;
  }
  75% {
    transform: translate(18px, -12px);
    opacity: 0.8;
  }
}
.stree {
  position: absolute;
  bottom: 0;
  font-size: clamp(48px, 8vw, 88px);
  opacity: 0.55;
}
.stree.t1 {
  left: 0;
}
.stree.t2 {
  left: 9%;
}
.stree.t3 {
  right: 0;
}
.stree.t4 {
  right: 9%;
}
.splash-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.lantern {
  font-size: clamp(64px, 12vw, 100px);
  display: block;
  margin: 0 auto 10px;
  animation: sway 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 180, 0, 0.6));
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}
.splash-title {
  font-family: var(--ff);
  font-size: clamp(36px, 10vw, 72px);
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 200, 0, 0.4);
  line-height: 1;
  margin-bottom: 6px;
}
.splash-sub {
  font-size: clamp(14px, 3vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: linear-gradient(135deg, #fff, #fef3c7);
  color: var(--dk);
  border-radius: 999px;
  font-family: var(--ff);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s var(--eb),
    box-shadow 0.2s ease;
}
.btn-start:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.btn-start:active {
  transform: scale(0.97);
}
.splash-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ════════════════════════════════════════
   LIBRARY
════════════════════════════════════════ */
#scr-library {
  background: linear-gradient(180deg, #fff7ed, #fef3c7 60%, #d1fae5);
  overflow-y: auto;
}
.lib-hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 247, 237, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(249, 115, 22, 0.13);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.1);
}
.lib-logo {
  font-family: var(--ff);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 800;
  color: var(--dk);
}
.star-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 999px;
  font-family: var(--ff);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.35);
}
.lib-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  border: 2px solid rgba(249, 115, 22, 0.2);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.07);
}
.lib-search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--dk);
}
.lib-search input::placeholder {
  color: #c4884a;
  font-weight: 400;
}

/* FIX: tags use wrap + visible overflow so they never get clipped */
.lib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 4px;
}
.tag {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid rgba(249, 115, 22, 0.25);
  color: #c2400a;
  background: #fff;
  transition: all 0.2s var(--eb);
  white-space: nowrap;
}
.tag:hover {
  border-color: var(--or);
  transform: scale(1.05);
}
.tag.active {
  background: linear-gradient(135deg, var(--or), #f59e0b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.greeting {
  padding: 6px 20px 2px;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 700;
  color: #92400e;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(155px, 44vw), 1fr));
  gap: 12px;
  padding: 10px 13px 80px;
}

/* Story Card */
.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--sh);
  cursor: pointer;
  transition:
    transform 0.25s var(--eb),
    box-shadow 0.25s ease;
  position: relative;
  border: 3px solid transparent;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px var(--shd);
}
.card:active {
  transform: scale(0.97);
}
.card.done {
  border-color: var(--ye);
}
.card-thumb {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  position: relative;
  overflow: hidden;
}
.card-thumb-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}
.card-emoji {
  position: relative;
  z-index: 1;
  animation: cardFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}
@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.card-body {
  padding: 9px 11px 11px;
}
.card-name {
  font-family: var(--ff);
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 800;
  color: var(--dk);
  line-height: 1.2;
  margin-bottom: 4px;
}
.card-sub {
  font-size: 11px;
  color: #a16207;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 5px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #a16207;
}
.diff {
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 10px;
}
.diff-Easy {
  background: #d1fae5;
  color: #065f46;
}
.diff-Medium {
  background: #fef3c7;
  color: #92400e;
}
.card-done {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 17px;
  animation: pop 0.4s var(--eb);
}
@keyframes pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ════════════════════════════════════════
   READER — KEY FIX: scene on top, narr below, never overlap
════════════════════════════════════════ */
#scr-reader {
  background: #0f0800;
  flex-direction: column;
}

.btn-home,
.btn-snd {
  position: absolute;
  z-index: 60;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 17px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s var(--eb);
}
.btn-home {
  top: 10px;
  left: 10px;
}
.btn-snd {
  top: 10px;
  right: 10px;
}
.btn-home:hover,
.btn-snd:hover {
  background: rgba(249, 115, 22, 0.65);
  transform: scale(1.12);
}

.prog-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.1);
}
.prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--or), var(--ye));
  border-radius: 0 3px 3px 0;
  transition: width 0.5s var(--eo);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

/* SCENE STAGE — fixed height, character lives here */
.scene-stage {
  position: relative;
  flex-shrink: 0;
  height: var(--stage-h);
  overflow: hidden;
  cursor: pointer;
}
.sc-bg {
  position: absolute;
  inset: 0;
}

/* SKY — occupies top 60% of stage */
.sc-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65%;
  transition: background 1s ease;
  overflow: hidden;
}
/* MIDDLE BAND (hills/treeline) */
.sc-mid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  height: 30%;
  overflow: hidden;
}
/* GROUND — bottom 35% of stage */
.sc-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  border-radius: 55% 55% 0 0/25px 25px 0 0;
  overflow: hidden;
}
.ground-deco {
  position: absolute;
  inset: 0;
}
.sky-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.sc-ptcl {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* CHARACTER — centered in lower half of stage, feet touch ground */
.sc-char {
  position: absolute;
  bottom: 30%; /* sits just above ground */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.char-wrap {
  width: clamp(100px, 22vw, 200px);
  height: clamp(120px, 26vw, 240px);
  animation: idle 3s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
}
@keyframes idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.char-shadow {
  width: clamp(60px, 14vw, 120px);
  height: 14px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  filter: blur(5px);
  margin-top: -4px;
  animation: shad 3s ease-in-out infinite;
}
@keyframes shad {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(0.78);
    opacity: 0.25;
  }
}

/* Scene title bar (story name at top of stage) */
.scene-title-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 4px 14px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* Tap hint */
.tap-hint {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: tapPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tapPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* NARRATION ZONE — fixed block BELOW scene, always fully visible */
.narr-zone {
  flex: 1; /* takes remaining vertical space */
  min-height: 110px;
  background: linear-gradient(160deg, #fff9f0, #fff5e8);
  border-top: 3px solid rgba(249, 115, 22, 0.2);
  padding: 10px 14px 4px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.narr-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}
.narr-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--or);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.4);
  margin-top: 2px;
}
.narr-text {
  font-size: clamp(13px, 3.2vw, 16px);
  font-weight: 700;
  line-height: 1.6;
  color: #3d1a00;
  transition: opacity 0.3s ease;
  flex: 1;
}

/* Nav */
.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 10px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.btn-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s var(--eb);
}
.btn-nav:hover {
  background: rgba(249, 115, 22, 0.5);
  transform: scale(1.1);
}
.btn-nav:disabled {
  opacity: 0.25;
  pointer-events: none;
}
.dots {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 65vw;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: all 0.3s var(--eb);
  cursor: pointer;
  flex-shrink: 0;
}
.dot.active {
  background: var(--ye);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}
.dot.done {
  background: rgba(251, 191, 36, 0.45);
}

/* ── BG THEMES ── */
/* Sky gradients */
.sky-forest {
  background: linear-gradient(
    180deg,
    #4fc3f7 0%,
    #87ceeb 35%,
    #b2dfdb 70%,
    #c8e6c9 100%
  );
}
.sky-river {
  background: linear-gradient(180deg, #1565c0 0%, #42a5f5 40%, #90caf9 100%);
}
.sky-night {
  background: linear-gradient(180deg, #0a0e27 0%, #0d1b4a 50%, #1a2a6c 100%);
}
.sky-village {
  background: linear-gradient(
    180deg,
    #ff8f00 0%,
    #ffb300 30%,
    #ffd54f 65%,
    #fff9c4 100%
  );
}
.sky-sea {
  background: linear-gradient(180deg, #006064 0%, #0097a7 40%, #4dd0e1 100%);
}
.sky-rain {
  background: linear-gradient(180deg, #263238 0%, #37474f 50%, #546e7a 100%);
}

/* Mid band (hills / tree line) */
.mid-forest {
  background: linear-gradient(180deg, transparent, rgba(56, 142, 60, 0.55));
}
.mid-river {
  background: linear-gradient(180deg, transparent, rgba(30, 136, 229, 0.4));
}
.mid-night {
  background: linear-gradient(180deg, transparent, rgba(10, 14, 39, 0.5));
}
.mid-village {
  background: linear-gradient(180deg, transparent, rgba(255, 160, 0, 0.25));
}
.mid-sea {
  background: linear-gradient(180deg, transparent, rgba(0, 151, 167, 0.45));
}
.mid-rain {
  background: linear-gradient(180deg, transparent, rgba(38, 50, 56, 0.5));
}

/* Ground fills */
.gnd-forest {
  background: linear-gradient(180deg, #66bb6a, #388e3c);
}
.gnd-river {
  background: linear-gradient(180deg, #29b6f6, #0277bd);
}
.gnd-night {
  background: linear-gradient(180deg, #1a237e, #0d1b2a);
}
.gnd-village {
  background: linear-gradient(180deg, #a5d6a7, #66bb6a);
}
.gnd-sea {
  background: linear-gradient(180deg, #006994, #004d73);
}
.gnd-rain {
  background: linear-gradient(180deg, #4a6572, #263238);
}

/* Particles */
.ptcl {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: ptclUp linear infinite;
}
@keyframes ptclUp {
  from {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  to {
    transform: translateY(-70px) translateX(var(--dx, 12px));
    opacity: 0;
  }
}

/* Night stars */
.nstar {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle ease-in-out infinite alternate;
}
@keyframes twinkle {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 0.95;
  }
}

/* Forest trees in mid */
.tree-deco {
  position: absolute;
  bottom: 0;
  font-size: clamp(28px, 5vw, 52px);
  opacity: 0.75;
  line-height: 1;
}

/* ════════════════════════════════════════
   END CARD
════════════════════════════════════════ */
#scr-end {
  background: linear-gradient(135deg, #fff7ed, #fef3c7, #d1fae5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.end-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cp {
  position: absolute;
  border-radius: 2px;
  animation: cfall linear infinite;
}
@keyframes cfall {
  from {
    transform: translateY(-20px) rotate(0);
    opacity: 1;
  }
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}
.end-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 26px;
  padding: 24px 22px 28px;
  max-width: 370px;
  width: 100%;
  box-shadow:
    0 20px 60px rgba(120, 53, 15, 0.2),
    0 0 0 3px rgba(249, 115, 22, 0.13);
  text-align: center;
  animation: cardPop 0.6s var(--eb) forwards;
}
@keyframes cardPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.end-emoji {
  font-size: 52px;
  margin-bottom: 6px;
  animation: espin 0.8s var(--eb) 0.2s both;
}
@keyframes espin {
  from {
    transform: scale(0) rotate(-180deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}
.end-title {
  font-family: var(--ff);
  font-size: 22px;
  font-weight: 800;
  color: var(--dk);
  margin-bottom: 3px;
}
.end-stitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--or);
  margin-bottom: 14px;
}
.moral-box {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-radius: 14px;
  padding: 12px 14px;
  border: 2px solid rgba(249, 115, 22, 0.18);
  margin-bottom: 14px;
  text-align: left;
}
.moral-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 4px;
}
.moral-txt {
  font-size: 13px;
  font-weight: 600;
  color: #3d1a00;
  line-height: 1.5;
  font-style: italic;
}
.end-stars {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.estr {
  font-size: 30px;
  animation: starPop 0.4s var(--eb) both;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.5));
}
@keyframes starPop {
  from {
    transform: scale(0) rotate(-30deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}
.end-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-end {
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--ff);
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s var(--eb),
    box-shadow 0.2s ease;
}
.btn-end:hover {
  transform: scale(1.05) translateY(-2px);
}
.btn-end.primary {
  background: linear-gradient(135deg, var(--or), #f59e0b);
  color: #fff;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}
.btn-end.secondary {
  background: #fff;
  color: var(--dk);
  border: 2.5px solid rgba(249, 115, 22, 0.28);
}

/* ── RESPONSIVE ── */
@media (max-width: 400px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  :root {
    --stage-h: 52vh;
  }
}
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  :root {
    --stage-h: 60vh;
  }
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Tall phone landscape */
@media (max-height: 500px) {
  :root {
    --stage-h: 45vh;
  }
  .narr-zone {
    min-height: 90px;
  }
  .narr-text {
    font-size: 12px;
  }
}
