/* One accent, neutral surfaces, hairline borders, generous space. */

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.nav.solid { background: color-mix(in srgb, var(--bg) 94%, transparent); border-color: var(--raised); }
.nav .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-right: auto; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand em { font-style: normal; color: var(--accent); }
.menu-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: .95rem; text-decoration: none; transition: color .15s; }
.menu-list a:hover, .menu-list a[aria-current] { color: var(--text); }
.menu-list a[aria-current] { font-weight: 700; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--raised); border-radius: var(--r-btn); background: var(--card); color: var(--text); cursor: pointer; place-items: center; }
.legal-strip { display: none; }
@media (max-width: 859px) {
  .nav .wrap { column-gap: 8px; }
  .js .burger { display: grid; order: 1; }
  .menu-list { width: 100%; flex-direction: column; order: 2; }
  .js .menu-list { display: none; }
  .js .menu-list.open { display: flex; }
  html:not(.js) .nav { position: static; }
  .legal-strip { display: flex; font-size: .8rem; }
  .legal-strip a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); }
}
@media (max-width: 359px) {
  .nav .wrap { width: calc(100% - 20px); column-gap: 2px; }
  .brand { font-size: .92rem; gap: 5px; }
  .brand img { width: 26px; height: 26px; }
  .legal-strip { font-size: .72rem; }
}
.read { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; font: inherit; font-size: .95rem; font-weight: 700; border-radius: var(--r-pill); border: 1px solid var(--raised); background: var(--card); color: var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn.go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.go:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.btn:disabled { opacity: .45; cursor: default; }
.btn[aria-disabled="true"] { background: transparent; border-style: dashed; border-color: var(--muted); color: var(--muted); cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.center { justify-content: center; }

/* Hero: the app's play-card gradient, light and calm. */
.hero-band { background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 11%, var(--card)), var(--card) 78%); }
.hero-band > .wrap { display: grid; gap: 48px; align-items: center; padding-block: clamp(48px, 8vw, 104px); }
@media (min-width: 860px) { .hero-band > .wrap { grid-template-columns: 1.15fr .85fr; } }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.stores { margin-top: 14px; }
.stores .btn { min-height: 44px; padding: 6px 16px; font-size: .85rem; font-weight: 400; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pause { min-height: 44px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Phone mockup and the app pieces inside it */
.phone { width: min(100%, 288px); margin-inline: auto; background: var(--bg); color: var(--text); border: 7px solid var(--text); border-radius: 38px; padding: 14px 12px; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--text) 35%, transparent); line-height: 1.35; }
.phone .app-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 800; }
.phone .app-head span:first-child { margin-right: auto; }
.badge { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--raised); border-radius: var(--r-pill); padding: 2px 9px; color: var(--accent); font-size: .78rem; }
.coin { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--coin-light), var(--coin) 70%); box-shadow: inset 0 0 0 1.5px var(--coin-edge); }
.meter { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
.track { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--raised); overflow: hidden; }
.track i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--share, 0)); transition: transform .5s; }
.phone .track i { background: linear-gradient(90deg, var(--bar-1), var(--bar-2), var(--bar-3)); }
.lives { display: inline-flex; gap: 8px; }
.lives i { width: 11px; height: 11px; transform: rotate(45deg); border-radius: 3px; background: var(--accent); }
.lives i.out { background: var(--dot); }
.dock { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; font-size: .68rem; }
.dock span { border: 1px solid var(--raised); border-radius: var(--r-btn); padding: 6px; white-space: nowrap; }
#hero-board { display: block; width: 100%; height: 300px; }
.playcard { text-align: center; padding: 12px; border-radius: var(--r-hero); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card) 70%); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--raised)); }
.playcard canvas { display: block; width: 100%; height: 140px; }
.playcard .pill { display: block; margin-top: 8px; padding: 8px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 800; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; font-size: .75rem; }
.tiles div { border: 1px solid var(--raised); border-radius: var(--r-tile); padding: 8px; }
.tiles b { display: block; }
.tiles .wide { grid-column: 1 / -1; }
.flame { text-align: center; color: var(--on-accent); border-radius: var(--r-hero); padding: 14px; background: radial-gradient(100% 130% at 50% 0, var(--flame-1), var(--flame-2) 45%, var(--flame-3)); }
.flame b { display: block; font-size: 2.4rem; line-height: 1; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; font-size: .7rem; text-align: center; }
.cal span { border: 1px solid var(--raised); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: .75rem; }
.levels div { border: 2px solid var(--tone); border-radius: var(--r-tile); padding: 8px 2px; }
.levels b { display: block; }
.shop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-size: .72rem; text-align: center; }
.shop div { border: 1px solid var(--raised); border-radius: var(--r-btn); padding: 9px 4px; }

