/* Box Brain Sudoku site. Colours follow the app's Studio skin (light) and
   Night Lab (dark). Headings use the app's Fraunces, cut down to Latin and
   weights 600–900 (fonts/, OFL). */
@font-face { font-family: Fraunces; src: url(/fonts/fraunces.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }

:root {
  --bg: #f3eee5; --card: #fbf8f2; --tint: #e7e1ef; --ink: #14110f; --muted: #6b655b; --accent: #5b47e0; --on-accent: #fff;
  --line: #14110f; --thin: #cfc8bb; --soft: #e2dccf; --good: #2f7d4f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16151a; --card: #201f26; --tint: #24222d; --ink: #ece9f2; --muted: #a29fae; --accent: #8f84ff; --on-accent: #16151a;
    --line: #ece9f2; --thin: #4a4756; --soft: #34323e; --good: #6fcf97;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16151a; --card: #201f26; --tint: #24222d; --ink: #ece9f2; --muted: #a29fae; --accent: #8f84ff; --on-accent: #16151a;
  --line: #ece9f2; --thin: #4a4756; --soft: #34323e; --good: #6fcf97;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, .serif { font-family: Fraunces, Georgia, serif; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 20px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .top nav .opt { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; line-height: 1.15; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 20px; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }
.hero .meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.devices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.devices li { padding: 4px 12px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 600; }

/* Phone and tablet frames around the preview videos */
.phone { position: relative; margin: 0 auto; width: min(320px, 78vw); border: 10px solid #14110f; border-radius: 46px; overflow: hidden; background: #14110f; box-shadow: 0 30px 60px -20px rgba(20, 17, 15, 0.45); }
.phone video, .phone img { width: 100%; aspect-ratio: 886 / 1920; object-fit: cover; }
.tablet { margin: 0 auto; width: min(560px, 100%); border: 12px solid #14110f; border-radius: 32px; overflow: hidden; background: #14110f; box-shadow: 0 30px 60px -20px rgba(20, 17, 15, 0.45); }
.tablet video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Sections */
section { padding: 72px 0; }
section.tinted { background: var(--tint); }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { font-size: 19px; color: var(--muted); margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.split .copy p { font-size: 18px; color: var(--muted); }
.shot { border-radius: 28px; box-shadow: 0 24px 48px -24px rgba(20, 17, 15, 0.35); }
.split > .shot { width: 100%; max-width: 360px; justify-self: center; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 520px; justify-self: center; }
.screens .shot { max-width: 440px; margin: 0 auto; }
.screens .tablet { width: min(480px, 100%); }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* The twelve modes */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.modes li { background: var(--card); border: 1px solid var(--soft); border-radius: 16px; padding: 16px 18px; }
.modes h3 { font-size: 21px; margin-bottom: 4px; }
.modes p { margin: 0; font-size: 15px; color: var(--muted); }

/* Devices */
.screens { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: end; }
.screens figure { margin: 0; }
.screens figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); text-align: center; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--soft); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); }
.plan h3 { font-size: 26px; }
.plan .price { font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 34px; margin: 12px 0 2px; }
.plan .note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.plan .ticks { font-size: 15px; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 12px/1.6 -apple-system, BlinkMacSystemFont, sans-serif; vertical-align: middle; }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--soft); border-radius: 18px; padding: 22px; }
.tile h3 { font-size: 21px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

/* Call to action and footer */
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 19px; margin-bottom: 26px; }
footer { border-top: 1px solid var(--soft); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }

