/* ============================================================
   Katha Ghar — kathaghar.org
   Palette & type pulled from "Lakhey Goes to School" artwork
   ============================================================ */

:root {
  --sky: #3aa0e8;
  --sky-deep: #1f7fd0;
  --sky-deeper: #14639f;
  --sky-light: #bfe6ff;
  --red: #d63430;
  --red-deep: #a91f1e;
  --gold: #f5b63b;
  --gold-deep: #c98a12;
  --gold-pale: #ffe9a8;
  --cream: #fff7ec;
  --paper: #fdeeda;
  --peach: #f9dfc8;
  --terracotta: #c9782f;       /* decorative only */
  --terracotta-text: #a0561b;  /* AA-passing label colour */
  --green: #58a53c;            /* decorative only */
  --green-deep: #276b17;       /* white text = 6.56:1 */
  --green-mid: #377d22;        /* white text = 5.10:1 */
  --navy: #2e4a6b;
  --ink: #38271d;
  --ink-soft: #6b5443;

  --font-display: "Baloo 2", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;

  --radius: 22px;
  --shadow: 0 10px 30px rgba(56, 39, 29, 0.14);
  --shadow-pop: 0 16px 40px rgba(56, 39, 29, 0.2);

  /* springy easing; upgraded below when linear() is supported */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.007 1.2%, 0.028 2.4%, 0.064 3.8%, 0.115 5.2%,
      0.228 7.9%, 0.607 15.8%, 0.715 18.5%, 0.804 21.05%, 0.878 23.6%,
      0.938 26.15%, 0.985 28.7%, 1.02 31.5%, 1.038 33.7%, 1.05 35.9%,
      1.057 38.4%, 1.058 41.1%, 1.051 46.1%, 1.014 60.2%, 1.002 68.2%,
      0.997 79.1%, 0.999 100%);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* icon sprite host */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.4em; height: 1.4em;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.icon-lg { width: 1.05em; height: 1.05em; }
.icon-xl { width: 64px; height: 64px; }

/* focus ring that works on light AND dark sections */
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--navy);
  border-radius: 6px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  background: rgba(255, 247, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px dashed rgba(201, 120, 47, 0.35);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; order: 0; }
.site-nav { order: 1; }
.header-cta { order: 3; }
.nav-toggle { order: 4; }

.brand-house { width: 40px; height: 40px; flex-shrink: 0; transition: transform 0.3s; }
.brand:hover .brand-house { transform: rotate(-8deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.5px; }
.brand-word b:nth-child(1) { color: #e8542f; }
.brand-word b:nth-child(2) { color: #f5a623; }
.brand-word b:nth-child(3) { color: #2bb3a3; }
.brand-word b:nth-child(4) { color: #8e5bd9; }
.brand-word b:nth-child(5) { color: #e84f8a; }
.brand-word .brand-ghar { color: var(--navy); }
.brand-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--terracotta-text);  /* 5.15:1 on cream */
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.site-nav a:hover { background: var(--peach); transform: translateY(-2px); }
.site-nav a.current { background: var(--peach); }
.site-nav .nav-cta { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-deep); }
.site-nav .nav-cta:hover, .site-nav .nav-cta.current { background: var(--red-deep); }

.header-cta {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: var(--red);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--red-deep);
  white-space: nowrap;
}

/* ---- language switcher ---- */
.lang-switch {
  order: 2;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--peach);
  border-radius: 999px;
  flex: none;
}
.lang-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.6); }
.lang-btn.active { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 4px; border-radius: 4px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.45s var(--spring), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.94, 0.9) !important; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-deep); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--red-deep); }
.btn-secondary { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-deep); }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--gold-deep); }
.btn-ghost {
  background: #fff; color: var(--navy);
  border: 2.5px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  font-size: 0.95rem;
  padding: 10px 20px;
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn-big { font-size: 1.2rem; padding: 16px 34px; }

.btn-wiggle { animation: wiggle 7s ease-in-out infinite; }
@keyframes wiggle {
  0%, 90%, 100% { rotate: 0deg; }
  93% { rotate: -3deg; }
  95% { rotate: 3deg; }
  97% { rotate: -2deg; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-deeper) 0%, var(--sky-deep) 55%, var(--sky-light) 100%);
  overflow: hidden;
  padding: 40px 0 0;
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 120px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  background: rgba(10, 48, 96, 0.38);
  backdrop-filter: blur(3px);
  border-radius: 28px;
  padding: 30px 32px;
}

