/* The Nuggetwood Chronicles: website
   Colours sampled from the game art: royal-blue sky, carved wood,
   parchment scrolls, gold lettering, leaf green and the portal glow. */

:root {
  --sky-deep: #0f3a64;
  --sky: #165380;
  --sky-hi: #1d6a99;
  --forest-deep: #112610;
  --forest: #1c3b15;
  --forest-hi: #2b5820;
  --wood-deep: #3f200a;
  --wood-dark: #5a2f10;
  --wood: #7a4318;
  --wood-mid: #9a5a24;
  --wood-hi: #c98a45;
  --parch: #fbecc4;
  --parch-2: #f3dca0;
  --paper: #fffaf0;
  --ink: #3d220c;
  --ink-soft: #6b4a2a;
  --cream: #fff4d6;
  --gold: #ffcf3f;
  --gold-hi: #fff3a6;
  --gold-deep: #f29a12;
  --leaf: #4c962a;
  --leaf-hi: #6fd13a;
  --leaf-dark: #2e6b14;
  --berry: #c8321f;
  --portal: #6af07a;

  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;

  --leaves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg stroke='%231f4d0c' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M30 34C22 18 30 6 46 4c0 16-6 26-16 30z' fill='%236fd13a'/%3E%3Cpath d='M28 36C14 36 6 26 6 14c14 0 22 10 22 22z' fill='%234c962a'/%3E%3Cpath d='M32 38c8-8 22-8 28 0-8 10-20 8-28 0z' fill='%235cb32e'/%3E%3C/g%3E%3Cpath d='M30 34l10-22M28 36L13 20M32 38h20' stroke='%231f4d0c' stroke-width='1.5' fill='none' opacity='.45'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
/* No smooth scrolling: menu links land straight on their section, even from another page */
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ic { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Gold lettering ---------- */
/* Outline lives on the outer element, gradient on the inner span. */
.gold {
  display: inline-block;
  filter:
    drop-shadow(2px 0 0 var(--wood-deep))
    drop-shadow(-2px 0 0 var(--wood-deep))
    drop-shadow(0 2px 0 var(--wood-deep))
    drop-shadow(0 -2px 0 var(--wood-deep))
    drop-shadow(0 4px 0 var(--wood-deep));
}
.gold > span {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.gold--sm { font-size: clamp(1.45rem, 2.6vw, 1.75rem); }
.gold--md { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.gold--lg { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: .02em;
  line-height: 1;
  padding: .85em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  border: 3px solid var(--gold);
  background: linear-gradient(180deg, #8be04f 0%, #4fae25 52%, #3a8a1a 100%);
  box-shadow: 0 0 0 3px var(--wood-deep), 0 6px 0 3px var(--wood-deep), inset 0 3px 0 rgba(255, 255, 255, .3);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--wood-deep), 0 8px 0 3px var(--wood-deep), inset 0 3px 0 rgba(255, 255, 255, .3); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 3px var(--wood-deep), 0 2px 0 3px var(--wood-deep), inset 0 3px 0 rgba(255, 255, 255, .3); }
.btn--gold { background: linear-gradient(180deg, #ffe27a 0%, #ffbf2e 52%, #f0950f 100%); color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); border-color: #fff1b0; }
.btn--parch { background: linear-gradient(180deg, #fffaf0 0%, var(--parch-2) 100%); color: var(--ink); text-shadow: none; border-color: #fff; }
.btn--sm { font-size: 1rem; padding: .62em 1.15em; }

/* ---------- Wood frame & leaves ---------- */
.frame {
  position: relative;
  padding: 10px;
  border-radius: 24px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, var(--wood-hi), var(--wood) 40%, var(--wood-dark));
  box-shadow: 0 0 0 4px var(--wood-deep), inset 0 2px 0 rgba(255, 220, 160, .5), 0 18px 40px rgba(0, 0, 0, .38);
}
.frame img { width: 100%; border-radius: 15px; box-shadow: 0 0 0 3px var(--wood-deep); }
.frame--leaves::before,
.frame--leaves::after {
  content: "";
  position: absolute;
  width: clamp(48px, 7vw, 76px);
  aspect-ratio: 1;
  background: var(--leaves) no-repeat center / contain;
  pointer-events: none;
  z-index: 2;
}
.frame--leaves::before { top: -26px; left: -24px; }
.frame--leaves::after { bottom: -24px; right: -24px; transform: rotate(180deg); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--wood), var(--wood-dark));
  border-bottom: 4px solid var(--wood-deep);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.nav__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--display); font-size: 1.05rem; line-height: 1; text-shadow: 0 2px 0 var(--wood-deep); }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 0 0 2px var(--wood-deep); }
/* ™ on the text logo: small, at the top-right, without changing line height or alignment */
.brand .tm { font-size: .55em; line-height: 1; vertical-align: top; margin-left: .08em; }
.nav__links { display: none; }
.nav__links a:not(.btn) { color: var(--cream); text-decoration: none; font-weight: 800; font-size: .98rem; padding: 6px 2px; border-bottom: 3px solid transparent; }
.nav__links a:not(.btn):hover { border-bottom-color: var(--gold); }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 1rem var(--body); color: var(--ink);
  background: linear-gradient(180deg, #fffaf0, var(--parch-2));
  border: 3px solid var(--wood-deep); border-radius: 12px; padding: 8px 14px; cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 3px; background: var(--ink); border-radius: 2px; position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav.is-open .nav__links {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 14px 20px 22px;
  background: linear-gradient(180deg, var(--wood-dark), var(--wood-deep));
  border-bottom: 4px solid var(--wood-deep);
}
.nav.is-open .nav__links a:not(.btn) { padding: 10px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 244, 214, .15); }
.nav.is-open .nav__links .btn { margin-top: 12px; }
/* EN | FR switch: next to Menu on phones, after the links on desktop */
.lang {
  display: flex; margin: 0 0 0 auto; padding: 3px;
  border-radius: 999px;
  background: var(--wood-deep);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .4);
}
.lang a, .lang button {
  font: 900 .85rem/1 var(--body); letter-spacing: .04em;
  color: var(--cream); text-decoration: none;
  padding: 8px 10px; border-radius: 999px;
  background: none; border: 0; cursor: pointer;
}
.lang a:hover, .lang button:hover { color: var(--gold); }
.lang a[aria-current], .lang button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(180deg, #ffe27a, var(--gold) 55%, var(--gold-deep)); }
@media (max-width: 480px) {
  .nav__inner { gap: 10px; }
  .brand { font-size: .95rem; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .nav__toggle { padding: 11px 12px; }
  .nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 360px) { .nav .brand span { display: none; } }
.nav__links a[aria-current] { color: var(--gold); border-bottom-color: var(--gold); }
@media (min-width: 1200px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
  .lang { order: 2; margin-left: 10px; }
}
@media (min-width: 1200px) and (max-width: 1299px) { .nav__links { gap: 15px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 72px;
  text-align: center;
  color: var(--cream);
  background: radial-gradient(ellipse 90% 55% at 50% 18%, #1a628d 0%, var(--sky) 45%, var(--sky-deep) 100%);
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(400px, 82vw); margin: -10px 0 -18px; filter: drop-shadow(0 16px 30px rgba(5, 25, 50, .45)); }
.hero__logo img { width: 100%; }
/* ™ on the logo picture, exactly as the game's opening screen draws it: gold, outlined,
   at the top right after "NUGGETWOOD". Laid over the picture; the image file is unchanged. */
.logo-mark { position: relative; display: block; container-type: inline-size; }
.logo-tm {
  position: absolute; left: 93.5%; top: 15.5%; pointer-events: none;
  font: 9cqw/1 "Lilita One", "Trebuchet MS", sans-serif; color: #ffd84a;
  -webkit-text-stroke: .55cqw #4a2a12; paint-order: stroke fill;
  text-shadow: 0 .5cqw 0 #4a2a12, 0 0 2cqw rgba(255, 214, 90, .6);
}
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); line-height: 1.08; margin-bottom: 20px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.55; max-width: 640px; margin: 0 auto 28px; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px 20px; justify-content: center; margin-bottom: 26px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-bottom: 56px; }
.pills li { font-weight: 800; font-size: .92rem; padding: 6px 14px; border-radius: 999px; background: rgba(15, 58, 100, .55); border: 2px solid rgba(255, 207, 63, .55); color: var(--cream); }
/* Tilts back and flattens as it scrolls into view (--tilt set by script.js) */
.hero__shot { width: min(1000px, 100%); transform: perspective(1400px) rotateX(var(--tilt, 0deg)); transform-origin: 50% 100%; }

/* Floating gold nuggets */
.nuggets i {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fff4a8 0%, #ffcb33 45%, #e08a00 100%);
  border: 2px solid #8a4a00;
  box-shadow: inset -3px -3px 0 rgba(160, 80, 0, .35), 0 0 14px rgba(255, 207, 63, .55);
  animation: float 7s ease-in-out infinite alternate;
  opacity: .95;
}
.nuggets i:nth-child(1) { left: 6%;  top: 12%; transform: rotate(18deg); }
.nuggets i:nth-child(2) { left: 14%; top: 34%; width: 14px; height: 14px; animation-delay: -2s; }
.nuggets i:nth-child(3) { left: 4%;  top: 55%; width: 26px; height: 26px; animation-delay: -4s; }
.nuggets i:nth-child(4) { right: 7%; top: 10%; width: 16px; height: 16px; animation-delay: -1s; }
.nuggets i:nth-child(5) { right: 15%; top: 30%; animation-delay: -3s; }
.nuggets i:nth-child(6) { right: 4%; top: 50%; width: 24px; height: 24px; animation-delay: -5s; }
.nuggets i:nth-child(7) { left: 22%; top: 8%; width: 12px; height: 12px; animation-delay: -6s; }
.nuggets i:nth-child(8) { right: 24%; top: 6%; width: 13px; height: 13px; animation-delay: -2.5s; }
.nuggets i:nth-child(9) { left: 10%; top: 75%; width: 16px; height: 16px; animation-delay: -3.5s; }
/* Float uses transform; scroll parallax uses the separate translate property */
@keyframes float {
  from { transform: translateY(0) rotate(-12deg); }
  to   { transform: translateY(-18px) rotate(14deg); }
}
.nuggets i.near { z-index: 2; filter: blur(2.5px); opacity: .9; }
@media (max-width: 700px) { .nuggets i:nth-child(n+5):not(.near) { display: none; } }

/* ---------- Trust plank ---------- */
.plank {
  position: relative;
  z-index: 2;
  padding: 30px 0 34px;
  color: var(--cream);
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, var(--wood-mid), var(--wood) 50%, var(--wood-dark));
  border-top: 5px solid var(--wood-deep);
  border-bottom: 5px solid var(--wood-deep);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.plank__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
.plank li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.plank li:last-child { grid-column: 1 / -1; }
.medal {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--parch);
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 3px var(--wood-deep), 0 5px 0 3px var(--wood-deep);
}
.medal img { width: 100%; height: 100%; object-fit: cover; }
.medal--text { display: grid; place-items: center; font-size: 1.6rem; line-height: .95; color: var(--berry); text-shadow: none; }
@media (min-width: 900px) {
  .plank__list { grid-template-columns: repeat(5, 1fr); }
  .plank li:last-child { grid-column: auto; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 92px 0 100px; overflow-x: clip; }
.section--parch { background: radial-gradient(ellipse 120% 70% at 50% 0%, #fff6da 0%, var(--parch) 50%, var(--parch-2) 100%); color: var(--ink); }
.section--sky { background: radial-gradient(ellipse 120% 60% at 50% 0%, var(--sky-hi) 0%, var(--sky) 45%, var(--sky-deep) 100%); color: var(--cream); }
.section--forest { background: radial-gradient(ellipse 120% 60% at 50% 0%, var(--forest-hi) 0%, var(--forest) 45%, var(--forest-deep) 100%); color: var(--cream); }
/* Bushy top edge on forest sections */
.section--forest::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -30px; height: 32px;
  background:
    radial-gradient(circle at 50% 100%, var(--forest-hi) 69%, transparent 70%) 0 4px / 64px 30px repeat-x,
    radial-gradient(circle at 50% 100%, var(--leaf-dark) 69%, transparent 70%) 32px 0 / 64px 32px repeat-x;
}

/* Section sign: wooden plaque + parchment scroll, as on the game screens */
.sign { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 56px; }
.plaque {
  position: relative;
  display: inline-block;
  padding: .36em .95em .5em;
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, var(--wood-mid), var(--wood) 55%, var(--wood-dark));
  border: 4px solid var(--wood-deep);
  border-radius: 26px;
  box-shadow: inset 0 3px 0 rgba(255, 214, 150, .45), inset 0 -5px 0 rgba(0, 0, 0, .25), 0 8px 0 rgba(0, 0, 0, .25);
}
.plaque::before, .plaque::after {
  content: "";
  position: absolute; top: -20px;
  width: 54px; height: 54px;
  background: var(--leaves) no-repeat center / contain;
  pointer-events: none;
}
.plaque::before { left: -22px; }
.plaque::after { right: -22px; transform: scaleX(-1); }
.scroll {
  position: relative;
  margin: -8px 0 0;
  max-width: 92%;
  padding: .5em 1.4em;
  font-weight: 800;
  font-size: clamp(.98rem, 1.8vw, 1.12rem);
  color: var(--ink);
  background: linear-gradient(180deg, #fff8e2, var(--parch-2));
  border: 3px solid var(--wood-dark);
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
}
.kicker { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--gold); margin-bottom: 8px; }
.section--parch .kicker { color: var(--berry); }

/* ---------- Cards ---------- */
.cards { list-style: none; display: grid; gap: 22px; }
@media (min-width: 820px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  padding: 26px 24px 22px;
  background: var(--paper);
  border: 3px solid var(--wood-dark);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--wood-dark), 0 14px 26px rgba(61, 34, 12, .14);
  color: var(--ink);
}
.card h3 { font-size: 1.45rem; margin: 14px 0 8px; color: var(--wood-dark); }
.card p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.badge {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  font-size: 28px; color: #fff;
  background: linear-gradient(180deg, #7fd848, var(--leaf) 60%, var(--leaf-dark));
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px var(--wood-deep);
}
.badge--gold { background: linear-gradient(180deg, #ffe27a, #ffbf2e 55%, #e58a0c); color: var(--wood-deep); }
.cards--onforest { margin-top: 56px; }
.cards--onforest .card { background: linear-gradient(180deg, #fff8e2, var(--parch)); box-shadow: 0 6px 0 var(--wood-deep), 0 16px 30px rgba(0, 0, 0, .35); }

/* ---------- Not an app: devices ---------- */
.devices {
  --u: min(10px, calc((100vw - 48px) / 80));
  display: flex; align-items: flex-end; justify-content: center;
  gap: calc(var(--u) * 3.5);
  margin: 0 auto 56px;
}
.device { position: relative; }
.device__screen {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: radial-gradient(circle at 50% 40%, #1a628d, var(--sky-deep));
  border: calc(var(--u) * 1) solid var(--wood-deep);
  box-shadow: 0 0 0 3px var(--wood-hi), 0 10px 24px rgba(61, 34, 12, .25);
}
.device__screen img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.device--phone .device__screen img { object-fit: contain; padding: calc(var(--u) * .8); }
/* Browser address bar: shows it's running in the browser */
.device__bar { flex: none; display: grid; place-items: center; height: calc(var(--u) * 2.2); background: var(--parch); border-bottom: 2px solid var(--wood-deep); }
.device__bar::after { content: ""; width: 62%; height: 45%; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--wood-hi); }
.device--phone .device__screen  { width: calc(var(--u) * 12); height: calc(var(--u) * 22); border-radius: calc(var(--u) * 2.2); }
.device--tablet .device__screen { width: calc(var(--u) * 26); height: calc(var(--u) * 19); border-radius: calc(var(--u) * 2.2); }
.device--laptop .device__screen { width: calc(var(--u) * 33); height: calc(var(--u) * 21); border-radius: calc(var(--u) * 1.4) calc(var(--u) * 1.4) 0 0; }
.device__base { width: calc(var(--u) * 39); height: calc(var(--u) * 1.8); margin-left: calc(var(--u) * -3); background: linear-gradient(180deg, var(--wood-hi), var(--wood-dark)); border-radius: 0 0 calc(var(--u) * 1.6) calc(var(--u) * 1.6); border: 2px solid var(--wood-deep); }

/* ---------- Inside the game ---------- */
.feature { display: grid; gap: 40px; align-items: center; margin-bottom: 72px; }
.feature__text p:not(.kicker) { font-size: 1.12rem; font-weight: 600; margin-top: 14px; max-width: 46ch; }
.stack { position: relative; padding-bottom: 6%; }
.stack .frame:first-child { width: 86%; transform: rotate(-1.5deg); }
.stack .frame:last-child { width: 78%; margin: -34% 0 0 auto; transform: rotate(2deg); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.25fr 1fr; gap: 56px; }
}
.pair { display: grid; gap: 40px; }
@media (min-width: 820px) { .pair { grid-template-columns: 1fr 1fr; } }
.tile .frame { margin-bottom: 24px; }
.tile .frame img { aspect-ratio: 2 / 1; object-fit: cover; }
.tile h3 { margin-bottom: 8px; }
.tile p { font-weight: 600; margin: 0; max-width: 46ch; }

/* ---------- Setup videos ---------- */
.videos { display: grid; gap: 44px; }
@media (min-width: 880px) { .videos { grid-template-columns: 1fr 1fr; } }
.video {
  position: relative; display: block; width: 100%;
  padding: 10px; margin: 0 0 22px;
  border: 0; border-radius: 24px; cursor: pointer;
  font: inherit;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, var(--wood-hi), var(--wood) 40%, var(--wood-dark));
  box-shadow: 0 0 0 4px var(--wood-deep), inset 0 2px 0 rgba(255, 220, 160, .5), 0 18px 34px rgba(61, 34, 12, .28);
  transition: transform .15s ease;
}
.video:hover { transform: translateY(-3px); }
.video img { width: 100%; border-radius: 15px; box-shadow: 0 0 0 3px var(--wood-deep); }
.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  font-size: 40px; color: #fff;
  background: linear-gradient(180deg, #8be04f, #4fae25 52%, #3a8a1a);
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 4px var(--wood-deep), 0 8px 0 4px var(--wood-deep), 0 0 0 14px rgba(255, 255, 255, .25);
  transition: scale .15s ease;
}
.video__play .ic { margin-left: 5px; }
.video:hover .video__play { scale: 1.08; }
.video__badge {
  position: absolute; left: 22px; bottom: 22px;
  font-weight: 900; font-size: .85rem; color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper); border: 2px solid var(--wood-dark);
}
.vcard h3 { font-size: 1.6rem; color: var(--wood-dark); margin-bottom: 12px; }
.steps { padding-left: 1.4em; display: grid; gap: 8px; font-weight: 600; color: var(--ink-soft); }
.steps b { color: var(--ink); }
.steps li::marker { font-family: var(--display); color: var(--berry); }
/* the install steps: one titled line per platform, with its icon */
.steps--platforms { list-style: none; padding-left: 0; }
.steps--platforms li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; }
.steps__ic { font-size: 1.25rem; line-height: 1.3; text-align: center; }

/* ---------- Parents ---------- */
.parents__shot { width: min(1060px, 100%); margin: 0 auto 64px; }
.parents__grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 900px) { .parents__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.keys { list-style: none; display: grid; gap: 26px; }
.keys li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.keys h3 { font-size: 1.45rem; color: var(--gold); text-shadow: 0 2px 0 var(--wood-deep); margin: 4px 0 4px; }
.keys p { margin: 0; font-weight: 600; }
/* On laptops, what the child sees rides alongside the six keys as they scroll */
@media (min-width: 900px) and (min-height: 700px) { .parents__child { position: sticky; top: 100px; } }
.parents__child figcaption { margin-top: 18px; font-weight: 700; font-style: italic; text-align: center; color: var(--cream); }
.promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 64px 0 0; }
.promise span {
  font-family: var(--display); font-size: 1.05rem; color: var(--ink);
  padding: .55em 1.1em; border-radius: 10px;
  background: linear-gradient(180deg, #fff8e2, var(--parch-2));
  border: 3px solid var(--wood-dark);
}

/* ---------- Prices ---------- */
.prices { display: grid; gap: 34px; align-items: stretch; max-width: 1060px; margin: 0 auto; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.price {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 24px;
  border: 4px solid var(--wood-deep);
  background: linear-gradient(180deg, #fff8e2, var(--parch) 60%, var(--parch-2));
  box-shadow: 0 8px 0 var(--wood-deep), 0 22px 40px rgba(0, 0, 0, .4);
  color: var(--ink);
  overflow: visible;
}
.price__name {
  font-size: 1.6rem; text-align: center; color: var(--gold);
  text-shadow: 0 2px 0 var(--wood-deep);
  padding: 26px 16px 16px;
  border-radius: 19px 19px 0 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, var(--wood-mid), var(--wood-dark));
  border-bottom: 4px solid var(--wood-deep);
}
.price__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 22px 30px; flex: 1; }
.price__amt { font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--leaf-dark); margin: 4px 0 6px; }
.price__per { font-weight: 800; color: var(--ink-soft); margin-bottom: 20px; }
.ticks { list-style: none; display: grid; align-content: start; gap: 10px; text-align: left; margin-bottom: 28px; font-weight: 700; flex: 1; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.ticks .ic { margin-top: .22em; font-size: 1.1rem; color: #fff; background: var(--leaf); border-radius: 50%; padding: 2px; box-shadow: 0 0 0 2px var(--leaf-dark); }
.price--best { border-color: var(--wood-deep); box-shadow: 0 0 0 4px var(--gold), 0 8px 0 4px var(--wood-deep), 0 0 50px rgba(255, 207, 63, .35), 0 22px 40px rgba(0, 0, 0, .4); }
.price__flag {
  position: absolute; top: -21px; left: 50%; translate: -50% 0; z-index: 1;
  font-family: var(--display); font-size: .98rem; white-space: nowrap; color: #fff;
  padding: .45em 1.1em; border-radius: 8px;
  background: linear-gradient(180deg, #e24a33, var(--berry));
  border: 3px solid var(--wood-deep);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.prices__note { text-align: center; margin: 44px 0 0; font-weight: 800; color: var(--gold); font-size: 1.1rem; }

/* ---------- Story ---------- */
.story { display: grid; gap: 44px; align-items: start; }
@media (min-width: 900px) { .story { grid-template-columns: minmax(260px, 380px) 1fr; gap: 64px; } }
.story__poster { max-width: 380px; margin: 0 auto; transform: rotate(-1.5deg); }
.letter {
  position: relative;
  padding: 40px 38px 44px;
  background: var(--paper);
  border: 3px solid var(--wood-dark);
  border-radius: 8px;
  box-shadow: 0 8px 0 var(--wood-dark), 0 24px 40px rgba(61, 34, 12, .18);
  font-size: 1.12rem;
}
.letter h3 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); color: var(--wood-dark); margin-bottom: 18px; }
.letter p { color: var(--ink); }
.letter__sign { font-family: var(--display); font-size: 1.5rem; color: var(--berry); margin: 26px 0 22px; }
.credits { margin: 0; padding-top: 20px; border-top: 2px dashed var(--parch-2); display: grid; gap: 8px; font-size: .98rem; }
.credits div { display: flex; flex-wrap: wrap; gap: 0 .4em; }
.credits dt { font-weight: 900; }
.credits dd { margin: 0; }
.seal {
  position: absolute; right: 26px; bottom: -26px;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--leaves) no-repeat center / 62%, radial-gradient(circle at 40% 35%, #e65a40, var(--berry) 60%, #8f1d10);
  box-shadow: 0 0 0 4px #a8261a, 0 6px 12px rgba(0, 0, 0, .3);
  transform: rotate(-12deg);
}
@media (max-width: 600px) { .letter { padding: 30px 22px 44px; } }

/* ---------- Finale ---------- */
.finale { text-align: center; overflow: hidden; padding-top: 80px; }
.finale .lead { margin-top: 18px; }
.portal {
  position: relative;
  width: clamp(180px, 30vw, 250px); aspect-ratio: 1;
  margin: 0 auto 34px;
  border-radius: 50%;
  padding: 16px;
  background: repeating-conic-gradient(from 8deg, #9a9c90 0 22deg, #7e8075 22deg 24deg);
  box-shadow: 0 0 0 4px #4f5148, inset 0 0 0 4px #4f5148, 0 0 80px 20px rgba(106, 240, 122, .35);
}
.portal span {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: url("img/portal.jpg") center / cover;
  box-shadow: 0 0 34px rgba(106, 240, 122, .85);
  animation: swirl 16s linear infinite;
}
/* Swirl cut from the entrance art; spins slowly */
@keyframes swirl { to { rotate: -360deg; } }

/* ---------- Footer ---------- */
.footer {
  color: var(--cream);
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, var(--wood-dark), var(--wood-deep));
  border-top: 5px solid var(--wood-deep);
  padding: 40px 0 26px;
}
.footer__inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; } }
.footer__credits { margin: 0; font-weight: 600; font-size: .95rem; opacity: .9; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--gold); font-weight: 800; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { text-align: center; margin: 26px 0 0; font-size: .85rem; opacity: .75; }
.footer__legal a { color: inherit; }

/* ---------- Video dialog ---------- */
.player { border: 0; padding: 0; background: transparent; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.player::backdrop { background: rgba(8, 26, 46, .82); }
.player__box {
  position: relative;
  padding: 18px 18px 14px;
  border-radius: 24px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, var(--wood-hi), var(--wood) 40%, var(--wood-dark));
  box-shadow: 0 0 0 4px var(--wood-deep);
}
.player h3 { color: var(--gold); text-shadow: 0 2px 0 var(--wood-deep); font-size: 1.5rem; margin: 2px 52px 14px 6px; }
.player__stage img, .player__stage video { width: 100%; border-radius: 14px; box-shadow: 0 0 0 3px var(--wood-deep); display: block; }
.player__note { margin: 12px 6px 2px; color: var(--cream); font-weight: 700; }
.player__note:empty { display: none; }
.player__close {
  position: absolute; top: 12px; right: 12px;
  width: 42px; height: 42px; border-radius: 12px;
  font: 400 1.7rem/1 var(--display); color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #e24a33, var(--berry));
  border: 3px solid var(--wood-deep);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  translate: -50% 140%;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 14px;
  font-weight: 800; color: var(--ink);
  background: var(--paper); border: 3px solid var(--wood-dark);
  box-shadow: 0 6px 0 var(--wood-dark), 0 14px 30px rgba(0, 0, 0, .3);
  visibility: hidden;
  transition: translate .25s ease, visibility 0s linear .25s;
}
.toast.is-on { translate: -50% 0; visibility: visible; transition: translate .25s ease; }

/* ---------- Intro: a calm portal ----------
   On the first page of each visit (html.is-intro is set in <head>): a still, sunny scene with
   the Golden Portal, its swirl turning slowly, the logo resting inside and Nugget beside it,
   while ten little nuggets fill a trail. Then it all fades softly away (intro.js).
   Kept gentle on purpose: soft colours, slow movement, no flashes. */
.loader { display: none; }
html.is-intro { overflow: hidden; }
.is-intro .loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; }
/* leaving: the page appears through a soft-edged circle that grows out of the swirl (--hole, --cx, --cy from intro.js) */
.loader.is-leaving {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 45%), transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 80px));
  mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 45%), transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 80px));
}
.loader:not(.is-ready) .lo-stage { opacity: 0; }
.lo-sky { position: absolute; inset: 0; background: linear-gradient(#7ccaf5, #b6e4fb 55%, #e6f7ff); }
.lo-sun { position: absolute; right: 12vw; top: 9vh; width: 16vmin; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(#fffbe0 0 40%, #ffe27a 64%, rgba(255, 226, 122, 0) 72%); }
.lo-cloud { position: absolute; top: 14vh; left: 0; width: 15vmin; height: 5vmin; border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: 4vmin -2.4vmin 0 .5vmin rgba(255, 255, 255, .92), -3vmin -1.3vmin 0 .2vmin rgba(255, 255, 255, .92); animation: lo-cloud 60s linear infinite; }
.lo-cloud + .lo-cloud { top: 26vh; scale: .75; animation-duration: 80s; animation-delay: -40s; }
@keyframes lo-cloud { from { translate: -20vw 0; } to { translate: 110vw 0; } }
.lo-hill { position: absolute; bottom: -20vh; left: -15vw; width: 70vw; height: 48vh; border-radius: 50%; background: #8fd567; }
.lo-hill + .lo-hill { left: auto; right: -15vw; bottom: -24vh; background: #7cc955; }
.lo-stage { position: relative; display: grid; justify-items: center; gap: 8px; transition: opacity .5s ease; }
/* the portal settles in with a soft bounce, its stones dropping into place one by one, keystone last */
.lo-portal { position: relative; width: min(760px, 92vw, 76vh); aspect-ratio: 400 / 420; animation: lo-settle .8s cubic-bezier(.3, 1.35, .5, 1) backwards; }
@keyframes lo-settle { from { scale: .86; opacity: 0; } }
.lo-stones path { animation: lo-drop .55s calc(.3s + var(--i) * .06s) cubic-bezier(.3, 1.5, .5, 1) backwards; }
@keyframes lo-drop { from { translate: 0 -30px; opacity: 0; } }
/* the swirl glows a little brighter with each nugget (--g, 0 to 1) */
.lo-bright { opacity: calc(var(--g, 0) * .55); transition: opacity .3s ease; }
.lo-portal svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 12px rgba(40, 100, 140, .2)); }
.lo-swirl { transform-box: view-box; transform-origin: 200px 220px; animation: swirl 8s linear infinite; }
.lo-logo { position: absolute; left: 50%; top: 50.5%; width: 46%; translate: -50% -50%; container-type: inline-size; filter: drop-shadow(0 4px 8px rgba(0, 60, 10, .3)); animation: lo-rise .9s .7s ease-out backwards; }
@keyframes lo-rise { from { opacity: 0; scale: .8; } }
.lo-logo img { display: block; width: 100%; height: auto; }
.lo-logo sup { position: absolute; left: 93.5%; top: 15.5%; font: 13cqw/1 "Lilita One", sans-serif; color: #ffd84a; -webkit-text-stroke: .6cqw #4a2a12; paint-order: stroke fill; }
/* Nugget walks in from the side, then bobs while he tosses the nuggets */
.lo-nugget { position: absolute; right: -14%; bottom: 6%; width: 22%; transform-origin: 50% 100%; filter: drop-shadow(0 5px 4px rgba(40, 100, 40, .25)); animation: lo-walk 1s .2s cubic-bezier(.2, .8, .3, 1) backwards, lo-bob .5s 1.2s ease-in-out infinite alternate; }
@keyframes lo-walk { from { transform: translateX(45vw) rotate(8deg); } 60% { transform: translateX(-8px) rotate(-4deg); } }
@keyframes lo-bob { to { translate: 0 -7px; } }
@media (max-width: 600px) { .lo-nugget { right: -3%; width: 20%; } }
.lo-gold { position: absolute; left: 0; top: 0; width: 5%; aspect-ratio: 1; margin: -2.5%; border-radius: 22%; background: linear-gradient(135deg, #fff4a8, #ffcb33 45%, #e08a00); border: 2px solid #8a4a00; box-shadow: 0 0 10px rgba(255, 216, 74, .7); pointer-events: none; }
/* a few fireflies drifting slowly round the arch */
.lo-fly { position: absolute; width: 2.2%; aspect-ratio: 1; border-radius: 50%; background: #fffbd0; box-shadow: 0 0 10px 4px rgba(255, 236, 140, .55); opacity: 0; animation: lo-fly 5s ease-in-out infinite; }
@keyframes lo-fly { 0%, 100% { opacity: 0; translate: 0 0; } 30% { opacity: .9; } 50% { translate: 14px -22px; } 70% { opacity: .7; } 85% { translate: -10px -36px; } }
.lo-label { margin: 0; font: 400 clamp(1.05rem, 2.4vw, 1.5rem) var(--display); color: var(--wood-dark); }
.lo-trail { display: flex; gap: clamp(6px, 1vw, 10px); }
.lo-trail i { width: clamp(16px, 2.2vmin, 22px); height: clamp(16px, 2.2vmin, 22px); border-radius: 5px; background: rgba(255, 255, 255, .7); border: 2px solid rgba(122, 74, 36, .35); transition: background .4s ease, border-color .4s ease, scale .4s ease; }
.lo-trail i.is-on { background: linear-gradient(135deg, #fff4a8, #ffcb33 50%, #e8a020); border-color: #a0601a; scale: 1.1; }

/* ---------- A game that grows with your child: tap a player, see the same level change ---------- */
.grow { max-width: 760px; margin: 0 auto; text-align: center; }
.grow__ask { margin: 0 0 14px; font: 400 clamp(1.3rem, 3.2vw, 1.8rem) var(--display); color: var(--gold); text-shadow: 0 2px 0 var(--wood-deep); }
.grow__picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.grow__who {
  min-height: 48px; padding: 8px 24px; border-radius: 999px; cursor: pointer;
  font: 400 clamp(1.05rem, 2.4vw, 1.25rem) var(--display); color: var(--wood-dark);
  background: linear-gradient(180deg, #fff8e2, var(--parch-2)); border: 3px solid var(--wood-dark); box-shadow: 0 4px 0 var(--wood-dark);
  transition: translate .15s ease, box-shadow .15s ease, background .15s ease;
}
.grow__who:hover { translate: 0 -2px; box-shadow: 0 6px 0 var(--wood-dark); }
.grow__who[aria-pressed="true"] { background: linear-gradient(180deg, #ffe27a, var(--gold)); translate: 0 2px; box-shadow: 0 2px 0 var(--wood-dark); }
.grow__board {
  min-height: 210px; display: grid; place-items: center; padding: 22px clamp(16px, 4vw, 34px); border-radius: 22px;
  background: linear-gradient(180deg, #fff8e2, var(--parch)); color: var(--ink);
  border: 4px solid var(--wood-dark); box-shadow: 0 7px 0 var(--wood-dark), 0 18px 34px rgba(0, 0, 0, .28);
}
.grow__panel[hidden] { display: none; }
.grow__panel { animation: grow-in .35s ease; }
@keyframes grow-in { from { opacity: 0; translate: 0 6px; } }
.grow__q { margin: 0 0 10px; font: 400 clamp(1.9rem, 6.5vw, 3rem)/1.2 var(--display); color: var(--wood-dark); overflow-wrap: anywhere; }
.grow__q--text { font-size: clamp(1.1rem, 3vw, 1.45rem); }
.grow__say { margin: 0; font-weight: 700; font-size: clamp(1.02rem, 2.2vw, 1.18rem); line-height: 1.45; }
.grow__how { list-style: none; display: grid; gap: 12px; margin: 22px 0 0; padding: 0; text-align: left; }
@media (min-width: 720px) { .grow__how { grid-template-columns: repeat(3, 1fr); } }
.grow__how li { padding: 14px 16px; border-radius: 16px; font-weight: 600; line-height: 1.4; background: rgba(5, 40, 20, .55); border: 2px solid rgba(255, 207, 63, .4); }
.grow__how b { display: block; margin-bottom: 3px; font: 400 1.14rem var(--display); color: var(--gold); }

/* ---------- Learning ---------- */
.learn { display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .learn { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.learn__lead { font-size: 1.15rem; font-weight: 600; margin-bottom: 26px; }
.subjects { list-style: none; display: grid; gap: 12px; }
.subjects li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(10, 38, 68, .92);
  border: 2px solid rgba(255, 207, 63, .35);
}
.subjects h3 { font-size: 1.35rem; color: var(--gold); text-shadow: 0 2px 0 var(--wood-deep); }
.subjects p { margin: 2px 0 0; font-weight: 600; }
.subject-ic {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  font-size: 28px; color: #fff;
  background: var(--c);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px var(--wood-deep);
}
/* The Quiz Vault's own subject colours, in the game's order */
.subjects li:nth-child(1) .subject-ic { --c: linear-gradient(#ffad4a, #e8751a); }
.subjects li:nth-child(2) .subject-ic { --c: linear-gradient(#b07bff, #6d34c8); }
.subjects li:nth-child(3) .subject-ic { --c: linear-gradient(#ff7eb6, #c2307a); }
.subjects li:nth-child(4) .subject-ic { --c: linear-gradient(#c9a26b, #7a5a2a); }
.subjects li:nth-child(5) .subject-ic { --c: linear-gradient(#3fc1c9, #1b7f8a); }
.subjects li:nth-child(6) .subject-ic { --c: linear-gradient(#7b8bff, #2a35b0); }
.subjects li:nth-child(7) .subject-ic { --c: linear-gradient(#ffd34d, #e8751a); color: var(--wood-deep); }

/* On laptops the riddle board rides alongside the subject list as it scrolls */
@media (min-width: 960px) and (min-height: 700px) { .learn__play { position: sticky; top: 92px; } }
/* Phones: a jump from the intro down to the board */
.learn__jump {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font: 400 1.1rem/1 var(--display); color: var(--ink);
  background: linear-gradient(180deg, #ffe27a, var(--gold) 60%, var(--gold-deep));
  border: 3px solid var(--wood-deep); box-shadow: 0 4px 0 var(--wood-deep);
}
.learn__jump span { display: inline-block; animation: try-point .8s ease-in-out infinite alternate; }
@media (min-width: 960px) { .learn__jump { display: none; } }

/* "Try the quiz!": Nugget sits on the board and points at the answers */
.try { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: 4px; margin: 0 0 -16px 10px; pointer-events: none; }
.try__nugget { width: 66px; height: auto; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .25)); animation: hop 1.1s ease-in-out infinite alternate; }
.try__bubble {
  position: relative; margin: 0 0 34px 10px; padding: 10px 16px 9px; rotate: -3deg;
  font: 400 clamp(1.25rem, 2.4vw, 1.5rem)/1.05 var(--display); color: var(--ink);
  background: var(--paper); border: 3px solid var(--wood-deep); border-radius: 18px;
  box-shadow: 0 4px 0 var(--wood-deep);
  animation: try-bob 1.6s ease-in-out infinite alternate;
}
.try__bubble small { display: block; margin-top: 4px; font: 800 .85rem/1.2 var(--body); color: var(--ink-soft); }
.try__bubble::before {                                  /* tail pointing at Nugget */
  content: ""; position: absolute; left: -11px; bottom: 12px; width: 16px; height: 16px; rotate: 45deg;
  background: var(--paper); border-left: 3px solid var(--wood-deep); border-bottom: 3px solid var(--wood-deep);
}
.try__arrow {
  width: 64px; height: auto; margin: 0 0 -8px -2px; overflow: visible;
  fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 3px 0 var(--wood-deep));
  animation: try-point .8s ease-in-out infinite alternate;
}
.try__bubble, .try__arrow { transition: opacity .4s ease, scale .4s ease; }
.learn__play.is-playing .try__bubble, .learn__play.is-playing .try__arrow { opacity: 0; scale: .6; }
@keyframes try-bob { from { translate: 0 0; } to { translate: 0 -6px; } }
@keyframes try-point { from { translate: 0 0; } to { translate: 0 6px; } }

/* Parallax: icons and signs floating behind a section at different depths (script.js floaters) */
.deco.deco--float i {
  display: grid; place-items: center; border-radius: 28%;
  font-size: calc(var(--size) * .5); color: var(--fg, #fff);
  background: var(--c, linear-gradient(180deg, #ffe27a, #ffbf2e 55%, #e58a0c));
  border: 3px solid var(--gold); box-shadow: 0 0 0 3px var(--wood-deep), 0 12px 24px rgba(0, 0, 0, .35);
  width: var(--size); height: var(--size); opacity: .75; rotate: var(--r);
  animation: float-tilt 5s ease-in-out infinite alternate;
}
.deco.deco--float i:not([style*="--c"]) { --fg: var(--wood-deep); border-radius: 50%; }   /* gold medallions */
.deco.deco--float i.is-far { opacity: .4; filter: blur(1.5px); }
.deco--float b {
  position: absolute; font: 400 var(--size)/1 var(--display); color: var(--gold);
  text-shadow: 0 4px 0 var(--wood-deep); opacity: .55; rotate: var(--r);
}
@keyframes float-tilt { from { transform: rotate(-6deg); } to { transform: rotate(6deg) translateY(-8px); } }
@media (max-width: 759px) { .deco--float { display: none; } }        /* phones: no room beside the text */

/* Riddle board, styled after the game's quiz screens */
.quiz {
  position: relative;
  padding: 12px; border-radius: 26px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, var(--wood-hi), var(--wood) 40%, var(--wood-dark));
  box-shadow: 0 0 0 4px var(--wood-deep), inset 0 2px 0 rgba(255, 220, 160, .5), 0 22px 44px rgba(0, 0, 0, .4);
}
.quiz__panel {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 430px; padding: 18px 18px 20px;
  border-radius: 18px; color: var(--cream);
  background: radial-gradient(ellipse at 50% 0%, #3d6b22, #1c3b15 60%, #112610);
  box-shadow: inset 0 0 0 3px var(--wood-deep), inset 0 0 40px rgba(0, 0, 0, .45);
}
.quiz__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz__title { margin: 0; font-family: var(--display); font-size: 1.5rem; color: var(--gold); text-shadow: 0 2px 0 var(--wood-deep); }
.quiz__gems {
  margin: 0; display: flex; align-items: center; gap: 6px;
  font: 900 1rem/1 var(--body); color: var(--ink);
  padding: 5px 12px 5px 7px; border-radius: 999px;
  background: var(--parch); border: 2px solid var(--gold);
}
.quiz__gems.bump { animation: bump .45s cubic-bezier(.3, 1.8, .5, 1); }
.quiz__gems i, .quiz__progress li {
  display: block; width: 16px; aspect-ratio: 1;
  background: linear-gradient(135deg, #d6ffcf, #34c759 50%, #0f8a3a);
  clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%);
}
.quiz__progress { list-style: none; display: flex; justify-content: center; gap: 8px; }
.quiz__progress li { width: 20px; opacity: .28; filter: grayscale(1); }
.quiz__progress li.done { opacity: 1; filter: none; }
.quiz__progress li.now { opacity: .8; filter: none; animation: twinkle 1s ease-in-out infinite alternate; }
.quiz__step { margin: 0; text-align: center; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--gold); }
.quiz__q {
  margin: 0; padding: 16px 18px;
  text-align: center; font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.25;
  background: linear-gradient(180deg, var(--wood-mid), var(--wood-dark));
  border: 3px solid var(--wood-deep); border-radius: 14px;
  box-shadow: inset 0 2px 0 rgba(255, 214, 150, .35), 0 5px 0 rgba(0, 0, 0, .3);
}
.quiz__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .quiz__answers { grid-template-columns: 1fr; } }
.quiz__a {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 12px 16px;
  text-align: left; font: 800 1.02rem/1.2 var(--body); color: var(--cream);
  border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #6b4a2a, #4a2a12);
  border: 3px solid var(--wood-deep);
  box-shadow: inset 0 2px 0 rgba(255, 214, 150, .3), 0 4px 0 var(--wood-deep);
  transition: transform .12s ease, background .2s;
}
.quiz__a:hover:not(:disabled) { transform: translateY(-2px); background: linear-gradient(180deg, #7d5631, #573216); }
.quiz__a:disabled { cursor: default; }
.quiz__letter { flex: none; font-family: var(--display); font-size: 1.15rem; color: var(--gold); }
.quiz__a.is-right {
  color: #fff; border-color: var(--gold);
  background: linear-gradient(180deg, #8be04f, #3a8a1a);
  box-shadow: 0 0 0 3px var(--wood-deep), 0 0 26px rgba(139, 224, 79, .8);
}
.quiz__a.is-right .quiz__letter { color: #fff; }
.quiz__a.is-wrong { background: linear-gradient(180deg, #e2604a, #a8261a); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.quiz__say { margin: 0; min-height: 1.5em; text-align: center; font-family: var(--display); font-size: 1.3rem; }
.quiz__say.is-right { color: var(--gold); animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
.quiz__say.is-wrong { color: #ffc2b6; }
.quiz__done { display: grid; justify-items: center; gap: 12px; text-align: center; margin: auto 0; }
.quiz__done img { width: min(320px, 100%); border-radius: 14px; box-shadow: 0 0 0 3px var(--wood-deep); }
.quiz__done-title { margin: 0; font-family: var(--display); font-size: 2rem; color: var(--gold); text-shadow: 0 3px 0 var(--wood-deep); }
.quiz__done-text { margin: 0; font-weight: 700; max-width: 34ch; }

/* ---------- See it in action: real screens from the game, in tabs ---------- */
.hero__shot .real-badge, .report__shot .real-badge {
  position: absolute; top: -16px; left: 22px; z-index: 3; rotate: -4deg;
  font: 400 1.05rem/1 var(--display); color: var(--ink);
  padding: 8px 14px; border-radius: 10px;
  background: linear-gradient(180deg, #ffe27a, var(--gold));
  border: 3px solid var(--wood-deep); box-shadow: 0 4px 0 var(--wood-deep);
}
.show { display: grid; gap: 26px; }
.show__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.show__tab {
  font: 400 clamp(1rem, 2.4vw, 1.2rem)/1 var(--display); letter-spacing: .02em;
  color: var(--cream); cursor: pointer;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(0, 0, 0, .28); border: 3px solid rgba(255, 207, 63, .35);
  transition: transform .15s ease, background .2s, border-color .2s;
}
.show__tab:hover { transform: translateY(-2px); border-color: var(--gold); }
.show__tab[aria-selected="true"] {
  color: var(--ink); border-color: #fff1b0;
  background: linear-gradient(180deg, #ffe27a, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 3px var(--wood-deep), 0 5px 0 3px var(--wood-deep);
}
.show__panel { display: grid; gap: 28px; align-items: center; }
.js .show__panel:not(.is-on) { display: none; }
@media (min-width: 960px) { .show__panel { grid-template-columns: 1.45fr 1fr; gap: 44px; } }
.show__main img { aspect-ratio: 16 / 9; object-fit: contain; background: radial-gradient(ellipse at 50% 40%, #2b5820, #112610); }
.show__main img.is-new { animation: show-in .4s ease; }
@keyframes show-in { from { opacity: .15; scale: .97; } }
.show__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.show__thumb {
  display: grid; gap: 6px; padding: 5px; cursor: pointer; text-align: center;
  font: 800 .8rem/1.2 var(--body); color: var(--cream);
  background: rgba(0, 0, 0, .25); border: 2px solid rgba(255, 255, 255, .15); border-radius: 12px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.show__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.show__thumb:hover { transform: translateY(-2px); border-color: rgba(255, 207, 63, .6); }
.show__thumb.is-on { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 207, 63, .45); }
.show__text p:not(.kicker) { font-size: 1.1rem; font-weight: 600; margin: 12px 0 18px; }
.ticks--light { color: var(--cream); }

/* Nuggetwood in numbers */
.stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 56px 0 0; }
.stats > li { flex: 0 0 calc((100% - 24px) / 3); }   /* 3 a row on phones, the last row centred */
@media (min-width: 900px) { .stats > li { flex-basis: calc((100% - 72px) / 7); } }
.stats li {
  display: grid; justify-items: center; gap: 6px; padding: 16px 8px 14px; text-align: center;
  border-radius: 18px; background: rgba(0, 0, 0, .25); border: 2px solid rgba(255, 207, 63, .35);
}
.stats b {
  font: 400 clamp(2.2rem, 5vw, 3rem)/1 var(--display); color: var(--gold);
  text-shadow: 2px 0 0 var(--wood-deep), -2px 0 0 var(--wood-deep), 0 2px 0 var(--wood-deep), 0 -2px 0 var(--wood-deep), 0 4px 0 var(--wood-deep);
}
.stats span { font-weight: 800; font-size: .92rem; color: var(--cream); }
@media (min-width: 640px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* The family: a colour card for each player, in the game's own colours */
.family { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .family { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.fam-board__title { margin: 0 0 16px; text-align: center; font: 400 clamp(1.35rem, 2.8vw, 1.8rem)/1.1 var(--display); color: var(--wood-dark); }   /* the game's first screen */
.fam-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.fam-card {
  display: grid; justify-items: center; gap: 4px; padding: 16px 10px 14px; text-align: center;
  border-radius: 20px; border: 4px solid var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 32%, #fff), #fff 72%);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 65%, #000);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.fam-card:hover { transform: translateY(-5px) rotate(-1.5deg); }
.fam-card__face {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 65%, #000);
}
.fam-card__face img { width: 40px; }
.fam-card b { font: 400 1.05rem/1.1 var(--display); color: var(--ink); }
.fam-card small { font-weight: 800; font-size: .82rem; color: var(--ink-soft); }
.fam-card--add { border-style: dashed; }
.fam-card--add .fam-card__face img { filter: grayscale(1); opacity: .5; }
.family__text p { font-size: 1.12rem; font-weight: 600; }
.family__text .ticks { margin: 0 0 24px; }

/* ---------- Nugget's journey ----------
   Nugget walks a vine trail down the left edge as the page scrolls,
   collecting gold nuggets, and reaches the portal at the bottom.
   Built by script.js. Slim on phones, bigger on wide screens. */
:root { --trail: 30px; } /* width of the trail */
.journey {
  --p: 0; --n: 34px; --len: 300px; --pw: 30px;
  position: fixed; left: 4px; top: 84px; bottom: 12px; z-index: 1;
  width: var(--trail);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.nav.is-open .nav__links { z-index: 2; }
/* Keep page content clear of the trail */
.wrap { padding-left: calc(var(--trail) + 14px); }
.nav .wrap { padding-left: 20px; }
.journey__count {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 100%; padding: 5px 2px 4px;
  font: 900 .66rem/1 var(--body); color: var(--ink);
  border-radius: 10px;
  background: var(--parch); border: 2px solid var(--gold);
  box-shadow: 0 3px 0 var(--wood-deep);
}
.journey__count i, .journey__gem {
  display: block; width: 11px; height: 11px; border-radius: 3px;
  background: linear-gradient(135deg, #fff4a8 0%, #ffcb33 45%, #e08a00 100%);
  border: 1.5px solid #8a4a00;
  rotate: 20deg;
}
.journey__count i { margin-bottom: 2px; }
.journey__count.bump { animation: bump .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 40% { scale: 1.35; } }
.journey__track { position: relative; flex: 1; align-self: stretch; }
.journey__vine, .journey__trail { position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2.5px; border-radius: 3px; }
.journey__vine {
  background: linear-gradient(90deg, var(--leaf-dark), var(--leaf-hi), var(--leaf-dark));
  box-shadow: 0 0 0 2px rgba(31, 77, 12, .5);
}
.journey__vine::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; translate: -50% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120'%3E%3Cg stroke='%231f4d0c' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M19 22C10 22 4 15 3 6c9 0 15 6 16 16z' fill='%236fd13a'/%3E%3Cpath d='M21 82c9 0 15-7 16-16-9 0-15 6-16 16z' fill='%234c962a'/%3E%3C/g%3E%3C/svg%3E") center top / 100% auto repeat-y;
}
.journey__trail {
  background: linear-gradient(90deg, #fff3a6, var(--gold-deep));
  box-shadow: 0 0 8px rgba(255, 207, 63, .8);
  transform-origin: 50% 0; scale: 1 var(--p);
}
.journey__gem {
  position: absolute; left: 50%;
  top: calc(var(--at) * (var(--len) - var(--n)) + var(--n) / 2);
  translate: -50% -50%;
  box-shadow: 0 0 8px rgba(255, 207, 63, .7);
  transition: opacity .3s, scale .3s;
}
.journey__gem.got { animation: collect .45s ease-out forwards; }
@keyframes collect { 40% { scale: 1.9; opacity: 1; } 100% { scale: .2; opacity: 0; } }
.journey__portal {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  width: var(--pw); height: var(--pw); padding: 4px; border-radius: 50%;
  background: repeating-conic-gradient(#9a9c90 0 22deg, #7e8075 22deg 24deg);
  box-shadow: 0 0 0 2px #4f5148, 0 0 12px rgba(106, 240, 122, .7);
  transition: box-shadow .4s;
}
.journey__portal span { display: block; width: 100%; height: 100%; border-radius: 50%; background: url("img/portal.jpg") center / cover; animation: swirl 6s linear infinite; }
.journey.is-home .journey__portal { box-shadow: 0 0 0 2px #4f5148, 0 0 26px 8px rgba(106, 240, 122, .9); }
.journey__nugget {
  position: absolute; left: 50%; top: 0;
  width: var(--n); height: var(--n); margin-left: calc(var(--n) / -2);
  object-fit: contain;
  translate: 0 calc(var(--p) * (var(--len) - var(--n)));
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .45));
  transition: translate .12s linear, scale .45s cubic-bezier(.3, 1.6, .5, 1), opacity .45s;
}
.journey.is-moving .journey__nugget { animation: waddle .3s ease-in-out infinite alternate; }
.journey.is-back .journey__nugget { scale: -1 1; }
.journey.is-home .journey__nugget { scale: .2; opacity: 0; }
@keyframes waddle { from { rotate: -12deg; } to { rotate: 12deg; } }
.journey__bubble {
  position: absolute; left: calc(100% + 8px); bottom: 4px;
  white-space: nowrap;
  font: 400 1rem/1 var(--display); color: var(--ink);
  padding: 7px 12px; border-radius: 12px;
  background: var(--paper); border: 3px solid var(--wood-deep);
  box-shadow: 0 4px 0 var(--wood-deep);
  opacity: 0; scale: .5; transform-origin: 0 50%;
  transition: opacity .3s, scale .45s cubic-bezier(.3, 1.8, .5, 1);
}
.journey.is-home .journey__bubble { opacity: 1; scale: 1; }

@media (min-width: 1100px) {
  /* Equal margins either side; the trail sits in the left one */
  .wrap { max-width: min(var(--wrap), calc(100% - 136px)); padding-left: 20px; }
  .nav .wrap { max-width: var(--wrap); }
  .journey { --n: 50px; --pw: 50px; left: 12px; top: 100px; bottom: 18px; width: 54px; gap: 12px; }
  .journey__count { flex-direction: row; gap: 0; min-width: 0; padding: 4px 9px 4px 6px; font-size: .85rem; border-radius: 999px; }
  .journey__count i { margin: 0 5px 0 0; }
  .journey__vine, .journey__trail { width: 6px; margin-left: -3px; }
  .journey__vine::before { width: 34px; }
  .journey__gem { width: 14px; height: 14px; }
  .journey__portal { padding: 5px; }
  .journey__bubble { left: calc(100% + 10px); bottom: 8px; }
}

/* ---------- Scroll decorations (added by script.js) ---------- */
.section > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco i { position: absolute; display: block; }
.deco--fireflies i {
  width: calc(var(--s) * 10px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffbc2 0 25%, rgba(214, 255, 120, .9) 40%, rgba(214, 255, 120, 0) 70%);
  animation: twinkle 2.8s ease-in-out infinite alternate, drift 9s ease-in-out infinite alternate;
}
.deco--stars i {
  width: calc(var(--s) * 18px); aspect-ratio: 1;
  background: radial-gradient(circle, #fffbe0, var(--gold) 55%, var(--gold-deep));
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 2.4s ease-in-out infinite alternate;
}
.deco--leaves i {
  width: calc(var(--s) * 40px); aspect-ratio: 1;
  background: var(--leaves) no-repeat center / contain;
  opacity: .85;
  animation: sway 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(18px, -26px); } }
@keyframes sway { from { transform: rotate(-18deg); } to { transform: rotate(22deg); } }

/* ---------- Pop-in as things scroll into view ---------- */
.js .reveal {
  opacity: 0; translate: 0 36px; scale: .94;
  transition:
    opacity .5s ease var(--d, 0s),
    translate .75s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s),
    scale .75s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }
/* Section signs swing in like a hanging plaque */
.js .sign.reveal { translate: none; scale: 1; }
.js .sign.reveal .plaque { rotate: -9deg; transform-origin: 50% -40%; transition: rotate 1.1s cubic-bezier(.25, 2.2, .5, 1) .1s; }
.js .sign.reveal.is-in .plaque { rotate: 0deg; }

/* ---------- Contact page ---------- */
.contact-page { padding-top: 70px; min-height: 70vh; }
.contact { display: grid; gap: 44px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.35fr 1fr; gap: 52px; } }
.contact__form {
  display: grid; gap: 18px;
  padding: 30px 28px 32px;
  background: var(--paper);
  border: 3px solid var(--wood-dark); border-radius: 22px;
  box-shadow: 0 8px 0 var(--wood-dark), 0 24px 40px rgba(61, 34, 12, .16);
}
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-size: 1.15rem; color: var(--wood-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 600 1.05rem/1.4 var(--body); color: var(--ink);
  background: #fff;
  border: 3px solid var(--parch-2); border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(76, 150, 42, .22); }
.field small, .form-note { color: var(--ink-soft); font-weight: 600; font-size: .95rem; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--leaf); }
.err { display: none; color: var(--berry); font-weight: 800; font-size: .92rem; margin: 0; }
.was-checked :is(input, select, textarea):invalid { border-color: var(--berry); }
.was-checked .field:has(:invalid) .err,
.was-checked .check-row:has(:invalid) .err { display: block; }
.check-row { display: grid; gap: 6px; }
.hp { position: absolute; left: -9999px; }
.contact__form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 800; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--berry); }
.form-status.is-info { color: var(--wood-dark); }
.sent { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 20px 0; }
.sent img { width: 80px; animation: hop 1s ease-in-out infinite alternate; }
.sent h2 { font-size: 2rem; color: var(--wood-dark); }
.sent p { margin: 0; font-weight: 700; color: var(--ink-soft); }
.contact__side { position: relative; }
.contact__side h2 { font-size: 1.9rem; color: var(--wood-dark); margin-bottom: 18px; }
.faq { display: grid; gap: 14px; }
.faq details {
  padding: 14px 18px;
  background: linear-gradient(180deg, #fff8e2, var(--parch));
  border: 3px solid var(--wood-dark); border-radius: 16px;
  box-shadow: 0 4px 0 var(--wood-dark);
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 1.12rem; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  color: #fff; background: var(--leaf); border: 2px solid var(--leaf-dark);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 2px; font-weight: 600; color: var(--ink-soft); }
.contact__nugget { width: 74px; margin: 26px auto 0; animation: hop 1.2s ease-in-out infinite alternate; }
.side-title { font-size: 1.9rem; color: var(--wood-dark); margin-bottom: 14px; }
@keyframes hop { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-10px) rotate(6deg); } }

/* ---------- Privacy and Terms pages (made from the game's own legal text) ---------- */
.legal-head { padding: 56px 0 24px; }
.legal-head .sign { margin-bottom: 0; }
.legal-head h1.plaque { font-size: clamp(2rem, 5vw, 3rem); }
.legal-body { padding-top: 56px; }
.legal {
  max-width: 820px; margin: 0 auto; padding: 36px 42px 30px; border-radius: 22px;
  background: linear-gradient(180deg, var(--paper), #fff8e6); border: 3px solid var(--wood-dark);
  box-shadow: 0 6px 0 var(--wood-dark), 0 18px 36px rgba(61, 34, 12, .16);
}
.legal p, .legal li { font-size: 1.05rem; line-height: 1.65; font-weight: 600; color: var(--ink-soft); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 6px; }
.legal b { color: var(--ink); }
.legal a { color: var(--berry); font-weight: 800; }
.legal__site { padding: 12px 16px; border-radius: 14px; background: #fff3c4; border: 2px solid var(--gold); }
.legal__toc { margin: 22px 0 8px; padding: 16px 20px; border-radius: 16px; background: rgba(243, 220, 160, .45); border: 2px dashed rgba(90, 47, 16, .3); }
.legal__toc p { margin: 0 0 8px; font: 400 1.15rem/1 var(--display); color: var(--wood-dark); }
.legal__toc ol { margin: 0; padding-left: 1.4em; columns: 2 240px; column-gap: 28px; }
.legal__toc li { font-size: .98rem; line-height: 1.5; break-inside: avoid; }
.legal__toc a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(200, 50, 31, .25); }
.legal__toc a:hover { border-bottom-color: var(--berry); }
.legal__sec { scroll-margin-top: 96px; }
.legal__sec h2 { margin: 34px 0 10px; font-size: clamp(1.35rem, 3vw, 1.65rem); line-height: 1.15; color: var(--wood-dark); }
.legal__sec h3 { margin: 22px 0 8px; font-size: 1.25rem; color: var(--wood-dark); }
.legal__sec--site { margin-top: 30px; padding: 4px 22px 10px; border-radius: 18px; background: #fff3c4; border: 3px solid var(--gold); box-shadow: 0 4px 0 var(--gold-deep); }
.legal__sec--site h2 { margin-top: 18px; }
.legal__sec--part { margin-top: 44px; padding-top: 8px; border-top: 3px dashed rgba(90, 47, 16, .25); }
.legal__sec--kids { padding: 8px 22px 12px; border: 3px solid var(--leaf); border-radius: 18px; background: #f2ffe2; box-shadow: 0 4px 0 var(--leaf-dark); }
.legal__sec--kids h2 { color: var(--leaf-dark); }
.legal__kids-hi { font-family: var(--display); font-size: 1.25rem !important; color: var(--leaf-dark) !important; }
.legal__top { margin: 30px 0 0 !important; text-align: right; }
@media (max-width: 600px) {
  .legal { padding: 24px 18px 20px; border-radius: 16px; }
  .legal p, .legal li { font-size: 1rem; }
  .legal__sec--site, .legal__sec--kids { padding: 4px 14px 8px; }
}

/* ---------- Music: the game's own soundtrack, with on/off and volume ---------- */
/* Top right, just under the sticky menu bar; below the bar's layer so the phone menu covers it */
.music {
  position: fixed; right: 14px; top: 84px; z-index: 45;
  display: flex; align-items: center; gap: 6px; padding: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--wood-mid), var(--wood-dark));
  border: 3px solid var(--wood-deep);
  box-shadow: 0 5px 0 var(--wood-deep), 0 10px 22px rgba(0, 0, 0, .3);
}
.music__btn {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  font-size: 22px; color: var(--wood-deep);
  background: linear-gradient(180deg, #ffe27a, var(--gold) 55%, var(--gold-deep));
  border: 3px solid #fff1b0;
  transition: transform .15s ease;
}
.music__btn:hover { transform: scale(1.06); }
.music__btn::after {                                   /* the "off" slash */
  content: ""; position: absolute; width: 4px; height: 32px; border-radius: 2px;
  background: var(--berry); rotate: 45deg; box-shadow: 0 0 0 2px #fff1b0;
}
.music.is-on .music__btn::after { display: none; }
.music.is-on .music__btn .ic { animation: note-bob .9s ease-in-out infinite alternate; }
@keyframes note-bob { from { transform: translateY(1px) rotate(-8deg); } to { transform: translateY(-2px) rotate(8deg); } }
.music__vol {
  width: 0; margin: 0; opacity: 0; visibility: hidden; accent-color: var(--gold); cursor: pointer;
  transition: width .3s ease, margin .3s ease, opacity .3s ease, visibility 0s linear .3s;
}
.music.is-on .music__vol { width: 110px; margin: 0 10px 0 4px; opacity: 1; visibility: visible; transition: width .3s ease, margin .3s ease, opacity .3s ease; }
@media (max-width: 600px) {
  .music { right: 10px; top: 80px; padding: 4px; }
  .music__btn { width: 40px; height: 40px; font-size: 19px; }
  .music__btn::after { height: 28px; }
  .music.is-on .music__vol { width: 88px; margin: 0 8px 0 2px; }
  .hero { padding-top: 54px; }                          /* keeps the logo clear of the music button */
}

/* ---------- Hero hook ---------- */
.eyebrow {
  margin: 0 0 14px; padding: 8px 18px; rotate: -2deg;
  font: 400 clamp(1rem, 2.6vw, 1.3rem)/1.15 var(--display); letter-spacing: .01em; color: var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7cc, #ffd95a);
  border: 3px solid var(--wood-deep);
  box-shadow: 0 4px 0 var(--wood-deep), 0 0 26px rgba(255, 207, 63, .45);
}

/* ---------- Hero tickets: Free → $4.99 → $19.99 family, on Nugget's trail, each one you can buy from ---------- */
.tickets__title { margin: 0 0 56px; font: 400 clamp(1.15rem, 2.6vw, 1.5rem)/1.2 var(--display); color: var(--gold); text-shadow: 0 2px 0 var(--wood-deep); }
.tickets { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; width: min(920px, 100%); margin: 0 auto 34px; }
.tickets::before {                                     /* the trail joining the tickets */
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%;
  border-top: 4px dotted rgba(255, 207, 63, .8);
}
.tickets li { position: relative; display: flex; }
.tickets li + li::before {                             /* a gold nugget on the trail between two tickets */
  content: ""; position: absolute; z-index: 1; left: -21px; top: 50%; translate: 0 -50%;
  width: 14px; height: 14px; border-radius: 4px; rotate: 45deg;
  background: linear-gradient(135deg, #fff4a8, #ffcb33 45%, #e08a00); border: 2px solid #8a4a00;
}
.ticket {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 30px 16px 16px; text-decoration: none; color: var(--ink);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf0, var(--parch) 55%, var(--parch-2));
  border: 3px solid var(--wood-deep);
  box-shadow: 0 6px 0 var(--wood-deep), 0 18px 34px rgba(0, 0, 0, .4);
  transition: translate .2s ease, box-shadow .2s ease;
}
.ticket:hover { translate: 0 -5px; box-shadow: 0 11px 0 var(--wood-deep), 0 24px 40px rgba(0, 0, 0, .45); }
.ticket:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }
.ticket__step {
  position: absolute; top: -16px; left: 50%; translate: -50% 0; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px;
  font: 400 .98rem/1 var(--display); color: var(--gold); text-shadow: 0 1px 0 var(--wood-deep);
  background: linear-gradient(180deg, var(--wood-mid), var(--wood-dark));
  border: 2px solid var(--wood-deep); box-shadow: 0 3px 0 var(--wood-deep);
}
.ticket__price { order: 1; font: 400 clamp(2.3rem, 4.6vw, 3rem)/1 var(--display); color: var(--leaf-dark); }
.ticket__save {
  order: 2; padding: 5px 12px; rotate: -2deg; border-radius: 999px;
  font: 400 1rem/1 var(--display); color: var(--ink);
  background: linear-gradient(180deg, #ffe27a, var(--gold) 60%, var(--gold-deep));
  border: 2px solid var(--wood-deep); box-shadow: 0 3px 0 var(--wood-deep);
}
.ticket__what { order: 3; margin-bottom: 8px; font-weight: 800; font-size: .92rem; line-height: 1.3; color: var(--ink-soft); }
.ticket__btn { order: 4; margin-top: auto; width: 100%; white-space: normal; }
/* The family ticket: raised, glowing, with Nugget on top */
.ticket--best {
  translate: 0 -14px; padding-top: 34px;
  background: linear-gradient(180deg, #fffbe6, #ffefb8 55%, #ffdd7a);
  box-shadow: 0 0 0 4px var(--gold), 0 6px 0 4px var(--wood-deep), 0 0 50px rgba(255, 207, 63, .55), 0 18px 34px rgba(0, 0, 0, .4);
  animation: ticket-glow 2.4s ease-in-out infinite alternate;
}
.ticket--best:hover { translate: 0 -19px; }
@keyframes ticket-glow {
  to { box-shadow: 0 0 0 4px var(--gold), 0 6px 0 4px var(--wood-deep), 0 0 90px rgba(255, 207, 63, .85), 0 18px 34px rgba(0, 0, 0, .4); }
}
.ticket__flag {
  position: absolute; top: -48px; left: 50%; translate: -50% 0; z-index: 2; rotate: -3deg; white-space: nowrap;
  padding: .4em .9em; border-radius: 8px;
  font: 400 .9rem/1 var(--display); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, #e24a33, var(--berry)); border: 3px solid var(--wood-deep);
}
.ticket__nugget { position: absolute; top: -50px; right: -12px; width: 58px; height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); animation: hop 1.1s ease-in-out infinite alternate; }
.ticket--best .ticket__step { color: var(--ink); text-shadow: none; background: linear-gradient(180deg, #ffe27a, var(--gold) 60%, var(--gold-deep)); }
/* Phones: the tickets stack down a vertical trail, each a compact row with its button */
@media (max-width: 640px) {
  .tickets__title { margin-bottom: 48px; }
  .tickets { grid-template-columns: 1fr; gap: 34px; width: min(420px, 100%); }
  .tickets::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 4px dotted rgba(255, 207, 63, .8); translate: -2px 0; }
  .tickets li + li::before { left: 50%; top: -24px; translate: -50% 0; }
  .ticket { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: center; text-align: left; padding: 26px 16px 14px; }
  .ticket__price { grid-column: 1; grid-row: 1 / span 2; font-size: 2.3rem; }
  .ticket__save, .ticket__what { grid-column: 2; justify-self: start; }
  .ticket__btn { grid-column: 1 / -1; margin-top: 10px; }
  .ticket__step { left: 16px; translate: none; }
  .ticket--best, .ticket--best:hover { translate: none; }
  .ticket__flag { top: -16px; left: auto; right: 12px; translate: none; rotate: 4deg; }
  .ticket__nugget { display: none; }
  .tickets li:last-child { margin-top: 6px; }
}

/* ---------- Hero trailer: real screens that change on their own ---------- */
.trailer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 14px; }
.trailer__screen { grid-column: 1 / -1; width: 100%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 15px; box-shadow: 0 0 0 3px var(--wood-deep); background: var(--sky-deep); }
.trailer .trailer__slide {
  position: absolute; inset: 0; height: 100%; object-fit: cover;
  border-radius: 0; box-shadow: none;
  opacity: 0; scale: 1.08;
  transition: opacity .8s ease, scale 0s linear .8s;     /* resets its zoom once it has faded out */
}
.trailer .trailer__slide.is-on { opacity: 1; scale: 1; transition: opacity .8s ease, scale 6s ease-out; }
.trailer__cap {
  margin: 0; padding: 12px 6px 4px; text-align: left;
  font: 400 clamp(1.05rem, 2.6vw, 1.5rem)/1.1 var(--display); color: var(--gold);
  text-shadow: 0 2px 0 var(--wood-deep);
}
.trailer__cap.is-new { animation: cap-in .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cap-in { from { opacity: 0; translate: 0 10px; } }
.trailer__dots { display: flex; align-items: center; gap: 8px; padding: 12px 6px 4px; }
.trailer__dots button {
  position: relative; overflow: hidden;
  width: 14px; height: 14px; padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--parch-2); border: 2px solid var(--wood-deep);
  transition: width .3s ease;
}
.trailer__dots button::before { content: ""; position: absolute; inset: -10px -4px; }   /* bigger tap area */
.trailer__dots button[aria-current] { width: 40px; background: var(--wood-deep); }
.trailer__dots button[aria-current]::after {
  content: ""; position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(180deg, #ffe27a, var(--gold));
  animation: dot-fill var(--slide, 4.5s) linear both;
}
.trailer.is-still .trailer__dots button[aria-current]::after { animation: none; }
@keyframes dot-fill { from { scale: 0 1; } }
@media (max-width: 520px) {
  .trailer { grid-template-columns: 1fr; justify-items: center; }
  .trailer__cap { text-align: center; padding-bottom: 0; }
}

/* ---------- Weekly adventure report: the game's real grown-ups' report, one per player (grown-ups too) ---------- */
.report { display: grid; gap: 40px; align-items: center; margin: 90px 0 0; }
@media (min-width: 900px) { .report { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.report__text h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; color: var(--gold); text-shadow: 0 3px 0 var(--wood-deep); margin-bottom: 12px; }
.report__text > p:not(.kicker) { font-size: 1.12rem; font-weight: 600; margin: 0 0 18px; }
.report__list { list-style: none; display: grid; gap: 14px; margin: 0 0 20px; }
.report__list li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; font-weight: 600; }
.report__list span {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 1.35rem;
  background: linear-gradient(180deg, #fffaf0, var(--parch-2)); border: 3px solid var(--gold); box-shadow: 0 0 0 2px var(--wood-deep);
}
.report__list b { display: block; margin-bottom: 2px; font: 400 1.2rem/1.1 var(--display); color: var(--gold); text-shadow: 0 2px 0 var(--wood-deep); }
.report__text .report__note { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 800; }
.report__note .ic { flex: none; font-size: 1.1rem; color: #fff; background: var(--leaf); border-radius: 50%; padding: 2px; box-shadow: 0 0 0 2px var(--leaf-dark); }
.report__fig figcaption { margin-top: 16px; text-align: center; font-weight: 700; font-style: italic; color: var(--cream); opacity: .85; }

/* ---------- Why parents say yes: a fair comparison ---------- */
.compare { display: grid; gap: 12px; max-width: 1000px; margin: 0 auto; }
.compare__row { display: grid; grid-template-columns: minmax(120px, .7fr) 1.25fr 1fr; gap: 12px; }
.compare__row > span { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; }
.compare__topic { font: 400 1.2rem/1.1 var(--display); color: var(--wood-dark); }
.compare__us {
  font-weight: 800; color: var(--ink);
  background: linear-gradient(180deg, #f2ffe2, #cdeeb0);
  border: 3px solid var(--leaf-dark); box-shadow: 0 4px 0 var(--leaf-dark);
}
.compare__them { font-weight: 700; color: var(--ink-soft); background: rgba(122, 67, 24, .07); border: 3px dashed rgba(122, 67, 24, .3); }
.compare i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 900 .95rem/1 var(--body); font-style: normal; }
.compare__us i { color: #fff; background: var(--leaf); border: 2px solid var(--leaf-dark); }
.compare__them i { color: #a5513e; background: #efdcc6; }
.compare__head > span { background: none; border: 0; box-shadow: none; justify-content: center; text-align: center; padding-block: 0 4px; }
.compare__head .compare__us {
  position: relative; font: 400 clamp(1.3rem, 2.6vw, 1.7rem)/1 var(--display); color: var(--gold);
  padding: 16px 12px 14px 74px; border-radius: 16px;
  background: linear-gradient(180deg, var(--wood-mid), var(--wood-dark)); border: 3px solid var(--wood-deep);
  box-shadow: 0 4px 0 var(--wood-deep); text-shadow: 0 2px 0 var(--wood-deep);
}
.compare__head .compare__us img { position: absolute; left: 14px; bottom: -4px; width: 48px; animation: hop 1.2s ease-in-out infinite alternate; }
.compare__head .compare__them { font-weight: 800; font-size: .95rem; color: var(--ink-soft); }
.compare__cta { margin: 40px 0 0; }
@media (max-width: 700px) {
  .compare__head { display: none; }
  .compare { gap: 22px; }
  .compare__row { grid-template-columns: 1fr; gap: 8px; }
  .compare__row > .compare__topic { padding: 0 4px; }
}

/* ---------- Prices: value and reassurance ---------- */
.price__value {
  margin: -4px 0 14px; padding: 6px 14px; rotate: -2deg;
  font: 400 1.1rem/1 var(--display); color: var(--ink);
  border-radius: 999px; background: linear-gradient(180deg, #ffe27a, var(--gold) 60%, var(--gold-deep));
  border: 2px solid var(--wood-deep); box-shadow: 0 3px 0 var(--wood-deep);
}
.price--best { animation: best-glow 2.6s ease-in-out infinite alternate; }
@keyframes best-glow {
  to { box-shadow: 0 0 0 4px var(--gold), 0 8px 0 4px var(--wood-deep), 0 0 80px rgba(255, 207, 63, .6), 0 22px 40px rgba(0, 0, 0, .4); }
}
.assure { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 44px auto 0; max-width: 900px; }
.assure li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px;
  font-weight: 800; color: var(--cream); border-radius: 999px;
  background: rgba(0, 0, 0, .22); border: 2px solid rgba(255, 207, 63, .55);
}
.assure .ic { font-size: 1.1rem; color: #fff; background: var(--leaf); border-radius: 50%; padding: 2px; box-shadow: 0 0 0 2px var(--leaf-dark); }
.finale .assure { margin-top: 30px; }

/* ---------- Questions parents ask ---------- */
.faq--grid { max-width: 820px; margin: 0 auto; }
.faq__cta { margin: 40px 0 0; }

/* ---------- Finale ---------- */
.finale .cta-row { margin-bottom: 0; }

/* ---------- Phones and tablets: a "Play free" bar once the hero has scrolled away ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 12px; z-index: 44;
  width: min(520px, calc(100% - 24px)); translate: -50% calc(100% + 30px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  font: 400 1.05rem/1.1 var(--display); color: var(--gold);
  background: linear-gradient(180deg, var(--wood-mid), var(--wood-dark));
  border: 3px solid var(--wood-deep);
  box-shadow: 0 5px 0 var(--wood-deep), 0 14px 30px rgba(0, 0, 0, .35);
  text-shadow: 0 2px 0 var(--wood-deep);
  transition: translate .45s cubic-bezier(.34, 1.56, .64, 1);
}
.sticky-cta.is-shown { translate: -50% 0; }
.sticky-cta .btn { box-shadow: 0 0 0 3px var(--wood-deep), 0 4px 0 3px var(--wood-deep), inset 0 3px 0 rgba(255, 255, 255, .3); }
@media (min-width: 1200px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .trailer .trailer__slide, .trailer .trailer__slide.is-on { scale: 1; transition: none; }
  .trailer__cap.is-new, .price--best, .compare__head .compare__us img { animation: none; }
  .try__nugget, .try__bubble, .try__arrow, .learn__jump span { animation: none; }
  .ticket--best, .ticket__nugget { animation: none; }
  .ticket { transition: none; }
  .sticky-cta { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .music.is-on .music__btn .ic { animation: none; }
  .nuggets i, .portal span, .journey__portal span, .deco i, .sent img, .contact__nugget { animation: none; }
  .journey.is-moving .journey__nugget { animation: none; }
  .btn, .video, .video__play, .journey__nugget { transition: none; }
}
