/* Toto Chess website. Colours, fonts and art are the app's own (lib/core/theme.dart, assets/). */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #1f1b3a;
  --ink-soft: #5a5680;
  --ink-faint: #6f6b93;
  --night: #2a2160;
  --cream: #fff8ec;
  --cream-2: #fff3df;
  --line: #eadfc8;
  --purple: #6c4cf5;
  --purple-dark: #4a2fd0;
  --purple-light: #ece7ff;
  --orange: #ff9a1f;
  --orange-dark: #d97a00;
  --orange-ink: #9a4f00;
  --orange-light: #ffebd0;
  --green: #1fa85a;
  --green-dark: #127a40;
  --green-light: #d8f5e4;
  --blue: #2f8cff;
  --blue-dark: #1553b0;
  --blue-light: #ddebff;
  --pink: #ff5c9d;
  --pink-dark: #b02a62;
  --pink-light: #ffe0ee;
  --gold: #ffc933;
  --wood: #b87a3e;
  --wood-dark: #8a5624;
  --grass: #68c956;
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}
a {
  color: var(--purple-dark);
}
h1,
h2,
h3,
h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 200;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 3px;
  border-radius: 10px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- the app's chunky outlined titles ---------- */
.fun {
  --o: var(--night);
  color: #fff;
  -webkit-text-stroke: 0.22em var(--o);
  paint-order: stroke fill;
  text-shadow: 0 0.09em 0 var(--o);
  letter-spacing: 0.02em;
  font-size: clamp(2.2rem, 6.2vw, 4.2rem);
}
.fun.sm {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
}
.fun .gold {
  color: var(--gold);
}
.fun .pink {
  color: #ff9ccb;
}
.kicker {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
}
.section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 40px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.on-dark .kicker {
  color: var(--gold);
}
.on-dark .section-head p {
  color: #e3dcff;
}

