/* WorldPlay's landing pages. Shared by every page that tools/build_site.py builds. */

/* Nunito (SIL Open Font License, fonts/OFL.txt), trimmed to Latin by tools/build_site.py --font. */
@font-face {
    font-family: "Nunito";
    src: url("../fonts/Nunito.woff2") format("woff2");
    font-weight: 200 1000;
    font-display: swap;
}

/* The app's Classic theme by day, its dark teal by night. */
:root {
    --bg: #f3ebdc;
    --bg-deep: #ebe0cb;
    --surface: #fcf7ec;
    --surface-2: #fdfaf1;
    --ink: #21392b;
    --ink-soft: #4b5f52;
    --line: #e2ddcb;
    --brand: #2f5d46;
    --brand-deep: #1e4030;
    --on-brand: #ffffff;
    --hill-1: #c3d4c1;
    --hill-2: #a9c6b0;
    --hill-3: #7fa889;
    --footer: #2f5d46;
    --tile: #fdfaf1;
    --tile-ink: #21392b;
    --tile-edge: #d8d0bb;
    --correct: #4aa45d;
    --present: #bf8728;
    --absent: #85978a;
    --magenta: #dba6ac;
    --purple: #8357ea;
    --amber: #e9a62f;
    --green: #4fae63;
    --cyan: #5fb8c4;
    --coral: #e2665b;
    --blue: #2a72e8;
    --shadow: 0 1px 2px rgb(33 57 43 / 0.08), 0 8px 24px rgb(33 57 43 / 0.10);
    --shadow-lg: 0 2px 6px rgb(33 57 43 / 0.10), 0 24px 60px rgb(33 57 43 / 0.22);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b3133;
        --bg-deep: #082527;
        --surface: #152728;
        --surface-2: #1d3335;
        --ink: #e6f2f2;
        --ink-soft: #a7c2c1;
        --line: #2c4547;
        --brand: #2c7c7e;
        --brand-deep: #0f3234;
        --on-brand: #ffffff;
        --hill-1: #12494b;
        --hill-2: #0e3d3f;
        --hill-3: #09302f;
        --footer: #082527;
        --tile: #1d3335;
        --tile-ink: #e6f2f2;
        --tile-edge: #0f2223;
        --absent: #4a6365;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 8px 24px rgb(0 0 0 / 0.25);
        --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 24px 60px rgb(0 0 0 / 0.45);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b3133;
    --bg-deep: #082527;
    --surface: #152728;
    --surface-2: #1d3335;
    --ink: #e6f2f2;
    --ink-soft: #a7c2c1;
    --line: #2c4547;
    --brand: #2c7c7e;
    --brand-deep: #0f3234;
    --on-brand: #ffffff;
    --hill-1: #12494b;
    --hill-2: #0e3d3f;
    --hill-3: #09302f;
    --footer: #082527;
    --tile: #1d3335;
    --tile-ink: #e6f2f2;
    --tile-edge: #0f2223;
    --absent: #4a6365;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 8px 24px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 24px 60px rgb(0 0 0 / 0.45);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 900; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 50;
    background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 12px;
    text-decoration: none; font-weight: 800;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
.top {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a.link {
    text-decoration: none; font-weight: 700; color: var(--ink-soft);
    padding: 8px 12px; border-radius: 999px;
}
.nav a.link:hover { color: var(--ink); background: var(--surface); }
.lang {
    display: inline-flex; background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; padding: 3px;
}
.lang a {
    font-size: 0.8rem; font-weight: 800; text-decoration: none; line-height: 1.6;
    padding: 4px 10px; border-radius: 999px; color: var(--ink-soft);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.top .cta-small { margin-left: 8px; }
@media (max-width: 820px) {
    .nav a.link { display: none; }
    .top .cta-small { display: none; }
}

/* ---------- Buttons ---------- */
.play-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: #111; color: #fff; text-decoration: none;
    padding: 11px 22px 11px 16px; border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #3a3a3a;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.play-btn svg { width: 28px; height: 28px; flex: none; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.play-btn small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.play-btn strong { font-size: 1.2rem; font-weight: 800; }
/* Google's badge image carries its own clear space (about 7% each side). */
.badge { display: inline-block; margin: -12px 0 -12px -14px; border-radius: 12px; transition: transform 0.15s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 82px; width: auto; }
.play-btn.compact { padding: 7px 14px 7px 10px; border-radius: 12px; gap: 8px; }
.play-btn.compact svg { width: 20px; height: 20px; }
.play-btn.compact strong { font-size: 0.9rem; }

.ghost-btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-weight: 800; padding: 14px 20px; border-radius: 16px;
    color: var(--brand); background: var(--surface); border: 1px solid var(--line);
}
:root[data-theme="dark"] .ghost-btn { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ghost-btn { color: var(--ink); } }
.ghost-btn:hover { background: var(--surface-2); }

/* ---------- Letter tiles ---------- */
.tile {
    --t: 56px;
    display: inline-grid; place-items: center;
    width: var(--t); height: var(--t);
    border-radius: calc(var(--t) * 0.2);
    background: var(--tile); color: var(--tile-ink);
    font-weight: 900; font-size: calc(var(--t) * 0.5); line-height: 1;
    box-shadow: 0 calc(var(--t) * 0.06) 0 var(--tile-edge), 0 4px 12px rgb(0 0 0 / 0.08);
    position: relative; user-select: none;
}
.tile.c { background: var(--correct); color: #fff; box-shadow: 0 calc(var(--t) * 0.06) 0 color-mix(in srgb, var(--correct) 70%, #000); }
.tile.p { background: var(--present); color: #fff; box-shadow: 0 calc(var(--t) * 0.06) 0 color-mix(in srgb, var(--present) 70%, #000); }
.tile.a { background: var(--absent); color: #fff; box-shadow: 0 calc(var(--t) * 0.06) 0 color-mix(in srgb, var(--absent) 70%, #000); }
.tile.empty { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.tile sup {
    position: absolute; top: 2px; right: 4px; font-size: calc(var(--t) * 0.26); font-weight: 900; opacity: 0.95;
}

.wordmark { display: flex; gap: clamp(4px, 1vw, 8px); flex-wrap: nowrap; margin-bottom: 28px; }
.wordmark .tile { --t: clamp(30px, 6.6vw, 58px); }
.wordmark .tile {
    animation: flip-in 0.6s cubic-bezier(.2,.8,.2,1.2) both;
    animation-delay: calc(var(--i) * 70ms + 150ms);
    transition: transform 0.2s ease;
}
.wordmark .tile:hover { transform: translateY(-4px) rotate(-3deg); }
.wordmark .gap { width: clamp(4px, 1.2vw, 12px); }
@keyframes flip-in {
    from { transform: rotateX(90deg) translateY(-12px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); margin: 20px 0 32px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding: 0; list-style: none; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts li::before {
    content: ""; width: 18px; height: 18px; border-radius: 6px; flex: none;
    background: var(--correct) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.phones { position: relative; height: 620px; }
.phone {
    position: absolute; width: 280px; aspect-ratio: 9 / 16;
    border-radius: 34px; padding: 9px; background: #15201a;
    box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: var(--surface); }
.phones .phone:nth-child(1) { left: 6%; top: 50px; transform: rotate(-7deg); z-index: 1; animation: float 7s ease-in-out infinite; }
.phones .phone:nth-child(2) { right: 4%; top: 0; transform: rotate(4deg); z-index: 2; animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

.hills { position: absolute; inset: auto 0 0 0; height: 260px; z-index: 0; pointer-events: none; }
.hills svg { width: 100%; height: 100%; display: block; }
.hero-foot { height: 80px; }

@media (max-width: 900px) {
    .hero { padding-top: 32px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 20px; }
    .phones { height: 470px; max-width: 460px; width: 100%; margin: 0 auto; }
    .phone { width: 220px; border-radius: 28px; padding: 7px; }
    .phone img { border-radius: 22px; }
}
@media (max-width: 480px) {
    .phones { height: 400px; }
    .phone { width: 184px; }
    .phones .phone:nth-child(1) { left: 0; }
    .phones .phone:nth-child(2) { right: 0; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.deep { background: var(--bg-deep); }
.eyebrow {
    display: inline-block; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--brand); background: var(--surface); border: 1px solid var(--line);
    padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
:root[data-theme="dark"] .eyebrow { color: #8fd3c9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: #8fd3c9; } }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Games ---------- */
.games { background: var(--bg-deep); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .game-grid { grid-template-columns: 1fr; } }
.game {
    position: relative;
    background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
    padding: 22px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game header { display: flex; align-items: center; gap: 14px; }
.game-icon {
    width: 52px; height: 52px; border-radius: 16px; flex: none;
    display: grid; place-items: center; background: var(--accent);
}
.game-icon svg { width: 28px; height: 28px; }
.game h3 { font-size: 1.3rem; }
.game p { color: var(--ink-soft); font-size: 0.98rem; }
/* The whole card links to the game's page. */
.game .more { color: var(--brand); font-weight: 800; text-decoration: none; margin-top: -4px; }
.game .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.game .more:hover { text-decoration: underline; }
.game .more:focus-visible { outline: none; }
.game:has(.more:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
:root[data-theme="dark"] .game .more { color: #8fd3c9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .game .more { color: #8fd3c9; } }
.demo {
    margin-top: auto; background: var(--surface-2); border-radius: 20px;
    min-height: 150px; display: grid; place-items: center; padding: 18px 10px;
    border: 1px solid var(--line);
}
.demo .row { display: flex; gap: 6px; justify-content: center; }
.demo .stack { display: grid; gap: 8px; }
.demo .tile { --t: 34px; }

.ws { display: grid; grid-template-columns: repeat(6, 26px); gap: 4px; position: relative; }
.ws span {
    width: 26px; height: 26px; display: grid; place-items: center;
    font-weight: 900; font-size: 0.85rem; color: var(--ink-soft); border-radius: 8px;
}
.ws span.on { background: color-mix(in srgb, var(--purple) 26%, transparent); color: var(--ink); }
.ws span.start { box-shadow: inset 0 0 0 2.5px var(--amber); }

.wheel {
    width: 152px; height: 152px; border-radius: 50%; position: relative;
    background: color-mix(in srgb, var(--coral) 14%, var(--surface));
    border: 2px solid color-mix(in srgb, var(--coral) 55%, transparent);
}
.wheel .tile { --t: 34px; position: absolute; transform: translate(-50%, -50%); }
.wheel .tile.sel { background: var(--coral); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--coral) 70%, #000); }
.wheel-word { display: flex; gap: 4px; justify-content: center; margin-bottom: 10px; }
.wheel-word .tile { --t: 26px; }

/* ---------- Screens ---------- */
.shots {
    display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 28px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 28px;
    justify-content: safe center; scrollbar-width: thin;
}
.shots figure { margin: 0; scroll-snap-align: center; text-align: center; }
.shots .phone { position: relative; width: 100%; transform: none; animation: none; border-radius: 30px; padding: 8px; }
.shots .phone img { border-radius: 23px; }
.shots figcaption { margin-top: 18px; font-weight: 900; font-size: 1.1rem; }
.shots figcaption small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
}
.feature .ico {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); margin-bottom: 14px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }


/* ---------- Premium ---------- */
.premium .card {
    background: linear-gradient(140deg, #2f5d46, #1e4030 60%, #17362a);
    color: #fff; border-radius: 36px; padding: clamp(28px, 5vw, 56px);
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
:root[data-theme="dark"] .premium .card { background: linear-gradient(140deg, #1b4a4c, #0f3234 60%, #0a2526); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .premium .card { background: linear-gradient(140deg, #1b4a4c, #0f3234 60%, #0a2526); } }
.premium h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.premium .eyebrow { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.2); color: #ffd98a; }
.premium p.lede { color: rgb(255 255 255 / 0.82); margin: 14px 0 22px; font-size: 1.1rem; }
.premium .list-intro { font-weight: 800; margin-bottom: 14px; }
.premium ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.premium li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.premium li::before {
    content: ""; flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
    background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231e1a14' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.premium .art { max-width: 380px; width: 100%; justify-self: center; filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.3)); }
@media (max-width: 820px) {
    .premium .card { grid-template-columns: 1fr; }
    .premium .art { max-width: 260px; order: -1; }
}

/* ---------- FAQ ---------- */
.faq-section { padding-top: 24px; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 22px;
}
.faq summary {
    cursor: pointer; list-style: none; font-weight: 800; font-size: 1.08rem;
    padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--line); font-size: 1.2rem; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }
.faq details a { color: var(--brand); font-weight: 700; }

/* ---------- Final call ---------- */
.final { text-align: center; padding-bottom: 0; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); }
.final p { color: var(--ink-soft); margin: 14px auto 30px; max-width: 32em; font-size: 1.1rem; }
.final .icon { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 24px; box-shadow: var(--shadow-lg); }
.final .hills-static { height: 180px; margin-top: 64px; }
.final .hills-static svg { width: 100%; height: 100%; display: block; }

/* ---------- Footer ---------- */
footer.site {
    background: var(--footer); color: #fff; padding: 32px 0 40px; font-size: 0.95rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer.site a { color: #fff; text-decoration: none; font-weight: 700; opacity: 0.92; }
footer.site a:hover { opacity: 1; text-decoration: underline; }
footer.site .legal { opacity: 0.85; font-size: 0.85rem; width: 100%; }

/* ---------- Game pages ---------- */
.crumbs { font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 22px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.game-icon.big { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.game-icon.big svg { width: 34px; height: 34px; }
.game-hero h1 .sub {
    display: block; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 800;
    color: var(--ink-soft); letter-spacing: 0; margin-top: 10px;
}
.game-hero .lede { margin-top: 18px; }
.game-visual { display: grid; place-items: center; padding-bottom: 24px; }
.phone.solo { position: relative; width: min(300px, 72vw); transform: rotate(3deg); animation: float 7s ease-in-out infinite; }
.board {
    width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line);
    border-radius: 32px; padding: 24px; box-shadow: var(--shadow-lg); transform: rotate(2deg);
}
.board .demo { margin: 0; min-height: 260px; }
.board .demo .tile { --t: clamp(36px, 10vw, 52px); }
.board .ws { grid-template-columns: repeat(6, clamp(32px, 9vw, 44px)); gap: 6px; }
.board .ws span { width: auto; height: clamp(32px, 9vw, 44px); font-size: 1.15rem; border-radius: 10px; }
@media (max-width: 900px) {
    .game-visual { padding-bottom: 0; }
    .board { transform: none; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 820px; }
.step {
    background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px;
    display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
}
.step .num {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--accent); color: #1e1a14; font-weight: 900; font-size: 1.15rem;
}
.step h3 { font-size: 1.2rem; margin: 6px 0 6px; }
.step p { color: var(--ink-soft); }
.step .example { grid-column: 2; margin-top: 10px; display: flex; }
.step .example .tile { --t: clamp(30px, 8vw, 40px); }
.step .example .row { display: flex; gap: 6px; }
.step .example .stack { display: grid; gap: 8px; }
@media (max-width: 520px) {
    .step { grid-template-columns: 1fr; padding: 20px; }
    .step .example { grid-column: 1; }
}

.more-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .more-games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .more-games { grid-template-columns: 1fr; } }
.more-games a {
    display: flex; gap: 14px; align-items: center; height: 100%; text-decoration: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.more-games a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.more-games .game-icon { width: 44px; height: 44px; border-radius: 14px; }
.more-games .game-icon svg { width: 24px; height: 24px; }
.more-games strong { display: block; font-size: 1.05rem; font-weight: 900; }
.more-games small { display: block; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; margin-top: 2px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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