/* Sections: one rhythm, centred headings. */
.band { padding-block: clamp(64px, 9vw, 120px); overflow-x: clip; }
.band.tint { background: color-mix(in srgb, var(--text) 3%, var(--bg)); }
.band > div > h2, .story h2 { text-align: center; }
.band > div > h2 { margin-bottom: 16px; }
.band > div > h2 + p { text-align: center; max-width: 36em; margin-inline: auto; color: var(--muted); }
.band > div > h2 + :not(p) { margin-top: 40px; }
.band > div > h2 + p + * { margin-top: 40px; }
.looks > div > h2 { margin-bottom: 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); padding: 0; list-style: none; }
[data-section="S06"] .grid { grid-template-columns: 1fr; }
@media (min-width: 600px) { [data-section="S06"] .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { [data-section="S06"] .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--raised); border-radius: var(--r-card); padding: 28px; transition: border-color .2s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--raised)); }
.card > :last-child { margin-bottom: 0; }
.card > .ico { color: var(--accent); width: 28px; height: 28px; margin-bottom: 20px; }
.card p, .card ul { color: var(--muted); }

/* Key numbers: one quiet row. */
[data-section="S03"] { padding-block: 40px; border-block: 1px solid var(--raised); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 0; margin: 0; padding: 0; list-style: none; text-align: center; color: var(--muted); font-size: .9rem; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts li + li { border-left: 1px solid var(--raised); } }
.facts b { display: block; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.03em; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }

[data-section="S04"] p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); text-align: center; color: var(--muted); }

/* Steps: a row on wide screens, a list on small ones. */
.steps { counter-reset: step; display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps h3 { color: var(--text); margin-bottom: 4px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -6px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 800; font-size: .9rem; }
[data-section="S05"] > .narrow { width: min(100% - 40px, 1080px); }
@media (min-width: 940px) {
  [data-section="S05"] .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  [data-section="S05"] .steps li { padding: 56px 0 0; }
  [data-section="S05"] .steps li::before { top: 0; }
  [data-section="S05"] .steps li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 48px; right: -12px; height: 1px; background: var(--raised); }
}

/* Screens */
.screens { display: grid; gap: 40px 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .screens { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .screens { grid-template-columns: repeat(4, 1fr); } }
.screens figure { margin: 0; }
.screens .phone { min-height: 440px; width: min(100%, 260px); }
.screens figcaption { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--muted); }

/* Board shapes */
.shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 28px 12px; margin: 0; padding: 0; list-style: none; text-align: center; font-size: .8rem; color: var(--muted); }
@media (min-width: 940px) { .shapes { grid-template-columns: repeat(11, 1fr); } }
.shapes canvas { display: block; width: 100%; aspect-ratio: 8 / 9; margin-bottom: 8px; }

/* Themes playground */
.looks { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .looks { grid-template-columns: 1fr 1fr; } }
.looks h3 { margin-top: 28px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.looks p { color: var(--muted); }
.looks .row { gap: 8px; }
.looks .row .btn { min-height: 44px; padding: 6px 16px; font-size: .85rem; }
#look-board { display: block; width: 100%; height: 320px; }
#look-name { display: block; margin-top: 16px; text-align: center; font-size: .9rem; color: var(--muted); }

/* Coins */
.bars { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.card .bars { color: var(--text); }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-bottom: 14px; }
.bars .track { grid-column: 1 / -1; height: 4px; }
.grid + h3 { margin-top: 56px; text-align: center; }
.gifts { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; margin: 24px 0; padding: 0; list-style: none; text-align: center; font-size: .8rem; color: var(--muted); }
.gifts li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.gifts b { color: var(--text); }
.gifts i { display: block; width: min(100%, 48px); height: calc(var(--share) * 120px); border-radius: 8px 8px 2px 2px; background: color-mix(in srgb, var(--accent) calc(var(--share) * 100%), var(--raised)); transform-origin: bottom; }
.gifts + p { text-align: center; color: var(--muted); font-size: .9rem; margin: 0; }

/* Titles */
.ranks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 40px 0 80px; padding: 0; list-style: none; text-align: center; }
@media (min-width: 700px) { .ranks { grid-template-columns: repeat(5, 1fr); } }
.ranks li { padding: 18px 8px; border: 1px solid var(--raised); border-radius: var(--r-tile); background: var(--card); }
.ranks b, .ranks span { display: block; }
.ranks span { font-size: .85rem; color: var(--muted); }
.ranks + h2 { text-align: center; font-size: 1.4rem; }
[data-block="ranks"] .table-box, [data-block="ranks"] .table-box + p { max-width: 640px; margin-inline: auto; }
[data-block="ranks"] .table-box + p { margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* Demo */
.demo { max-width: 520px; margin-inline: auto; }
.demo.card:hover { border-color: var(--raised); }
.demo .top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.demo select { font: inherit; min-height: 44px; margin-left: 6px; padding: 0 10px; border-radius: var(--r-btn); border: 1px solid var(--raised); background: var(--card); color: var(--text); }
#demo-board { display: block; width: 100%; height: 420px; margin-block: 12px; touch-action: manipulation; cursor: pointer; }
#demo-result { min-height: 3.2em; text-align: center; font-weight: 700; color: var(--accent); }
.demo .btn { min-height: 44px; padding: 6px 16px; font-size: .85rem; }
.demo dl { margin: 24px 0 12px; padding-top: 16px; border-top: 1px solid var(--raised); font-size: .85rem; color: var(--muted); }
.demo dt { font-weight: 700; color: var(--text); }
.demo dd { margin: 0 0 8px; }
.demo > p:last-child { font-size: .85rem; }

/* Privacy summary */
[data-section="S09"] ul { margin: 40px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--raised); }
[data-section="S09"] li { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--raised); }
[data-section="S09"] li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 14px; height: 7px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
[data-section="S09"] ul + p { text-align: center; }