.hero-eyebrow {
  display: inline-block;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 40, 90, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 0 rgba(20, 60, 110, 0.35);
  margin-bottom: 18px;
}

.squiggle { position: relative; color: var(--gold); display: inline-block; }
.squiggle::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0 6 Q 12 0 25 6 T 50 6 T 75 6 T 100 6" fill="none" stroke="%23f5b63b" stroke-width="4" stroke-linecap="round"/></svg>') repeat-x;
  background-size: 90px 10px;
}

.hero-sub {
  font-size: 1.15rem;
  color: #fff;
  max-width: 44ch;
  margin-bottom: 28px;
  font-weight: 600;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Book card */
.hero-book { display: flex; justify-content: center; }
.book-card {
  position: relative;
  width: min(320px, 74vw);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-pop);
  transform: rotate(3deg);
  transition: transform 0.45s var(--spring);
}
.book-card img { border-radius: 12px; }
.book-card:hover { transform: rotate(0deg) scale(1.03); }
.book-card.small { width: min(190px, 42vw); }

.badge-star {
  position: absolute;
  top: -30px; left: -26px;
  width: 96px; height: 96px;
  display: grid;
  place-items: center;
}
.badge-star svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.18)); }
.badge-star span {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.05;
  color: var(--red-deep);
  text-align: center;
  transform: rotate(-8deg);
}
.badge-spin { animation: spinSlow 26s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* desynced bobbing */
.float { animation: floaty 5.2s ease-in-out infinite; }
.book .float { animation-duration: 6.1s; animation-delay: -1.3s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -11px; }
}

/* Sun */
.sun {
  position: absolute;
  top: 60px; right: 6%;
  width: clamp(80px, 10vw, 130px);
  z-index: 1;
}
.sun-rays { transform-origin: 60px 60px; animation: spinSlow 40s linear infinite; }

/* Clouds */
.clouds { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cloud { position: absolute; width: 180px; }
.c1 { top: 8%; left: -220px; animation: drift 70s linear infinite; }
.c2 { top: 26%; left: -220px; width: 130px; animation: drift 95s linear infinite; animation-delay: -30s; }
.c3 { top: 3%; left: -220px; width: 220px; animation: drift 110s linear infinite; animation-delay: -70s; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 460px)); }
}

/* Prayer flag bunting */
.bunting {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 76px;
  z-index: 4;
}
.flags path {
  transform-box: fill-box;
  transform-origin: top center;
  animation: sway 3.6s ease-in-out infinite;
}
.flags path:nth-child(odd) { animation-delay: -1.8s; }
.flags path:nth-child(3n) { animation-delay: -0.9s; }
@keyframes sway {
  0%, 100% { transform: rotate(2.5deg); }
  50% { transform: rotate(-2.5deg); }
}

/* Pigeon */
.pigeon {
  position: absolute;
  top: 30%;
  left: -120px;
  width: 74px;
  z-index: 3;
  animation: fly 16s ease-in-out infinite;
  animation-delay: 3s;
}
.pigeon .wing { transform-box: fill-box; transform-origin: bottom right; animation: flap 0.5s ease-in-out infinite alternate; }
@keyframes flap { from { transform: rotate(0deg); } to { transform: rotate(38deg); } }
@keyframes fly {
  0% { transform: translate(0, 0) rotate(4deg); }
  40% { transform: translate(55vw, -60px) rotate(-3deg); }
  70% { transform: translate(90vw, -30px) rotate(3deg); }
  100% { transform: translate(130vw, -80px) rotate(-2deg); }
}

/* Scenery */
.scenery { position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2; pointer-events: none; }
.mountains { display: block; width: 100%; height: 150px; margin-bottom: -70px; }
.temples { display: block; width: 100%; height: 110px; margin-bottom: -46px; opacity: 0.92; }
.hill { display: block; width: 100%; height: 74px; }

