/* DinoGenie-World website. Plain CSS, no build step.
   Palette sampled from the game logo and hub art. */

:root {
  --sky: #42b9f9;
  --sky-deep: #1e9bff;
  --sky-soft: #d9f1ff;
  --grass: #a9e157;
  --lime: #c7f038;
  --red: #ff4b3e;
  --yellow: #ffc914;
  --green: #2ed13a;
  --pink: #ff4fa3;
  --purple: #8a4de8;
  --orange: #ff9a2e;
  --navy: #14246b;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --shadow-pop: 0 6px 0 rgb(20 36 107 / 0.2), 0 16px 26px rgb(20 36 107 / 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--sky-deep) var(--sky-soft); accent-color: var(--purple); -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
dialog { color: inherit; }
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--navy);
  background: var(--sky-soft);
  overflow-x: hidden;
}
h1, h2, h3, button { font-family: var(--font-display); }
h1, h2, h3 { text-wrap: balance; font-weight: 800; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; border-radius: 14px; }
main { position: relative; z-index: 1; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- motion ---------- */
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes hop {
  0%, 70%, 100% { transform: none; }
  78% { transform: translateY(-26px) scaleY(1.04); }
  86% { transform: scaleY(0.95); }
}
@keyframes drift { to { transform: translateX(160vw); } }
@keyframes pop { from { scale: 0.5; opacity: 0; } }
@keyframes shake { 25% { translate: -8px 0; } 75% { translate: 8px 0; } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.bob { animation: bob 5s ease-in-out infinite; }
.hop { animation: hop 3.4s ease-in-out infinite; }
.pop { animation: pop 0.35s var(--ease); }
.shake { animation: shake 0.35s; }

/* ---------- shared pieces ---------- */
/* fat navy "sticker" lettering with a white outline, like the logo */
.sticker {
  line-height: 1.2;
  color: var(--navy);
  -webkit-text-stroke: 10px #fff;
  paint-order: stroke fill;
  text-shadow: 0 5px 0 rgb(20 36 107 / 0.18);
}
/* chunky pressable button, like the in-game ones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 54px; padding: 0.6rem 1.9rem;
  border: 4px solid var(--navy); border-radius: 999px;
  background: var(--yellow); color: var(--navy);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.1;
  box-shadow: 0 7px 0 var(--navy);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 10px 0 var(--navy); }
.btn:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--navy); }
.btn-sm { min-height: 44px; font-size: 1.05rem; padding: 0.4rem 1.4rem; box-shadow: 0 5px 0 var(--navy); }
.btn-white { background: #fff; }
.btn-green { background: var(--green); }
.pill {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 999px;
  background: #fff; border: 3px solid var(--navy);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.2;
}
/* small rounded choice buttons (pictures, instruments, rooms, levels) */
.choice {
  min-height: 44px; padding: 4px 16px; border: 3px solid var(--navy); border-radius: 999px;
  background: #fff; font-size: 1rem; font-weight: 800; line-height: 1.5;
}
.choice[aria-pressed="true"] { background: var(--yellow); }
.choice.pink[aria-pressed="true"] { background: var(--pink); }
.choice.purple { display: flex; align-items: center; gap: 8px; padding-inline: 12px; }
.choice.purple[aria-pressed="true"] { background: var(--purple); color: #fff; }
.choice.purple img { height: 28px; width: auto; }
.choice.round { width: 44px; padding: 0; font-size: 1.125rem; }
.stack { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 16px; }
.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.msg { min-height: 1.6em; text-align: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.4; }

/* clouds */
.clouds { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; left: -30%; width: 220px; height: 70px; border-radius: 999px; background: rgb(255 255 255 / 0.8); animation: drift linear infinite; }
.cloud span { position: absolute; border-radius: 999px; background: #fff; }
.cloud span:nth-child(1) { top: -44px; left: 32px; width: 90px; height: 90px; }
.cloud span:nth-child(2) { top: -28px; left: 110px; width: 70px; height: 70px; }
.cloud:nth-child(1) { top: 12%; scale: 1; animation-duration: 70s; }
.cloud:nth-child(2) { top: 44%; scale: 0.7; animation-duration: 95s; animation-delay: -40s; }
.cloud:nth-child(3) { top: 76%; scale: 0.85; animation-duration: 80s; animation-delay: -15s; }

/* ---------- nav ---------- */
.site-header { position: sticky; top: 12px; z-index: 30; margin-top: 12px; }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px 8px 20px; border: 3px solid var(--navy); border-radius: 999px; background: #fff; box-shadow: var(--shadow-pop);
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.75rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 800; }
.nav-links a:hover { background: var(--yellow); }
.brand, .btn { white-space: nowrap; }
@media (max-width: 767px) { .nav-links { display: none; } }
@media (max-width: 440px) {
  .nav-bar { padding-left: 12px; gap: 8px; }
  .brand { font-size: 1.05rem; gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .nav-bar .btn-sm { padding-inline: 1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; margin-top: -66px; min-height: 760px; padding-top: 130px; overflow: hidden;
  background: url(../assets/art/sky.jpg) center bottom / cover;
}
.hero-grid { display: grid; align-items: center; gap: 32px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-logo { width: min(560px, 100%); transform-origin: bottom; }
.hero h1 { margin: 16px 0 12px; font-size: clamp(2rem, 4.6vw, 3.3rem); -webkit-text-stroke-width: 9px; }
.hero-lead {
  max-width: 34ch; padding: 12px 18px; border: 3px solid #fff; border-radius: 20px; background: rgb(255 255 255 / 0.9);
  font-size: 1.25rem; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.foliage { position: absolute; inset-inline: 0; bottom: 0; z-index: -1; height: 55%; background: url(../assets/art/foliage.webp) center bottom / cover; pointer-events: none; }
/* two side-by-side columns so the cards and DinoGenie never overlap */
.hero-stage { display: grid; height: 500px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: end; gap: 12px; }
.cards { position: relative; height: 100%; }
.grab { position: absolute; z-index: 2; width: 78%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.grab:active { cursor: grabbing; }
.grab img { pointer-events: none; border: 5px solid #fff; border-radius: 26px; box-shadow: var(--shadow-pop); animation: bob 5s ease-in-out infinite; }
.grab-1 { left: 2%; top: 36px; rotate: -5deg; }
.grab-2 { right: 0; bottom: 8px; rotate: 4deg; }
.hero-mascot-col { position: relative; display: flex; height: 100%; align-items: flex-end; }
.hero-mascot-col .mascot { position: relative; width: 100%; padding-top: 96px; }

/* ---------- mascot ---------- */
.mascot { position: relative; }
.mascot-btn { display: block; width: 100%; transform-origin: bottom; }
.mascot-btn img { margin-inline: auto; width: auto; max-height: 460px; filter: drop-shadow(0 10px 0 rgb(20 36 107 / 0.18)); }
.bubble {
  position: absolute; top: -8px; right: 0; z-index: 10; max-width: 220px; padding: 12px 16px;
  border: 4px solid var(--navy); border-radius: 22px; background: #fff; box-shadow: var(--shadow-pop);
  font-family: var(--font-display); font-size: 1.125rem; line-height: 1.35;
}
.bubble i { position: absolute; bottom: -14px; left: 40px; width: 20px; height: 20px; rotate: 45deg; border-style: solid; border-width: 0 4px 4px 0; border-color: var(--navy); background: #fff; }

/* ---------- sections ---------- */
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head h2, .big-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-head p, .lede { max-width: 52ch; margin-top: 12px; font-size: 1.25rem; line-height: 1.4; }
.section-head.center p { margin-inline: auto; }

#play { padding: 96px 0 40px; background: linear-gradient(to bottom, var(--sky-soft), #fff); }
#worlds { position: relative; margin-top: -1px; padding: 112px 0; background: linear-gradient(to bottom, var(--lime), var(--grass), #8fd14f); }
#worlds .scallop { position: absolute; inset-inline: 0; top: 0; height: 60px; background: radial-gradient(60px 40px at 60px 0, #fff 98%, transparent 100%) repeat-x 0 0 / 120px 60px; }
#toyroom { padding: 96px 0; background: var(--sky-soft); }
#dinogenie { padding: 96px 0; background: linear-gradient(to bottom, var(--sky-soft), #fff); }
.dino-grid { display: grid; align-items: center; gap: 48px; }
@media (min-width: 768px) { .dino-grid { grid-template-columns: 340px 1fr; } }
.dino-grid .mascot { width: 100%; max-width: 300px; margin-inline: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
#get { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0 240px; text-align: center; background: linear-gradient(to bottom, var(--sky-soft), var(--sky)); }
#get .mascot { width: 160px; margin: 0 auto 16px; }
#get p { max-width: 52ch; margin: 12px auto 28px; font-size: 1.25rem; line-height: 1.4; }
#get .foliage { height: 240px; }

/* ---------- arcade ---------- */
.arcade {
  max-width: 920px; margin-inline: auto; padding: 16px; border: 5px solid var(--navy); border-radius: 36px; background: #fff;
  box-shadow: 0 10px 0 var(--navy), 0 28px 40px rgb(20 36 107 / 0.2);
}
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 640px) { .tabs { grid-template-columns: repeat(4, 1fr); } }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; border: 4px solid var(--navy); border-radius: 20px;
  font-size: 1.25rem; font-weight: 800; line-height: 1.75rem; color: var(--navy); box-shadow: 0 5px 0 var(--navy); transition: transform 0.15s;
}
.tab img { width: 48px; height: 48px; object-fit: contain; }
.tab:hover { transform: translateY(-2px); }
.tab[aria-selected="true"] { transform: translateY(5px); box-shadow: none; outline: 4px solid #fff; outline-offset: -10px; }
.tab-light { color: #fff; }
.panel { display: flex; justify-content: center; min-height: 420px; padding: 20px; border: 4px solid var(--navy); border-radius: 24px; background: var(--sky-soft); }
.panel[hidden] { display: none; }

/* paint */
.paint-stage { display: flex; width: 100%; max-width: 760px; flex-direction: column; gap: 12px; }
.tools { order: 2; display: flex; flex-shrink: 0; flex-direction: row; align-items: center; justify-content: center; gap: 12px; }
.tool { display: grid; width: 64px; height: 64px; place-items: center; border: 4px solid var(--navy); border-radius: 16px; background: #fff; box-shadow: 0 5px 0 var(--navy); }
.tool[aria-pressed="true"] { background: var(--yellow); }
.tool img { width: auto; }
.frame { order: 1; flex-grow: 1; padding: 4px; border: 6px solid #8b5a2b; border-radius: 18px; background: #fff; box-shadow: var(--shadow-pop); }
.frame-in { position: relative; aspect-ratio: 1024 / 640; width: 100%; overflow: hidden; border-radius: 12px; background: #fff; }
.frame-in canvas, .frame-in img { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-in canvas { cursor: pointer; touch-action: manipulation; }
.frame-in img { pointer-events: none; }
@media (min-width: 640px) {
  .paint-stage { flex-direction: row; }
  .tools { order: 1; flex-direction: column; }
  .frame { order: 2; }
}
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.swatch { width: 48px; height: 48px; border: 4px solid var(--navy); border-radius: 50%; box-shadow: 0 4px 0 var(--navy); transition: transform 0.15s; }
.swatch[aria-pressed="true"] { transform: translateY(-4px) scale(1.25); outline: 4px solid #fff; }

/* music */
.music-stage { position: relative; width: 100%; max-width: 640px; }
.music-animal { height: 144px; margin: 0 auto 24px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 0 rgb(20 36 107 / 0.2)); }
.keys { display: flex; gap: 6px; }
.key {
  display: flex; flex: 1; height: 176px; align-items: flex-end; justify-content: center; padding-bottom: 12px;
  border: 4px solid var(--navy); border-radius: 0 0 18px 18px; background: #fff; box-shadow: 0 7px 0 var(--navy); font-size: 1.25rem; font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.keys.sax .key { background: #ffd45e; }
.key .dot { display: grid; width: 36px; height: 36px; place-items: center; border: 3px solid var(--navy); border-radius: 50%; color: #fff; line-height: 1; }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.bar {
  display: flex; flex: 1; align-items: flex-end; justify-content: center; padding-bottom: 8px; border: 4px solid var(--navy); border-radius: 16px;
  color: var(--navy); font-size: 1.25rem; font-weight: 800; box-shadow: 0 7px 0 var(--navy); transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pad {
  aspect-ratio: 1; border: 4px solid var(--navy); border-radius: 50%; color: var(--navy); font-size: 1rem; font-weight: 800;
  box-shadow: 0 7px 0 var(--navy); transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.key.lit, .bar.lit { transform: translateY(7px); box-shadow: none; filter: brightness(1.1); }
.pad.lit { transform: translateY(7px) scale(0.95); box-shadow: none; filter: brightness(1.1); }
@media (min-width: 640px) {
  .keys, .bars { gap: 8px; }
  .key { height: 208px; }
  .pad { font-size: 1.125rem; }
}

/* words */
.round {
  display: grid; width: 72px; height: 72px; place-items: center; border: 5px solid var(--navy); border-radius: 50%; background: #fff;
  font-size: 2.25rem; font-weight: 800; line-height: 1; box-shadow: 0 6px 0 #9aa5d6; transition: transform 0.15s;
}
.round:hover { transform: translateY(-4px); }
.round:disabled { opacity: 0.25; box-shadow: none; transform: none; }
.word-pic { display: grid; width: 176px; height: 176px; place-items: center; border: 5px solid var(--navy); border-radius: 28px; background: #fff; box-shadow: var(--shadow-pop); }
.word-pic img { height: 128px; width: auto; object-fit: contain; }
.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.slot { display: grid; width: 72px; height: 72px; place-items: center; border: 5px dashed var(--navy); border-radius: 50%; background: #fff; font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; line-height: 1; }
.slot.filled { border-style: solid; background: var(--green); }

/* coding */
.board { position: relative; aspect-ratio: 5 / 4; width: 100%; max-width: 440px; overflow: hidden; border: 5px solid var(--navy); border-radius: 22px; background: url(../assets/art/space/bg.jpg) center / cover; box-shadow: var(--shadow-pop); }
.board > * { position: absolute; }
.board .cell { border: 1px solid rgb(255 255 255 / 0.15); border-radius: 12px; }
.board img { object-fit: contain; }
/* percent padding is relative to the board width, and a cell is 20% of it */
.board .rock { padding: 1.6%; }
.board .flag { padding: 2%; }
.board .astro { z-index: 10; padding: 0.8%; transition: all 0.3s var(--ease); }
.tray { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: 440px; min-height: 64px; padding: 8px; border: 3px dashed var(--navy); border-radius: 16px; background: #fff; }
.tray small { font-size: 1rem; color: rgb(20 36 107 / 0.6); }
.chip { display: grid; width: 40px; height: 40px; place-items: center; border: 3px solid var(--navy); border-radius: 8px; }
.chip img { width: 24px; height: 24px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.arrow { display: grid; width: 64px; height: 64px; place-items: center; border: 4px solid var(--navy); border-radius: 16px; box-shadow: 0 5px 0 var(--navy); }
.arrow img { width: 36px; height: 36px; }
.arrow:active { transform: translateY(5px); box-shadow: none; }

/* ---------- worlds ---------- */
.world-grid { display: grid; max-width: 980px; margin-inline: auto; grid-template-columns: 1fr; gap: 36px 28px; }
@media (min-width: 640px) { .world-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .world-grid { grid-template-columns: repeat(3, 1fr); } }
.js .reveal { opacity: 0; translate: 0 32px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease); }
.js .reveal.on { opacity: 1; translate: 0 0; }
.world {
  position: relative; display: block; width: 100%; height: 100%; padding: 12px 12px 20px; border: 4px solid var(--navy); border-radius: 30px; background: #fff;
  text-align: center; font-family: var(--font-body); box-shadow: 0 8px 0 var(--navy); rotate: -1.2deg; transition: transform 0.2s, rotate 0.2s;
}
.reveal:nth-child(even) .world { rotate: 1.2deg; }
.world:hover { transform: translateY(-8px) scale(1.03); rotate: 0deg; }
.world .tag { position: absolute; top: -16px; right: 14px; z-index: 1; rotate: 4deg; padding: 2px 16px; border: 3px solid var(--navy); border-radius: 999px; font-family: var(--font-display); font-size: 1rem; font-weight: 800; line-height: 1.5; color: var(--navy); }
.world .tag.light { color: #fff; }
.world .art { aspect-ratio: 285 / 383; width: 100%; border-radius: 20px; object-fit: cover; }
.world .art-chef { display: grid; aspect-ratio: 285 / 383; place-items: center; overflow: hidden; border-radius: 20px; background: linear-gradient(to bottom, #ffd45e, var(--orange)); }
.world .art-chef img { height: 92%; width: auto; object-fit: contain; }
.world h3 { margin-top: 14px; font-size: 1.9rem; line-height: 1.2; }
.world p { padding-inline: 8px; font-size: 1rem; line-height: 1.4; }
.world .more { display: inline-block; margin-top: 8px; font-size: 0.875rem; font-weight: 800; color: var(--purple); text-decoration: underline; }

dialog.world-dialog { width: min(560px, calc(100% - 32px)); margin: auto; padding: 0; border: 5px solid var(--navy); border-radius: 30px; background: #fff; color: var(--navy); box-shadow: var(--shadow-pop); }
dialog.world-dialog::backdrop { background: rgb(20 36 107 / 0.5); }
.dlg-in { padding: 24px; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dlg-head h3 { font-size: 1.875rem; line-height: 2.25rem; }
.dlg-close { display: grid; flex-shrink: 0; width: 44px; height: 44px; place-items: center; border: 4px solid var(--navy); border-radius: 50%; background: var(--yellow); }
.dlg-in > p { margin-top: 8px; font-size: 1.125rem; line-height: 1.6; }
.dlg-in .inside-title { margin-top: 16px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; }
.inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .inside { grid-template-columns: repeat(4, 1fr); } }
.inside li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 3px solid var(--navy); border-radius: 16px; background: var(--sky-soft); text-align: center; font-size: 0.875rem; font-weight: 800; line-height: 1.25; }
.inside img { width: 64px; height: 64px; object-fit: contain; }

/* ---------- toy room ---------- */
.room-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.room-tabs .choice { padding-inline: 20px; }
.room { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 960px; margin-inline: auto; overflow: hidden; border: 5px solid var(--navy); border-radius: 28px; box-shadow: 0 10px 0 var(--navy); }
.room > img { width: 100%; height: 100%; object-fit: cover; }
.spot {
  position: absolute; display: grid; width: 40px; height: 40px; place-items: center; translate: -50% -50%; border: 3px solid #fff; border-radius: 50%;
  background: rgb(255 79 163 / 0.8); color: #fff; box-shadow: var(--shadow-pop); transition: scale 0.15s;
}
.spot:hover, .spot:focus-visible { scale: 1.25; }
.spot .ring { position: absolute; inset: 0; border-radius: 50%; background: rgb(255 255 255 / 0.5); animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.spot svg { position: relative; }
@media (min-width: 640px) { .spot { width: 48px; height: 48px; } }
.say {
  position: absolute; inset-inline: 12px; bottom: 12px; max-width: 28rem; margin-inline: auto; padding: 8px 16px; border: 4px solid var(--navy); border-radius: 16px; background: #fff;
  text-align: center; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; line-height: 1.6; box-shadow: var(--shadow-pop);
}
.say[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; padding: 24px 0; background: #6cc24a; font-weight: 800; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.footer-in nav { display: flex; gap: 24px; }
.footer-in nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- privacy and terms pages ---------- */
.legal { padding: 48px 0 72px; font-size: 1.05rem; font-weight: 600; }
.legal-card { max-width: 820px; margin-inline: auto; padding: clamp(24px, 5vw, 48px); border: 4px solid var(--navy); border-radius: 30px; background: #fff; box-shadow: 0 8px 0 var(--navy); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.15; }
.legal h2 { margin-top: 32px; font-size: 1.5rem; line-height: 1.25; }
.legal h3 { margin-top: 20px; font-size: 1.15rem; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 24px; list-style: disc; }
.legal li { margin-top: 4px; }
.legal a { color: var(--purple); text-decoration: underline; overflow-wrap: anywhere; }
.legal .updated { margin-top: 4px; font-size: 0.95rem; font-weight: 800; }