/* Text pages: support, privacy, 404 */
.page { max-width: 720px; margin: 0 auto; padding: 24px 16px 72px; }
.page h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 12px; }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page h3 { font-size: 19px; margin: 24px 0 8px; font-family: inherit; font-weight: 700; letter-spacing: 0; }
.page p, .page li { color: var(--ink); }
.page .lede { font-size: 19px; color: var(--muted); }
.page details { background: var(--card); border: 1px solid var(--soft); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.page summary { cursor: pointer; font-weight: 700; }
.page details p:last-child { margin-bottom: 0; }
.page details[open] summary { margin-bottom: 10px; }
.contact { background: var(--tint); border-radius: 18px; padding: 22px; margin-top: 32px; }

@media (max-width: 860px) {
  .hero, .split, .screens { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .plans, .tiles { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding-top: 8px; }
}
@media (max-width: 860px) and (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* Challenge link page (c/index.html) */
.challenge { max-width: 440px; margin: 0 auto; padding: 32px 16px 48px; text-align: center; }
.challenge h1 { font-size: 30px; margin: 0 0 8px; }
.challenge p { color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 1; width: 100%; margin: 20px 0; background: var(--card); border: 3px solid var(--line); }
.board div { display: flex; align-items: center; justify-content: center; font-family: Fraunces, Georgia, serif; font-size: clamp(14px, 5vw, 24px); font-weight: 700; border-right: 1px solid var(--thin); border-bottom: 1px solid var(--thin); }
.board div:nth-child(9n) { border-right: 0; }
.board div:nth-child(9n+3), .board div:nth-child(9n+6) { border-right: 2px solid var(--line); }
.board div:nth-child(n+19):nth-child(-n+27), .board div:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid var(--line); }
.board div:nth-child(n+73) { border-bottom: 0; }
.open { display: block; padding: 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; margin-bottom: 20px; }
.stores { display: flex; gap: 12px; justify-content: center; }
.note { font-size: 14px; }

/* ---- Bolder home page ---- */
.hero-card { position: relative; overflow: hidden; border-radius: 32px; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #8a6cff 0%, rgba(138, 108, 255, 0) 55%), linear-gradient(140deg, #6d55f0 0%, #5b47e0 40%, #3a29b0 100%); box-shadow: 0 40px 80px -40px rgba(58, 41, 176, 0.65); }
.hero-card .hero { position: relative; padding: 56px 56px 0; gap: 40px; align-items: end; }
.hero-card .hero-copy { padding-bottom: 64px; }
.hero-card h1 { color: #fff; font-size: clamp(40px, 6vw, 70px); }
.hero-card h1 em { color: #ffd166; }
.hero-card .lede { color: rgba(255, 255, 255, 0.86); }
.hero-card .lede strong { color: #fff; }
.kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn.light { background: #fff; color: #14110f; }
.btn.light:hover { background: #ffd166; color: #14110f; }
.text-link { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.4); }
.text-link:hover { border-color: #fff; }
.hero-card .devices li { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hero-card .phone { margin-bottom: -60px; transform: rotate(4deg); border-color: #120f2e; box-shadow: 0 40px 70px -20px rgba(10, 6, 40, 0.7); }
.hero-digits { position: absolute; inset: 0; pointer-events: none; }
.hero-digits span { position: absolute; font: 900 120px/1 Fraunces, Georgia, serif; color: rgba(255, 255, 255, 0.07); animation: drift 14s ease-in-out infinite alternate; }
.hero-digits span:nth-child(1) { left: 4%; top: 8%; }
.hero-digits span:nth-child(2) { left: 38%; top: -4%; font-size: 180px; animation-delay: -3s; }
.hero-digits span:nth-child(3) { right: 6%; top: 18%; animation-delay: -6s; }
.hero-digits span:nth-child(4) { left: 46%; bottom: 6%; font-size: 90px; animation-delay: -2s; }
.hero-digits span:nth-child(5) { left: 2%; bottom: 2%; font-size: 160px; animation-delay: -8s; }
.hero-digits span:nth-child(6) { right: 32%; top: 40%; font-size: 70px; animation-delay: -5s; }
.hero-digits span:nth-child(7) { right: 2%; bottom: 10%; font-size: 150px; animation-delay: -1s; }
.hero-digits span:nth-child(8) { left: 28%; top: 46%; font-size: 60px; animation-delay: -9s; }
.hero-digits span:nth-child(9) { left: 60%; top: 10%; font-size: 80px; animation-delay: -4s; }
@keyframes drift { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-24px) rotate(4deg); } }

.stats { list-style: none; margin: 96px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stats li { text-align: center; padding: 18px 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--soft); }
.stats b { display: block; font: 900 46px/1 Fraunces, Georgia, serif; color: var(--accent); }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* Playable board */
.play-section { margin-top: 72px; background: var(--b-bg); color: var(--b-ink); transition: background 0.4s, color 0.4s; }
.play { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; }
.play h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.play-copy p { font-size: 18px; opacity: 0.85; }
.play .eyebrow { color: var(--b-acc); }
.skin-picker { margin-top: 28px; }
.picker-label { font-weight: 700; font-size: 15px; margin-bottom: 10px !important; opacity: 1 !important; }
.picker-label span { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--b-acc); color: var(--b-surf); font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 14px; border: 2px solid transparent; padding: 0; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.swatch i { position: absolute; right: 6px; bottom: 6px; width: 14px; height: 14px; border-radius: 50%; }
.swatch[aria-checked="true"] { border-color: var(--b-ink); transform: scale(1.08); }
.picker-note { font-size: 14px !important; margin-top: 12px; opacity: 0.7 !important; }
.play-board { background: var(--b-surf); border-radius: 28px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); transition: background 0.4s; }
.mini-head { display: flex; justify-content: space-between; font: 800 17px Fraunces, Georgia, serif; padding: 2px 4px 12px; }
.mini-head #play-clock { font: 600 15px -apple-system, BlinkMacSystemFont, sans-serif; opacity: 0.7; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 1; border: 3px solid var(--b-box); background: var(--b-surf); user-select: none; -webkit-user-select: none; }
.grid button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font: 700 clamp(16px, 5vw, 26px)/1 Fraunces, Georgia, serif; color: var(--b-ink); border-right: 1px solid var(--b-cell); border-bottom: 1px solid var(--b-cell); cursor: pointer; transition: background 0.15s; }
.grid button:nth-child(9n) { border-right: 0; }
.grid button:nth-child(9n+3), .grid button:nth-child(9n+6) { border-right: 2px solid var(--b-box); }
.grid button:nth-child(n+19):nth-child(-n+27), .grid button:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid var(--b-box); }
.grid button:nth-child(n+73) { border-bottom: 0; }
.grid button.given { cursor: default; }
.grid button.peer { background: color-mix(in srgb, var(--b-acc) 10%, var(--b-surf)); }
.grid button.same { background: color-mix(in srgb, var(--b-acc) 22%, var(--b-surf)); }
.grid button.sel { background: var(--b-sel); color: var(--b-seltext); }
.grid button.entry { color: var(--b-entry); }
.grid button.sel.entry { color: var(--b-seltext); }
.grid button.wrong { color: #e5484d; background: color-mix(in srgb, #e5484d 16%, var(--b-surf)); }
.grid button.hinted { box-shadow: inset 0 0 0 3px var(--b-acc); }
.grid button.unit { background: color-mix(in srgb, var(--b-acc) 16%, var(--b-surf)); }
.grid button.pop { animation: pop 0.35s ease; }
.grid button:focus-visible { outline: 3px solid var(--b-acc); outline-offset: -3px; }
@keyframes pop { 40% { transform: scale(1.25); } }
.grid.solved button { animation: wave 0.6s ease both; }
@keyframes wave { 50% { transform: scale(0.85); background: var(--b-acc); color: var(--b-surf); } }
.hint-box { min-height: 3.2em; margin: 14px 4px 10px !important; font-size: 15px; line-height: 1.45; }
.hint-box b { color: var(--b-acc); }
.pad { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.pad button { all: unset; box-sizing: border-box; text-align: center; padding: 10px 0; border-radius: 12px; background: color-mix(in srgb, var(--b-ink) 7%, var(--b-surf)); font: 700 20px/1 Fraunces, Georgia, serif; color: var(--b-ink); cursor: pointer; }
.pad button:hover { background: color-mix(in srgb, var(--b-acc) 22%, var(--b-surf)); }
.pad button:focus-visible { outline: 3px solid var(--b-acc); }
.pad .pad-hint, .pad .pad-erase { grid-column: span 9; order: 2; font: 700 15px/1 -apple-system, BlinkMacSystemFont, sans-serif; padding: 12px 0; }
.pad .pad-hint { grid-column: span 5; background: var(--b-acc); color: var(--b-surf); }
.pad .pad-erase { grid-column: span 4; }
.pad .pad-hint:hover { background: var(--b-acc); opacity: 0.9; }

/* Mode diagrams */
.modes li { display: grid; grid-template-columns: 76px 1fr; gap: 4px 16px; align-items: center; transition: transform 0.2s, box-shadow 0.2s; }
.modes li:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(20, 17, 15, 0.35); }
.modes svg { grid-row: span 2; width: 76px; height: 76px; color: var(--ink); }
.modes h3 { align-self: end; }
.modes p { align-self: start; }

/* Screenshot tour */
.tour-section .section-head { margin-bottom: 24px; }
.tour { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, calc((100vw - 1080px) / 2 + 16px)) 28px; scrollbar-width: thin; }
.tour img { flex: none; width: 250px; height: auto; border-radius: 26px; scroll-snap-align: center; box-shadow: 0 20px 40px -24px rgba(20, 17, 15, 0.45); }

/* Challenge chat */
.challenge-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 28px; background: var(--card); border: 1px solid var(--soft); max-width: 420px; justify-self: center; width: 100%; }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 20px; font-size: 16px; line-height: 1.35; }
.bubble.in { align-self: flex-start; background: var(--tint); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble.small { font-size: 13px; color: var(--muted); }
.bubble .link { display: block; margin-top: 6px; font-size: 13px; color: var(--accent); text-decoration: underline; }

/* Dark band */
.dark-section { background: #15131f; color: #ece9f2; }
.dark-section .section-head p, .dark-section figcaption { color: #a29fae; }
.dark-section .eyebrow { color: #a99cff; }

/* Final call to action with a turning cube */
.cta-card { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; padding: 48px 56px; border-radius: 32px; color: #fff; background: linear-gradient(140deg, #6d55f0 0%, #3a29b0 100%); }
.cta-card h2 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; }
.cta-card p { color: rgba(255, 255, 255, 0.85); font-size: 19px; margin-bottom: 24px; }
.cube-stage { width: 220px; height: 220px; perspective: 900px; margin: 0 auto; }
.cube { position: relative; width: 140px; height: 140px; margin: 40px; transform-style: preserve-3d; animation: spin 18s linear infinite; }
.face { position: absolute; inset: 0; background: #fbf8f2; border: 4px solid #1f1a4d; display: grid; grid-template-columns: repeat(3, 1fr); font: 800 28px/1 Fraunces, Georgia, serif; color: #1f1a4d; }
.face::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#1f1a4d33, #1f1a4d33) 33.3% 0 / 1px 100% no-repeat, linear-gradient(#1f1a4d33, #1f1a4d33) 66.6% 0 / 1px 100% no-repeat, linear-gradient(#1f1a4d33, #1f1a4d33) 0 33.3% / 100% 1px no-repeat, linear-gradient(#1f1a4d33, #1f1a4d33) 0 66.6% / 100% 1px no-repeat; }
.face span { display: flex; align-items: center; justify-content: center; }
.face span.hot { background: #ffb02e; }
.f1 { transform: rotateY(0deg) translateZ(70px); }
.f2 { transform: rotateY(90deg) translateZ(70px); background: #ebe3d3; }
.f3 { transform: rotateY(180deg) translateZ(70px); }
.f4 { transform: rotateY(-90deg) translateZ(70px); background: #ebe3d3; }
.f5 { transform: rotateX(90deg) translateZ(70px); }
.f6 { transform: rotateX(-90deg) translateZ(70px); background: #d9cdb5; }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-digits span, .cube, .grid button.pop, .grid.solved button { animation: none; }
  .modes li:hover { transform: none; }
}
@media (max-width: 960px) {
  .play { grid-template-columns: 1fr; gap: 32px; }
  .play-board { max-width: 480px; width: 100%; justify-self: center; }
}
@media (max-width: 860px) {
  .hero-card .hero { padding: 36px 24px 0; }
  .hero-card .hero-copy { padding-bottom: 8px; }
  .hero-card .phone { margin-bottom: -80px; transform: rotate(3deg); width: min(280px, 70vw); }
  .stats { grid-template-columns: repeat(3, 1fr); margin-top: 104px; }
  .stats li:nth-child(n+4) { grid-column: span 1; }
  .cta-card { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; gap: 8px; }
  .challenge-card { margin-top: 8px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:last-child { grid-column: span 2; }
  .stats b { font-size: 38px; }
  .play-board { padding: 12px; border-radius: 22px; }
  .pad { gap: 4px; }
  .pad button { padding: 9px 0; font-size: 18px; }
  .tour img { width: 210px; }
}
