/* Roulito's site: the game's own look — cream paper, thick ink outlines,
   buttons with a dropped shadow, mustard and orange (app/src/style.css). */
:root {
  --cream: #fff4dc;
  --paper: #fffaf0;
  --sand: #ffe7b8;
  --ink: #3b2a20;
  --ink-soft: #6b5646;
  --sun: #f2b33d;
  --orange: #ff8a3d;
  --leaf: #2f9e44;
  --leaf-soft: #d3f9d8;
  --sky: #4ea8de;
  --sky-soft: #d0ebff;
  --berry: #e64980;
  --berry-soft: #ffe0ec;
  --display: 'Fredoka', 'Andika', system-ui, sans-serif;
  --text: 'Andika', system-ui, sans-serif;
  --line: 4px solid var(--ink);
  --drop: 0 5px 0 var(--ink);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.6 var(--text);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: #fff;
  border: var(--line);
  border-radius: 12px;
}
:focus-visible {
  outline: 4px solid var(--sky);
  outline-offset: 3px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.8em;
  padding: 4px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
}
.brand img {
  width: 44px;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--display);
  font-weight: 600;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover {
  border-color: var(--orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: var(--line);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--drop);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}
.btn svg {
  width: 1.3em;
  height: 1.3em;
  fill: currentColor;
}
.btn-small {
  padding: 8px 20px;
  font-size: 1.05rem;
}
.btn-big {
  min-height: 64px;
  padding: 12px 28px;
  font-size: 1.25rem;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 22px;
  border: 3px dashed var(--ink);
  border-radius: 18px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}
.store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.store small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.ctas.center {
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) 40px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
}
.underline {
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 90%, transparent 90%);
}
.lead {
  max-width: 34em;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.lead strong {
  color: var(--ink);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 4px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.pills li::before {
  content: '✓ ';
  color: var(--leaf);
}
.hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.sun {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--sand) 0 10deg, var(--cream) 10deg 20deg);
  border: var(--line);
  animation: spin 60s linear infinite;
}
.hero-roulito {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 78%;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 0 rgba(59, 42, 32, 0.15));
  animation: bob 3.2s ease-in-out infinite;
}
.float {
  position: absolute;
  width: 20%;
  animation: bob 4s ease-in-out infinite;
}
.f1 {
  top: 4%;
  left: 2%;
  transform: rotate(-20deg);
}
.f2 {
  top: 2%;
  right: 4%;
  animation-delay: -1.3s;
}
.f3 {
  bottom: 18%;
  right: -2%;
  width: 18%;
  animation-delay: -2.4s;
}
.bubble {
  position: absolute;
  padding: 6px 14px;
  border: var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--drop);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
}
.b1 {
  left: -4%;
  bottom: 30%;
  transform: rotate(-6deg);
}
.b2 {
  right: 6%;
  top: 30%;
  background: var(--sky-soft);
  transform: rotate(5deg);
}

/* ---------- Promise ---------- */
.promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--gutter) 40px;
}
.promise article {
  padding: 22px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--drop);
}
.promise .icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--sand);
  font-size: 1.6rem;
}
.promise p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
/* The dotted path of the map, from one section to the next. */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: clamp(36px, 5vw, 70px);
  border-left: 6px dotted var(--sun);
}
.section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.sub {
  margin: 56px 0 22px;
  text-align: center;
  font-size: 1.7rem;
}

