/* Terrazzo's website. The game's own look: a cream terrazzo floor, the terracotta serif of its logo, clay pieces in its
   four colours and phones in cream clay. Every value is a token here; the game's matching tokens are in
   ../gridlock/gridlock-v2.css (--bg, --panel, --accent, --p0..--p3). */
:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #f6efe6;
  --bg-deep: #efe4d5;
  --panel: #fffaf3;
  --panel-2: #f6ead9;
  --tile: #ece0d0;
  --line: #e2d3c0;
  --border: #d8c6b2;
  --ink: #3a2f27;
  --muted: #85715f;
  --brand: #a8482a;      /* the logo's terracotta */
  --accent: #ce7a52;
  --accent-dark: #b4603a;
  --on-accent: #fffdfb;
  --foot: #4a3426;
  --on-foot: #f6ead9;
  --on-foot-muted: rgba(246, 234, 217, 0.66);
  --todo: #fff0b3;
  --todo-edge: #c99a12;

  /* the four piece colours: base, light, dark, underside */
  --red: #ee6a4b;    --red-l: #f7a184;    --red-d: #cf5236;    --red-e: #a94129;
  --blue: #4e8df6;   --blue-l: #8ab6fb;   --blue-d: #3a72d6;   --blue-e: #2c58a8;
  --yellow: #f0b135; --yellow-l: #f8d27a; --yellow-d: #d69a22; --yellow-e: #a8751a;
  --green: #35b678;  --green-l: #74d6a4;  --green-d: #279a62;  --green-e: #1d774b;

  --sh-soft: 0 4px 14px rgba(79, 60, 45, 0.1);
  --sh: 0 10px 26px rgba(79, 60, 45, 0.14);
  --sh-lift: 0 24px 50px rgba(90, 50, 20, 0.2), 0 6px 12px rgba(90, 50, 20, 0.12);
  --sh-badge: 0 3px 0 #000, 0 8px 16px rgba(0, 0, 0, 0.25);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 112px;
  --gutter: max(20px, 4vw);
  --col: 1120px;
  --narrow: 720px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --top-h: 68px;

  --fs-body: clamp(16px, 1.15vw, 18px);
  --fs-sm: 14px;
  --fs-xs: 12px;
  --fs-lead: clamp(17px, 1.4vw, 20px);
  --fs-h1: clamp(34px, 4.6vw, 56px);
  --fs-h2: clamp(30px, 3.6vw, 46px);
  --fs-h3: clamp(24px, 2.6vw, 34px);
  --fs-logo: clamp(56px, 8.4vw, 112px);
  --fs-tagline: clamp(24px, 2.6vw, 34px);

  --t-fast: 160ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body {
  margin: 0; color: var(--ink); font: var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: url(/assets/img/chips.svg) 0 0 / 520px repeat, radial-gradient(120% 60% at 50% 0%, #fffaf2, var(--bg) 60%) fixed, var(--bg);
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--brand); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 var(--sp-4); text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-4); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--sp-4); top: -100px; z-index: 50; background: var(--yellow); color: var(--ink); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); }
.skip:focus { top: var(--sp-3); }
.col { width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; }
.col.narrow { width: min(var(--narrow), 100% - 2 * var(--gutter)); }
.button { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill); box-shadow: 0 3px 0 var(--accent-dark); transition: translate var(--t-fast) var(--ease); }
.button:hover { translate: 0 -2px; }
.todo { background: var(--todo); outline: 1px dashed var(--todo-edge); border-radius: 6px; padding: 0 var(--sp-1); color: var(--ink); }

/* ------------------------------------------------------------------------------------------------ the logo's tiles */

/* The four clay squares of the logo and app icon: red, blue, yellow, green, each with a soft gloss and a darker foot. */
.mark { --m: 30px; display: inline-grid; grid-template-columns: repeat(2, var(--m)); gap: calc(var(--m) * 0.16); flex: none; }
.mark i { width: var(--m); height: var(--m); border-radius: 26%; position: relative; background: linear-gradient(160deg, var(--l), var(--c) 55%, var(--d)); box-shadow: 0 calc(var(--m) * 0.07) 0 var(--e), 0 calc(var(--m) * 0.12) calc(var(--m) * 0.2) rgba(90, 50, 20, 0.22); }
.mark i::before { content: ""; position: absolute; left: 9%; right: 9%; top: 7%; height: 32%; border-radius: 40% 40% 30% 30% / 60% 60% 40% 40%; background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)); }
.mark i:nth-child(1) { --c: var(--red); --l: var(--red-l); --d: var(--red-d); --e: var(--red-e); }
.mark i:nth-child(2) { --c: var(--blue); --l: var(--blue-l); --d: var(--blue-d); --e: var(--blue-e); }
.mark i:nth-child(3) { --c: var(--yellow); --l: var(--yellow-l); --d: var(--yellow-d); --e: var(--yellow-e); }
.mark i:nth-child(4) { --c: var(--green); --l: var(--green-l); --d: var(--green-d); --e: var(--green-e); }