/* ============ Ticker ============ */
.ticker {
  background: var(--red);
  color: var(--cream);
  overflow: hidden;
  padding: 12px 0;
  border-top: 4px solid var(--red-deep);
  border-bottom: 4px solid var(--red-deep);
}
.ticker-track { display: flex; width: max-content; animation: ticker 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
  padding-right: 10px;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ Sections (shared) ============ */
.section { position: relative; padding: 90px 0; }

.wave {
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 52px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.section-title.light { color: #fff; }
.hl-red { color: var(--red); }
.hl-gold { color: var(--gold-pale); }
.hl-blue { color: var(--sky-deep); }

.section-lead {
  font-size: 1.12rem;
  max-width: 60ch;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-weight: 600;
}
.section-lead.light { color: #fff; }

.story-para {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split-media { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ============ Meet Lakhey ============ */
.lakhey {
  background: linear-gradient(180deg, #c22a27 0%, var(--red-deep) 100%);
  padding-top: 80px;
}

.blob-frame {
  width: min(360px, 80vw);
  padding: 12px;
  background: #fff;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  transition: transform 0.3s;
  border: none;
}
.blob-frame img { border-radius: 55% 45% 52% 48% / 46% 52% 48% 54%; object-fit: cover; aspect-ratio: 3/4; }
.blob-frame:hover { transform: scale(1.03) rotate(-1.5deg); }
.blob-frame.dancing { animation: dance 0.9s ease-in-out; }
@keyframes dance {
  0%, 100% { transform: rotate(0) scale(1); }
  15% { transform: rotate(-6deg) scale(1.04); }
  35% { transform: rotate(6deg) scale(1.06); }
  55% { transform: rotate(-5deg) scale(1.04); }
  75% { transform: rotate(4deg) scale(1.02); }
}

.tap-hint { color: #fff; font-weight: 700; font-size: 0.95rem; }

/* Lakhey fact file card */
.fact-file {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px 18px;
  box-shadow: var(--shadow-pop);
  max-width: 430px;
  transform: rotate(-1deg);
  transition: transform 0.45s var(--spring);
}
.fact-file:hover { transform: rotate(0deg); }
.fact-file-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  border-bottom: 3px dashed var(--peach);
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.fact-file-head .icon { width: 34px; height: 34px; }
.fact-list { list-style: none; }
.fact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 8px 6px;
  border-radius: 12px;
  transition: transform 0.4s var(--spring), background 0.2s;
}
.fact-list li:hover { background: var(--cream); transform: translateX(6px); }
.fact-ico {
  width: 54px; height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--c, var(--peach));
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--spring);
}
.fact-ico .icon { width: 36px; height: 36px; }
.fact-list li:hover .fact-ico { transform: rotate(-8deg) scale(1.12); }

/* Floating hearts on tap */
.heart-pop {
  position: fixed;
  z-index: 90;
  font-size: 1.6rem;
  pointer-events: none;
  animation: heartUp 1.4s ease-out forwards;
}
@keyframes heartUp {
  0% { opacity: 1; transform: translateY(0) scale(0.6) rotate(0); }
  100% { opacity: 0; transform: translateY(-140px) scale(1.4) rotate(20deg); }
}

/* ============ The Book ============ */
.book { background: var(--paper); padding-top: 110px; }
.book .split { grid-template-columns: 1.15fr 0.85fr; }
.byline { font-weight: 800; color: var(--terracotta-text); margin-bottom: 16px; font-size: 1.05rem; }

.book-details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 26px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin: 24px 0 28px;
  width: fit-content;
}
.book-details div { min-width: 90px; }
.book-details dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--terracotta-text);
}
.book-details dd { font-weight: 700; font-size: 0.98rem; }
.book .book-card { transform: rotate(-3deg); }
.book .book-card:hover { transform: rotate(0) scale(1.03); }

/* ============ Author ============ */
.author { background: var(--cream); padding-top: 110px; }
.author .split { grid-template-columns: 0.85fr 1.15fr; }
.author-quote {
  background: #fff;
  border-left: 6px solid var(--gold);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 20px;
  max-width: 460px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.author-quote cite {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--terracotta-text);
}

/* ============ Peek Inside ============ */
.peek { background: var(--peach); text-align: center; overflow: hidden; padding-top: 110px; }

.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 30px max(24px, calc((100vw - 1100px) / 2)) 40px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
@media (min-width: 1150px) { .gallery { justify-content: center; } }

.gal-card {
  position: relative;
  flex: 0 0 min(245px, 68vw);
  scroll-snap-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: transform 0.45s var(--spring);
}
.gal-card:nth-child(even) { transform: rotate(2deg); }
.gal-card:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.gal-card::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 90px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(245, 182, 59, 0.8);
  border-radius: 4px;
}
.gal-card:nth-child(even)::before { transform: translateX(-50%) rotate(3deg); background: rgba(74, 163, 224, 0.7); }
.gal-card img { border-radius: 10px; aspect-ratio: 3/4; object-fit: cover; }
.gal-card figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  padding-top: 10px;
}