/* Questions */
details { border-bottom: 1px solid var(--raised); }
details:first-of-type { margin-top: 40px; border-top: 1px solid var(--raised); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > p { color: var(--muted); padding-bottom: 8px; }

/* Guide and quick answers: two plain columns. */
[data-section="S13"] > .narrow, [data-section="S14"] > .narrow { width: min(100% - 40px, 1080px); }
@media (min-width: 800px) {
  [data-section="S13"] > .narrow, [data-section="S14"] > .narrow { columns: 2; column-gap: 64px; }
  [data-section="S13"] h2, [data-section="S14"] h2 { column-span: all; margin: 0; padding-bottom: 48px; }
}
[data-section="S13"] h3, [data-section="S14"] h3 { margin-bottom: 6px; break-after: avoid; }
[data-section="S13"] h3 + p, [data-section="S14"] h3 + p { color: var(--muted); margin-bottom: 28px; break-inside: avoid; }

[data-section="S15"] th { width: 11em; color: var(--muted); font-weight: 400; }
[data-section="S16"] .grid { max-width: 800px; margin-inline: auto; }
[data-section="S16"] ul { padding-left: 1.1em; margin: 0; }

/* Download band and footer */
[data-section="S11"] { color: var(--on-accent); background: var(--accent); }
[data-section="S11"] h2 { margin-bottom: 12px; }
[data-section="S11"] .btn[aria-disabled="true"] { color: var(--on-accent); border-color: var(--on-accent); }
[data-section="S11"] :focus-visible { outline-color: var(--on-accent); }

/* Standalone pages */
.page { padding-block: 40px 80px; }
.page h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.page h2 { font-size: 1.3rem; margin-top: 2em; }
.page .card h2 { margin-top: 0; }
.page .grid { margin-bottom: 32px; }
.page .steps { margin-bottom: 40px; }
.crumbs { font-size: .85rem; color: var(--muted); }

/* Both text columns start level. */
[data-section="S13"] > div > h2 + h3, [data-section="S14"] > div > h2 + h3 { margin-top: 0; }

/* ---- Soft washes of the app's teal, violet and pink ---- */
.hero-band, .band, .story { --muted: var(--soft-text); }
.phone { --muted: var(--app-muted); }
.hero-band, .band[data-section="S11"] { position: relative; isolation: isolate; overflow: hidden; }
.hero-band {
  background:
    radial-gradient(55% 70% at 8% 0%, color-mix(in srgb, var(--bar-1) 26%, transparent), transparent 70%),
    radial-gradient(50% 65% at 96% 12%, color-mix(in srgb, var(--bar-2) 20%, transparent), transparent 70%),
    radial-gradient(60% 55% at 70% 108%, color-mix(in srgb, var(--bar-3) 18%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--card)), var(--card));
}
.band.tint { background: linear-gradient(135deg, color-mix(in srgb, var(--bar-1) 11%, var(--card)), color-mix(in srgb, var(--accent) 2%, var(--card)) 45%, color-mix(in srgb, var(--bar-2) 10%, var(--card))); }
.story { background: radial-gradient(60% 40% at 50% 50%, color-mix(in srgb, var(--bar-2) 9%, transparent), transparent 75%), linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--accent) 4%, var(--bg)), var(--bg)); }
[data-section="S03"] { background: linear-gradient(90deg, color-mix(in srgb, var(--bar-1) 8%, var(--card)), var(--card), color-mix(in srgb, var(--bar-3) 8%, var(--card))); }
.band[data-section="S11"] { --muted: var(--on-accent); background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 62%, var(--violet))); }