/* ---------- buttons: the app's chunky lip ---------- */
.btn {
  --c: var(--orange);
  --d: var(--orange-dark);
  --t: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--t);
  background: var(--c);
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--d);
  transition: transform 0.08s, box-shadow 0.08s;
  min-height: 56px;
  border: 0;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--d);
}
.btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--d);
}
.btn.green {
  --c: var(--green);
  --d: var(--green-dark);
}
.btn.purple {
  --c: var(--purple);
  --d: var(--purple-dark);
}
.btn.big {
  font-size: 1.45rem;
  padding: 20px 36px;
  min-height: 68px;
}
.btn.small {
  white-space: nowrap;
  font-size: 1rem;
  padding: 10px 20px;
  min-height: 44px;
  box-shadow: 0 4px 0 var(--d);
}
.btn.small:hover {
  box-shadow: 0 2px 0 var(--d);
  transform: translateY(2px);
}
.btn.ghost {
  --c: #fff;
  --d: #cfc6ee;
  --t: var(--purple-dark);
  text-shadow: none;
}
.btn img {
  width: 26px;
  height: 26px;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- top bar: a floating pill, like the app's HUD ---------- */
.bar {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 20px, var(--wrap));
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(42, 33, 96, 0.18), 0 10px 24px rgba(42, 33, 96, 0.18);
  padding: 7px 8px 7px 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  margin-right: auto;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.logo .w {
  -webkit-text-stroke: 0.2em #fff;
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 rgba(42, 33, 96, 0.35);
}
.logo .t {
  color: var(--purple);
}
.logo .c {
  color: var(--orange);
}
.nav {
  display: none;
  gap: 2px;
}
.nav a {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover {
  background: var(--purple-light);
  color: var(--purple-dark);
}
.sound {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--purple-light);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sound img {
  width: 24px;
  height: 24px;
}
.sound[aria-pressed="false"] {
  opacity: 0.45;
  filter: grayscale(1);
}
@media (min-width: 940px) {
  .nav {
    display: flex;
  }
}
@media (max-width: 420px) {
  .logo .w {
    font-size: 1.35rem;
  }
  .logo img {
    width: 34px;
    height: 34px;
  }
  .bar .btn.small {
    padding: 9px 14px;
  }
  .bar {
    gap: 6px;
    padding-left: 10px;
  }
}

/* ---------- hero: the island at dusk ---------- */
.hero {
  --sw: max(190vw, 760px); /* width of the painted village */
  --cx: 0.5; /* where the castle sits across the screen */
  --u: calc(var(--sw) / 1650); /* one "world unit" of the island */
  --b: calc(var(--sw) * -0.02); /* how far the ground dips below the bottom edge */
  --x0: min(calc(var(--cx) * 100vw - 0.5485 * var(--sw)), 0px);
  position: relative;
  min-height: 760px;
  height: 100svh;
  max-height: 980px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #6c4cf5;
}
@media (min-width: 900px) {
  .hero {
    --sw: clamp(1500px, min(125vw, 205svh), 2600px);
    --cx: 0.66;
    --b: calc(var(--sw) * -0.047);
  }
}
.hero .lyr {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.hero .twinkle {
  inset: 0;
}
.hero .hero-toto {
  pointer-events: auto;
}
.hero .sky {
  inset: -4% -30px 0 -30px;
  background: url("../img/scene/sky.webp") center bottom / cover no-repeat;
}
.hero .clouds {
  left: -40px;
  right: -40px;
  bottom: calc(var(--b) + 470 * var(--u));
  height: calc(400 * var(--u));
  background: url("../img/scene/clouds.webp") 0 100% / auto 100% repeat-x;
  animation: drift 160s linear infinite;
}
@keyframes drift {
  to {
    background-position-x: calc(-3000 * var(--u));
  }
}
.hero .mtn {
  left: -40px;
  right: -40px;
  bottom: calc(var(--b) + 380 * var(--u));
  height: calc(330 * var(--u));
  background: url("../img/scene/mountains.webp") 40% 100% / auto 100% repeat-x;
}
.hero .hills {
  left: -40px;
  right: -40px;
  bottom: calc(var(--b) + 230 * var(--u));
  height: calc(440 * var(--u));
  background: url("../img/scene/hills.webp") 30% 100% / auto 100% repeat-x;
}
.hero .stage {
  left: var(--x0);
  bottom: var(--b);
  width: var(--sw);
  height: auto;
  max-width: none;
}
.hero .fg {
  left: 0;
  right: 0;
  bottom: calc(var(--b) - 36 * var(--u));
  height: calc(150 * var(--u));
  background: url("../img/scene/foreground.webp") 20% 100% / auto 100% repeat-x;
  z-index: 6;
}
.twinkle i {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
  animation: tw 3s ease-in-out infinite;
}
@keyframes tw {
  50% {
    opacity: 0.1;
    transform: scale(0.5);
  }
}
.birds {
  position: absolute;
  left: -10%;
  top: 22%;
  width: 40px;
  opacity: 0.55;
  animation: fly 38s linear infinite;
  z-index: 1;
}
@keyframes fly {
  to {
    transform: translateX(120vw) translateY(-60px);
  }
}

/* copy over the sky */
.hero-copy {
  position: relative;
  z-index: 5;
  padding-top: 92px;
  text-align: center;
}
.hero-copy .wrap {
  display: block;
}
.hero-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.5rem, min(9.4vw, 8.4svh), 5.2rem);
  line-height: 1.02;
}
.hero-copy .lead {
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  font-weight: 700;
  max-width: 31em;
  margin-inline: auto;
  background: rgba(42, 33, 96, 0.46);
  border-radius: 20px;
  padding: 10px 16px;
  backdrop-filter: blur(3px);
  text-shadow: 0 1px 3px rgba(42, 33, 96, 0.6);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  background: rgba(42, 33, 96, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.eyebrow img {
  width: 22px;
  height: 22px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 16px;
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 3px 0 rgba(42, 33, 96, 0.25);
}
.chip img {
  width: 22px;
  height: 22px;
}
@media (min-width: 900px) {
  .hero-copy {
    text-align: left;
    padding-top: 112px;
  }
  .hero-copy .inner {
    width: min(48%, 560px);
  }
  .hero-copy .lead {
    margin-inline: 0;
  }
  .hero-copy .cta-row,
  .hero-copy .platforms {
    justify-content: flex-start;
  }
}

/* Toto on the path */
.hero-toto {
  position: absolute;
  z-index: 4;
  left: calc(var(--x0) + 0.44 * var(--sw));
  bottom: calc(var(--b) + 118 * var(--u));
  width: calc(0.092 * var(--sw));
  max-width: 220px;
  min-width: 124px;
  transform: translateX(-50%);
}
.hero-toto .sprite {
  width: 100%;
  cursor: pointer;
  filter: drop-shadow(0 10px 8px rgba(31, 27, 58, 0.3));
  animation: bob 3.2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
@keyframes bob {
  50% {
    transform: translateY(-9px);
  }
}
.say {
  position: absolute;
  left: 58%;
  bottom: 88%;
  width: max-content;
  max-width: min(250px, 62vw);
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 22px 22px 22px 6px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  box-shadow: 0 5px 0 rgba(42, 33, 96, 0.18);
  transform-origin: 0 100%;
  animation: pop-in 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.say.out {
  opacity: 0;
  transform: scale(0.9);
  transition: 0.2s;
}
@keyframes pop-in {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.hero-toto .hint {
  position: absolute;
  left: 92%;
  top: 56%;
  transform: rotate(-8deg);
  white-space: nowrap;
  font-family: var(--head);
  font-size: 0.85rem;
  color: #fff;
  background: rgba(42, 33, 96, 0.55);
  border-radius: 999px;
  padding: 1px 10px;
}

/* floating glossy pieces */
.floaters {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.floaters img {
  position: absolute;
  filter: drop-shadow(0 12px 10px rgba(31, 27, 58, 0.35));
  animation: bob 5s ease-in-out infinite;
}
.floaters .f1 {
  left: 5%;
  top: 60%;
  width: 58px;
  animation-delay: -1s;
  transform: rotate(-10deg);
  display: none;
}
.floaters .f2 {
  right: 4%;
  top: 19%;
  width: 62px;
  animation-delay: -2.5s;
  transform: rotate(9deg);
}
.floaters .f3,
.floaters .f4 {
  display: none;
}
@media (min-width: 900px) {
  .floaters .f1 {
    display: block;
    left: 50%;
    top: 31%;
    width: 92px;
  }
  .floaters .f2 {
    right: 2.5%;
    top: 22%;
    width: 112px;
  }
  .floaters .f3 {
    display: block;
    right: 21%;
    top: 12%;
    width: 78px;
    animation-delay: -3.5s;
    transform: rotate(-8deg);
  }
  .floaters .f4 {
    display: block;
    right: 3%;
    top: 55%;
    width: 86px;
    animation-delay: -4.2s;
    transform: rotate(6deg);
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: max(100svh, 800px);
    max-height: none;
  }
  .hero-copy {
    padding-top: 84px;
  }
  .hero-copy .lead {
    font-size: 1.02rem;
  }
  .hero .btn.big {
    font-size: 1.2rem;
    padding: 14px 26px;
    min-height: 58px;
  }
  .hero .chip {
    font-size: 0.82rem;
    padding: 4px 12px 4px 7px;
  }
  .floaters .f2 {
    display: none;
  }
  .hero .chip:nth-child(3) {
    display: none;
  }
  .hero-toto {
    min-width: 108px;
  }
  .eyebrow {
    font-size: 0.9rem;
  }
}
@media (min-width: 900px) and (max-height: 780px) {
  .hero .platforms {
    display: none;
  }
}
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 60px;
  z-index: 7;
  fill: var(--cream);
}

/* ---------- trust badges ---------- */
.badges {
  margin-top: -6px;
  position: relative;
  z-index: 8;
  padding-top: 8px;
}
.badges ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}
.badges li {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 24px;
  padding: 14px 18px;
  box-shadow: 0 6px 0 var(--line);
}
.medal {
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m, var(--purple-light));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12), 0 0 0 4px #fff, 0 0 0 7px var(--m, var(--purple-light));
  margin: 4px 6px 4px 4px;
}
.medal img {
  width: 36px;
  height: 36px;
}
.badges strong {
  display: block;
  font-family: var(--head);
  font-size: 1.12rem;
  line-height: 1.2;
}
.badges span.d {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.3;
  display: block;
}

section {
  padding: 84px 0 0;
}

/* ---------- Try a move: the playable board ---------- */
.try-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .try-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}
.try-copy .fun {
  --o: var(--purple-dark);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
}
.rounds {
  display: flex;
  gap: 10px;
  margin: 16px 0 18px;
}
.rounds b {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-size: 1.2rem;
  background: var(--purple-light);
  color: var(--purple-dark);
  border: 3px solid #d9d0ff;
  transition: 0.2s;
}
.rounds b.on {
  background: var(--orange);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px var(--orange);
}
.rounds b.done {
  background: var(--green);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--green);
}
.coach {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 150px;
}
.coach img {
  width: 96px;
  flex: none;
  filter: drop-shadow(0 8px 6px rgba(31, 27, 58, 0.2));
}
.coach .bubble {
  position: relative;
  margin-bottom: 40px;
  background: #fff;
  border: 3px solid #d9d0ff;
  border-radius: 22px 22px 22px 6px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.35;
  box-shadow: 0 5px 0 #d9d0ff;
}
.coach .bubble.new {
  animation: pop-in 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.try-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.boardwrap {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}
.board {
  --sq: calc(100% / 5);
  position: relative;
  aspect-ratio: 1;
  background: #3f8f4f;
  padding: 18px;
  border-radius: 28px;
  box-shadow: 0 8px 0 #2d6b3a, 0 18px 30px rgba(42, 33, 96, 0.25);
  border: 4px solid #fff;
}
.board .stud {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.board .stud:nth-of-type(1) {
  top: 4px;
  left: 4px;
}
.board .stud:nth-of-type(2) {
  top: 4px;
  right: 4px;
}
.board .stud:nth-of-type(3) {
  bottom: 4px;
  left: 4px;
}
.board .stud:nth-of-type(4) {
  bottom: 4px;
  right: 4px;
}
.board .grid {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template: repeat(5, 1fr) / repeat(5, 1fr);
}
.sqr {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: #eefad8;
  cursor: pointer;
  font: inherit;
}
.sqr.d {
  background: #a6dc8c;
}
.sqr:focus-visible {
  outline-offset: -4px;
  z-index: 3;
}
.sqr .lab {
  position: absolute;
  left: 4px;
  bottom: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #3f8f4f;
  opacity: 0.8;
}
.sqr.sel {
  background: #ffe48a;
}
.sqr.go::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: rgba(31, 168, 90, 0.6);
}
.sqr.go.cap::after {
  inset: 8%;
  background: none;
  border: 5px solid rgba(255, 82, 82, 0.8);
}
.sqr.glow {
  animation: glow 0.9s ease-in-out infinite;
}
@keyframes glow {
  50% {
    box-shadow: inset 0 0 0 6px var(--orange), 0 0 18px var(--gold);
  }
}
.pieces {
  position: absolute;
  inset: 18px;
  pointer-events: none;
}
.pc {
  position: absolute;
  width: 20%;
  height: 20%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: left 0.38s cubic-bezier(0.3, 1.3, 0.5, 1), top 0.38s cubic-bezier(0.3, 1.3, 0.5, 1), transform 0.2s;
}
.pc img {
  width: auto;
  max-width: 100%;
  height: calc(var(--h, 1) * 104%);
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.3));
  transform-origin: 50% 90%;
}
.pc.lift img {
  transform: translateY(-8%) scale(1.08);
}
.pc.gone {
  opacity: 0;
  transform: scale(0.3);
}
.pc.shake img {
  animation: shake 0.35s;
}
@keyframes shake {
  25% {
    transform: translateX(-6px) rotate(-6deg);
  }
  75% {
    transform: translateX(6px) rotate(6deg);
  }
}
.pc.win img {
  animation: hop 0.6s ease-in-out 3;
}
@keyframes hop {
  50% {
    transform: translateY(-22%);
  }
}
.boardwrap .pop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 28px;
}
.conf {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  animation: conf 1.1s ease-out forwards;
}
@keyframes conf {
  to {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}

/* ---------- the trail of places ---------- */
.trail {
  position: relative;
  display: grid;
  gap: 56px;
}
.trail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
  overflow: visible;
}
.trail-toto {
  position: absolute;
  width: 64px;
  left: 0;
  top: 0;
  z-index: 4;
  display: none;
  filter: drop-shadow(0 6px 5px rgba(31, 27, 58, 0.3));
  transform: translate(-50%, -78%);
  pointer-events: none;
}
.stop {
  --c: var(--blue-dark);
  --cl: var(--blue-light);
  --cm: var(--blue);
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  align-items: center;
}
.stop.puzzles {
  --c: var(--pink-dark);
  --cl: var(--pink-light);
  --cm: var(--pink);
}
.stop.rules {
  --c: var(--purple-dark);
  --cl: var(--purple-light);
  --cm: var(--purple);
}
.stop.play {
  --c: var(--green-dark);
  --cl: var(--green-light);
  --cm: var(--green);
}
.stop.trophies {
  --c: var(--orange-ink);
  --cl: var(--orange-light);
  --cm: var(--orange);
}
.stop.home {
  --c: var(--purple-dark);
  --cl: var(--purple-light);
  --cm: var(--purple);
}
.stop .art {
  position: relative;
  display: grid;
  justify-items: center;
}
.isle {
  position: relative;
  width: min(100%, 420px);
  padding-top: 20px;
}
.isle::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 18px;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #86dc6e 0%, #5ec24f 70%);
  box-shadow: 0 14px 0 #3f9a46, 0 24px 24px rgba(42, 33, 96, 0.18);
}
.isle img.lm {
  position: relative;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: 50% 100%;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 6px rgba(31, 27, 58, 0.18));
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.stop:hover .isle img.lm {
  transform: translateY(-8px) scale(1.03);
}
.sign {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: var(--wood);
  padding: 8px 18px;
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--wood-dark);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.sign b {
  background: #fff;
  color: var(--wood-dark);
  border-radius: 999px;
  padding: 1px 12px;
  font-size: 0.95rem;
  text-shadow: none;
}
.stop .card {
  position: relative;
  background: #fff;
  border: 3px solid var(--cl);
  border-radius: 30px;
  box-shadow: 0 7px 0 var(--cl);
  padding: 26px 26px 24px;
}
.stop .num {
  position: absolute;
  top: -22px;
  left: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cm);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}