/* ============ Watch ============ */
.watch { background: var(--cream); text-align: center; padding-top: 110px; }
.watch .section-lead { margin-left: auto; margin-right: auto; }

.video-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 26px max(24px, calc((100vw - 1100px) / 2)) 40px;
  scrollbar-width: none;
}
.video-row::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 min(230px, 64vw);
  scroll-snap-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  transition: transform 0.45s var(--spring);
}
.video-row .video-card:nth-child(even) { transform: rotate(1.5deg); }
.video-card:hover { transform: rotate(0) translateY(-6px); }
.video-card.tall { width: min(300px, 78vw); margin: 0 auto; transform: rotate(-2deg); }
.video-card video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 10px;
  background: #14181d;
}
.video-card figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  padding-top: 10px;
}

/* ============ About ============ */
.about { background: var(--paper); text-align: center; padding-top: 110px; }
.about .section-lead { margin-left: auto; margin-right: auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: transform 0.45s var(--spring), border-color 0.25s;
}
.feature-card:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--gold); }
.feature-card:nth-child(2):hover { transform: translateY(-8px) rotate(1deg); border-color: var(--sky); }
.feature-card:nth-child(3):hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--red); }
.feature-card .icon-xl { margin-bottom: 12px; transition: transform 0.45s var(--spring); }
.feature-card:hover .icon-xl { transform: scale(1.15) rotate(-6deg); }
.feature-card h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--navy); }
.feature-card p { color: var(--ink-soft); font-weight: 600; }

/* ============ Buy ============ */
.buy {
  background: linear-gradient(180deg, var(--sky-deeper) 0%, var(--sky-deep) 100%);
  padding-top: 110px;
  text-align: center;
}
.buy .section-lead { margin-left: auto; margin-right: auto; }

.nep-line {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-pale);
  margin-top: 10px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 28px;
  margin: 20px 0 36px;
}
.price-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px 28px;
  box-shadow: var(--shadow-pop);
  text-align: center;
  transition: transform 0.45s var(--spring);
}
.price-card:hover { transform: translateY(-8px); }
.price-card.popular { border: 4px solid var(--gold); }
.price-card .icon-xl { margin: 0 auto 8px; }
.ribbon {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 18px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--gold-deep);
  white-space: nowrap;
}
.ribbon-soon { background: var(--navy); color: #fff; box-shadow: 0 3px 0 #1c3049; rotate: 2deg; }
.price-card.soon .price { color: var(--navy); }
.btn-notify { margin-top: 4px; font-size: 0.9rem; }

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: 16px;
}
.notify-form input {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
  border: 3px solid var(--peach);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--cream);
}
.notify-form input:focus { outline: none; border-color: var(--gold); }
.form-msg { font-size: 0.85rem; font-weight: 700; margin: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--green-deep); }
.form-msg.bad { color: var(--red-deep); }

/* opt-in sharing in the story game */
.optin {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.optin input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--red); }
.optin-field[hidden] { display: none; }
.price-card h2, .price-card h3 { font-size: 1.5rem; color: var(--navy); }
.price-card .fmt { font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; }
.price {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--red);
  margin: 6px 0 12px;
}
.price-note { font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; }
.price-card ul { list-style: none; text-align: left; }
.price-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 2px dashed var(--peach);
}
.price-card li:first-child { border-top: none; }
.price-card li::before { content: "⭐" / ""; position: absolute; left: 0; }

/* ============ Play band (home) ============ */
.play-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-deep) 0%, var(--green-mid) 100%);
  padding: 90px 0 100px;
  text-align: center;
}
.play-band .section-lead { margin-left: auto; margin-right: auto; }
.pb-float {
  position: absolute;
  font-size: 2.4rem;
  opacity: 0.9;
  animation: floaty 5s ease-in-out infinite;
  pointer-events: none;
}
.pb1 { left: 7%; top: 26%; }
.pb2 { right: 9%; top: 20%; animation-duration: 6.2s; animation-delay: -1s; }
.pb3 { left: 13%; bottom: 18%; animation-duration: 5.6s; animation-delay: -2s; }
.pb4 { right: 15%; bottom: 22%; animation-duration: 6.8s; animation-delay: -3s; }