/* ---------- Adventure ---------- */
.map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: clamp(20px, 3vw, 36px);
  border: var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #e6f6d9, #cfeebd 60%, #b9e3a2);
  box-shadow: var(--drop);
}
.route {
  position: relative;
}
.wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-dasharray: 2 16;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 200px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
/* Up and down along the wave, like the game's winding map. */
.stop {
  justify-content: center;
  translate: 0 22%;
}
.stop:nth-child(even) {
  translate: 0 -22%;
}
.dot {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: var(--line);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: var(--drop);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.8rem;
}
.stop .label {
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.9rem;
}
.door img,
.boss img {
  width: 96px;
}
.boss img {
  width: 116px;
}
.map-text {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
}
.map-text p {
  margin: 0;
  font-size: 1.05rem;
}
.map-text .badges {
  justify-content: center;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.badges img {
  width: 58px;
  padding: 6px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}
.monsters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.monsters figure {
  margin: 0;
  text-align: center;
}
.monsters img {
  width: 140px;
  transition: transform 0.2s ease;
}
.monsters figure:hover img {
  transform: rotate(-6deg) scale(1.06);
}
.monsters figcaption {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink-soft);
}
.surprises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  padding: 20px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--drop);
}
.card img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 8px;
}
.card h4 {
  font-size: 1.2rem;
}
.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ---------- Games ---------- */
.families {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.family {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--drop);
  overflow: hidden;
}
.family header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: var(--line);
  background: var(--tint);
}
.family header img {
  width: 56px;
}
.family h3 {
  margin: 0;
}
.f-words {
  --tint: var(--leaf-soft);
  --accent: var(--leaf);
}
.f-sounds {
  --tint: var(--berry-soft);
  --accent: var(--berry);
}
.f-numbers {
  --tint: var(--sky-soft);
  --accent: var(--sky);
}
.family ul {
  margin: 0;
  padding: 8px 20px 14px;
  list-style: none;
}
.family li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 12px 0;
  border-bottom: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
}
.family li:last-child {
  border-bottom: 0;
}
.family b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
}
.family span {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.family em {
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}
.note {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Progression ---------- */
.stairs-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.stairs {
  position: relative;
  margin: 0;
  padding: 24px 24px 18px;
  border: var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--sky-soft), #fff);
  box-shadow: var(--drop);
}
.stairs ol {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 340px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stairs li {
  flex: 1;
  height: calc(16% + var(--i) * 12%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 12px 12px 4px 4px;
  background: color-mix(in srgb, var(--sun) calc(40% + var(--i) * 8%), #fff);
}
.stairs li span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.stairs li {
  position: relative;
}
.climber {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 84px;
  max-width: none;
  margin-left: -42px;
  margin-bottom: -6px;
  animation: bob 2.6s ease-in-out infinite;
}
.stairs figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
}
.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 0 0 22px 64px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: var(--line);
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 4px;
  border-left: 4px dotted var(--sun);
}
.steps h3 {
  margin-bottom: 0.25em;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Rewards ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.tile {
  padding: 22px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--drop);
}
.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.tile > img,
.tile .art {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 12px;
}
.tile .art img {
  width: 30%;
  max-width: 110px;
}
.t-shovels {
  grid-column: span 3;
  background: #fff3e0;
}
.t-chest {
  grid-column: span 3;
  background: #fff8d6;
}
.t-chest > img {
  width: 130px;
}
.t-map {
  grid-column: span 2;
}
.t-map > img {
  width: 180px;
  border: 3px solid var(--ink);
  border-radius: 14px;
}
.t-forge {
  grid-column: span 2;
  background: #eef1f6;
}
.t-shop {
  grid-column: span 2;
  background: var(--berry-soft);
}
.t-home {
  grid-column: span 3;
}
.room {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  margin: 0 auto 14px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.room img {
  position: absolute;
}
.room .room-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Where the game puts things (Chez Roulito): the shelf, the window, the floor. */
.r-shelf {
  top: 15%;
  width: 13%;
}
.r1 { left: 16%; }
.r2 { left: 30%; }
.r3 { left: 44%; }
.r-dino {
  top: 44%;
  right: 4%;
  width: 30%;
}
.r-roulito {
  bottom: 9%;
  left: 30%;
  width: 34%;
}
.r-gift {
  bottom: 12%;
  left: 6%;
  width: 18%;
}
.t-dino {
  grid-column: span 3;
  background: var(--leaf-soft);
}
.grow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
}
.grow li {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.grow li:nth-child(1) img { width: 84px; }
.grow li:nth-child(2) img { width: 110px; }
.grow li:nth-child(3) img { width: 150px; }
.grow li:nth-child(4) img { width: 220px; }
.t-dino {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Parents ---------- */
.parents {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: center;
}
.parents-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 50%;
  background: var(--sand);
  box-shadow: var(--drop);
}
.parents-art img {
  width: 72%;
}
.checks {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding: 0 0 14px 40px;
  color: var(--ink-soft);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.checks b {
  color: var(--ink);
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

/* ---------- Final ---------- */
.final {
  max-width: 900px;
  margin: 20px auto 80px;
  padding: 40px var(--gutter) 48px;
  border: var(--line);
  border-radius: 40px;
  background: radial-gradient(circle at 50% 0%, #fff 0%, var(--sand) 70%);
  box-shadow: var(--drop);
  text-align: center;
}
.final img {
  width: 170px;
  margin-top: -110px;
}
.final p {
  color: var(--ink-soft);
  font-size: 1.15rem;
}
@supports (margin-inline: auto) {
  .final {
    margin-inline: max(var(--gutter), calc((100% - 900px) / 2));
  }
}

/* ---------- Footer ---------- */
.foot {
  padding: 28px var(--gutter) 40px;
  border-top: 3px solid var(--ink);
  background: var(--sand);
  text-align: center;
  font-size: 0.95rem;
}
.foot p {
  margin: 0.3em 0;
}

/* ---------- Motion ---------- */
@keyframes bob {
  50% {
    translate: 0 -8px;
  }
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.seen {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  .btn-small {
    margin-left: auto;
  }
  .promise,
  .surprises {
    grid-template-columns: repeat(2, 1fr);
  }
  .families {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
  .map,
  .stairs-wrap,
  .parents {
    grid-template-columns: 1fr;
  }
  .bento > .tile {
    grid-column: span 6;
  }
  .parents-art {
    max-width: 260px;
    margin: 0 auto;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 17px;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .hero-art {
    max-width: 340px;
  }
  .lead {
    margin-inline: auto;
  }
  .ctas,
  .pills {
    justify-content: center;
  }
  .promise,
  .surprises {
    grid-template-columns: 1fr;
  }
  .wave {
    display: none;
  }
  .map-text {
    grid-template-columns: 1fr;
  }
  .path {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
    background: linear-gradient(90deg, transparent calc(50% - 3px), rgba(255, 255, 255, 0.9) calc(50% - 3px), rgba(255, 255, 255, 0.9) calc(50% + 3px), transparent calc(50% + 3px));
  }
  .stop,
  .stop:nth-child(even) {
    flex-direction: row;
    translate: none;
    justify-content: flex-start;
    padding-left: 18%;
  }
  .stop:nth-child(even) {
    flex-direction: row-reverse;
    padding: 0 18% 0 0;
  }
  .dot {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
  }
  .door img {
    width: 70px;
  }
  .boss img {
    width: 84px;
  }
  .stop .label {
    font-size: 0.75rem;
  }
  .stairs ol {
    height: 280px;
  }
  .climber {
    width: 70px;
  }
  .monsters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 8px;
  }
  .monsters img {
    width: 110px;
  }
  .btn-big {
    padding: 12px 22px;
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .final img {
    width: 130px;
    margin-top: -90px;
  }
}