.stop h3 {
  --o: var(--c);
  font-size: clamp(1.9rem, 4.4vw, 2.5rem);
  color: #fff;
  -webkit-text-stroke: 0.2em var(--o);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--o);
  margin: 6px 0 12px;
}
.stop .card p {
  color: var(--ink-soft);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  background: var(--cl);
  color: var(--c);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 3px 12px;
}
.stop .phones {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.phone {
  background: #1f1b3a;
  border-radius: 34px;
  padding: 8px;
  box-shadow: 0 18px 30px rgba(31, 27, 58, 0.3), inset 0 0 0 2px #3a3568;
}
.phone img {
  border-radius: 27px;
  width: 100%;
  aspect-ratio: 560 / 1172;
  object-fit: cover;
}
.stop .phones .phone {
  width: 150px;
}
.stop .phones .phone + .phone {
  margin-left: -34px;
  margin-top: 30px;
  transform: rotate(5deg);
}
.stop .phones .phone:first-child {
  transform: rotate(-4deg);
}
.stop .pets {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
}
.stop .pets img {
  width: 54px;
  height: 54px;
  background: var(--cl);
  border-radius: 50%;
  padding: 7px;
}
@media (min-width: 900px) {
  .trail {
    gap: 44px;
  }
  .trail-svg,
  .trail-toto {
    display: block;
  }
  .stop {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
  }
  .stop:nth-child(even) {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .stop:nth-child(even) .art {
    order: 2;
  }
  .stop.has-phones .card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
  }
  .stop.has-phones .phones {
    margin: -64px -6px -36px 0;
  }
  .stop .phones .phone {
    width: 138px;
  }
}

/* ---------- friends: character select ---------- */
.arena {
  position: relative;
  margin-top: 96px;
  padding: 90px 0 90px;
  color: #fff;
  background: linear-gradient(180deg, #3b2f95 0%, #5a45d8 55%, #7a5be6 100%);
  overflow: hidden;
  isolation: isolate;
}
.arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/scene/sky.webp") center / cover;
  opacity: 0.55;
  z-index: -1;
}
.arena::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: calc(150px);
  background: url("../img/scene/foreground.webp") 40% 100% / auto 100% repeat-x;
  z-index: 0;
}
.arena .wrap {
  position: relative;
  z-index: 1;
}
.wave-top {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 56px;
  fill: var(--cream);
  z-index: 2;
}
.fighters {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-bottom: 120px;
}
.fighter {
  --f: var(--green);
  --fd: var(--green-dark);
  --fl: var(--green-light);
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 32px;
  border: 5px solid var(--f);
  box-shadow: 0 9px 0 var(--fd), 0 24px 34px rgba(20, 10, 70, 0.4);
  padding: 22px 22px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.fighter:hover {
  transform: translateY(-8px) rotate(-1deg);
}
.fighter.fox {
  --f: var(--orange);
  --fd: var(--orange-dark);
  --fl: var(--orange-light);
}
.fighter.lion {
  --f: var(--gold);
  --fd: #c79200;
  --fl: #fff0b8;
}
.fighter .stand {
  position: relative;
  height: 170px;
  display: grid;
  place-items: end center;
  margin-bottom: 10px;
}
.fighter .stand::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 46px;
  border-radius: 50%;
  background: var(--fl);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}