/* ============ Sub-page heads ============ */
.page-head { position: relative; overflow: hidden; padding: 56px 0 66px; text-align: center; }
.play-head { background: linear-gradient(180deg, var(--green-deep) 0%, var(--green-mid) 100%); }
.buy-head { background: linear-gradient(180deg, var(--sky-deeper) 0%, var(--sky-deep) 100%); }
.page-title { position: relative; z-index: 2; font-size: clamp(2rem, 5.2vw, 3rem); color: #fff; margin-bottom: 10px; }
.page-sub { position: relative; z-index: 2; color: #fff; font-weight: 700; font-size: 1.12rem; }
.buy-head-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  text-align: left;
  flex-wrap: wrap;
}

/* ============ Games ============ */
.games-section { background: var(--cream); padding: 46px 0 80px; }

.game-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.game-pick {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(56, 39, 29, 0.22);
  transition: transform 0.45s var(--spring), background 0.2s, color 0.2s;
  animation: floaty 4.6s ease-in-out infinite;
}
.game-pick:nth-child(2) { animation-duration: 5.3s; animation-delay: -1.2s; }
.game-pick:nth-child(3) { animation-duration: 4.9s; animation-delay: -2.1s; }
.game-pick:nth-child(4) { animation-duration: 5.7s; animation-delay: -0.7s; }
.game-pick:hover { transform: translateY(-4px) rotate(-2deg); }
.game-pick.active {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--gold-deep);
  animation: none;
}

.game-stage { display: flex; justify-content: center; }
.game-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 30px clamp(14px, 4vw, 40px) 34px;
  width: 100%;
  max-width: 620px;
  text-align: center;
}
.game-panel[hidden] { display: none; }
.game-title { font-size: 1.3rem; color: var(--navy); margin-bottom: 16px; }

.level-picker { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.level-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--sky-light);
  border: none;
  border-radius: 999px;
  padding: 9px 17px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.level-btn:hover { transform: translateY(-2px); }
.level-btn.active { background: var(--navy); color: #fff; }

.game-score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--terracotta-text);
  margin-bottom: 12px;
}
.game-hint { font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; margin-top: 12px; }
.btn-restart, .btn-newmaze { margin-top: 16px; }
.btn-newmaze { margin-left: 8px; }

.step a { color: inherit; }

.vid-len {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
  background: var(--peach);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 2px;
}

.play-footnote {
  text-align: center;
  margin-top: 30px;
  font-weight: 700;
  color: var(--ink-soft);
}
.play-footnote a { color: var(--red); }

/* Maze */
#mazeCanvas {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 14px;
  background: var(--cream);
  touch-action: none;
  cursor: pointer;
}
.dpad {
  display: grid;
  grid-template-areas: ". up ." "left down right";
  gap: 8px;
  width: fit-content;
  margin: 16px auto 0;
}
.dpad-up { grid-area: up; }
.dpad-down { grid-area: down; }
.dpad-left { grid-area: left; }
.dpad-right { grid-area: right; }
.dpad-btn {
  width: 58px; height: 50px;
  font-size: 1.2rem;
  border: none;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--gold-deep);
  transition: transform 0.1s;
}
.dpad-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep); }