/* ------------------------------------------------------------------------------------------------ top bar */

.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); transition: background var(--t-fast), box-shadow var(--t-fast); }
.top.scrolled { background: rgba(246, 239, 230, 0.86); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.top-in { width: min(var(--col), 100% - 2 * var(--gutter)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.brand .mark { --m: 13px; }
.brand .word { font: 700 24px/1 var(--serif); color: var(--brand); letter-spacing: -0.03em; }
/* On the home page the hero shows the big logo, so the small one waits until you scroll. */
.home .top:not(.scrolled) .brand { opacity: 0; pointer-events: none; }
.brand { transition: opacity var(--t-fast); }
.links { display: flex; align-items: center; gap: var(--sp-5); font-size: var(--fs-sm); font-weight: 700; }
.links a { color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--brand); }
.links .get-btn { background: var(--accent); color: var(--on-accent); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); box-shadow: 0 2px 0 var(--accent-dark); }
.links .get-btn:hover { color: var(--on-accent); background: var(--accent-dark); }

/* ------------------------------------------------------------------------------------------------ store buttons */

/* Drawn in the style of the official badges. Swap for Apple's and Google's badge artwork before launch. */
.stores { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 168px; padding: 9px 20px 9px 14px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; line-height: 1.1; box-shadow: var(--sh-badge); transition: translate var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: 0.86; letter-spacing: 0.01em; }
.store b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
a.store:hover { translate: 0 -2px; }
a.store:active { translate: 0 2px; box-shadow: 0 1px 0 #000, 0 3px 6px rgba(0, 0, 0, 0.2); }
.store.is-soon { background: #2b2420; cursor: default; box-shadow: 0 3px 0 #120e0c, 0 8px 16px rgba(0, 0, 0, 0.15); }
.store.is-soon small { color: var(--yellow-l); opacity: 1; }
.android .stores [data-platform="android"] { order: -1; }
.soon { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin: var(--sp-3) 0 0; }

/* ------------------------------------------------------------------------------------------------ phones */

/* A phone in cream clay (like the store screenshots), with the real game inside. */
.phone { --w: 300px; width: var(--w); aspect-ratio: 1320 / 2868; padding: calc(var(--w) * 0.034); border-radius: calc(var(--w) * 0.15); position: relative;
  background: linear-gradient(150deg, #fffdf9, #f6ede0 50%, #e8dac6);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.95), inset 0 -6px 12px rgba(140, 95, 50, 0.16), 0 0 0 1.5px rgba(120, 80, 40, 0.12), var(--sh-lift); }
.phone.dark { background: linear-gradient(150deg, #4a4c5e, #24252f 45%, #16171e); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), inset 0 -5px 10px rgba(0, 0, 0, 0.35), var(--sh-lift); }
.phone .screen { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * 0.12); background: var(--panel); }
/* The game is shot with an iPhone's safe area (tools/reshoot.sh), so the island and the status bar sit in its own space
   (src/partials/statusbar.html). .lit for dark screens: white status text. */
.phone .sb { position: absolute; z-index: 3; left: calc(var(--w) * 0.034); top: calc(var(--w) * 0.034); width: calc(100% - var(--w) * 0.068); height: auto; color: #1d1a17; fill: currentColor; pointer-events: none; transition: color 400ms; }
.phone .sb text { font: 600 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.02em; text-anchor: middle; }
.phone .sb .isl { fill: #000; }
.phone .sb .bt { fill: none; stroke: currentColor; stroke-opacity: 0.38; stroke-width: 1; }
.phone .sb .bt-nub { fill-opacity: 0.4; }
.phone.lit .sb { color: #fff; }
.phone.dark .screen { background: #141a44; }

/* ------------------------------------------------------------------------------------------------ hero */

.hero { position: relative; margin-top: calc(-1 * var(--top-h)); padding: calc(var(--top-h) + var(--sp-6)) 0 var(--sp-8); min-height: min(100svh, 980px); display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 72% 50%, rgba(255, 250, 242, 0.95), transparent 70%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--sp-7); }
.logo { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin: 0 0 var(--sp-4); }
.logo .mark { --m: calc(var(--fs-logo) * 0.5); }
.logo .word { font: 700 var(--fs-logo)/0.9 var(--serif); letter-spacing: -0.045em; color: var(--brand); text-shadow: 0 3px 0 #fff8ee; }
.tagline { font: 700 var(--fs-tagline)/1.15 var(--serif); color: var(--ink); margin: 0 0 var(--sp-4); letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 31em; margin-bottom: var(--sp-6); }
.trailer-btn { display: inline-flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2); border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--panel); font-weight: 700; font-size: var(--fs-sm); box-shadow: var(--sh-soft); transition: translate var(--t-fast) var(--ease); }
.trailer-btn:hover { translate: 0 -2px; }
.trailer-btn i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); position: relative; }
.trailer-btn i::after { content: ""; position: absolute; left: 12px; top: 9px; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone { --w: clamp(250px, 24vw, 320px); rotate: 3deg; }
.hero-pieces { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* Pieces drift on their own; site.js adds a little pointer parallax through --px and --py. */
.pc { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; rotate: var(--r); filter: drop-shadow(10px 18px 14px rgba(90, 50, 20, 0.22));
  translate: calc(var(--px, 0) * var(--d) * 26px) calc(var(--py, 0) * var(--d) * 26px); animation: bob calc(7s + var(--d) * 4s) ease-in-out infinite alternate; transition: translate 600ms var(--ease); }
@keyframes bob { from { transform: translateY(-8px) rotate(-2deg); } to { transform: translateY(10px) rotate(3deg); } }
.more { position: absolute; left: 50%; bottom: var(--sp-5); translate: -50% 0; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); box-shadow: var(--sh-soft); border: 1px solid var(--line); }
.more i { width: 12px; height: 12px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); rotate: 45deg; translate: 0 -2px; }

/* ------------------------------------------------------------------------------------------------ sections */

main > section { position: relative; }
/* A deeper band (the puzzle, the news) fades into the page above and below instead of ending in an edge. */
.band { isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url(/assets/img/chips-dense.svg) 0 0 / 480px repeat, var(--bg-deep);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent); }
.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head > p:last-child { color: var(--muted); font-size: var(--fs-lead); margin: 0; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); }
.section-head.row h2 { margin: 0; }
.see-all { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* the little puzzle */
.try { padding: calc(var(--sp-9) + 40px) 0; }
.try-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-8); align-items: center; }
.steps { list-style: none; padding: 0; margin: var(--sp-5) 0; counter-reset: s; display: grid; gap: var(--sp-4); }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps li b { color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 30%; display: grid; place-items: center; font: 700 18px/1 var(--serif); color: #fff; background: linear-gradient(160deg, var(--l), var(--c) 55%, var(--d)); box-shadow: 0 3px 0 var(--e); }
.steps li:nth-child(1)::before { --c: var(--red); --l: var(--red-l); --d: var(--red-d); --e: var(--red-e); }
.steps li:nth-child(2)::before { --c: var(--yellow); --l: var(--yellow-l); --d: var(--yellow-d); --e: var(--yellow-e); }
.steps li:nth-child(3)::before { --c: var(--green); --l: var(--green-l); --d: var(--green-d); --e: var(--green-e); }
.note { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.try-card { position: relative; background: var(--panel); border-radius: 28px; padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--sh-lift), inset 0 0 0 1px rgba(255, 255, 255, 0.9); min-height: 360px; }

/* the board (assets/js/try.js lays everything out in pixels from --cell) */
.tz { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; margin-inline: auto; }
.tz-cell { position: absolute; border-radius: 22%; background: var(--tile); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(150, 110, 70, 0.08); transition: background var(--t-fast); }
.tz-cell.blocked { background: repeating-linear-gradient(135deg, #e3d4c1 0 4px, #dccbb5 4px 8px); }
.tz-cell.blocked::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: #b39a80; font-size: calc(var(--cell) * 0.34); font-weight: 600; }
.tz-cell.hot { background: #e2f3e8; }
.tz-cell.bad { background: #f8d9cf; }
.tz-die { position: absolute; width: var(--die); height: var(--die); border-radius: 26%; background: color-mix(in srgb, var(--c) 16%, #fffaf3); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); transition: background 220ms, box-shadow 220ms, transform 220ms var(--ease); }
/* pips in the game's default Rings style: a hollow ring that fills in, growing a little, for each square placed */
.tz-die i { position: absolute; width: 23%; height: 23%; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 max(1.2px, calc(var(--die) * 0.06)) var(--c); translate: -50% -50%; scale: 0.9; transition: background 180ms, box-shadow 180ms, scale 180ms; }
.tz-die i.f { background: var(--c); box-shadow: none; scale: 1; }
.tz-die.on { background: linear-gradient(160deg, var(--l), var(--c) 60%, var(--d)); box-shadow: 0 2px 0 var(--e); transform: scale(1.06); }
.tz-die.on i { background: #fff; box-shadow: none; }
.tz-die.over { background: #fff; box-shadow: inset 0 0 0 1.5px var(--red); }
.tz-die.over::after { content: ""; position: absolute; inset: -12%; background: linear-gradient(45deg, transparent 45%, var(--red) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--red) 45% 55%, transparent 55%); }
.tz-c0 { --c: var(--red); --l: var(--red-l); --d: var(--red-d); --e: var(--red-e); }
.tz-c1 { --c: var(--yellow); --l: var(--yellow-l); --d: var(--yellow-d); --e: var(--yellow-e); }
.tz-c2 { --c: var(--green); --l: var(--green-l); --d: var(--green-d); --e: var(--green-e); }
.tz-tray { position: absolute; border-radius: 20px; background: var(--panel-2); box-shadow: inset 0 2px 6px rgba(120, 80, 40, 0.1); }
/* will-change gives each piece its own layer: without it iPhone browsers smear the drop shadow along a drag */
.tz-piece { position: absolute; left: 0; top: 0; transform-origin: 0 0; cursor: grab; z-index: 3; will-change: transform; filter: drop-shadow(0 3px 0 var(--e)) drop-shadow(0 8px 10px rgba(90, 50, 20, 0.22)); transition: transform 260ms var(--ease), filter 200ms; touch-action: none; }
.tz-piece.dragging { cursor: grabbing; z-index: 10; transition: none; filter: drop-shadow(0 3px 0 var(--e)) drop-shadow(0 22px 22px rgba(90, 50, 20, 0.3)); }
.tz-piece span { position: absolute; background: linear-gradient(155deg, var(--l), var(--c) 48%, var(--d)); background-size: var(--pw) var(--ph); }
.tz-piece span.hl { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.32); }
.tz-piece.pop { animation: pop 520ms var(--ease) both; animation-delay: var(--delay, 0ms); }
@keyframes pop { 40% { scale: 1.08; } 100% { scale: 1; } }
.tz-bar { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.tz-bar button { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); box-shadow: var(--sh-soft); }
.tz-bar button:hover { color: var(--brand); }
.tz-win { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--sp-4); background: rgba(255, 250, 243, 0.55); backdrop-filter: blur(2px); border-radius: 28px; opacity: 0; pointer-events: none; transition: opacity 400ms; }
.tz-win.show { opacity: 1; pointer-events: auto; }
.tz-win-card { background: var(--panel); border-radius: 26px; padding: var(--sp-6) var(--sp-5) var(--sp-5); text-align: center; box-shadow: var(--sh-lift); max-width: 380px; translate: 0 20px; scale: 0.94; transition: translate 500ms var(--ease) 150ms, scale 500ms var(--ease) 150ms; }
.tz-win.show .tz-win-card { translate: 0 0; scale: 1; }
.tz-win-card .star { width: 64px; height: 64px; margin: -64px auto var(--sp-3); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e99b74, var(--accent) 60%, var(--accent-dark)); box-shadow: 0 4px 0 #9d4f2e, 0 10px 20px rgba(160, 80, 40, 0.3); display: grid; place-items: center; color: #fff; font-size: 30px; }
.tz-win-card h3 { font-size: 40px; margin: 0 0 var(--sp-2); }
.tz-win-card p { color: var(--muted); margin-bottom: var(--sp-4); }
.tz-win-card .stores { justify-content: center; }
.tz-win-card .again { margin-top: var(--sp-4); background: none; border: 0; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.tz-chip { position: absolute; z-index: 21; width: 10px; height: 8px; border-radius: 3px; pointer-events: none; animation: chip 1100ms cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes chip { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* worlds: the whole section takes the chosen world's colours (site.js sets data-now, data-dark, data-lit) and fades
   into the page above and below, so there is no panel or edge */
@property --sc1 { syntax: "<color>"; inherits: true; initial-value: #f7ecdc; }
@property --sc2 { syntax: "<color>"; inherits: true; initial-value: #ead3b8; }
.worlds { --sc1: #f7ecdc; --sc2: #ead3b8; --s-ink: var(--ink); --s-head: var(--brand); --s-muted: var(--muted); --s-ring: var(--brand);
  position: relative; isolation: isolate; padding: calc(var(--sp-9) + 60px) 0; transition: --sc1 700ms var(--ease), --sc2 700ms var(--ease); }
.worlds::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 72% 50%, color-mix(in srgb, var(--sc1) 65%, #fff), transparent 70%), linear-gradient(160deg, var(--sc1), var(--sc2));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 170px, #000 calc(100% - 170px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 170px, #000 calc(100% - 170px), transparent); }
.worlds[data-dark] { --s-ink: #fbf3e8; --s-head: #fff6ea; --s-muted: rgba(251, 243, 232, 0.72); --s-ring: #fff6ea; }
.worlds[data-now="planets"] { --sc1: #2f4677; --sc2: #0c1330; }
.worlds[data-now="zen"] { --sc1: #ece3cf; --sc2: #c9b897; }
.worlds[data-now="arcade"] { --sc1: #4a2072; --sc2: #140826; }
.worlds[data-now="orchard"] { --sc1: #fae3d9; --sc2: #eab3a2; }
.worlds[data-now="paper"] { --sc1: #efe1c6; --sc2: #ccab83; }
.worlds[data-now="drawing"] { --sc1: #f8f3e8; --sc2: #ddd2bb; }
.worlds[data-now="chocolaterie"] { --sc1: #6a4130; --sc2: #2a160f; }
.worlds[data-now="stoneware"] { --sc1: #e2d4bf; --sc2: #ae977a; }
.worlds[data-now="terrazzo"] { --sc1: #eee4d4; --sc2: #c9b494; }
.worlds[data-now="jello"] { --sc1: #ffe6ea; --sc2: #f2b5c1; }
.worlds[data-now="cyber"] { --sc1: #143a44; --sc2: #040b10; }
.worlds[data-now="porcelain"] { --sc1: #eef3fb; --sc2: #b3c6e6; }
.worlds[data-now="sunset"] { --sc1: #f8c9a0; --sc2: #9e6a7d; }
.stage-in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: ". phone" "head phone" "now phone" "pick phone" ". phone"; grid-template-rows: 1fr auto auto auto 1fr; column-gap: var(--sp-8); align-items: start; }
.stage-head { grid-area: head; max-width: 34em; }
.stage-head h2 { color: var(--s-head); transition: color 500ms; }
.stage-lead { color: var(--s-muted); font-size: var(--fs-lead); margin-bottom: var(--sp-6); transition: color 500ms; }
.stage-now { grid-area: now; padding: var(--sp-3) 0 var(--sp-5); min-height: 140px; }
.stage-now h3 { font-size: clamp(34px, 4vw, 52px); color: var(--s-head); margin: 0 0 var(--sp-2); transition: color 500ms; }
.stage-now p { color: var(--s-ink); font-size: var(--fs-lead); margin: 0; max-width: 26em; transition: color 500ms; }
.stage-now.swap > * { animation: now-in 520ms var(--ease) both; }
.stage-now.swap p { animation-delay: 60ms; }
@keyframes now-in { from { opacity: 0; translate: 0 10px; } }
.stage-pick { grid-area: pick; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-2); max-width: 520px; }
.stage-pick button { position: relative; padding: 0; border: 0; border-radius: 30%; aspect-ratio: 1; background: rgba(255, 255, 255, 0.4); box-shadow: 0 3px 8px rgba(40, 20, 10, 0.16); transition: translate var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.stage-pick button img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.stage-pick button::before { content: ""; position: absolute; inset: -5px; border-radius: 34%; box-shadow: 0 0 0 2.5px var(--s-ring); opacity: 0; transition: opacity var(--t-fast); }
.stage-pick button:hover { translate: 0 -3px; }
.stage-pick button[aria-selected="true"]::before { opacity: 1; }
/* while the stage plays on its own, the chosen chip shows how long until the next world */
.stage-pick button::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -10px; height: 3px; border-radius: 3px; background: var(--s-ring); transform-origin: left; scale: 0 1; opacity: 0; }
.stage.auto .stage-pick button[aria-selected="true"]::after { opacity: 0.8; animation: next-world var(--stay, 7s) linear both; }
@keyframes next-world { to { scale: 1 1; } }
.stage-phone { grid-area: phone; align-self: center; }
.stage-device { --w: clamp(260px, 25vw, 330px); rotate: 2deg; }
.stage-device::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(150deg, #4a4c5e, #24252f 45%, #16171e); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14); opacity: 0; transition: opacity 600ms; }
.worlds[data-dark] .stage-device::before { opacity: 1; }
.stage-screen { position: relative; z-index: 1; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.12); background: #141a44; }
.stage-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 450ms; }
.stage-screen video.on { opacity: 1; }

/* what's inside */
.inside { padding: var(--sp-8) 0 var(--sp-9); display: grid; gap: var(--sp-9); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.feature.flip .feature-pic { order: 2; }
.feature-pic { display: flex; justify-content: center; }
.feature-pic .phone { --w: clamp(220px, 22vw, 280px); rotate: -2deg; }
.feature.flip .phone { rotate: 2deg; }
.feature-text { max-width: 30em; }
.feature-text p:last-child { color: var(--muted); font-size: var(--fs-lead); margin: 0; }

/* endless: tilted lanes of real boards drifting past, faded into the page on all four sides */
.endless { position: relative; padding: var(--sp-8) 0 var(--sp-6); overflow: hidden; }
.endless-head { text-align: center; max-width: 640px; position: relative; z-index: 1; }
.endless-head p { color: var(--muted); font-size: var(--fs-lead); margin: 0 auto; }
.lanes { position: relative; height: clamp(520px, 50vw, 720px); margin-top: calc(-1 * var(--sp-6));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect; }
.lanes-in { position: absolute; left: 50%; top: 50%; width: 170%; translate: -50% -50%; rotate: -9deg; display: grid; gap: 26px; }
.lane { display: flex; width: max-content; animation: lane var(--t, 160s) linear infinite; }
.lane.rev { animation-direction: reverse; }
.lane:nth-child(2) { margin-left: -180px; }
.lane-in { display: flex; gap: 26px; padding-right: 26px; }
.lane img { height: clamp(170px, 17vw, 230px); width: auto; border-radius: 16px; box-shadow: 0 14px 24px rgba(90, 50, 20, 0.16), 0 3px 6px rgba(90, 50, 20, 0.1); }
@keyframes lane { to { transform: translateX(calc(-100% / var(--n, 2))); } }

/* news */
.news { padding: calc(var(--sp-9) + 40px) 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.news-card a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--sh-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.9); transition: translate var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.news-card a:hover { translate: 0 -4px; box-shadow: var(--sh); }
.news-pic { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.news-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: scale 600ms var(--ease); }
.news-card a:hover .news-pic img { scale: 1.04; }
.news-pic-blank { display: block; width: 100%; height: 100%; background: url(/assets/img/chips-dense.svg) center / 300px, var(--panel-2); }
.news-text { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.news-text h3 { font-size: 24px; margin: 0 0 var(--sp-2); }
.news-text p:last-child { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.news-meta { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin: 0 0 var(--sp-2); }
.tag { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-dark); padding: 2px var(--sp-2); border-radius: var(--r-pill); font-weight: 700; letter-spacing: 0.02em; }
.news-page { padding-top: 0; background: none; }
/* one post on its own: a wide card, the picture beside the words */
.news-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.news-grid > .news-card:only-child a { flex-direction: row; }
.news-grid > .news-card:only-child .news-pic { flex: 1.1; aspect-ratio: 16 / 10; }
.news-grid > .news-card:only-child .news-text { flex: 1; align-self: center; padding: var(--sp-6); }
.news-grid > .news-card:only-child h3 { font-size: 30px; }
.news-grid > .news-card:only-child .news-pic img { object-position: 50% 50%; }
.empty { color: var(--muted); }

/* maker */
.maker { padding: var(--sp-9) 0; }
.maker-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-8); align-items: center; }
.maker-pic { position: relative; aspect-ratio: 4 / 5; cursor: pointer; }
.maker-pic > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.maker-pic video { opacity: 0; }
.maker-pic .logo-intro { z-index: 2; }
.maker-pic .logo-idle { z-index: 1; }
.maker-pic video.on { opacity: 1; }
.maker-pic.moving .logo-still { opacity: 0; }
.maker-text > p { color: var(--muted); font-size: var(--fs-lead); }
.more-games { list-style: none; padding: 0; margin: var(--sp-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.more-games:empty { display: none; }
.more-games li > * { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-5) var(--sp-2) var(--sp-2); background: var(--panel); border-radius: var(--r-md); color: inherit; text-decoration: none; box-shadow: var(--sh-soft); }
.more-games img { width: 52px; height: 52px; border-radius: 22%; }
.more-games b { display: block; font-family: var(--serif); color: var(--ink); font-size: 18px; }
.more-games small { display: block; color: var(--muted); font-size: var(--fs-xs); }

/* get */
.get { padding: var(--sp-9) 0; text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(238, 106, 75, 0.12), transparent 70%); }
.get-in { display: flex; flex-direction: column; align-items: center; }
.app-icon { width: 120px; height: 120px; border-radius: 22.4%; box-shadow: var(--sh-lift); margin-bottom: var(--sp-5); }
.get h2, .get h1 { margin-bottom: 0; }
.get .soon { margin: var(--sp-2) 0 var(--sp-5); }
.get-only { min-height: calc(100svh - var(--top-h) - 200px); display: grid; place-items: center; }
.get-only h1 { font-size: var(--fs-logo); letter-spacing: -0.045em; text-shadow: 0 3px 0 #fff8ee; }
.tagline-sm { font: 700 var(--fs-tagline)/1.2 var(--serif); color: var(--ink); margin: var(--sp-2) 0 var(--sp-5); }
.get-only .stores + .soon { margin-bottom: var(--sp-5); }
.lost img { width: 160px; rotate: -18deg; margin-bottom: var(--sp-5); filter: drop-shadow(10px 18px 14px rgba(90, 50, 20, 0.22)); animation: bob 6s ease-in-out infinite alternate; }

/* trailer */
.trailer { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.trailer::backdrop { background: rgba(40, 28, 20, 0.86); backdrop-filter: blur(6px); }
.trailer video { height: min(86vh, 860px); width: auto; aspect-ratio: 886 / 1920; border-radius: 28px; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.trailer .close { position: absolute; top: -8px; right: -56px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel); font-size: 26px; line-height: 1; color: var(--ink); }

/* ------------------------------------------------------------------------------------------------ plain pages */

.page-head { padding: var(--sp-8) 0 var(--sp-6); }
.page-head h1 { font-size: var(--fs-h1); }
.intro { font-size: var(--fs-lead); color: var(--muted); max-width: 36em; }
.updated { font-size: var(--fs-sm); color: var(--muted); }
.doc { padding: 0 0 var(--sp-9); }
.doc h2 { font-size: 26px; margin: var(--sp-7) 0 var(--sp-3); }
.doc h3 { font-size: 20px; margin: var(--sp-5) 0 var(--sp-2); color: var(--ink); }
.doc code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
/* the publisher's details, and the tables in the privacy policy */
.who { border-left: 3px solid var(--accent); padding: var(--sp-1) 0 var(--sp-1) var(--sp-5); margin: 0 0 var(--sp-5); }
.who p { margin: 0 0 var(--sp-2); }
.who p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 var(--sp-4); }
.legal { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; color: var(--ink); }
.legal td { color: var(--muted); }
.legal td:first-child { color: var(--ink); }
.doc ul { padding-left: var(--sp-5); }
.doc li { margin-bottom: var(--sp-2); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-2) var(--sp-6); margin: 0; background: var(--panel); padding: var(--sp-5); border-radius: var(--r-lg); box-shadow: var(--sh-soft); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.downloads { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--sp-5); }
.downloads a { display: block; text-decoration: none; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.downloads img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--panel); border-radius: var(--r-md); margin-bottom: var(--sp-2); box-shadow: var(--sh-soft); padding: var(--sp-3); }
.downloads img.cover { object-fit: cover; padding: 0; }
.downloads .tall img { aspect-ratio: 1320 / 2868; object-fit: cover; padding: 0; }
.faq details { background: var(--panel); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-3); box-shadow: var(--sh-soft); }
.faq summary { font: 700 20px/1.3 var(--serif); color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font: 400 26px/1 var(--sans); transition: rotate var(--t-fast); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: var(--sp-3) 0 0; color: var(--muted); }
.contact { margin-top: var(--sp-7); padding: var(--sp-6); border-radius: var(--r-lg); background: url(/assets/img/chips-dense.svg) 0 0 / 480px, var(--bg-deep); }
.contact h2 { margin-top: 0; }
.contact p:last-child { margin: 0; }
.draft-note { margin-bottom: var(--sp-6); }

/* a news post */
.post { padding: var(--sp-7) 0 var(--sp-9); }
.post-head { margin-bottom: var(--sp-6); }
.post-head h1 { font-size: var(--fs-h1); margin-top: var(--sp-3); }
.back { display: inline-block; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; margin-bottom: var(--sp-5); }
.post-lead { font-size: var(--fs-lead); color: var(--muted); }
.post-cover { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh); margin-bottom: var(--sp-6); }
.prose { font-size: calc(var(--fs-body) + 1px); }
.prose h2 { font-size: 30px; margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { font-size: 24px; margin: var(--sp-6) 0 var(--sp-3); }
.prose ul, .prose ol { padding-left: var(--sp-5); margin: 0 0 var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose img { border-radius: var(--r-md); box-shadow: var(--sh); margin: var(--sp-5) 0; }
.prose figure { margin: var(--sp-6) 0; }
.prose figure img { margin: 0; }
.prose figcaption { font-size: var(--fs-sm); color: var(--muted); text-align: center; margin-top: var(--sp-3); }
/* a picture of the board on no background (tools/howto-figures.mjs), so it sits straight on the page */
.prose .fig-board img { width: min(420px, 100%); height: auto; margin-inline: auto; border-radius: 0; box-shadow: none; }
.prose .fig-board figcaption { margin-top: 0; }
.prose .pic-phone img { width: min(300px, 70%); margin-inline: auto; border-radius: 28px; border: 8px solid #fffaf3; box-shadow: var(--sh-lift); }
.prose blockquote { margin: var(--sp-5) 0; padding: var(--sp-2) var(--sp-5); border-left: 4px solid var(--accent); font: italic 22px/1.4 var(--serif); color: var(--ink); }
.prose code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: var(--sp-7) 0; }
.post-get { display: flex; gap: var(--sp-5); align-items: center; margin-top: var(--sp-8); padding: var(--sp-5); background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--sh-soft); }
.post-get img { width: 72px; height: 72px; border-radius: 22.4%; box-shadow: var(--sh-soft); flex: none; }
.post-get p { margin: 0 0 var(--sp-3); color: var(--muted); font-size: var(--fs-sm); }
.post-get b { color: var(--ink); font-family: var(--serif); font-size: 18px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-6); }
.post-nav a { display: block; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; font: 700 18px/1.3 var(--serif); }
.post-nav a:hover { background: var(--panel); }
.post-nav small { display: block; font: 600 var(--fs-xs)/1.4 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.post-nav .older { grid-column: 2; text-align: right; }

/* ------------------------------------------------------------------------------------------------ footer */

.foot { background: var(--foot); color: var(--on-foot-muted); font-size: var(--fs-sm); padding: var(--sp-7) 0 calc(var(--sp-7) + var(--safe-b)); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5) var(--sp-7); align-items: center; }
.foot-brand { display: flex; align-items: center; gap: var(--sp-4); }
.foot-brand .mark { --m: 16px; }
.foot-brand p { margin: 0; line-height: 1.4; }
.foot-brand b { font: 700 22px/1 var(--serif); color: var(--on-foot); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2) var(--sp-5); }
.foot a { color: var(--on-foot); font-weight: 700; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; margin: 0; padding-top: var(--sp-5); border-top: 1px solid rgba(246, 234, 217, 0.14); }

/* ------------------------------------------------------------------------------------------------ smaller screens */

@media (max-width: 960px) {
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: var(--sp-6); }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .logo { justify-content: center; }
  .lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .hero-phone { height: clamp(360px, 92vw, 520px); align-items: flex-start; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding-top: var(--sp-3); }
  .hero-phone .phone { --w: min(300px, 70vw); rotate: 0deg; }
  .more { display: none; }
  .pc { --w2: calc(var(--w) * 0.62); width: var(--w2); }
  .pc:nth-child(2), .pc:nth-child(4) { display: none; }
  .try-in, .feature, .maker-in { grid-template-columns: 1fr; gap: var(--sp-6); }
  .feature.flip .feature-pic { order: 0; }
  .feature-text, .maker-text { text-align: center; margin-inline: auto; }
  .more-games { justify-content: center; }
  .maker-pic { max-width: 360px; margin-inline: auto; width: 100%; }
  .news-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(320px, 82vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: var(--sp-2) var(--gutter) var(--sp-4); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .news-grid > * { scroll-snap-align: start; }
  .news-grid:has(> :only-child) { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .news-grid > .news-card:only-child a { flex-direction: column; }
  .news-grid > .news-card:only-child .news-pic { flex: none; }
  .news-grid > .news-card:only-child .news-text { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
  .news-grid > .news-card:only-child h3 { font-size: 24px; }
  .news-page .news-grid { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .worlds { padding: calc(var(--sp-8) + 40px) 0; }
  .worlds::before { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 110px, #000 calc(100% - 110px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 110px, #000 calc(100% - 110px), transparent); }
  .stage-in { grid-template-columns: 1fr; grid-template-areas: "head" "phone" "now" "pick"; grid-template-rows: none; text-align: center; }
  .stage-head { margin-inline: auto; }
  .stage-phone { display: flex; justify-content: center; padding-top: var(--sp-3); }
  .stage-device { --w: min(270px, 62vw); rotate: 0deg; }
  .stage-now { min-height: 0; padding-top: var(--sp-5); }
  .stage-now p { margin-inline: auto; }
  .stage-pick { margin-inline: auto; width: 100%; }
  .section-head { text-align: center; margin-inline: auto; }
  .section-head.row { flex-direction: column; align-items: center; }
  .try-text { text-align: left; }
  .try-text h2 { text-align: center; }
}
@media (max-width: 640px) {
  :root { --top-h: 60px; }
  .links { gap: var(--sp-4); }
  .links a:not(.get-btn) { display: none; }
  .store { min-width: 0; padding: 8px 14px 8px 10px; }
  .store b { font-size: 16px; }
  .store small { font-size: 10px; }
  .store svg { width: 22px; height: 22px; }
  .stores { flex-wrap: nowrap; gap: var(--sp-2); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .post-get { flex-direction: column; text-align: center; }
  .post-get .stores { justify-content: center; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: var(--sp-3); }
  .trailer .close { right: 8px; top: 8px; }
  .trailer video { height: auto; width: 92vw; max-height: 86vh; }
  .lanes { height: 560px; margin-top: 0; }
  .lanes-in { width: 260%; gap: 16px; }
  .lane-in { gap: 16px; padding-right: 16px; }
  .lane img { height: 150px; border-radius: 12px; }
}
@media (max-width: 360px) {
  .store b { font-size: 14px; }
}

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