/* Globespot website. Colours mirror the app's Shared/Palette.swift ("Ocean & Land", her pick
   2026-09-29) and are defined once here; tests/test_palette.py fails if the two drift apart. */
:root {
  --page: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f1ec;
  --ink: #111827;
  --muted: #4b5263;
  --line: #e4e2db;
  --blue: #1D6FE0;       /* ocean blue: links, numbers, focus rings */
  --blue-ink: #175AB3;   /* ocean blue for text on --blue-soft (the plain blue is only 4.2:1 there) */
  --blue-soft: #E8F1FC;
  --green: #1F9D55;      /* land green: pins and places — fills only, too light for text */
  --green-soft: #E4F3EB;
  --green-ink: #156B3A;  /* land green text on --green-soft */
  --right: #197E44;      /* right answers (white text on it: 5.1:1) */
  --wrong: #c62828;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }  /* note #22: headings split into even lines, never one long + one short */
.sub, .lede { text-wrap: pretty; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- header / footer ---------- */
/* Her note #13 (2026-09-30): the menu stays at the top as you scroll. Over the hero it is clear;
   once you scroll, site.js adds .scrolled and it gets a solid background. */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .25s ease, box-shadow .25s ease; }
.top.scrolled { background: var(--page); box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(17,24,39,.35); }
.home .top.scrolled nav { box-shadow: none; }
main [id] { scroll-margin-top: 88px; }
/* Her note #14 (2026-09-30): logo left, menu centred, a Download button on the right. */
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
.top .brand { justify-self: start; }
.top nav { justify-self: center; }
.top-cta { justify-self: end; }
.top-cta .store { min-height: 40px; padding: 6px 14px; border-radius: 10px; font-size: .9rem; gap: 8px; white-space: nowrap; }
.top nav a { white-space: nowrap; }
.top-cta .store small { font-size: .62rem; }
.top-cta .store svg { width: 16px; height: 19px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
/* Her notes #1/#2 (2026-09-29): logo further left, menu further right — the header spans the window, not the content column. */
.top .wrap { max-width: none; padding: 0 clamp(16px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--blue); }
/* On the home hero the nav sits over a photo: give it a solid surface so it stays readable. */
.home .top nav { background: var(--surface); border-radius: 999px; padding: 8px 18px; box-shadow: 0 4px 16px -8px rgba(17,24,39,.3); }
.page .top { position: sticky; border-bottom: 1px solid var(--line); background: var(--surface); }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--ink); text-decoration: none; }

/* ---------- shared pieces ---------- */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; line-height: 1.15; }
.store small { display: block; font-weight: 400; font-size: .75rem; opacity: .85; }
.store svg { width: 22px; height: 26px; fill: currentColor; flex: none; }
.sub { color: var(--muted); max-width: 38rem; margin: 0 0 36px; font-size: 1.08rem; }
section h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); margin: 0 0 10px; }

/* The phone */
.phone { position: relative; width: 280px; aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px; background: #0b0b0f; box-shadow: 0 30px 60px -24px rgba(17,24,39,.45); flex: none; }
.phone .glass { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; }
.phone .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; background: #000; border-radius: 20px; z-index: 3; }
.phone .lock { position: absolute; inset: 0; z-index: 2; color: #fff; text-align: center; padding-top: 58px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.phone .date { font-size: .8rem; font-weight: 600; }
.phone .time { font-size: 4.2rem; font-weight: 700; letter-spacing: -1px; line-height: 1; margin-top: 2px; }
.widget { margin: 10px auto 0; width: 78%; padding: 8px 12px; border-radius: 16px; background: rgba(255,255,255,.24); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: left; font-size: .78rem; line-height: 1.3; }
.widget b { display: block; font-size: .85rem; }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: 780px; display: flex; align-items: center; overflow: hidden; }
.hero > svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,250,247,.97) 0%, rgba(251,250,247,.9) 38%, rgba(251,250,247,.35) 62%, rgba(251,250,247,0) 80%); }
.hero .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; padding-top: 110px; padding-bottom: 70px; }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.8rem); line-height: 1; margin: 0 0 18px; max-width: 12ch; }
.hero .wrap > div:first-child { padding-top: 77px; }  /* note #24: +53px above the headline, measured (62→115px on desktop; the hero grows, so this is not 1:1) */
@media (max-width: 900px) { .hero .wrap > div:first-child { padding-top: 53px; } }
.hero .lede { font-size: 1.2rem; max-width: 30rem; color: #2f3545; margin: 0 0 26px; }
.hero .phone { margin-right: 40px; }
/* Her note #3 (2026-09-29): hero phone a bit smaller so it isn't so close to the menu. */
.hero .phone { width: 240px; }
.hero .phone .time { font-size: 3.6rem; }

/* ---------- home: places ---------- */
.places { padding: 90px 0 60px; }
/* Layout A (her pick, 2026-09-30): photo cards pinned on a map. On narrow screens the cards drop into a 2-column grid over the map. */
.mapboard { position: relative; height: 520px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.mapboard .land { position: absolute; inset: 0; width: 100%; height: 100%; }
.pinned { position: absolute; transform: translate(-50%, -50%); width: 190px; margin: 0; background: var(--surface); padding: 8px 8px 10px; border-radius: 14px; box-shadow: 0 16px 30px -16px rgba(17,24,39,.45); }
.pinned .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.pinned .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pinned figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.pinned figcaption b { display: block; color: var(--ink); font-size: .92rem; }
.pinned::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--surface); }