/* Memory */
.mem-grid {
  display: grid;
  gap: 10px;
  justify-content: center;
  grid-template-columns: repeat(var(--cols, 4), clamp(62px, 19vw, 104px));
}
.mem-card {
  aspect-ratio: 1;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  perspective: 700px;
}
.mem-inner {
  position: relative;
  display: block;          /* span defaults to inline: without this the card collapses */
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--spring);
}
.mem-card.flipped .mem-inner, .mem-card.matched .mem-inner { transform: rotateY(180deg); }
.mem-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mem-back {
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  border: 3px solid var(--gold);
}
.mem-front { transform: rotateY(180deg); border: 3px solid var(--gold); background: #fff; }
.mem-front img { width: 100%; height: 100%; object-fit: cover; }
.mem-card.matched .mem-front { border-color: var(--green); }
.mem-card.matched { animation: matchPop 0.5s var(--spring); }
@keyframes matchPop {
  0% { scale: 1; }
  50% { scale: 1.12; }
  100% { scale: 1; }
}

/* Sliding puzzle */
.puzzle-board {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 6px solid var(--navy);
  border-radius: 16px;
  background: #123;
  overflow: hidden;
}
.puz-tile {
  position: absolute;
  width: calc(100% / var(--pn, 3));
  height: calc(100% / var(--pn, 3));
  margin: 0; padding: 0; border: none;
  background-image: url("assets/puzzle-cover.jpg");
  background-size: calc(var(--pn, 3) * 100%) calc(var(--pn, 3) * 100%);
  cursor: pointer;
  transition: left 0.16s ease, top 0.16s ease, filter 0.2s;
}
.puz-tile::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.puz-tile:hover { filter: brightness(1.12); }
.puzzle-board.solved .puz-tile::after { box-shadow: none; }

/* Story */
.story-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 460px;
  margin: 0 auto;
}
.story-form[hidden] { display: none; }
.story-form label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.story-form input, .story-form textarea {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  border: 3px solid var(--peach);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--cream);
  resize: vertical;
}
.story-form input:focus, .story-form textarea:focus { outline: none; border-color: var(--gold); }
.story-form .btn { align-self: center; }