/* A soft light follows the pointer across cards. */
.grid > .card, .demo { position: relative; }
.grid > .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .25s; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.grid > .card:hover::after { opacity: 1; }
#hero-board, .shapes li { cursor: pointer; }
.shapes li { transition: transform .2s, color .2s; }
.shapes li:hover { transform: translateY(-4px); color: var(--accent); }
.hint { margin: -8px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* Rotating words: all sit in one cell, so the line never changes width. */
.rotator { margin-bottom: 16px; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; }
.rot { font-style: normal; }
.words { display: inline-grid; vertical-align: bottom; color: var(--accent); }
.words b { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); transition: opacity .35s, transform .35s; }
.words b.on { opacity: 1; transform: none; }
.words b.out { transform: translateY(-.6em); }

/* Typed line: the full text holds the space, the typed copy sits on top. */
[data-section="S04"] .type { position: relative; max-width: none; margin: 0 auto 28px; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.3; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-align: center; }
.type .typed { position: absolute; inset: 0; }
.type .typed i { font-style: normal; visibility: hidden; }
.type.armed .ghost { opacity: 0; }
.type.typing .typed b { border-right: 3px solid var(--accent); margin-right: -3px; font-weight: inherit; }

/* Footer, on the app's ink colour. */
.foot { --ink-soft: color-mix(in srgb, var(--bg) 72%, var(--text)); padding-block: clamp(56px, 7vw, 88px) 24px; color: var(--ink-soft); background: var(--text); font-size: .92rem; }
.foot-grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr 1fr; }
.foot-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } .foot-about { grid-column: auto; } }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 12px; font-size: 1.2rem; font-weight: 800; color: var(--bg); text-decoration: none; }
.foot-brand img { border-radius: 10px; }
.foot-about p { max-width: 24em; }
.foot .btn[aria-disabled="true"] { min-height: 44px; padding: 6px 16px; font-size: .85rem; font-weight: 400; color: var(--ink-soft); border-color: color-mix(in srgb, var(--bg) 35%, var(--text)); }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot nav h2 { margin: 0 0 8px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bg); }
.foot a { color: var(--ink-soft); }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; overflow-wrap: anywhere; transition: color .15s, translate .15s; }
.foot nav a:hover { color: var(--bg); translate: 4px 0; }
.foot-end { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, var(--text)); font-size: .85rem; }
.foot-end p { margin: 0; }
.foot-end a { display: inline-flex; align-items: center; min-height: 44px; }
.foot :focus-visible { outline-color: var(--bg); }
.foot .foot-brand { color: var(--bg); }
@media (max-width: 899px) { .foot-grid > nav:last-child { grid-column: 1 / -1; } }

.shapes.folded li:nth-child(n+23) { display: none; }
.more { margin: 32px 0 0; text-align: center; }
.playcard > small { display: block; font-weight: 800; color: var(--accent); }
#demo-stars { display: flex; justify-content: center; gap: 10px; }
#demo-stars svg { width: 36px; height: 36px; fill: var(--dot); }
#demo-stars svg.won { fill: var(--accent); }
.hero-band h1 .word { display: inline-block; }
.page .ranks + h2 { text-align: left; }
.page .ranks { margin-bottom: 32px; }
@media (max-width: 599px) {
  .shapes { grid-template-columns: repeat(4, 1fr); gap: 20px 8px; font-size: .72rem; }
  .shapes.folded li:nth-child(n+13) { display: none; }
}

/* Shorter pages on phones: the app screens swipe sideways and cards are compact. */
@media (max-width: 639px) {
  .band { padding-block: 48px; }
  .screens { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 12px; }
  .screens figure { flex: 0 0 78%; scroll-snap-align: center; }
  [data-section="S06"] .card { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 18px; }
  [data-section="S06"] .card > .ico { grid-row: span 2; margin: 0; }
  [data-section="S06"] .card h3 { margin-bottom: 4px; }
  #demo-board { height: 340px; }
  #look-board { height: 260px; }
}