/* ---------- home: game ---------- */
.game { padding: 80px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.quiz { background: var(--page); border: 1px solid var(--line); border-radius: 28px; padding: 16px; box-shadow: 0 30px 60px -34px rgba(37,69,235,.4); }
.quiz .pic { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.quiz .pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.quiz .streak { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 12px; font-size: .9rem; }
.quiz h3 { margin: 16px 6px 12px; font-size: 1.25rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices button { font: inherit; font-weight: 600; min-height: 52px; padding: 6px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.choices button:hover { border-color: var(--blue); }
.choices button.right { background: var(--right); border-color: var(--right); color: #fff; }
.choices button.wrong { background: var(--wrong); border-color: var(--wrong); color: #fff; }
.quiz .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 6px 4px; flex-wrap: wrap; }
.quiz .reveal { margin: 0; color: var(--muted); min-height: 1.5em; }
.quiz .next { font: inherit; font-weight: 600; color: var(--blue-ink); background: var(--blue-soft); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 97px; }  /* note #17: +53px above the level cards */
.levels div { border-radius: 20px; padding: 22px; background: var(--page); border: 1px solid var(--line); }
.levels b { display: block; font-size: 1.15rem; }
.levels span { color: var(--muted); }
.levels .q { margin-top: 10px; font-weight: 600; color: var(--blue); font-size: .95rem; }

/* ---------- home: how ---------- */
.how { padding: 80px 0; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.how li { border-top: 2px solid var(--ink); padding-top: 18px; counter-increment: s; }
.how li::before { content: "0" counter(s); font-family: var(--serif); font-size: 2rem; color: var(--blue); display: block; margin-bottom: 6px; }
.how h3 { margin: 0 0 6px; font-size: 1.2rem; }
.how p { margin: 0; color: var(--muted); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.modes div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.modes h3 { margin: 0 0 6px; }
.modes p { margin: 0 0 12px; color: var(--muted); }
.modes code { font-family: var(--sans); display: inline-block; background: #1f2937; color: #fff; border-radius: 12px; padding: 8px 12px; font-size: .9rem; }

/* ---------- home: Globespot Plus (option D, her pick 2026-10-02; yearly + monthly only, never a lifetime price) ---------- */
.plus { padding: 80px 0; }
/* note #27: the tiles + plans sit in their own light-blue band with a heading, so they read as a separate section */
.plus-features { background: var(--blue-soft); }
.plus.plus-features .planrow { background: var(--surface); }
.plus.plus-features .tiles { margin-top: 0; }
.plus .kicker { color: var(--blue-ink); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin: 0 0 8px; }
.plus-story { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.plus-globe { width: 240px; aspect-ratio: 9 / 19.5; border-radius: 40px; padding: 10px; background: #0b0b0f; box-shadow: 0 30px 60px -24px rgba(17,24,39,.45); }
.plus-globe .scr { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 50% 42%, var(--blue) 0 34%, #0d1b3a 35%); }
.plus-globe .land { position: absolute; border-radius: 50%; background: var(--green); }
.plus-globe .dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #FFF6D6; box-shadow: 0 0 0 2px rgba(255,246,214,.35); }
.plus-globe .cap { position: absolute; left: 12px; right: 12px; bottom: 14px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 14px; padding: 10px 12px; font-size: .8rem; }
.plus-globe .cap b { display: block; font-size: .95rem; }
/* note #26: the stamps spread evenly across the column, big enough that the words sit inside */
.plus .stamps { display: flex; justify-content: space-evenly; gap: 12px; margin: 24px 0 0; }
.plus .stamps span { border: 2px dashed var(--blue); color: var(--blue-ink); border-radius: 50%; width: 92px; height: 92px; display: grid; place-items: center; font-size: .82rem; font-weight: 700; text-align: center; line-height: 1.15; padding: 10px; transform: rotate(-8deg); }
.plus .stamps span:nth-child(2) { border-color: var(--green); color: var(--green-ink); transform: rotate(6deg); }
.plus .tiles { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plus .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.plus .tile .art { height: 92px; border-radius: 14px; margin-bottom: 12px; display: grid; place-items: center; font-size: 2.2rem; }
.plus .tile b { display: block; margin-bottom: 4px; }
.plus .tile span { color: var(--muted); font-size: .92rem; }
.plus .art.b { background: var(--blue-soft); } .plus .art.g { background: var(--green-soft); } .plus .art.n { background: #1b2340; } .plus .art.v { background: #f3e7cf; }
.plus .planrow { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: var(--blue-soft); border-radius: 22px; padding: 22px; }
.plus .paycards { flex: 1 1 320px; max-width: 460px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plus .paycards div { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; }
.plus .paycards div.best { border-color: var(--blue); }
.plus .paycards .tag { position: absolute; top: -10px; left: 12px; background: var(--blue-ink); color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.plus .paycards b { display: block; font-size: 1.15rem; }
.plus .paycards span { color: var(--muted); font-size: .85rem; }
.plus .cta-side { display: grid; gap: 6px; justify-items: center; }
.plus .cta-side small { color: var(--muted); }
.plus .fine { color: var(--muted); font-size: .85rem; margin: 18px 0 0; }

/* ---------- home: call to action ---------- */
/* Her note #11 (2026-09-30): the privacy band became one big call to action. */
.cta { background: var(--blue); color: #fff; text-align: center; padding: 110px 0; }
.cta h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); max-width: 18ch; margin: 0 auto 16px; line-height: 1.05; }
.cta p { font-size: 1.25rem; margin: 0 auto 34px; max-width: 32rem; }
.cta .store { background: #fff; color: var(--ink); min-height: 64px; padding: 12px 30px; font-size: 1.2rem; border-radius: 16px; box-shadow: 0 18px 36px -18px rgba(0,0,0,.45); }
.cta .store svg { width: 26px; height: 30px; }

/* ---------- home: the premise — remembering where you took it (2026-09-29) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.forgot { padding: 90px 0 70px; }
.stat { margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--blue-soft); color: var(--blue-ink); max-width: 34rem; }
.stat b { font-size: 1.25rem; }
.roll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.roll .tile { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.roll .tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.roll .tile:not(.ask) { opacity: .55; }
.roll .ask { outline: 4px solid var(--green); outline-offset: -4px; border: 0; padding: 0; font: inherit; cursor: pointer; background: none; }
.roll .ask .q { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; color: #fff; background: rgba(17,24,39,.35); }
/* Note #25 (2026-09-30): tap the "?" and the place + date pop up; tap again to hide. */
.roll .ask .place { position: absolute; left: 8px; right: 8px; bottom: 8px; display: none; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 10px; padding: 6px 8px; font-weight: 700; font-size: .78rem; line-height: 1.25; text-align: left; box-shadow: 0 8px 18px -10px rgba(17,24,39,.5); }
.roll .ask .place small { display: block; font-weight: 400; color: var(--muted); }
.roll .ask.revealed .q { display: none; }
.roll .ask.revealed .place { display: block; }
.moment { padding: 70px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.beats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.beats .art { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.beats .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.beats .bubble { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--surface); color: var(--ink); font-family: var(--serif); font-size: 1.2rem; padding: 10px 16px; border-radius: 16px; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(17,24,39,.5); }
.beats .tag { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--ink); font-weight: 700; padding: 10px 14px; border-radius: 14px; }
.beats .tag small { display: block; font-weight: 400; color: var(--muted); }
.beats h3 { margin: 0 0 6px; font-size: 1.2rem; }
.beats p { margin: 0; color: var(--muted); }
.spot { padding: 70px 0; }
.map { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map svg { width: 100%; height: auto; }
.map figcaption { padding: 14px 18px; color: var(--muted); }
.map figcaption b { display: block; color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--muted); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.forgotten { padding: 20px 0 80px; }
/* Her note #10 (2026-09-30): the "exact spot" + "forgotten trips" sections sit on the light green; chips turn white so they still show. */
.forgotten { background: var(--green-soft); padding-top: 80px; }  /* note #16: only this section is green, not the exact-spot one */
.forgotten .chips li { background: var(--surface); }
/* Her note #7 (2026-09-30): "so it's even". The app has exactly 8 filters, so an even grid (4 × 2, 2 across on phones) instead of inventing more. */
.chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chips li { background: var(--green-soft); color: var(--green-ink); font-weight: 600; border-radius: 999px; padding: 12px 16px; text-align: center; }
@media (max-width: 900px) { .chips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .chips li { padding: 10px 8px; font-size: .9rem; } }

/* ---------- motion (animation pass, 2026-09-30) ----------
   Rules: content is visible by default. site.js only hides an element (html.anim .rv.wait) after it has
   set up the observer that reveals it, and force-completes if that observer never fires. Everything here
   sits inside no-preference, so reduced-motion visitors get the static page. tests/test_site.py checks both. */
@media (prefers-reduced-motion: no-preference) {
  html.anim .rv { transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1), scale .5s cubic-bezier(.3,1.4,.5,1); transition-delay: var(--d, 0ms); }
  html.anim .rv.wait { opacity: 0; translate: 0 18px; }
  html.anim .rv.pop.wait { translate: 0 0; scale: .85; }
  html.anim .mapboard .pinned.rv.wait { translate: 0 -28px; }

  /* Always-on, gentle */
  .hero .phone { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-10px); } }
  .route { animation: march 5s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -140; } }
  .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { from { scale: .6; opacity: .45; } to { scale: 1.9; opacity: 0; } }
  .roll .ask:not(.revealed) { animation: bounce 1.6s cubic-bezier(.3,1.4,.5,1) infinite; z-index: 1; }  /* bounces until tapped (note #25) */
  @keyframes bounce { 0%, 60%, 100% { translate: 0 0; } 20% { translate: 0 -10px; } 40% { translate: 0 0; } 50% { translate: 0 -4px; } }
  .roll .ask.revealed .place { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
  
  /* Quiz feedback */
  .choices button { transition: background-color .2s, border-color .2s, color .2s, translate .15s; }
  .choices button.right { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
  .choices button.wrong { animation: shake .4s ease; }
  @keyframes pop { 40% { scale: 1.06; } }
  @keyframes shake { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
  .streak.bump { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }

  /* Hover lift, only where a pointer can hover */
  @media (hover: hover) {
    .store, .pinned, .beats .art, .chips li, .levels > div, .modes > div, .plist li { transition: translate .25s ease, box-shadow .25s ease; }
    .store:hover, .chips li:hover, .levels > div:hover, .modes > div:hover { translate: 0 -3px; }
    .pinned:hover { translate: 0 -6px; z-index: 2; box-shadow: 0 24px 40px -18px rgba(17,24,39,.5); }
    .beats li:hover .art { translate: 0 -4px; }
    .choices button:hover { translate: 0 -2px; }
  }
}

/* ---------- text pages (privacy, support, 404) ---------- */
.doc { max-width: 46rem; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin: 0 0 8px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 8px; }
.doc p, .doc li { color: #2f3545; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.notice { border-radius: 14px; padding: 14px 18px; margin: 0 0 24px; border: 1px solid; }
.notice.draft { background: #fff7e6; border-color: #f0c36a; color: #5c3d00; }
.notice.missing { background: #fdecec; border-color: #eba3a3; color: #7a1414; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 16px 0 0; }
.contact a { font-weight: 600; font-size: 1.1rem; }

/* ---------- support: contact form (her note #20; posts into Loop since 2026-09-30) ---------- */
.contact-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-top: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--page); border: 1.5px solid #c9c6bd; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field [aria-invalid="true"] { border-color: var(--wrong); }
.field-error { margin: 0; color: var(--wrong); font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .send { font: inherit; font-weight: 700; justify-self: start; min-height: 50px; padding: 12px 26px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; cursor: pointer; }
.contact-form .send:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--right); font-weight: 600; }
.form-status.err { color: var(--wrong); font-weight: 600; }

.form-status a { color: inherit; }
.field .hint { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- responsive ---------- */
/* Below 820px there is no room for logo + menu + button on one line: the header keeps the logo and
   Download, and Privacy / Support stay in the footer. */
@media (max-width: 820px) {
  .top nav { display: none; }
  .top .wrap { grid-template-columns: 1fr auto; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(251,250,247,.97) 0%, rgba(251,250,247,.92) 55%, rgba(251,250,247,.4) 100%); }
  .hero .wrap { flex-direction: column; align-items: flex-start; }
  .hero .phone { margin: 0 auto; }
  .mapboard { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
  .pinned { position: relative; left: auto !important; top: auto !important; transform: none; width: auto; }
  .pinned::after { display: none; }
  .game .split, .how ol, .levels, .modes, .split, .beats { grid-template-columns: 1fr; }
  .plus-story { grid-template-columns: 1fr; }
  .plus-globe { margin: 0 auto; }
  .plus .tiles { grid-template-columns: 1fr 1fr; }
  .spot .map { order: 2; }
}
@media (max-width: 560px) {
  .plus .tiles, .plus .paycards { grid-template-columns: 1fr; }
  .plus .stamps span { width: 82px; height: 82px; font-size: .76rem; }
  .top nav { gap: 14px; }
  .top-cta .store { width: auto; }
  .phone { width: 240px; }
  .phone .time { font-size: 3.6rem; }
  .store { width: 100%; justify-content: center; }
  .choices button { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* cookie banner (assets/consent.js) — Ocean & Land blue, 2026-10-04 */
.cb{--cb-accent:#1D6FE0;--cb-on-accent:#fff;--cb-ink:#1b1f1d;--cb-bg:#fff}
