/* Quill Studio
   Clean, neutral canvas so the app icons carry the colour.
   White #ffffff · fog #f4f6f9 · line #e4e8ee · ink #1a2332 · slate #5d6778 · teal #0f7b6c
   Type: Manrope. Scale ≈ 1.25. Radii: 12 / 20 / 28. */

:root {
  --bg: #ffffff;
  --fog: #f4f6f9;
  --surface: #ffffff;
  --line: #e4e8ee;
  --ink: #1a2332;
  --slate: #5d6778;
  --accent: #0f7b6c;
  --accent-hover: #0b6457;
  --accent-soft: #e4f3f0;
  --on-accent: #ffffff;
  --tint: #0f7b6c;
  --shadow-sm: 0 1px 2px rgba(26, 35, 50, .06);
  --shadow: 0 1px 2px rgba(26, 35, 50, .05), 0 12px 32px -12px rgba(26, 35, 50, .14);
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --measure: 66ch;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --fog: #131b24;
    --surface: #17202b;
    --line: #253140;
    --ink: #e8edf3;
    --slate: #9aa6b5;
    --accent: #3cc7ab;
    --accent-hover: #5fd6be;
    --accent-soft: #15302c;
    --on-accent: #06201b;
    --shadow-sm: none;
    --shadow: 0 12px 32px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; }

/* ── header ─────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.logo:hover .logo-mark { transform: rotate(-8deg); }
.logo-mark svg { width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) { .logo-mark path:last-child { stroke: var(--accent); } .logo-mark path:first-child { fill: var(--on-accent); } }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--slate); text-decoration: none; font-weight: 600; font-size: .97rem; padding: 7px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.top nav a:hover { color: var(--ink); background: var(--fog); }
.top nav a[aria-current] { color: var(--ink); background: var(--fog); }

/* ── buttons ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 700 .98rem var(--font); text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { color: var(--ink); border-color: var(--slate); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-play { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-play:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-play svg { width: 16px; height: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── home hero ─────────────────────────────── */
.hero { position: relative; padding: 24px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--fog) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: end; }
.hero-copy { padding: 48px 0 104px; align-self: center; }
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; max-width: 12ch; }
.hero p { font-size: 1.2rem; line-height: 1.6; max-width: 40ch; margin: 24px 0 34px; color: var(--slate); }
.hero-blob { position: absolute; right: -60px; bottom: -220px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 65%); pointer-events: none; }

