/* ============================================================================
   guessmysketch.com — one stylesheet, no build step, no JavaScript.
   Colors, type, and shapes come from the iOS app: Theme.swift, BrandMark.swift,
   BrandBackground.swift. The icon's gradient is the ground on every page; white
   paper is the only light surface; sun yellow is the only warm color.
   ============================================================================ */

:root {
  --cyan: #28B8E6;
  --blue: #3384C4;
  --navy: #394DA1;
  --violet: #6B47A0;
  --magenta: #A2409F;
  --ink: #1B1554;
  --sun: #FFD23F;
  --paper: #FFFFFF;
  --correct: #22C55E;
  --close: #F59E0B;
  --wrong: #EF4444;
  --ink-soft: #5C5791;   /* 6.0:1 on white */
  --rule: #DEDBF0;
  --paper-tint: #F4F3FA;
  --band: #E4E0F5;

  --font: ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --paper-radius: 28px;
  --paper-shadow: 0 10px 18px rgb(27 21 84 / 0.32);
  --hard-shadow: 0 0.07em 0 rgb(27 21 84 / 0.55);
  --wrap: 1080px;
  --gutter: clamp(20px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--navy);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  color: #fff;
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible, .tile :focus-visible, .article :focus-visible, details :focus-visible { outline-color: var(--navy); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-weight: 900; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- The ground: the icon's gradient as a slow mesh, plus the doodle tile ---------- */
.ground, .doodles {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}
.ground {
  z-index: -2;
  background-color: var(--navy);
  background-image:
    radial-gradient(70% 62% at 100% 0%, var(--magenta) 0%, rgb(162 64 159 / 0) 70%),
    radial-gradient(64% 58% at 62% 28%, var(--violet) 0%, rgb(107 71 160 / 0) 70%),
    radial-gradient(58% 52% at 18% 78%, var(--blue) 0%, rgb(51 132 196 / 0) 72%),
    radial-gradient(34% 30% at 0% 100%, var(--cyan) 0%, rgb(40 184 230 / 0) 70%);
  background-size: 130% 130%;
  background-repeat: no-repeat;
  background-position: 100% 0%, 40% 30%, 20% 80%, 0% 100%;
}
.doodles {
  z-index: -1;
  background: url(/images/doodles.svg) 0 0 / 187.2px 374.4px repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .ground { animation: drift 30s ease-in-out infinite alternate; }
  @keyframes drift {
    from { background-position: 100% 0%, 40% 30%, 20% 80%, 0% 100%; }
    to   { background-position: 70% 20%, 80% 55%, 45% 95%, 15% 100%; }
  }
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.top { position: relative; z-index: 2; }
.top-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  color: #fff; text-decoration: none; font-weight: 900; font-size: 19px;
  text-shadow: var(--hard-shadow);
}
.brand img {
  width: 40px; height: 40px; border-radius: 22.5%;
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgb(27 21 84 / 0.4);
}
.top-nav { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 4px; margin-left: auto; }
.top-nav a {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.top-nav a:hover { background: rgb(255 255 255 / 0.14); }
.top-nav .hide-sm { display: none; }
@media (min-width: 640px) { .top-nav .hide-sm { display: inline-block; } }

/* ---------- Shared type ---------- */
.eyebrow {
  font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
}
.h1, .h2 {
  margin: 0;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-shadow: var(--hard-shadow);
  color: #fff;
}
.h1 { font-size: clamp(36px, 6vw, 56px); }
.h2 { font-size: clamp(30px, 4.6vw, 44px); }
.sub { font-size: 18px; max-width: 60ch; color: rgb(255 255 255 / 0.92); }

/* ---------- Surfaces ---------- */
.paper {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--paper-radius);
  box-shadow: var(--paper-shadow);
  padding: clamp(22px, 4vw, 40px);
}
.paper a, .article a, details a { color: var(--navy); }
.glass {
  background: rgb(255 255 255 / 0.15);
  border: 1px solid rgb(255 255 255 / 0.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 900; font-size: 18px; line-height: 1.2; text-decoration: none;
}
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 14px rgb(27 21 84 / 0.28); }
.btn-sun:hover { background: #FFDB5C; }
.btn-glass { color: #fff; font-weight: 800; font-size: 16px; padding: 12px 20px; }
.btn-glass:hover { background: rgb(255 255 255 / 0.22); }
.btn .i { width: 20px; height: 20px; }
.btn-ink { background: var(--ink); color: #fff; }

/* ---------- Icons: a small rounded line set drawn for this site ---------- */
.i {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(16px, 4vw, 48px) 0 clamp(40px, 7vw, 88px); }
.hero-inner { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
}
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.sticker {
  width: 112px; height: 112px;
  border-radius: 22.5%;
  border: 4px solid #fff;
  box-shadow: 0 8px 14px rgb(27 21 84 / 0.4);
  transform: rotate(-6deg);
}
@media (prefers-reduced-motion: no-preference) {
  .sticker.bob { animation: bob 3.6s ease-in-out infinite; }
  @keyframes bob {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-7px); }
  }
}
.wordmark {
  margin: 0;
  font-weight: 900;
  font-size: clamp(56px, 11.5vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.012em;
  color: #fff;
  text-shadow: var(--hard-shadow);
}
.wordmark span { display: block; }
.wordmark .sketch { display: block; width: fit-content; position: relative; padding-bottom: 0.2em; }
.squiggle {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 0.22em; overflow: visible;
  filter: drop-shadow(0 0.07em 0 rgb(27 21 84 / 0.55));
}
.squiggle path {
  fill: none; stroke: var(--sun); stroke-width: 0.11em;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.tagline {
  font-weight: 900; font-size: clamp(22px, 3vw, 28px);
  color: var(--sun); text-shadow: 0 2px 0 rgb(27 21 84 / 0.35);
}
.lede { font-weight: 800; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; max-width: 30ch; }
.hero-sub { max-width: 50ch; font-size: 17px; color: rgb(255 255 255 / 0.92); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-weight: 900; font-size: 18px;
  box-shadow: 0 6px 14px rgb(27 21 84 / 0.28);
}
.soon .i { width: 22px; height: 22px; }
.req { font-size: 15px; color: rgb(255 255 255 / 0.9); max-width: 46ch; }
.req a { color: #fff; }

/* ---------- The phone: the game screen built from the app's own parts ---------- */
.phone-wrap { display: grid; justify-items: center; }
.phone {
  --pw: min(300px, 76vw);
  width: var(--pw);
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.185);
  background: #0F0D2B;
  box-shadow: 0 34px 60px rgb(27 21 84 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.18);
}
.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--pw) * 0.155);
  background-color: var(--navy);
  background-image:
    radial-gradient(70% 45% at 100% 0%, var(--magenta) 0%, rgb(162 64 159 / 0) 70%),
    radial-gradient(70% 40% at 55% 30%, var(--violet) 0%, rgb(107 71 160 / 0) 70%),
    radial-gradient(60% 36% at 20% 78%, var(--blue) 0%, rgb(51 132 196 / 0) 72%),
    radial-gradient(45% 22% at 0% 100%, var(--cyan) 0%, rgb(40 184 230 / 0) 70%);
  font-size: calc(var(--pw) * 0.05);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.8em;
  padding: 2.5em 0.85em 1.1em;
}
.screen::before {
  content: "";
  position: absolute; inset: 0;
  background: url(/images/doodles.svg) 0 0 / 110px 220px repeat;
  pointer-events: none;
}
.island {
  position: absolute; top: 0.55em; left: 50%; transform: translateX(-50%);
  width: 33%; height: 1.3em; border-radius: 999px; background: #000;
}
.hud { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0.5em; }
.timer {
  min-width: 2.6em; padding: 0.02em 0.5em; border-radius: 999px;
  font-size: 1.55em; font-weight: 900; line-height: 1.35; text-align: center;
  font-variant-numeric: tabular-nums;
}
.timer::after { counter-reset: secs var(--secs, 47); content: counter(secs); }
.count, .skipbtn {
  padding: 0.3em 0.7em; border-radius: 999px;
  font-size: 0.78em; font-weight: 800; line-height: 1.2; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.count::after { counter-reset: words var(--words, 3); content: counter(words) " words"; }
.skipbtn { justify-self: end; }
.word { grid-column: 1 / -1; display: flex; }
.tag {
  padding: 0.06em 0.6em; border-radius: 0.42em;
  background: var(--sun); color: var(--ink); font-weight: 900; font-size: 1.2em; line-height: 1.3;
  transform: rotate(-2deg);
}
.tag small { font-size: 0.6em; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; vertical-align: 0.1em; margin-right: 0.3em; }
.canvas {
  position: relative;
  background: var(--paper);
  border-radius: calc(var(--pw) * 0.085);
  box-shadow: 0 8px 16px rgb(27 21 84 / 0.35);
  overflow: hidden;
}
.drawing { position: absolute; left: 8%; bottom: 9%; width: 60%; height: auto; }
.drawing path {
  fill: none; stroke: #000; stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.feed {
  position: absolute; top: 0.75em; right: 0.75em;
  display: grid; gap: 0.35em; justify-items: end;
  font-size: 0.8em; font-weight: 700; color: var(--ink);
}
.row {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.28em 0.7em; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 0 rgb(27 21 84 / 0.08);
}
.row svg { width: 1em; height: 1em; flex: none; }
.row.pending { background: rgb(27 21 84 / 0.07); color: var(--ink-soft); font-weight: 600; opacity: 0; }
.row.wrong { background: color-mix(in srgb, var(--wrong) 16%, white); }
.row.close { background: color-mix(in srgb, var(--close) 18%, white); }
.row.correct {
  background: color-mix(in srgb, var(--correct) 18%, white);
  box-shadow: 0 0 0.8em color-mix(in srgb, var(--correct) 70%, transparent);
}
.row .flag { font-size: 0.7em; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(27 21 84 / 0.65); }
.pop {
  position: absolute; top: 0.75em; left: 0.75em;
  padding: 0.2em 0.65em; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-weight: 900; font-size: 0.95em; line-height: 1.25;
  box-shadow: 0 2px 0 rgb(27 21 84 / 0.25);
  opacity: 0; transform: rotate(-4deg);
}
.die-pop {
  position: absolute; right: 8%; bottom: 9%;
  width: 2.6em; height: 2.6em; border-radius: 0.6em;
  background: var(--correct);
  box-shadow: 0 3px 0 rgb(27 21 84 / 0.25), inset 0 0 0 2px rgb(255 255 255 / 0.4);
  opacity: 0; transform: rotate(10deg);
}
.die-pop svg { width: 100%; height: 100%; }
.die-pop circle { fill: #fff; }
.tools { display: flex; justify-content: center; }
.palette { display: inline-flex; gap: 0.55em; padding: 0.42em 0.8em; border-radius: 999px; }
.palette i { width: 1.1em; height: 1.1em; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.ink-k { background: #000; }
.ink-r { background: #EF4444; }
.ink-g { background: #22C55E; }
.ink-b { background: #3B82F6; }
.ink-y { background: #EAB308; }
.ink-e { background: #fff; box-shadow: 0 0 0 2px #fff, inset 0 0 0 0.16em var(--ink-soft) !important; }

/* The set piece: one turn of a run on a 14-second loop. The house is drawn, the AI guesses, the
   time back lands on the clock, the words count ticks up and the die appears for the roll. Base
   styles above are a run in progress, so reduced-motion users (and the Open Graph card) see that. */
@property --secs { syntax: "<integer>"; inherits: false; initial-value: 47; }
@property --words { syntax: "<integer>"; inherits: false; initial-value: 3; }
@media (prefers-reduced-motion: no-preference) {
  .anim .drawing path { animation: draw 14s linear infinite; }
  @keyframes draw {
    0% { stroke-dashoffset: 1; }
    30% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; }
  }
  .anim .row.pending { animation: think 14s linear infinite; }
  @keyframes think {
    0%, 6% { opacity: 0; transform: translateY(0.4em); }
    9%, 24% { opacity: 1; transform: none; }
    26%, 100% { opacity: 0; transform: translateY(-0.3em); }
  }
  .anim .row.g1 { animation: pop1 14s linear infinite; }
  .anim .row.g2 { animation: pop2 14s linear infinite; }
  .anim .row.g3 { animation: pop3 14s linear infinite, glow 14s linear infinite; }
  @keyframes pop1 { 0%, 25% { opacity: 0; transform: translateY(0.5em) scale(0.92); } 28%, 100% { opacity: 1; transform: none; } }
  @keyframes pop2 { 0%, 38% { opacity: 0; transform: translateY(0.5em) scale(0.92); } 41%, 100% { opacity: 1; transform: none; } }
  @keyframes pop3 { 0%, 52% { opacity: 0; transform: translateY(0.5em) scale(0.92); } 55%, 100% { opacity: 1; transform: none; } }
  @keyframes glow {
    0%, 54% { box-shadow: 0 0 0 color-mix(in srgb, var(--correct) 0%, transparent); }
    58% { box-shadow: 0 0 1.3em color-mix(in srgb, var(--correct) 85%, transparent); }
    72%, 100% { box-shadow: 0 0 0.8em color-mix(in srgb, var(--correct) 70%, transparent); }
  }
  /* The clock runs only while the house is drawn; it stops when the AI gets it, then the +12 s lands. */
  .anim .timer::after { animation: countdown 14s linear infinite; }
  @keyframes countdown { 0% { --secs: 55; } 55%, 56% { --secs: 47; } 59%, 100% { --secs: 59; } }
  .anim .count::after { animation: words 14s linear infinite; }
  @keyframes words { 0%, 57% { --words: 3; } 58%, 100% { --words: 4; } }
  .anim .pop { animation: time-back 14s linear infinite; }
  @keyframes time-back {
    0%, 55% { opacity: 0; transform: translateY(0.5em) rotate(-4deg) scale(0.8); }
    58%, 72% { opacity: 1; transform: translateY(0) rotate(-4deg) scale(1); }
    80%, 100% { opacity: 0; transform: translateY(-0.9em) rotate(-4deg) scale(1); }
  }
  .anim .die-pop { animation: roll 14s linear infinite; }
  @keyframes roll {
    0%, 78% { opacity: 0; transform: translateY(0.8em) rotate(-50deg) scale(0.5); }
    84% { opacity: 1; transform: translateY(0) rotate(14deg) scale(1.1); }
    88%, 100% { opacity: 1; transform: translateY(0) rotate(10deg) scale(1); }
  }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(44px, 7vw, 88px); }
.section-inner { display: grid; gap: 22px; }
.section-head { display: grid; gap: 8px; max-width: 62ch; }
.section-head .eyebrow { color: var(--sun); text-shadow: 0 1px 0 rgb(27 21 84 / 0.4); }

/* How a run works */
.steps {
  display: grid; gap: 22px 28px;
  counter-reset: step;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--sun); color: var(--ink);
  font-weight: 900; font-size: 21px; display: grid; place-items: center;
  transform: rotate(-3deg); box-shadow: 0 3px 0 rgb(27 21 84 / 0.22);
}
.step::before { grid-row: 1 / span 2; }
.step h3 { grid-column: 2; margin: 4px 0 4px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.step p { grid-column: 2; color: var(--ink-soft); font-size: 16px; }

/* The turn loop and the die, drawn inline */
.figures { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); display: grid; gap: 26px; align-items: start; }
@media (min-width: 960px) { .figures { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; } }
.figure { display: grid; gap: 10px; min-width: 0; }
.loop { overflow-x: auto; width: 0; min-width: 100%; }
.loop svg { width: 100%; min-width: 560px; height: auto; }
.dice svg { width: 100%; max-width: 400px; height: auto; margin-inline: auto; }
.tl-node rect { fill: var(--paper-tint); stroke: var(--rule); stroke-width: 2; }
.tl-node text { fill: var(--ink); font: 800 16px var(--font); }
.tl-node-on rect { fill: var(--sun); stroke: none; }
.tl-link { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; }
.tl-return { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 8; }
.tl-arrow { fill: var(--violet); }
.tl-band { fill: var(--band); }
.tl-label { fill: var(--ink-soft); font: 500 13px var(--mono); }
.tl-on { fill: var(--ink); font-weight: 700; }
.tl-strong { fill: var(--ink); font: 800 14px var(--font); }
.die { filter: drop-shadow(0 3px 0 rgb(27 21 84 / 0.18)); }
.die rect { stroke: rgb(27 21 84 / 0.18); stroke-width: 2; }
.die-boost rect { fill: var(--correct); }
.die-setback rect { fill: var(--wrong); }
.die-wild rect { fill: var(--sun); }
.die-boost circle, .die-setback circle { fill: #fff; }
.die-wild circle { fill: var(--ink); }
.figure-note { font-size: 15px; color: var(--ink-soft); }

/* What's different */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.tile {
  background: var(--paper); color: var(--ink);
  border-radius: 22px; padding: 22px;
  box-shadow: var(--paper-shadow);
  display: grid; gap: 10px; align-content: start;
}
.tile .ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(to top right, var(--navy), var(--violet), var(--magenta));
}
.tile .ico .i { width: 26px; height: 26px; }
.tile h3 { margin: 4px 0 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.tile p { font-size: 16px; color: var(--ink-soft); }

/* How you score */
.score-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 880px) { .score-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.score-grid .paper { display: grid; gap: 20px; }
.score-grid .paper > p { max-width: 62ch; }
.facts { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.facts caption { caption-side: top; text-align: left; font-weight: 800; font-size: 17px; padding: 0 0 8px; color: var(--ink); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); }
.facts thead th { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0; }
.facts tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.facts td { color: var(--ink-soft); }
.facts td:last-child { padding-right: 0; }
.facts .num { font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts.kv .num { text-align: right; }
.swatch {
  display: inline-block; width: 0.85em; height: 0.85em; border-radius: 0.25em;
  margin-right: 0.45em; vertical-align: -0.05em;
  box-shadow: inset 0 0 0 1px rgb(27 21 84 / 0.15);
}
.swatch-boost { background: var(--correct); }
.swatch-setback { background: var(--wrong); }
.swatch-wild { background: var(--sun); }
.score-notes { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-soft); }
.score-notes li::marker { color: var(--violet); }
.score-notes strong { color: var(--ink); }
.score-card {
  border-radius: var(--paper-radius);
  background: var(--paper); color: var(--ink);
  box-shadow: var(--paper-shadow);
  padding: 22px 26px;
  display: grid; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.score-card .over { justify-self: center; font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.score-card .final {
  justify-self: center; margin-top: 2px;
  font-size: 64px; font-weight: 900; line-height: 1;
  background: linear-gradient(to right, var(--navy), var(--violet), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score-card .points { justify-self: center; font-size: 15px; font-weight: 800; }
.score-card hr { border: 0; border-top: 1px solid var(--rule); margin: 10px 0 6px; width: 100%; }
.score-card .line { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.score-card .line span:first-child { color: var(--ink-soft); }
.score-card .line span:last-child { font-weight: 800; }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.thumb { display: grid; gap: 3px; justify-items: center; min-width: 0; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.thumb svg, .thumb .more { width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px; background: var(--paper-tint); }
.thumb path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.thumb .more { display: grid; place-items: center; background: var(--band); font-size: 14px; font-weight: 900; color: var(--ink); }
.thumb span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-card .example { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); text-align: center; }

/* Screenshots in simple frames */
.shots {
  display: grid; gap: 32px 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  align-items: end; justify-items: center;
}
.device { --w: 230px; width: min(var(--w), 100%); margin: 0; }
.device.ipad { --w: 460px; }
.device .frame {
  background: #0F0D2B;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.185);
  box-shadow: 0 24px 48px rgb(27 21 84 / 0.45), inset 0 0 0 1px rgb(255 255 255 / 0.16);
}
.device img { width: 100%; height: auto; border-radius: calc(var(--w) * 0.155); background: var(--navy); }
.device.ipad .frame { padding: calc(var(--w) * 0.03); border-radius: calc(var(--w) * 0.065); }
.device.ipad img { border-radius: calc(var(--w) * 0.038); }
.device figcaption { margin-top: 14px; text-align: center; font-weight: 700; font-size: 15px; color: rgb(255 255 255 / 0.92); }
@media (min-width: 640px) { .device.ipad { grid-column: span 2; } }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(5, 1fr); } }

/* Devices */
.two-col { display: grid; gap: 26px 40px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h3, .howto h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.two-col h3 .i, .howto h3 .i { width: 24px; height: 24px; color: var(--violet); }
ul.plain, ol.plain { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; }
ul.plain li::marker { color: var(--violet); }
ol.plain li::marker { font-weight: 900; color: var(--violet); }
.note { font-size: 15px; color: var(--ink-soft); }
.howto { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.kbd { font-family: var(--mono); font-size: 0.9em; background: var(--paper-tint); padding: 0.1em 0.4em; border-radius: 6px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
details {
  background: var(--paper); color: var(--ink);
  border-radius: 18px; box-shadow: var(--paper-shadow);
}
summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 800; font-size: 18px; line-height: 1.3;
  border-radius: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute; right: 24px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details .answer { padding: 0 22px 20px; color: var(--ink-soft); display: grid; gap: 10px; }
details .answer p { max-width: 68ch; }

/* ---------- Footer ---------- */
.foot {
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--ink); color: #fff;
  padding: 40px 0 max(40px, env(safe-area-inset-bottom));
}
.foot-inner { display: grid; gap: 22px; }
.foot-brand { display: flex; align-items: center; gap: 14px; font-weight: 900; font-size: 20px; }
.foot-brand img { width: 44px; height: 44px; border-radius: 22.5%; box-shadow: 0 0 0 2px #fff; transform: rotate(-6deg); }
.foot-brand small { display: block; font-size: 14px; font-weight: 800; color: var(--sun); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.foot-nav a { color: #fff; }
.legal { font-size: 13px; line-height: 1.55; color: rgb(255 255 255 / 0.72); max-width: 84ch; }

/* ---------- Article pages: Privacy, Support ---------- */
.page-head { display: grid; gap: 10px; padding: clamp(8px, 2vw, 24px) 0 26px; }
.page-head .eyebrow { color: var(--sun); text-shadow: 0 1px 0 rgb(27 21 84 / 0.4); }
.article {
  width: min(100% - 2 * var(--gutter), 800px);
  margin-inline: auto;
  background: var(--paper); color: var(--ink);
  border-radius: var(--paper-radius); box-shadow: var(--paper-shadow);
  padding: clamp(24px, 5vw, 56px);
}
.article > * + * { margin-top: 1em; }
.article h2 { font-size: 26px; font-weight: 900; line-height: 1.2; margin-top: 1.8em; }
.article h3 { font-size: 19px; font-weight: 800; line-height: 1.3; margin-top: 1.5em; margin-bottom: -0.4em; }
.article h2 + h3 { margin-top: 1em; }
.article p, .article li { max-width: 68ch; }
.article ul, .article ol { padding-left: 1.25em; display: grid; gap: 8px; }
.article ul li::marker { color: var(--violet); }
.article ol li::marker { font-weight: 900; color: var(--violet); }
.article .meta { font-size: 15px; color: var(--ink-soft); }
.article .toc { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; font-size: 15px; padding: 14px 0; border-block: 1px solid var(--rule); }
.callout {
  padding: 16px 20px; border-radius: 16px;
  background: var(--paper-tint); border-left: 5px solid var(--sun);
}
.callout.strong { background: var(--ink); color: #fff; border-left-color: var(--sun); }
.callout.strong a { color: #fff; }
.contact {
  display: grid; gap: 6px; padding: 20px 22px; border-radius: 18px;
  background: linear-gradient(to top right, var(--navy), var(--violet), var(--magenta)); color: #fff;
}
.contact a { color: #fff; font-weight: 900; font-size: clamp(18px, 3vw, 22px); overflow-wrap: anywhere; }
.contact .i { width: 22px; height: 22px; }
.screen-title { display: flex; align-items: center; gap: 10px; }
.screen-title .badge {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; background: var(--navy);
}
.screen-title .badge .i { width: 18px; height: 18px; }
.app-says { font-style: italic; color: var(--ink-soft); }
.article .h-eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--violet); margin-bottom: -0.5em; }
.article .faq { margin-top: 14px; }
.article details { box-shadow: none; border: 1px solid var(--rule); }

/* ---------- 404 ---------- */
.lost { min-height: 62dvh; display: grid; place-items: center; text-align: center; padding: 24px 0; }
.lost-inner { display: grid; gap: 16px; justify-items: center; max-width: 46ch; }
.lost .cta { justify-content: center; }

/* ---------- Print: the policy on paper ---------- */
@media print {
  .ground, .doodles, .top, .foot, .skip { display: none !important; }
  html, body { background: #fff; color: #000; }
  .h1, .h2, .eyebrow, .sub { color: #000; text-shadow: none; }
  .article { box-shadow: none; padding: 0; width: auto; }
  a { color: #000; }
}
