/* The Nuggetwood Chronicles: the short storybook home page (English and French share this file).
   Top: the game world with the real game on a wooden screen. Then one coloured band per part, as on
   the first site (sky, parchment, forest), with a few nuggets drifting at different depths. */
: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;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1100px; --trail: 30px;
  --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; }
html { overflow-x: clip; }
body { margin: 0; overflow-x: clip; font-family: var(--body); color: var(--ink); line-height: 1.5; background: var(--sky-deep); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
.ic { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px 0 calc(var(--trail) + 14px); }
@media (min-width: 1100px) { .wrap { max-width: min(var(--wrap), calc(100% - 136px)); padding-left: 20px; } }

/* ---------- gold lettering and the wooden sign over each part (as on the first site) ---------- */
.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; }
.sign { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 46px; }
.plaque { position: relative; display: inline-block; padding: .36em .95em .5em; font-size: clamp(1.7rem, 4.4vw, 2.8rem);
  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); }
.subline { 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); }

/* ---------- the wooden menu tab, always at the top ---------- */
.topbar { position: fixed; z-index: 60; top: 0; left: 50%; transform: translateX(-50%); max-width: calc(100% - 16px);
  display: flex; align-items: center; gap: 2px; padding: 6px 10px 8px; border-radius: 0 0 16px 16px;
  background: linear-gradient(#9a5a24, #7a4318 60%, #5a2f10); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 3px var(--wood-deep), 0 6px 0 3px rgba(0,0,0,.25);
  overflow-x: auto; scrollbar-width: none; }
.topbar::-webkit-scrollbar { display: none; }
.topbar a { flex: none; text-decoration: none; color: var(--parch); font-family: var(--display); font-size: 1rem; line-height: 1; padding: 9px 11px; border-radius: 10px; white-space: nowrap; text-shadow: 0 2px 0 var(--wood-deep); }
.topbar a:hover { background: rgba(255,207,63,.16); color: var(--gold); }
.topbar .go { background: linear-gradient(#6fd13a, #4c962a); color: #fff; box-shadow: 0 0 0 2px var(--wood-deep), inset 0 -3px 0 rgba(0,0,0,.2); margin: 0 4px; }
.topbar .short { display: none; }
.topbar .go:hover { background: linear-gradient(#7fe048, #57a832); color: #fff; }
/* the EN / FR switch: both sides always visible, the current one lit */
.lang { flex: none; display: inline-flex; margin-left: 6px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 2px rgba(255,207,63,.45); }
.lang a, .lang span { padding: 6px 11px; border-radius: 999px; font-family: var(--display); font-size: .95rem; line-height: 1; text-shadow: none; }
.lang span { color: var(--wood-deep); background: linear-gradient(180deg, #ffe27a, var(--gold) 55%, var(--gold-deep)); }
.lang a { color: var(--parch); }
.lang a:hover { background: rgba(255,207,63,.2); color: var(--gold); }

/* ---------- the top: the game world, the logo and the real game ---------- */
.scene { position: relative; z-index: 2; padding: 78px 0 64px; overflow: clip; text-align: center; }
.scene__bg { position: absolute; inset: -8% 0 0; z-index: -2; background: url("img/scroll/scene.jpg") center 22% / cover no-repeat; will-change: translate; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 26%, transparent 0, rgba(15,58,100,.25) 70%), linear-gradient(transparent 60%, rgba(22,83,128,.75) 90%, var(--sky-hi)); }
.logo { position: relative; z-index: 3; display: block; width: clamp(220px, 24vw, 320px); margin: 0 auto 4px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.logo img { display: block; width: 100%; height: auto; }
.logo sup { position: absolute; right: -4px; bottom: 16%; color: #fff; font: 900 clamp(.8rem, 1.2vw, 1.05rem) var(--body); text-shadow: 0 2px 0 var(--wood-deep); }
/* floating nuggets in the sky, at different depths (script.js moves them as the page scrolls) */
.nuggets { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.nugget-i, .pn { position: absolute; display: block; 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; }
.nugget-i.near { z-index: 2; filter: blur(2.5px); opacity: .9; }
@keyframes float { from { transform: translateY(0) rotate(-12deg); } to { transform: translateY(-18px) rotate(14deg); } }
/* the children stand on the ground beside the screen (whole, feet and all) */
.kid { position: absolute; z-index: 5; height: auto; pointer-events: none; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); }
.kid--girl { width: 224px; left: calc(50% - 650px); bottom: 26px; }
.kid--boy { width: 196px; right: calc(50% - 640px); bottom: 26px; }

/* the wooden screen with the real game */
.tvrow { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr auto; align-items: start; max-width: 860px; margin: 8px auto 0; padding: 0 20px; text-align: left; }
.woodframe { position: relative; border-radius: 16px; padding: 16px;
  background: repeating-linear-gradient(92deg, rgba(0,0,0,0) 0 22px, rgba(63,32,10,.18) 22px 24px, rgba(0,0,0,0) 24px 48px), linear-gradient(#7a4318, #5a2f10 60%, #4a260c);
  box-shadow: inset 0 0 0 3px #9a5a24, inset 0 0 0 7px var(--wood-deep), 0 0 0 3px var(--wood-deep), 0 10px 0 3px rgba(0,0,0,.3), 0 22px 40px rgba(0,0,0,.35); }
.bolt { position: absolute; width: 20px; height: 20px; border-radius: 50%; z-index: 2; background: radial-gradient(circle at 35% 30%, #fff3a6, var(--gold) 45%, #b8741a); box-shadow: 0 0 0 3px var(--wood-deep); }
.bolt.a { left: -8px; top: -8px; } .bolt.b { right: -8px; top: -8px; } .bolt.c { left: -8px; bottom: -8px; } .bolt.d { right: -8px; bottom: -8px; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px #1a0d04; }
.screen video, .screen iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.live { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .06em; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #ff4b3a; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,75,58,.7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255,75,58,0); } }
.playhere { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; gap: 12px; border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit; background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.playhere .ring { width: clamp(70px, 11vw, 104px); height: clamp(70px, 11vw, 104px); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3a6, var(--gold) 50%, var(--gold-deep)); box-shadow: 0 0 0 5px var(--wood-deep), 0 0 0 9px rgba(255,255,255,.55), 0 10px 24px rgba(0,0,0,.5); transition: transform .2s; }
.playhere .ring svg { width: 42%; margin-left: 8%; }
.playhere:hover .ring { transform: scale(1.07); }
.playhere b { font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem, 2.3vw, 1.5rem); text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.7); }
.screenbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 12px; color: var(--parch); font-weight: 800; font-size: .92rem; }
.screenbar .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 10px; border: 2px solid rgba(255,207,63,.55); background: rgba(0,0,0,.25); color: var(--gold); font: 800 .88rem var(--body); text-decoration: none; cursor: pointer; }
.chip:hover { background: rgba(255,207,63,.14); }
.rail { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 0 -6px; padding: 14px 10px 14px 16px; border-radius: 0 16px 16px 0; background: linear-gradient(90deg, #4a260c, #6a3814); box-shadow: inset 0 0 0 3px #9a5a24, 0 0 0 3px var(--wood-deep), 0 8px 0 3px rgba(0,0,0,.28); }
.rail a { display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--parch); font-family: var(--display); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; }
.rail a span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem; background: linear-gradient(var(--paper), var(--parch-2)); box-shadow: 0 0 0 3px var(--wood-deep), inset 0 -4px 0 rgba(122,67,24,.25); transition: transform .15s; }
.rail a:hover span { transform: translateY(-2px) rotate(-4deg); }
.plank { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; width: min(760px, calc(100% - 40px)); margin: 24px auto 0; padding: 16px 26px; border-radius: 18px; text-decoration: none; text-align: center;
  background: repeating-linear-gradient(178deg, rgba(0,0,0,0) 0 12px, rgba(31,77,12,.18) 12px 13px, rgba(0,0,0,0) 13px 26px), linear-gradient(#7fe048, #4c962a 60%, #3d7d1f);
  box-shadow: 0 0 0 4px var(--wood-deep), inset 0 0 0 3px rgba(255,255,255,.35), 0 9px 0 4px rgba(0,0,0,.25); color: #fff; transition: transform .15s; }
.plank:hover { transform: translateY(-2px); }
.plank b { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 3.2vw, 2.05rem); line-height: 1.05; text-shadow: 0 3px 0 #1f4d0c; }
.plank small { flex-basis: 100%; font-weight: 800; font-size: .98rem; color: #f2ffe0; text-shadow: 0 1px 0 #1f4d0c; }
.trust { position: relative; z-index: 4; text-align: center; margin: 26px 0 0; }
.trustpill { display: inline-flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 999px; background: linear-gradient(#165380, #0f3a64); border: 3px solid var(--gold); box-shadow: 0 6px 0 var(--wood-deep), 0 0 26px rgba(255,207,63,.45); color: var(--cream); position: relative; overflow: hidden; text-align: left; }
.trustpill::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.trustpill .lock { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; flex: none; background: radial-gradient(circle at 35% 30%, #fff3a6, var(--gold) 60%, var(--gold-deep)); box-shadow: 0 0 0 3px var(--wood-deep); }
.trustpill b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.12rem; color: var(--gold); line-height: 1.1; }
.trustpill small { display: block; font-weight: 800; font-size: .82rem; line-height: 1.3; }

/* ---------- the coloured bands (as on the first site) ---------- */
.section { position: relative; padding: 84px 0 92px; 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); }
.section--forest::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 32px; z-index: 1;
  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[id] { scroll-margin-top: 58px; }
.alias { display: block; position: absolute; top: 0; height: 0; scroll-margin-top: 58px; }   /* old section names (#parents, #faq…) land on the part that now holds them */
/* a few things drift behind each band, each at its own depth: nuggets, fireflies, stars, leaves */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco i { position: absolute; display: block; }
.deco .pn { width: calc(var(--s) * 22px); height: calc(var(--s) * 22px); opacity: .9; }
.deco--fireflies i:not(.pn) { 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:not(.pn) { 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:not(.pn) { 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 they 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; }
.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; }

/* ---------- prices ---------- */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; max-width: 680px; margin: 0 auto; }
.freelink { position: relative; z-index: 4; text-align: center; margin: 12px auto 0; font-weight: 800; font-size: 1.02rem; }
.freelink a { display: inline-block; line-height: 1.4; max-width: 92vw; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; background: rgba(255,255,255,.75); padding: 4px 12px; border-radius: 999px; }
.ticket { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 22px 16px 18px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--paper), #fdf1cf); box-shadow: 0 0 0 3px var(--wood-hi), 0 0 0 6px var(--wood-deep), 0 10px 0 6px rgba(0,0,0,.25); transition: transform .15s; }
.ticket:hover { transform: translateY(-4px); }
.ticket .step { font-family: var(--display); font-size: 1rem; color: var(--wood-mid); text-transform: uppercase; letter-spacing: .04em; }
.ticket .price { font-family: var(--display); font-size: 2.9rem; line-height: 1; color: var(--leaf-dark); margin: 8px 0 6px; }
.ticket .what { font-weight: 800; color: var(--ink-soft); margin-bottom: 8px; }
.ticket .save { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; background: #ffe6a6; color: var(--wood-dark); font-weight: 900; font-size: .9rem; }
.ticket .btn { margin-top: auto; display: inline-block; padding: 10px 18px; border-radius: 12px; font-family: var(--display); font-size: 1.05rem; color: #fff; background: linear-gradient(#7fe048, #4c962a); box-shadow: 0 0 0 3px var(--wood-deep), inset 0 -3px 0 rgba(0,0,0,.2); text-shadow: 0 2px 0 #1f4d0c; }
.ticket .btn.gold-btn { background: linear-gradient(#fff3a6, var(--gold) 50%, var(--gold-deep)); color: var(--wood-deep); text-shadow: none; }
.ticket .btn.light { background: linear-gradient(#fff, var(--parch-2)); color: var(--wood-deep); text-shadow: none; }
.ticket.best { background: linear-gradient(#fff6d3, #ffe7a1); box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px var(--wood-deep), 0 10px 0 6px rgba(0,0,0,.25), 0 0 30px rgba(255,207,63,.6); }
.ticket .flag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; padding: 5px 14px; border-radius: 10px; background: linear-gradient(#e2452f, #b02a18); color: #fff; font-family: var(--display); font-size: .95rem; box-shadow: 0 0 0 3px var(--wood-deep); }
.ticket .tnug { position: absolute; right: -14px; top: -26px; width: 52px; height: auto; transform: rotate(14deg); filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.howbuy { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 34px auto 14px; padding: 0; }
.howbuy li { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: .95rem; padding: 7px 15px 7px 8px; border-radius: 999px; background: rgba(15,58,100,.6); border: 2px solid rgba(255,207,63,.5); color: var(--cream); }
.howbuy b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--wood-deep); }
.note { text-align: center; margin: 6px auto 0; max-width: 720px; font-weight: 800; }
.section--sky .note { color: var(--gold-hi); }
.note small { display: block; margin-top: 6px; font-weight: 700; font-size: .92rem; color: var(--cream); opacity: .9; }

/* ---------- two-column parts ---------- */
.row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(22px, 4vw, 46px); align-items: center; }
.row.flip { grid-template-columns: 1fr 1.15fr; }
.woodframe.small { padding: 12px; border-radius: 14px; }
.woodframe.small .bolt { width: 16px; height: 16px; }
.slides { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px #1a0d04; }
.slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s; }
.slides figure.on { opacity: 1; }
.slides img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slides figcaption { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; padding: 6px 16px 7px; border-radius: 10px; background: linear-gradient(#9a5a24, #7a4318); border: 2px solid var(--gold); color: var(--gold); font-family: var(--display); font-size: clamp(.9rem, 1.8vw, 1.1rem); text-shadow: 0 2px 0 var(--wood-deep); box-shadow: 0 0 0 2px var(--wood-deep); }
.dots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: #d8c28e; box-shadow: inset 0 2px 0 rgba(0,0,0,.12); }
.dots button[aria-current="true"] { background: radial-gradient(circle at 35% 30%, #fff3a6, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 0 0 2px var(--wood-deep); }
.lead { margin: 0 0 18px; font-weight: 800; font-size: 1.12rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; font-weight: 700; line-height: 1.35; }
.ticks li > span:first-child { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; background: var(--paper); box-shadow: 0 0 0 3px var(--gold); }
.ticks b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.22rem; letter-spacing: .01em; }
.section--parch .ticks b { color: var(--wood-dark); } .section--parch .ticks li { color: var(--ink-soft); }
.section--sky .ticks b, .section--forest .ticks b { color: var(--gold); }

/* ---------- an app that isn't an app ---------- */
.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 50px; }
.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(0,0,0,.35); }
.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); }
.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); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 24px 22px 22px; border: 3px solid var(--wood-dark); border-radius: 20px; color: var(--ink); background: linear-gradient(180deg, #fff8e2, var(--parch)); box-shadow: 0 6px 0 var(--wood-deep), 0 16px 30px rgba(0,0,0,.35); }
.card h3 { font-size: 1.35rem; margin: 14px 0 0; color: var(--wood-dark); }
.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); }

/* ---------- setup videos ---------- */
.toggles { display: grid; gap: 12px; margin: 8px 0 0; max-width: 380px; }
.toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-radius: 12px; cursor: pointer; text-align: left; font: 400 1.08rem var(--display); color: var(--wood-deep); letter-spacing: .02em;
  background: linear-gradient(#fff, var(--parch-2)); box-shadow: 0 0 0 3px var(--wood-deep), inset 0 -4px 0 rgba(122,67,24,.2); }
.toggle small { margin-left: auto; font: 800 .82rem var(--body); color: var(--ink-soft); }
.toggle[aria-pressed="true"] { background: linear-gradient(#fff3a6, var(--gold) 55%, var(--gold-deep)); }
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px #1a0d04; }
.vid video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- our promise ---------- */
.seals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; justify-items: center; }
.seal { display: grid; place-items: center; align-content: center; gap: 2px; width: 112px; height: 112px; border-radius: 50%; text-align: center; padding: 8px;
  background: radial-gradient(circle at 35% 30%, #fff8d2, #ffe08a 55%, #f2b13a); box-shadow: 0 0 0 4px var(--wood-deep), 0 0 0 7px var(--gold), 0 0 0 9px var(--wood-deep), 0 8px 0 9px rgba(0,0,0,.2); }
.seal:nth-child(3n+2) { transform: rotate(4deg); } .seal:nth-child(3n) { transform: rotate(-4deg); }
.seal span { font-size: 1.7rem; line-height: 1; }
.seal b { font-family: var(--display); font-weight: 400; font-size: .92rem; line-height: 1.05; color: var(--wood-deep); }
.keyh { font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--gold); margin: 0 0 16px; }
/* why parents say yes: Nuggetwood next to many games kids ask for */
.cmp { max-width: 900px; margin: 54px auto 0; padding: 22px 24px 18px; border-radius: 22px; color: var(--ink); background: linear-gradient(180deg, #fff8e2, var(--parch)); border: 3px solid var(--wood-dark); box-shadow: 0 6px 0 var(--wood-deep), 0 16px 30px rgba(0,0,0,.3); }
.cmp__title { text-align: center; font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--wood-dark); margin: 0 0 14px; }
.cmp__head, .cmp__row { display: grid; grid-template-columns: 1fr 1.35fr 1.35fr; gap: 10px; align-items: center; }
.cmp__head { padding: 0 0 8px; font-family: var(--display); font-size: 1.08rem; }
.cmp__head .cmp__us { color: var(--leaf-dark); } .cmp__head .cmp__them { color: var(--ink-soft); }
.cmp__row { padding: 10px 0; border-top: 2px dashed rgba(122,67,24,.25); align-items: start; }
.cmp__what { font-family: var(--display); font-size: 1.08rem; color: var(--wood-dark); }
.cmp__us, .cmp__them { display: flex; gap: 8px; align-items: flex-start; font-weight: 800; line-height: 1.3; }
.cmp__row .cmp__us { color: var(--leaf-dark); }
.cmp__row .cmp__them { color: #8a6a4a; font-weight: 700; }
.cmp__row i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: .85rem; }
.cmp__us i { background: var(--leaf); color: #fff; box-shadow: 0 0 0 2px var(--leaf-dark); }
.cmp__them i { background: #e9d6b0; color: #9a3a22; box-shadow: 0 0 0 2px #c9a46e; }
.manualcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin: 50px auto 0; max-width: 900px; padding: 20px 24px; border-radius: 20px; color: var(--ink);
  background: linear-gradient(180deg, #fff8e2, var(--parch)); border: 3px solid var(--wood-dark); box-shadow: 0 6px 0 var(--wood-deep), 0 16px 30px rgba(0,0,0,.3); }
.manualcard p { margin: 0; flex: 1 1 360px; font-weight: 700; color: var(--ink-soft); }
.manualcard b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--wood-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; font: 400 1.12rem var(--display); color: #fff;
  background: linear-gradient(#7fe048, #4c962a 60%, #3d7d1f); box-shadow: 0 0 0 3px var(--wood-deep), inset 0 -4px 0 rgba(0,0,0,.2), 0 6px 0 3px rgba(0,0,0,.18); text-shadow: 0 2px 0 #1f4d0c; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--parch { color: var(--wood-deep); text-shadow: none; background: linear-gradient(#fff, var(--parch-2)); }

/* ---------- contact: the form (it opens the visitor's email app, message ready) ---------- */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }
.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: 140px; }
.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); }
.side { display: grid; gap: 16px; padding: 24px; border-radius: 20px; background: linear-gradient(180deg, #fff8e2, var(--parch)); border: 3px solid var(--wood-hi); box-shadow: 0 6px 0 rgba(90,47,16,.25); }
.side .mail { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--leaf-dark); word-break: break-word; }
.side p { margin: 0; font-weight: 700; color: var(--ink-soft); }
.side .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 3; padding: 30px 16px 34px; text-align: center; color: var(--parch); font-weight: 800; font-size: .92rem;
  background: repeating-linear-gradient(92deg, rgba(0,0,0,0) 0 22px, rgba(0,0,0,.12) 22px 24px, rgba(0,0,0,0) 24px 48px), linear-gradient(#5a2f10, #3f200a); box-shadow: 0 -4px 0 var(--wood-deep), 0 -8px 0 #9a5a24; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 10px; }
.foot nav a { color: var(--gold); text-decoration: none; font-family: var(--display); font-weight: 400; font-size: 1.02rem; }
.foot nav a:hover { text-decoration: underline; }
.foot .credits { margin: 0 0 12px; font-size: .95rem; line-height: 1.6; color: var(--cream); }
.foot .credits b { color: var(--gold); font-weight: 900; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 160%); visibility: hidden; padding: 12px 20px; border-radius: 14px; background: var(--wood-deep); color: var(--gold); font-weight: 900; box-shadow: 0 0 0 3px var(--gold); transition: transform .3s, visibility .3s; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Nugget's trail down the left edge (as on the first site) ---------- */
.journey { --p: 0; --n: 34px; --len: 300px; --pw: 30px; position: fixed; left: 4px; top: 84px; bottom: 12px; z-index: 40; width: var(--trail); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.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; pointer-events: auto; cursor: grab; touch-action: none; }
.journey.is-drag .journey__track { cursor: grabbing; }
.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; }
@keyframes swirl { to { rotate: -360deg; } }
.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) {
  .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; }
}

/* ---------- the page loader: Nugget opens the portal (intro.js, as on the first site) ---------- */
.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; }
.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; }
.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; } }
.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; }
.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; } }
.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; }
.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; }

/* ---------- smaller screens ---------- */
@media (max-width: 1320px) {   /* the children move up beside the logo */
  .kid { bottom: auto; top: 96px; }
  .kid--girl { width: 150px; left: max(70px, calc(50% - 330px)); }
  .kid--boy { width: 132px; right: max(16px, calc(50% - 320px)); }
}
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .tvrow { grid-template-columns: 1fr; }
  .rail { flex-direction: row; justify-content: space-around; margin: -6px 0 0; padding: 14px 8px 12px; border-radius: 0 0 16px 16px; }
  .rail a span { width: 46px; height: 46px; font-size: 1.3rem; }
  .row, .row.flip { grid-template-columns: 1fr; }
  .row .first { order: -1; }
  .tickets { grid-template-columns: 1fr; max-width: 420px; gap: 26px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { left: 6px; right: 6px; transform: none; max-width: none; justify-content: flex-start; border-radius: 0 0 14px 14px; }
  .topbar a { font-size: .92rem; padding: 8px 9px; }
  .topbar .wide, .topbar .long { display: none; }
  .topbar .short { display: inline; }
  .scene { padding: 64px 0 46px; }
  .scene .tvrow, .scene .plank, .scene .trust { margin-left: calc(var(--trail) + 6px); }
  .tvrow { padding: 0 10px 0 6px; }
  .plank { width: auto; margin-right: 10px; padding: 14px 16px; }
  .logo { width: min(56vw, 250px); }
  .kid { top: 84px; }
  .kid--girl { width: 19vw; max-width: 92px; left: calc(var(--trail) + 4px); }
  .kid--boy { width: 17vw; max-width: 82px; right: 4px; }
  .woodframe { padding: 10px; border-radius: 12px; }
  .bolt { width: 14px; height: 14px; }
  .bolt.a, .bolt.c { left: -5px; } .bolt.b, .bolt.d { right: -5px; } .bolt.a, .bolt.b { top: -5px; } .bolt.c, .bolt.d { bottom: -5px; }
  .screenbar { font-size: .84rem; }
  .section { padding: 64px 0 70px; }
  .sign { margin-bottom: 34px; }
  .seals { gap: 14px 4px; }
  .seal { width: 92px; height: 92px; } .seal span { font-size: 1.4rem; } .seal b { font-size: .78rem; }
  .cards { gap: 12px; } .card { padding: 16px 14px; } .card h3 { font-size: 1.05rem; } .badge { width: 44px; height: 44px; font-size: 22px; }
  .contact__form { padding: 22px 16px 24px; }
  .deco .pn { display: none; }
  .cmp { padding: 18px 14px 12px; }
  .cmp__head { grid-template-columns: 1fr 1fr; } .cmp__head > span:first-child { display: none; }
  .cmp__row { grid-template-columns: 1fr 1fr; gap: 6px 10px; } .cmp__what { grid-column: 1 / -1; }
  .cmp__us, .cmp__them { font-size: .92rem; }   /* no side margins on a phone: the drifting nuggets would sit on the words */
}
@media (prefers-reduced-motion: reduce) { .nugget-i, .pn, .trustpill::after, .live i, .deco i { animation: none; } }

/* "Opening… one moment": the game is a big download, so every way into it says so at once */
.going { position: fixed; left: 50%; bottom: 22px; z-index: 95; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 14px; background: var(--wood-deep); color: var(--cream); font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.35); transform: translate(-50%, 160%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.going.on { transform: translate(-50%, 0); visibility: visible; }
.going i, .ticket.is-going .btn i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: nw-spin .8s linear infinite; }
.ticket.is-going .btn { display: inline-flex; align-items: center; gap: 8px; }
@keyframes nw-spin { to { transform: rotate(360deg); } }
/* WhatsApp: a round button in the corner, and a line under the email address */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; text-decoration: none; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0,0,0,.35); transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.07); }
.wa-float .ic { width: 32px; height: 32px; }
.is-intro .wa-float { display: none; }
@media (max-width: 560px) { .wa-float { width: 50px; height: 50px; right: 12px; bottom: 12px; } .wa-float .ic { width: 28px; height: 28px; } }
.btn--wa { background: linear-gradient(#3fe07c, #1fae55); }
.wa-side { display: grid; gap: 10px; justify-items: start; padding-top: 14px; border-top: 2px dashed rgba(122,67,24,.3); }
.wa-side small { font-weight: 800; color: var(--ink-soft); }

/* "Chat with us": the helper with ready-made answers (chat.js) */
.chat-open { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 400 1.05rem var(--display); color: #fff; background: linear-gradient(#7fe048, #3f8a22); box-shadow: 0 0 0 3px var(--wood-deep), 0 6px 16px rgba(0,0,0,.35); }
.chat-open span { font-size: 1.3rem; } .chat-open:hover { transform: translateY(-2px); }
.chat-open[hidden], .is-intro .chat-open { display: none; }
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 96; display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 100px)); border-radius: 20px; overflow: hidden;
  background: var(--paper); box-shadow: 0 0 0 3px var(--wood-deep), 0 14px 40px rgba(0,0,0,.45); font-family: var(--body); }
.chat[hidden] { display: none; }
.chat__top { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; background: linear-gradient(#2f6b1c, #1f4d10); color: #fff; }
.chat__top b { font: 400 1.15rem var(--display); } .chat__top small { grid-row: 2; opacity: .85; font-weight: 700; }
.chat__x { grid-row: 1 / 3; grid-column: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1rem; cursor: pointer; }
.chat__log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(#fffaf0, #fbecc4); }
.chat__msg { max-width: 86%; margin: 0; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-weight: 700; line-height: 1.4; box-shadow: 0 1px 3px rgba(0,0,0,.12); align-self: flex-start; }
.chat__msg.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #dff5c9; }
.chat__msg.dots { display: flex; gap: 4px; padding: 12px 14px; }
.chat__msg.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--wood-hi); animation: chat-dot 1s infinite ease-in-out; }
.chat__msg.dots i:nth-child(2) { animation-delay: .15s; } .chat__msg.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__act { padding: 10px; border-top: 2px solid rgba(122,67,24,.2); background: var(--paper); max-height: 46%; overflow-y: auto; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chat__chips button, .chat__chips a { padding: 7px 12px; border: 2px solid var(--wood-hi); border-radius: 999px; background: #fff8e2; color: var(--wood-deep); font: 800 .9rem var(--body); cursor: pointer; text-decoration: none; }
.chat__chips button:hover, .chat__chips a:hover { background: var(--gold-hi); }
.chat__chips .end { border-style: dashed; }
.chat__form { display: flex; gap: 6px; }
.chat__form input, .chat__form textarea { flex: 1; min-width: 0; padding: 9px 12px; border: 2px solid var(--wood-hi); border-radius: 12px; font: 700 1rem var(--body); color: var(--ink); resize: none; }
.chat__form button { padding: 0 14px; border: 0; border-radius: 12px; background: linear-gradient(#7fe048, #3f8a22); color: #fff; font: 400 1rem var(--display); cursor: pointer; }
@media (max-width: 560px) { .chat-open { right: 12px; bottom: 12px; padding: 10px 14px 10px 12px; font-size: .95rem; } .chat { right: 12px; bottom: 12px; height: min(540px, calc(100vh - 80px)); } }
/* tablets and phones held sideways: the short menu, so the EN/FR switch always shows (French labels are longer) */
@media (max-width: 980px) { .topbar .wide { display: none; } }
/* the chat on a short screen (a phone held sideways): full height, wider, a slimmer title bar */
@media (max-height: 520px) {
  .chat { top: 8px; bottom: 8px; height: auto; width: min(600px, calc(100vw - 24px)); }
  .chat__top { padding: 6px 12px; } .chat__top small { display: none; } .chat__x { width: 30px; height: 30px; }
  .chat__log { padding: 8px 10px; } .chat__act { max-height: 52%; padding: 6px 8px; }
  .chat__chips button, .chat__chips a { padding: 5px 10px; font-size: .85rem; }
}