.fighter .stand img {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
  filter: drop-shadow(0 8px 4px rgba(0, 0, 0, 0.2));
}
.fighter:hover .stand img {
  transform: scale(1.1) rotate(-4deg);
}
.fighter.wig .stand img {
  animation: wig 0.6s;
}
@keyframes wig {
  25% {
    transform: rotate(-12deg) scale(1.15);
  }
  60% {
    transform: rotate(10deg) scale(1.15);
  }
}
.fighter h3 {
  --o: var(--fd);
  color: #fff;
  font-size: 2.2rem;
  -webkit-text-stroke: 0.2em var(--o);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--o);
  margin: 0;
}
.fighter .title {
  font-family: var(--head);
  font-weight: 600;
  color: var(--fd);
  margin-bottom: 8px;
}
.fighter .age {
  display: inline-block;
  background: var(--fl);
  color: var(--fd);
  font-family: var(--head);
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 16px;
  margin-bottom: 12px;
}
.stats {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 6px;
  text-align: left;
}
.stats li {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.stats .pips {
  display: flex;
  gap: 5px;
}
.stats .pips i {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: #ebe6f7;
}
.stats .pips i.on {
  background: var(--f);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.fighter p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 14px;
}
.fighter .tap {
  font-family: var(--head);
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.coach-line {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: min(92%, 560px);
}
.coach-line img {
  width: clamp(76px, 22vw, 110px);
  flex: none;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.3));
}
.coach-line .bubble {
  flex: 1;
  min-width: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 22px 22px 22px 6px;
  padding: 12px 18px;
  font-weight: 800;
  margin-bottom: 36px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

/* ---------- Toto ---------- */
.toto-sec {
  padding-top: 56px;
}
.toto-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .toto-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.toto-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
  text-align: center;
}
.toto-stage .disc {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 54px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #b9a6ff 0%, #8f77f7 100%);
  box-shadow: 0 10px 0 #6c4cf5;
}
.toto-stage .big {
  position: relative;
  width: 78%;
  margin: 0 auto;
  filter: drop-shadow(0 12px 8px rgba(31, 27, 58, 0.25));
  animation: bob 3.6s ease-in-out infinite;
  transition: filter 0.2s;
}
.swatches {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.swatches button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--s);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.15s;
}
.swatches button:hover {
  transform: translateY(-3px);
}
.swatches button[aria-pressed="true"] {
  box-shadow: 0 0 0 4px var(--purple), 0 4px 0 rgba(0, 0, 0, 0.18);
}
.swatch-note {
  font-family: var(--head);
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 10px;
}
.chat {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
}
.chat .row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.no-js .chat .row,
.chat.go .row.show {
  opacity: 1;
  transform: none;
}
.chat .row img {
  width: 58px;
  flex: none;
}
.chat .bubble {
  background: #fff;
  border: 3px solid #d9d0ff;
  border-radius: 22px 22px 22px 6px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  box-shadow: 0 4px 0 #d9d0ff;
}
.chat .bubble small {
  display: block;
  font-weight: 700;
  color: var(--ink-faint);
  font-size: 0.78rem;
  margin-top: 2px;
}
.skills {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.skill {
  background: #fff;
  border: 3px solid #d9d0ff;
  border-radius: 24px;
  box-shadow: 0 5px 0 #d9d0ff;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
}
.skill img {
  width: 40px;
  height: 40px;
  flex: none;
}
.skill strong {
  display: block;
  font-family: var(--head);
  font-size: 1.1rem;
  line-height: 1.2;
}
.skill span {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.4;
  display: block;
}
.moods {
  margin-top: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.moods .track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.moods:hover .track {
  animation-play-state: paused;
}
.moods img {
  height: 120px;
  width: auto;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.moods-cap {
  text-align: center;
  font-family: var(--head);
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- grown-ups ---------- */
.grown {
  position: relative;
  margin-top: 96px;
  padding: 92px 0 80px;
  background: var(--blue-light);
  border-block: 3px solid #c3dbff;
}
.grown .wave-top {
  fill: var(--cream);
}
.gu-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 940px) {
  .gu-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.gu-tiles {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.gu {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 3px solid #c3dbff;
  border-radius: 24px;
  box-shadow: 0 5px 0 #c3dbff;
  padding: 16px 18px;
}
.gu img {
  width: 42px;
  height: 42px;
  flex: none;
}
.gu h3 {
  font-size: 1.15rem;
  margin: 0 0 2px;
  color: var(--blue-dark);
}
.gu p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.4;
}
.zone {
  background: #fff;
  border-radius: 30px;
  border: 4px solid #fff;
  box-shadow: 0 8px 0 #9fc3f5, 0 20px 34px rgba(21, 83, 176, 0.25);
  overflow: hidden;
  max-width: 400px;
  margin-inline: auto;
}
.zone .top {
  background: linear-gradient(180deg, #4a8ef0, #2f6fd0);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
}
.zone .top img {
  width: 28px;
  height: 28px;
}
.zone .pin {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.zone .pin i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.zone .pin i.on {
  background: #fff;
}
.zone ul {
  list-style: none;
  margin: 0;
  padding: 10px;
}
.zone li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
}
.zone li:nth-child(odd) {
  background: #f1f6ff;
}
.zone li img {
  width: 30px;
  height: 30px;
}
.zone li strong {
  display: block;
  font-family: var(--head);
  line-height: 1.15;
}
.zone li span {
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.2;
  display: block;
}
.promise {
  margin-top: 40px;
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 28px 30px;
  display: grid;
  gap: 22px;
  align-items: center;
  box-shadow: 0 8px 0 #0d0b20;
}
@media (min-width: 800px) {
  .promise {
    grid-template-columns: auto 1fr;
  }
}
.promise > img {
  width: 130px;
  margin-inline: auto;
}
.promise h3 {
  color: var(--gold);
  font-size: 1.7rem;
}
.promise ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.promise li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.promise li img {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex: none;
}
.promise a {
  color: #fff;
  font-weight: 800;
}

/* ---------- get the app + waitlist ---------- */
.get-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 940px) {
  .get-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.devices {
  position: relative;
  padding: 10px 0 30px;
  justify-self: center;
  width: min(100%, 600px);
}
.tablet {
  background: #1f1b3a;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 24px 40px rgba(31, 27, 58, 0.3), inset 0 0 0 2px #3a3568;
  width: 88%;
}
.tablet img {
  border-radius: 18px;
  width: 100%;
}
.devices .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  transform: rotate(4deg);
}
.devices .toto {
  position: absolute;
  left: -2%;
  bottom: -8px;
  width: 20%;
  filter: drop-shadow(0 8px 6px rgba(31, 27, 58, 0.3));
  animation: bob 3.4s ease-in-out infinite;
}
.ways {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.ways li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 20px;
  padding: 10px 14px;
  font-weight: 800;
}
.ways li img {
  width: 34px;
  height: 34px;
  flex: none;
}
.ways li span.st {
  margin-left: auto;
  font-family: var(--head);
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 2px 12px;
  background: var(--orange-light);
  color: var(--orange-ink);
  white-space: nowrap;
}
.ways li.live span.st {
  background: var(--green-light);
  color: var(--green-dark);
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.store.soon {
  cursor: default;
}
a.store span.st {
  background: var(--green-light);
  color: var(--green-dark);
}
.wait {
  background: #fff;
  border: 4px solid var(--purple-light);
  border-radius: 32px;
  box-shadow: 0 8px 0 #d9d0ff;
  padding: 24px 24px 22px;
  position: relative;
}
.wait h3 {
  font-size: 1.55rem;
  margin-bottom: 4px;
  color: var(--purple-dark);
}
.wait p.sub {
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-size: 1rem;
}
.wait label.field {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  margin-bottom: 6px;
}
.wait input[type="email"] {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 18px;
  border-radius: 18px;
  border: 3px solid #d9d0ff;
  background: #faf8ff;
  color: var(--ink);
  min-height: 56px;
}
.wait input[type="email"]:focus {
  outline: 4px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--purple);
}
.pick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
  border: 0;
  padding: 0;
}
.pick legend {
  font-family: var(--head);
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
}
.pick label {
  position: relative;
  cursor: pointer;
}
.pick input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.pick span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  border: 3px solid #d9d0ff;
  border-radius: 999px;
  padding: 7px 16px 7px 10px;
  background: #fff;
  transition: 0.15s;
}
.pick span img {
  width: 24px;
  height: 24px;
}
.pick input:checked + span {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.pick input:focus-visible + span {
  outline: 4px solid var(--orange);
  outline-offset: 2px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wait .fine {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin: 12px 0 0;
  line-height: 1.4;
}
.wait .msg {
  margin-top: 12px;
  font-weight: 800;
  min-height: 1.4em;
}
.wait .msg.err {
  color: var(--red, #b3261e);
}
.wait .done {
  display: none;
  text-align: center;
  padding: 6px 0;
}
.wait.sent .done {
  display: block;
}
.wait.sent form,
.wait.sent .intro {
  display: none;
}
.wait .done img {
  width: 130px;
  margin: 0 auto 6px;
  animation: hop 0.7s ease-in-out 2;
}
.wait .done h3 {
  font-size: 1.7rem;
}

/* ---------- faq ---------- */
.faq {
  max-width: 50rem;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
details {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--line);
}
details[open] {
  border-color: #cfc4ff;
  box-shadow: 0 4px 0 #cfc4ff;
}
summary {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 16px 58px 16px 22px;
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}
details[open] summary::after {
  content: "–";
}
details .a {
  padding: 0 22px 18px;
  color: var(--ink-soft);
}
details .a p:last-child {
  margin-bottom: 0;
}

/* ---------- final + footer ---------- */
.final {
  position: relative;
  text-align: center;
  color: #fff;
  border-radius: 40px;
  padding: 56px 24px 44px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #4b43d6, #8a63ec);
  box-shadow: 0 9px 0 var(--purple-dark);
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/scene/mountains.webp") 30% 100% / auto 46% repeat-x, url("../img/scene/sky.webp") center / cover;
  opacity: 0.8;
  z-index: -1;
}
.final img.toto {
  width: 150px;
  margin: 0 auto 6px;
  animation: bob 3s ease-in-out infinite;
}
.final p {
  max-width: 32em;
  margin-inline: auto;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(42, 33, 96, 0.6);
}
.site-foot {
  margin-top: 84px;
  background: var(--ink);
  color: #d9d6f0;
  padding: 44px 0 36px;
  font-size: 0.97rem;
}
.site-foot .cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.site-foot a {
  color: #fff;
}
.site-foot h4 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.site-foot .fine {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid #3d3a5c;
  font-size: 0.85rem;
  color: #a9a5cc;
}

/* ---------- reveal on scroll (only when JS is on) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- plain pages (privacy) ---------- */
.simple-head {
  background: var(--cream);
  border-bottom: 3px solid var(--line);
}
.simple-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.page {
  padding: 48px 0 0;
  max-width: 46rem;
  margin: 0 auto;
}
.page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--purple-dark);
}
.page h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
  color: var(--purple-dark);
}
.page ul {
  padding-left: 1.2em;
}
.page li {
  margin-bottom: 6px;
}
.page .updated {
  color: var(--ink-faint);
}
.callout {
  background: var(--green-light);
  border: 3px solid #aee6c4;
  border-radius: 20px;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p:last-child {
  margin: 0;
}