.story-result { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.story-result[hidden] { display: none; }
#storyCanvas { width: 100%; max-width: 360px; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.story-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Win overlay */
.win-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 30, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.win-overlay[hidden] { display: none; }
.win-card {
  background: var(--cream);
  border-radius: 26px;
  padding: 34px 30px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: winPop 0.6s var(--spring);
}
@keyframes winPop {
  from { transform: scale(0.6) rotate(-4deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.win-lakhey img {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 5px solid var(--gold);
  margin: 0 auto 12px;
  animation: dance 1.2s ease-in-out infinite;
}
.win-card h3 { font-size: 1.8rem; color: var(--red); margin-bottom: 6px; }
.win-card > p { font-weight: 700; color: var(--ink-soft); margin-bottom: 18px; }
.win-share p { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.btn-share { font-size: 0.92rem; padding: 10px 18px; color: #fff; }
.btn-share.wa { background: #10803a; box-shadow: 0 4px 0 #0a5827; }
.btn-share.fb { background: #1462c4; box-shadow: 0 4px 0 #0e4894; }
.btn-share.other { background: var(--navy); box-shadow: 0 4px 0 #1c3049; }
.win-again { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Confetti */
.confetti {
  position: fixed;
  top: -20px;
  z-index: 99;
  width: 12px; height: 12px;
  border-radius: 3px;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.6; }
}

/* ============ Buy page ============ */
.prices { background: var(--cream); padding: 60px 0 40px; }
.steps-section {
  background: linear-gradient(180deg, var(--sky-deeper) 0%, var(--sky-deep) 100%);
  padding: 70px 0 90px;
  text-align: center;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.step {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  padding: 46px 20px 24px;
  position: relative;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.45s var(--spring);
}
.step:hover { transform: translateY(-6px) rotate(-1deg); }
.step:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.step-num {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 var(--red-deep);
}
.step h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.step strong { color: var(--red-deep); overflow-wrap: anywhere; }

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 28px;
}
.pay-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-pop);
  text-align: center;
}
.pay-card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 18px; }

.qr-placeholder {
  width: 190px;
  margin: 0 auto 14px;
  padding: 18px 18px 12px;
  border: 3px dashed var(--sky);
  border-radius: 16px;
  background: var(--sky-light);
}
.qr-placeholder svg { width: 120px; margin: 0 auto 8px; opacity: 0.55; }
.qr-placeholder p { font-weight: 800; font-size: 0.85rem; color: var(--navy); line-height: 1.35; }

.pay-note { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); margin-top: 12px; }
.pay-trust { font-size: 0.88rem; font-weight: 700; color: var(--navy); background: var(--sky-light); border-radius: 12px; padding: 10px 14px; margin-top: 12px; }

.trust-note {
  max-width: 620px;
  margin: 34px auto 0;
  background: rgba(0, 40, 90, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 22px;
}

.bank-details { text-align: left; margin-bottom: 16px; }
.bank-details div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 2px dashed var(--peach);
}
.bank-details dt {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--terracotta-text);
  white-space: nowrap;
}
.bank-details dd { font-weight: 800; color: var(--ink); text-align: right; }

/* ============ Footer ============ */
.site-footer {
  position: relative;
  background: var(--navy);
  color: #dce9f7;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { width: 110px; border-radius: 18px; margin-bottom: 14px; }
.footer-brand p { font-weight: 600; }
.site-footer h4 { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 1px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  color: #dce9f7;
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
  transition: color 0.2s, transform 0.2s;
}
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-contact p { font-weight: 700; margin-bottom: 6px; }
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.footer-contact a:hover { color: var(--gold); }
.footer-note {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.75;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  margin: 0 24px;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--gold-deep), var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ============ Scroll reveals ============ */
/* uses the independent translate/scale properties so component `transform`
   tilts and hover lifts still work on elements that are also .reveal */
.reveal {
  opacity: 0;
  translate: 0 26px;
  scale: 0.98;
  transition: opacity 0.7s ease,
              translate 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              scale 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; translate: 0 0; scale: 1; }

.feature-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.12s; }
.feature-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.24s; }
.steps .reveal:nth-child(4) { transition-delay: 0.36s; }
.price-grid .reveal:nth-child(2), .pay-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.gallery .reveal:nth-child(2), .video-row .reveal:nth-child(2) { transition-delay: 0.1s; }
.gallery .reveal:nth-child(3), .video-row .reveal:nth-child(3) { transition-delay: 0.2s; }
.gallery .reveal:nth-child(4), .video-row .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  /* keep the headline + CTAs above the fold on a phone */
  .hero { padding-top: 16px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 22px; padding: 14px 24px 120px; }
  .hero-sub { margin-left: auto; margin-right: auto; margin-bottom: 20px; }
  .hero-ctas { justify-content: center; }
  .hero-book { order: -1; margin-top: 4px; }
  .hero-copy { padding: 22px 20px; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-title { margin-bottom: 12px; }
  .book-card { width: min(185px, 45vw); }
  .badge-star { width: 72px; height: 72px; top: -22px; left: -14px; }
  .badge-star span { font-size: 0.68rem; }

  .split, .book .split, .author .split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .book .split-media, .author .split-media { order: -1; }
  .story-para, .section-lead { margin-left: auto; margin-right: auto; }
  .fact-file, .author-quote { margin-left: auto; margin-right: auto; }
  .fact-list li { text-align: left; }
  .book-details { margin-left: auto; margin-right: auto; justify-content: center; }

  .feature-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
  .price-grid, .pay-grid { grid-template-columns: minmax(0, 420px); }
  .buy-head-inner { text-align: center; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .footer-links { align-items: center; }
  .footer-links a:hover { transform: none; }
}

@media (max-width: 840px) {
  .nav-toggle { display: flex; }
  .header-cta { display: inline-block; margin-left: auto; }
  .site-header { gap: 8px; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 3px dashed rgba(201, 120, 47, 0.35);
    padding: 10px 18px 18px;
    gap: 6px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: center; padding: 12px; }
}

@media (max-width: 680px) {
  .brand-word { font-size: 1.3rem; }
  .brand-tag { font-size: 0.52rem; letter-spacing: 1.6px; white-space: nowrap; }

  .section { padding: 70px 0; }
  .lakhey, .book, .buy, .watch, .author, .peek, .about { padding-top: 84px; }
  .hero-copy { padding: 24px 20px; }
  .steps { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; margin-bottom: 50px; }
  .book-details { grid-template-columns: repeat(2, auto); }
  .sun { top: 74px; right: 3%; width: 62px; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 2.9rem); }
  .to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .pb-float { display: none; }
  .game-panel { padding: 24px 12px 28px; }
  .dpad-btn { width: 64px; height: 52px; }
  .icon-xl { width: 56px; height: 56px; }
}

/* very narrow phones: the header must never push the hamburger off-screen */
@media (max-width: 430px) {
  .brand { min-width: 0; }
  .brand-tag { display: none; }
  .brand-word { font-size: 1.2rem; }
  .header-cta { display: none; }
  .site-header { padding: 10px 12px; gap: 6px; }
  .lang-btn { font-size: 0.74rem; padding: 6px 8px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; translate: none; scale: none; }
}