/* phone */
.phone { position: relative; z-index: 1; width: 340px; height: 600px; margin: 0 auto -1px; padding: 11px 11px 0; background: #1a2332; border-radius: 50px 50px 0 0; box-shadow: 0 -24px 60px -28px rgba(26, 35, 50, .45); }
@media (prefers-color-scheme: dark) { .phone { background: #050a0f; box-shadow: 0 0 0 1px #2a3747; } }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 40px 40px 0 0;
  background: radial-gradient(120% 70% at 10% 0%, #7fe0c8 0, transparent 55%), radial-gradient(90% 70% at 100% 35%, #8fb6ff 0, transparent 60%), linear-gradient(175deg, #3e7f9c 0%, #1d3557 100%); }
.home { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.screen.is-open .home { transform: scale(.92); opacity: .35; }
.status { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: #fff; margin-bottom: 24px; }
.clock { font-weight: 300; font-size: 3.4rem; letter-spacing: -.04em; line-height: 1; color: #fff; }
.date { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.88); margin: 6px 0 30px; }
.icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; list-style: none; padding: 0; margin: 0; }
.icons button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: .68rem; font-weight: 600; text-align: center; line-height: 1.2; width: 100%; }
.icons button:focus-visible img { outline: 2px solid #fff; outline-offset: 3px; }
.icons img { width: 56px; height: 56px; border-radius: 17px; box-shadow: 0 8px 14px -8px rgba(0,0,0,.55); transition: transform .2s; }
.icons button:hover img { transform: scale(1.08); }
.icons button.is-tapped img { transform: scale(.88); }
.icons span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-hint { margin-top: auto; align-self: center; width: 110px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.75); margin-bottom: 4px; }

/* app-open layer grows out of the tapped icon, like Android's launch animation */
.launch { position: absolute; inset: 0; border-radius: 40px 40px 0 0; overflow: hidden; background: var(--c, #222); clip-path: inset(var(--t, 50%) var(--r, 50%) var(--b, 50%) var(--l, 50%) round 18px); visibility: hidden; transition: clip-path .5s cubic-bezier(.2, .8, .2, 1), visibility 0s .5s; }
.screen.is-open .launch { clip-path: inset(0 0 0 0 round 0); visibility: visible; transition: clip-path .5s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.launch img.splash { position: absolute; left: 50%; top: 45%; width: 96px; height: 96px; border-radius: 26px; transform: translate(-50%, -50%); }
.launch img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s .35s; }
.screen.is-open .launch img.shot { opacity: 1; }
.launch-bar { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 8px; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.screen.is-open .launch-bar { opacity: 1; transform: none; transition-delay: .55s; }
.launch-bar a, .launch-bar button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 11px 8px; border-radius: 14px; font: 700 .85rem var(--font); background: rgba(255,255,255,.95); color: #1a2332; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.launch-bar button { flex: 0 0 auto; padding: 11px 14px; background: rgba(26,35,50,.85); color: #fff; }
.launch-bar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── sections ─────────────────────────────── */
.section { padding: 112px 0 0; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: 48px; }
.section-intro h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-intro p { color: var(--slate); font-size: 1.1rem; margin: 0; max-width: 46ch; }

/* tools */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tool { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 12px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.tool:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tool > *:not(.tool-shot) { margin-left: 12px; margin-right: 12px; }
.tool-shot { display: block; position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: var(--r); background: color-mix(in srgb, var(--c) 14%, var(--fog)); }
@media (prefers-color-scheme: dark) { .tool-shot { background: color-mix(in srgb, var(--c) 30%, var(--fog)); } }
.tool-shot img.shot { position: absolute; left: 50%; top: 30px; width: 58%; transform: translateX(-50%); border-radius: 18px; box-shadow: 0 24px 40px -18px rgba(15, 25, 40, .45); transition: transform .45s cubic-bezier(.2, .9, .3, 1.1); }
.tool:hover .tool-shot img.shot { transform: translateX(-50%) translateY(-8px); }
.tool-head { display: flex; gap: 14px; align-items: center; margin: 20px 0 10px; }
.tool-head img { width: 50px; height: 50px; border-radius: 14px; }
.tool-head h3 { font-size: 1.25rem; }
.tool-head h3 a { color: var(--ink); text-decoration: none; }
.tool-head h3 a::after { content: ""; position: absolute; inset: 0; }
.tool { position: relative; }
.kind { color: var(--slate); font-size: .88rem; display: block; font-weight: 500; letter-spacing: 0; }
.tool p { color: var(--slate); margin-bottom: 16px; }
.row-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .93rem; font-weight: 600; margin-top: auto; position: relative; z-index: 1; }
.row-links a { text-decoration: none; }
.row-links a:hover { text-decoration: underline; }

/* games */
.games-block { margin-top: 112px; background: var(--fog); padding: 104px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.games-block .section { padding-top: 0; }

/* game selector: a dock of icons */
.dock { display: flex; gap: 6px; padding: 8px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.dock button { all: unset; cursor: pointer; flex: 1 0 94px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; border-radius: 18px; font-size: .86rem; font-weight: 700; color: var(--slate); text-align: center; position: relative; transition: background .2s, color .2s; }
.dock button:hover { background: var(--fog); color: var(--ink); }
.dock button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dock img { width: 60px; height: 60px; border-radius: 17px; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.dock button:hover img { transform: translateY(-2px); }
.dock button[aria-selected="true"] { background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--ink); }
@media (prefers-color-scheme: dark) { .dock button[aria-selected="true"] { background: color-mix(in srgb, var(--c) 30%, var(--surface)); } }
.dock button[aria-selected="true"] img { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--c) 90%, #000); }
.dock button[aria-selected="true"]::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--c); }
.dock span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the chosen game */
.showcase { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.showcase.is-active { display: grid; }
.showcase:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.showcase-text { padding: clamp(28px, 4vw, 56px); }
.showcase-kind { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; color: var(--slate); margin-bottom: 16px; }
.showcase-kind img { width: 32px; height: 32px; border-radius: 9px; }
.showcase h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.showcase-lede { color: var(--slate); font-size: 1.08rem; margin: 14px 0 22px; max-width: 44ch; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 500; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, var(--surface)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2332' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (prefers-color-scheme: dark) { .checks li::before { background: color-mix(in srgb, var(--c) 45%, var(--surface)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.pills li { font-size: .8rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--fog); border: 1px solid var(--line); color: var(--slate); }
.showcase-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-weight: 700; }
.showcase-links a:not(.btn) { text-decoration: none; }
.showcase-links a:not(.btn):hover { text-decoration: underline; }

/* screenshots: one in a phone, two fanned out behind it */
.showcase-stage { position: relative; align-self: stretch; min-height: 540px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 55%, color-mix(in srgb, var(--c) 34%, var(--surface)) 0%, color-mix(in srgb, var(--c) 12%, var(--surface)) 100%); }
@media (prefers-color-scheme: dark) { .showcase-stage { background: radial-gradient(70% 60% at 50% 55%, color-mix(in srgb, var(--c) 45%, var(--surface)) 0%, color-mix(in srgb, var(--c) 18%, var(--surface)) 100%); } }
.device { position: absolute; left: 50%; top: 50%; width: 236px; aspect-ratio: 9 / 19; transform: translate(-50%, -46%); padding: 8px; border-radius: 38px; background: #10161f; box-shadow: 0 30px 60px -24px rgba(10, 15, 25, .55), inset 0 0 0 1.5px #2c3644; z-index: 2; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: color-mix(in srgb, var(--c) 30%, #10161f); }
.fan { position: absolute; left: 50%; top: 50%; width: 196px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(10, 15, 25, .5); z-index: 1; }
.fan-l { transform: translate(-50%, -42%) translateX(-118px) rotate(-9deg); }
.fan-r { transform: translate(-50%, -42%) translateX(118px) rotate(9deg); }
@media (prefers-reduced-motion: no-preference) {
  .showcase.is-active .device { animation: rise .55s cubic-bezier(.2, .9, .3, 1.05) backwards; }
  .showcase.is-active .fan-l { animation: fan-l .6s .08s cubic-bezier(.2, .9, .3, 1.05) backwards; }
  .showcase.is-active .fan-r { animation: fan-r .6s .08s cubic-bezier(.2, .9, .3, 1.05) backwards; }
  .showcase.is-active .showcase-text > * { animation: fade .4s ease-out backwards; }
  @keyframes rise { from { opacity: 0; transform: translate(-50%, -38%); } }
  @keyframes fan-l { from { opacity: 0; transform: translate(-50%, -42%) rotate(0); } }
  @keyframes fan-r { from { opacity: 0; transform: translate(-50%, -42%) rotate(0); } }
  @keyframes fade { from { opacity: 0; } }
}


/* promise */
.promise { padding: 112px 0 0; }
.promise-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.promise h2 { font-size: clamp(2rem, 3.8vw, 2.7rem); }
.promise h2 + p { margin-top: 16px; font-size: 1.1rem; max-width: 36ch; color: var(--slate); }
.promise dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promise dl > div { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--surface); }
.promise dt { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.promise dt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.promise dd { margin: 0; color: var(--slate); }

/* ── app page ─────────────────────────────── */
.app-band { background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 12%, var(--bg)) 0%, var(--bg) 100%); padding: 28px 0 48px; }
@media (prefers-color-scheme: dark) { .app-band { background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 26%, var(--bg)) 0%, var(--bg) 100%); } }
.crumbs { font-size: .9rem; color: var(--slate); margin: 0 0 28px; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.app-head { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 32px; align-items: center; }
.app-head > img { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--tint) 70%, #000); }
.app-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.035em; }
.app-head .lede { font-size: 1.15rem; color: var(--slate); max-width: 52ch; margin: 12px 0 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.tags li { font-size: .84rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--slate); }
@media (prefers-reduced-motion: no-preference) {
  .app-head > img { animation: land .6s cubic-bezier(.2, 1.3, .4, 1) backwards; }
  @keyframes land { from { transform: scale(.7); opacity: 0; } }
}

.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 0 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots img { height: 460px; width: auto; flex: none; border-radius: 22px; scroll-snap-align: start; background: var(--fog); border: 1px solid var(--line); }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-top: 48px; }
.app-body h2 { font-size: 1.5rem; margin-bottom: 18px; }
.desc { white-space: pre-line; max-width: var(--measure); font-size: 1.04rem; line-height: 1.75; color: color-mix(in srgb, var(--ink) 88%, var(--slate)); }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; align-self: start; position: sticky; top: 88px; box-shadow: var(--shadow); }
.facts h2 { font-size: 1.05rem; margin-bottom: 10px; }
.facts dl { margin: 0; font-size: .94rem; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--slate); flex: none; }
.facts dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.facts nav { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-weight: 600; font-size: .96rem; }
.facts nav a { text-decoration: none; }
.facts nav a:hover { text-decoration: underline; }

.more { padding-top: 96px; }
.more h2 { font-size: 1.5rem; margin-bottom: 12px; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; margin: 0; padding: 0; }
.game { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.game img { width: 64px; height: 64px; border-radius: 17px; grid-row: span 3; }
.game h3 { font-size: 1.08rem; }
.game h3 a { color: var(--ink); text-decoration: none; }
.game h3 a:hover { text-decoration: underline; }
.game p { margin: 2px 0 6px; font-size: .96rem; color: var(--slate); max-width: 50ch; }
@media (prefers-reduced-motion: no-preference) {
  .game:hover img, .pick a:hover img { animation: jiggle .35s ease-in-out 2; }
  @keyframes jiggle { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
}

/* ── documents ─────────────────────────────── */
.doc-head { padding: 28px 0 40px; }
.doc-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.035em; }
.doc-head .lede { color: var(--slate); font-size: 1.1rem; margin: 14px 0 0; max-width: 62ch; }
.doc-app { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--fog); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.doc-app img { width: 32px; height: 32px; border-radius: 9px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.doc-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 88px; align-self: start; font-size: .9rem; }
.toc p { font-weight: 800; margin-bottom: 12px; }
.toc div { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { color: var(--slate); text-decoration: none; line-height: 1.35; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.doc { max-width: var(--measure); font-size: 1.04rem; line-height: 1.75; }
.doc h2 { font-size: 1.3rem; margin: 2.2em 0 .6em; scroll-margin-top: 88px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.08rem; margin: 1.6em 0 .4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: .35em 0; }
.doc code { font-family: inherit; font-weight: 600; background: var(--fog); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; margin: 1em 0 1.4em; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); min-width: 130px; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-weight: 700; background: var(--fog); }
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin: 18px 0 !important; }
.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.contact-block { margin-top: 2.4em; padding: 22px 24px; border-radius: var(--r); background: var(--fog); border: 1px solid var(--line); }
.contact-block h2 { margin-top: 0 !important; }

.support-mail { font-size: clamp(1.25rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; text-decoration: none; }
.support-mail:hover { text-decoration: underline; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.pick a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 700; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.pick a:hover { border-color: var(--slate); box-shadow: var(--shadow); color: var(--ink); }
.pick img { width: 42px; height: 42px; border-radius: 12px; }
.pick small { display: block; color: var(--slate); font-weight: 500; }

/* ── footer ─────────────────────────────── */
.foot { margin-top: 120px; background: var(--fog); border-top: 1px solid var(--line); color: var(--slate); padding: 56px 0 28px; }
.foot a { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
.foot-name { color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 8px; }
.foot address { font-style: normal; }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.foot nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.foot nav a:hover { color: var(--accent); }
.foot-fine { font-size: .85rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── responsive ─────────────────────────────── */
@media (max-width: 1000px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-body { grid-template-columns: 1fr; gap: 40px; }
  .facts { position: static; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .promise-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-intro { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 24px 0 48px; }
  .games { grid-template-columns: 1fr; }
  .games-block { padding: 80px 0; }
  .showcase.is-active { grid-template-columns: 1fr; }
  .showcase-stage { order: -1; min-height: 400px; }
  .device { width: 180px; }
  .fan { width: 150px; }
  .fan-l { transform: translate(-50%, -42%) translateX(-92px) rotate(-9deg); }
  .fan-r { transform: translate(-50%, -42%) translateX(92px) rotate(9deg); }
  .dock { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .dock button { flex: 0 0 88px; }
  .dock img { width: 52px; height: 52px; border-radius: 15px; }
}
@media (max-width: 600px) {
  .tools { grid-template-columns: 1fr; }
  .phone { width: 304px; height: 520px; }
  .icons img { width: 48px; height: 48px; border-radius: 14px; }
  .clock { font-size: 2.7rem; }
  .app-head { grid-template-columns: 1fr; gap: 22px; }
  .app-head > img { width: 96px; height: 96px; border-radius: 24px; }
  .shots img { height: 380px; }
  .promise dl { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot nav { grid-template-columns: 1fr; }
  .top nav { gap: 0; margin-left: -10px; }
  .top nav a { padding: 6px 10px; font-size: .93rem; }
  .section, .promise { padding-top: 80px; }
  .games-block { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
