/*
Theme Name: Backswipe
Theme URI: https://backswipe.app
Description: Backswipe landing, blog and legal pages. Works with Polylang; the same slug can be used in every language.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: backswipe
*/

/* Tokens: Figma 01 — Foundations */
:root {
  color-scheme: light;
  --canvas: #F6F3F9; --surface: #FFFFFF; --raised: #FFFFFF; --sunken: #ECE6F2;
  --text: #1A1326; --text-2: #6C5787; --text-3: #8F7AA9; --on-accent: #FFFFFF;
  --border: #ECE6F2; --border-strong: #D8CDE4;
  --accent: #F2733A; --accent-pressed: #D65A24; --accent-soft: #FFF4EC;
  --keep: #22B07A; --keep-soft: #E3F7EE; --skip: #E0425A; --skip-soft: #FDEBEE;
  --logo-back: #D8CDE4; --shadow: rgba(26, 19, 38, .14);
  --gutter: 20px; --max: 1280px; --header: 88px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #110C19; --surface: #1A1326; --raised: #261C36; --sunken: #110C19;
    --text: #F6F3F9; --text-2: #B7A6CB; --text-3: #8F7AA9;
    --border: #261C36; --border-strong: #382A4D;
    --accent: #FF8F52; --accent-pressed: #F2733A; --accent-soft: #5A2812;
    --keep: #3ED69C; --keep-soft: #0F3B2C; --skip: #F2677B; --skip-soft: #4A1621;
    --logo-back: #B7A6CB; --shadow: rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #110C19; --surface: #1A1326; --raised: #261C36; --sunken: #110C19;
  --text: #F6F3F9; --text-2: #B7A6CB; --text-3: #8F7AA9;
  --border: #261C36; --border-strong: #382A4D;
  --accent: #FF8F52; --accent-pressed: #F2733A; --accent-soft: #5A2812;
  --keep: #3ED69C; --keep-soft: #0F3B2C; --skip: #F2677B; --skip-soft: #4A1621;
  --logo-back: #B7A6CB; --shadow: rgba(0, 0, 0, .4);
}

/* One image per theme */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: revert; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
:root[data-theme="dark"] .only-dark { display: revert; }
:root[data-theme="dark"] .only-light { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--canvas) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .2s; }
.site-header.is-stuck, body:not(.home) .site-header { border-bottom-color: var(--border); }
.nav { height: var(--header); display: flex; align-items: center; gap: 36px; }
.nav-logo { margin-right: auto; color: var(--text); }
.logo { height: 38px; width: auto; }
.nav-toggle { display: none; }
.nav-links { display: flex; gap: 36px; font-weight: 500; font-size: 16px; color: var(--text-2); }
.nav-links a.is-active { color: var(--accent-pressed); font-weight: 600; }
.nav-links a:hover, .nav-tools button:hover, .share a:hover, .share button:hover, .toc a:hover, .footer-cols a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 24px; }
.theme-toggle { color: var(--text-2); display: grid; place-items: center; width: 28px; height: 28px; }

/* Language picker */
.lang-picker { position: relative; font-size: 14px; font-weight: 500; }
.lang-picker summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 8px 10px 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; }
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary .icon { color: var(--text-2); }
.lang-code { display: none; }
.caret { display: inline-grid; transform: rotate(90deg); color: var(--text-3); transition: transform .2s; }
.lang-picker[open] .caret { transform: rotate(-90deg); }
.lang-picker ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: 6px; background: var(--raised); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 16px 40px var(--shadow); z-index: 30; }
.lang-picker[open] ul { animation: pop-in .18s cubic-bezier(.2, .8, .2, 1); transform-origin: top right; }
.site-footer .lang-picker[open] ul { transform-origin: bottom right; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.lang-picker a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; border-radius: 9px; font-size: 15px; font-weight: 400; }
.lang-picker a:hover { background: var(--sunken); }
.lang-picker a[aria-current] { font-weight: 600; }
.lang-picker a[aria-current] .icon { color: var(--accent-pressed); }
.site-footer .lang-picker ul { top: auto; bottom: calc(100% + 6px); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; transition: background .15s; }
.button:hover { background: var(--accent-pressed); }

/* Section type */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-pressed); }
.section-head { display: grid; gap: 14px; }
.section-head h2 { font-size: clamp(34px, 3.4vw + 4px, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.section-head h2.h2-small { font-size: clamp(32px, 3vw, 48px); }
.lead { font-size: clamp(17px, 1.2vw, 20px); color: var(--text-2); }

/* Hero */
.hero { position: relative; min-height: calc(100svh - var(--header)); display: flex; align-items: center; padding: 16px 0 60px; }
.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-left { width: min(660px, 100%); display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 28px); }
.hero-left .hero-stores { order: 1; }
.hero-or { display: none; }
.hero h1 { font-size: clamp(42px, min(5.6vw, 9.4vh), 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.webapp { width: min(620px, 100%); display: grid; gap: 20px; padding: clamp(20px, 2.6vh, 28px); background: var(--surface); border: 1px solid var(--border); border-radius: 28px; }
.webapp-step { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.webapp-step strong { font-weight: 600; }
.progress { display: flex; gap: 6px; }
.progress i { width: 8px; height: 8px; border-radius: 4px; background: var(--border-strong); }
.progress i.is-on { width: 28px; background: var(--accent); }
.webapp-note { font-size: 14px; color: var(--text-2); }
.hero-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.badge { display: block; flex: none; }
.badge img { height: 52px; width: auto; max-width: none; }

/* Steam input */
.steam-input { display: grid; gap: 12px; }
.steam-label { font-size: 15px; font-weight: 500; }
.segments { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 12px; background: var(--sunken); }
.segments::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 9px; background: var(--surface); box-shadow: 0 1px 3px var(--shadow); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .28s cubic-bezier(.3, .9, .3, 1); }
.segments button { position: relative; min-height: 36px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .2s; }
.segments .is-on { color: var(--text); font-weight: 600; }
.steam-field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 14px; border: 1.5px solid var(--border-strong); border-radius: 14px; background: var(--raised); color: var(--text-3); }
.steam-field:focus-within { border-color: var(--accent); }
.steam-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 16px; }
.steam-field input::placeholder, .steam-ph { color: var(--text-3); font-size: 16px; }
.steam-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steam-paste { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--text-2); transition: color .15s, background .15s; }
button.steam-paste:hover { color: var(--text); background: var(--sunken); }
.steam-help { font-size: 14px; color: var(--text-2); }

/* Web app inside the hero */
.hero.is-app { display: block; padding: 0; }
.hero.is-app .hero-grid, .hero.is-app .scroll-cue { display: none; }
.hero-app { display: block; width: min(520px, 100%); height: calc(100svh - var(--header)); margin-inline: auto; border: 0; background: var(--canvas); }

/* iPhone mockup */
.phone { --h: min(860px, calc(100svh - var(--header) - 96px)); position: relative; flex: none; height: var(--h); aspect-ratio: 412 / 860; border-radius: calc(var(--h) * .072); background: #17171A; box-shadow: inset 0 0 0 3px #5C595E, 0 30px 70px rgba(0, 0, 0, .35); }
.phone-screen { position: absolute; inset: 1.4%; inset-inline: 2.9%; border-radius: calc(var(--h) * .058); overflow: hidden; background: var(--canvas); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.phone-video.is-playing { opacity: 1; }
.phone-island { position: absolute; left: 50%; top: 3%; width: 28%; height: 4%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.phone-btn { position: absolute; width: 3px; border-radius: 2px; background: #4D4A4F; left: -3px; }
.phone-btn.b1 { top: 20%; height: 4%; } .phone-btn.b2 { top: 27%; height: 7%; } .phone-btn.b3 { top: 36%; height: 7%; }
.phone-btn.b4 { left: auto; right: -3px; top: 30%; height: 11.5%; }
.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.scroll-cue .caret { color: inherit; }

/* Game card */
.game-card { position: relative; overflow: hidden; aspect-ratio: 5 / 7.14; border-radius: 8%/5.6%; background: #1A1326; color: #fff; box-shadow: 0 18px 40px var(--shadow); container-type: inline-size; }
.game-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(17, 12, 25, .94) 70%); }
.game-card figcaption { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 2.6cqw; padding: 7cqw; }
.game-card strong { font-size: 8cqw; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.game-meta { display: flex; align-items: center; gap: 3cqw; font-size: 5cqw; opacity: .85; }
.game-meta .icon, .game-tags .icon { width: 5.4cqw; height: 5.4cqw; }
.game-tags { display: flex; flex-wrap: wrap; gap: 2.4cqw; font-size: 4.4cqw; font-weight: 500; }
.game-tags > span { display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.4cqw 3.4cqw; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .35); }
.game-stamp { position: absolute; z-index: 1; top: 8cqw; left: 8cqw; width: 21cqw; height: 21cqw; display: grid; place-items: center; border-radius: 50%; background: #22B07A; }

/* How it works */
.how { min-height: calc(100svh - var(--header)); display: flex; align-items: center; padding: clamp(64px, 8vh, 96px) 0; }
.how .section-head { max-width: 860px; margin-bottom: clamp(32px, 5vh, 56px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: grid; gap: 20px; align-content: start; }
.step-visual { position: relative; height: clamp(250px, 29vh, 290px); display: grid; place-items: center; padding: 20px; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.step-connect { align-content: center; gap: 14px; }
.step-connect > * { width: 100%; }
.step-connect .steam-input { gap: 10px; }
.step-connect .steam-help { display: none; }
.step-connect .steam-field, .step-connect .button { min-height: 46px; }
.step-swipe, .step-pick { padding: 0; }
.step-swipe .game-card, .step-pick .game-card { position: absolute; left: 50%; top: 50%; height: 78%; aspect-ratio: 5 / 7.14; }
.step-swipe .behind { transform: translate(-82%, -50%) rotate(-7deg); filter: brightness(.82); }
.step-swipe .front { transform: translate(-18%, -50%) rotate(7deg); height: 82%; }
.step-pick .single { transform: translate(-50%, -50%); height: 86%; }
.steps h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(21px, 1.6vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-pressed); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.steps p { color: var(--text-2); }

/* Four swipes */
.four { min-height: calc(100svh - var(--header)); display: flex; align-items: center; padding: 64px 0; background: var(--surface); }
.four-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, min(24vw, 42vh), 320px) minmax(0, 1fr); grid-template-areas: ". up ." "left card right" ". down ."; column-gap: 40px; row-gap: 28px; align-items: center; justify-items: center; }
.four-head { position: absolute; top: 0; left: 0; width: min(330px, 26%); }
.four-head h2 { font-size: clamp(32px, 3vw, 52px); }
.four-card { grid-area: card; width: 100%; }
.swipe { display: flex; gap: 18px; align-items: center; }
.swipe h3 { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.swipe p { color: var(--text-2); }
.swipe-up { grid-area: up; width: min(422px, 100vw - 40px); }
.swipe-down { grid-area: down; width: min(422px, 100vw - 40px); }
.swipe-left, .swipe-right { flex-direction: column; align-items: flex-start; gap: 12px; width: min(290px, 100%); }
.swipe-left { grid-area: left; justify-self: end; align-items: flex-end; text-align: right; }
.swipe-right { grid-area: right; justify-self: start; }
.swipe-badge { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; }
.tone-accent { background: var(--accent); color: var(--on-accent); }
.tone-muted { background: var(--sunken); color: var(--text-2); }
.tone-skip { background: var(--skip-soft); color: var(--skip); }
.tone-keep { background: var(--keep-soft); color: var(--keep); }

/* Posts */
.latest, .faq { padding: clamp(64px, 10vh, 110px) 0; }
.latest-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.more { flex: none; font-weight: 600; color: var(--accent-pressed); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.post-card { display: grid; gap: 12px; align-content: start; }
.post-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--sunken); }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-image:hover img { transform: scale(1.03); }
.post-cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-pressed); }
.post-title { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.post-title a:hover, .featured-title a:hover { color: var(--accent-pressed); }
.post-excerpt { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.post-meta { font-size: 13px; color: var(--text-3); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 380px minmax(0, 820px); gap: 80px; justify-content: space-between; align-items: start; }
.accordion details { border-bottom: 1px solid var(--border-strong); padding: 24px 0; }
.accordion details:first-child { padding-top: 0; }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; cursor: pointer; font-size: clamp(18px, 1.3vw, 21px); font-weight: 600; letter-spacing: -.01em; }
.accordion summary::-webkit-details-marker { display: none; }
.faq-body { overflow: hidden; }
.accordion p { padding-top: 12px; color: var(--text-2); max-width: 720px; }
.plus { position: relative; flex: none; width: 18px; height: 18px; color: var(--text-3); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .28s cubic-bezier(.3, .9, .3, 1); }
.plus::after { transform: rotate(90deg); }
details.is-open .plus::after { transform: rotate(0); }

/* Footer */
.site-footer { padding: 72px 0 40px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { width: min(320px, 100%); display: grid; gap: 16px; color: var(--text); }
.footer-brand p { font-size: 16px; color: var(--text-2); }
.footer-cols { display: flex; gap: clamp(40px, 5vw, 96px); flex-wrap: wrap; }
.footer-cols nav { display: grid; gap: 14px; align-content: start; font-size: 15px; color: var(--text-2); }
.footer-cols h2 { font-size: 14px; font-weight: 600; color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 48px; font-size: 13px; color: var(--text-3); }

/* Inner pages */
.page-main { padding: clamp(36px, 7vh, 72px) 0 clamp(56px, 10vh, 110px); display: grid; gap: clamp(32px, 5vh, 48px); }
.page-head { display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(36px, 4vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -.026em; }
.page-head .lead { max-width: 720px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter a { padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.cat-filter a:hover { color: var(--text); }
.cat-filter .is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cat-filter .is-on:hover { color: var(--on-accent); }
.featured { display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 472fr); gap: 48px; align-items: center; }
.featured > div { display: grid; gap: 14px; }
.featured .post-image { border-radius: 24px; }
.featured .post-cat { font-size: 13px; }
.featured-title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.18; font-weight: 700; letter-spacing: -.016em; }
.featured-excerpt { font-size: clamp(16px, 1.2vw, 18px); color: var(--text-2); }
.featured .post-meta { font-size: 14px; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.pagination .page-numbers { padding: 9px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.pagination a:hover { color: var(--text); }
.pagination .current { background: var(--sunken); color: var(--text); font-weight: 600; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Single post */
.post-head { display: grid; gap: 14px; }
.post-head h1 { max-width: 960px; font-size: clamp(32px, 3.9vw, 56px); line-height: 1.11; font-weight: 700; letter-spacing: -.024em; }
.post-head .post-meta { font-size: 15px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.post-main { display: grid; gap: 28px; min-width: 0; }
.post-hero { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: var(--sunken); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-cols { display: grid; grid-template-columns: 240px minmax(0, 720px) 240px; gap: 40px; justify-content: space-between; align-items: start; }
.toc, .share { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 12px; font-size: 15px; color: var(--text-2); justify-items: start; }
.share-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-icons a, .share-icons button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2); transition: color .15s, border-color .15s, background .15s; }
.share-icons a:hover, .share-icons button:hover { color: var(--text); border-color: var(--text-3); background: var(--surface); }
.share-icons .i-done { display: none; color: var(--keep); }
.share-icons .is-copied .i-done { display: grid; }
.share-icons .is-copied .i-copy { display: none; }
.side-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.share button { color: inherit; }

.entry-content { font-size: clamp(17px, 1.1vw, 19px); line-height: 1.68; display: flow-root; }
.entry-content > * + * { margin-top: 20px; }
.entry-content h2 { margin-top: 36px; font-size: clamp(26px, 2vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -.012em; scroll-margin-top: 24px; }
.entry-content h3 { margin-top: 28px; font-size: clamp(21px, 1.5vw, 24px); line-height: 1.3; font-weight: 600; }
.entry-content a { color: var(--accent-pressed); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ol, .entry-content ul { display: grid; gap: 10px; padding-left: 1.5em; }
.entry-content ol { list-style: decimal; }
.entry-content ul { list-style: disc; }
.entry-content li::marker { color: var(--accent-pressed); font-weight: 600; }
.entry-content blockquote, .entry-content .wp-block-quote { margin-inline: 0; padding-left: 18px; border-left: 4px solid var(--accent); font-size: clamp(20px, 1.4vw, 24px); line-height: 1.42; font-weight: 500; }
.entry-content img { border-radius: 16px; }
.inline-cta { display: grid; gap: 18px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.inline-cta > div { display: grid; gap: 6px; line-height: 1.45; }
.inline-cta strong { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.inline-cta span { font-size: 15px; color: var(--text-2); }
.inline-cta > .cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cta-actions .badge img { height: 46px; border-radius: 0; }
.cta-actions .button { min-height: 46px; margin-left: auto; }
.entry-content .inline-cta a.button { color: var(--on-accent); text-decoration: none; }
.side-download { display: grid; gap: 10px; justify-items: start; margin-top: 20px; }
.side-download .badge img { height: 44px; }
.related { display: grid; gap: 24px; padding-top: clamp(16px, 4vh, 48px); }
.h2-related { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.012em; }
.related .post-title { font-size: 20px; }

/* Games */
.game-list { display: grid; gap: 16px; }
.entry-content .game-list, .entry-content .game-row { margin-top: 24px; }
.game-list .game-row { margin-top: 0; }
.game-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.game-row-cover { display: block; aspect-ratio: 2 / 3; align-self: start; overflow: hidden; border-radius: 12px; background: var(--sunken); }
.entry-content .game-row-cover img, .game-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.game-row-body { display: grid; gap: 10px; align-content: start; }
.entry-content .game-row h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.entry-content .game-row h3 a { color: inherit; text-decoration: none; }
.entry-content .game-row h3 a:hover { color: var(--accent-pressed); }
.game-row-num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-pressed); font-size: 14px; font-weight: 700; }
.game-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; line-height: 1.4; color: var(--text-3); }
.game-facts span { display: inline-flex; align-items: center; gap: 5px; }
.entry-content .game-row-text { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.store-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-content a.store-btn, .store-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--raised); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; transition: border-color .15s; }
.store-btn:hover { border-color: var(--accent); }
.game-single { display: grid; grid-template-columns: 360px minmax(0, 720px); gap: 56px; align-items: start; }
.game-single-cover { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 22px; background: var(--sunken); box-shadow: 0 18px 40px var(--shadow); }
.game-single-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-single-body { display: grid; gap: 16px; }
.game-single-body h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -.024em; }
.game-single-body .game-facts { font-size: 15px; }
.game-single-body .inline-cta { margin-top: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px 24px; }
.game-tile { display: grid; gap: 8px; align-content: start; font-size: 14px; color: var(--text-3); }
.game-tile img { aspect-ratio: 2 / 3; border-radius: 14px; background: var(--sunken); transition: transform .25s; }
.game-tile:hover img { transform: translateY(-3px); }
.game-tile strong { font-size: 17px; line-height: 1.25; font-weight: 600; color: var(--text); }

/* Legal */
.legal-cols { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 80px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.legal-nav a { padding: 9px 12px; border-radius: 10px; }
.legal-nav a:hover { color: var(--text); }
.legal-nav .is-on { background: var(--accent-soft); color: var(--accent-pressed); font-weight: 600; }
.legal-body { color: var(--text-2); font-size: clamp(16px, 1.1vw, 18px); }
.legal-body h2 { color: var(--text); font-size: clamp(22px, 1.6vw, 26px); font-weight: 600; letter-spacing: -.012em; }
.legal-body > h2:first-child { margin-top: 0; }

/* 404 */
.not-found { min-height: calc(100svh - var(--header) - 1px); padding: 56px 0 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.not-found h1 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
.not-found .lead { max-width: 560px; }
.nf-cards { position: relative; width: 320px; height: 230px; }
.nf-cards img { position: absolute; top: 18px; width: 130px; aspect-ratio: 5 / 7.2; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 34px var(--shadow); }
.nf-l { left: 40px; transform: rotate(-10deg); }
.nf-r { right: 40px; transform: rotate(10deg); }
.nf-c { left: 95px; top: 0 !important; }

/* Full-page snap: only where every section fits one screen */
@media (min-width: 1100px) and (min-height: 740px) and (prefers-reduced-motion: no-preference) {
  html:has(body.home) { scroll-snap-type: y proximity; scroll-behavior: smooth; }
  .snap { scroll-snap-align: start; scroll-snap-stop: normal; }
}

@media (max-width: 1240px) {
  .post-cols { grid-template-columns: 200px minmax(0, 1fr); }
  .share { position: static; grid-column: 2; }
  .side-download { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .four-head { position: static; width: auto; grid-column: 1 / -1; justify-self: start; text-align: left; margin-bottom: 8px; }
  .four-grid { grid-template-areas: "head head head" ". up ." "left card right" ". down ."; }
  .four-head { grid-area: head; }
}

@media (max-width: 960px) {
  :root { --header: 64px; }
  .nav { gap: 12px; }
  .logo { height: 28px; }
  .nav-logo { margin-right: auto; }
  .nav-tools { gap: 12px; }
  .site-header .lang-picker summary { padding: 6px 8px; gap: 5px; }
  .site-header .lang-name { display: none; }
  .site-header .lang-code { display: inline; font-size: 13px; }
  .nav-toggle { display: grid; gap: 5px; width: 28px; padding: 6px 3px; }
  .nav-toggle span { height: 2px; border-radius: 1px; background: var(--text-2); transition: transform .24s cubic-bezier(.3, .9, .3, 1), opacity .15s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: relative; }
  .nav-links { position: absolute; right: 0; top: calc(100% - 4px); flex-direction: column; gap: 0; min-width: 200px; padding: 6px 0; background: var(--raised); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 16px 40px var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right; transition: opacity .18s, transform .24s cubic-bezier(.3, .9, .3, 1), visibility 0s .24s; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .24s cubic-bezier(.3, .9, .3, 1), visibility 0s; }
  .nav-links a { padding: 12px 16px; color: var(--text); }
  .hero { min-height: 0; padding: 12px 0 48px; }
  .hero-grid { display: block; }
  .hero-left { width: 100%; gap: 18px; }
  .hero-left .hero-stores { order: 0; }
  .hero-or { display: block; text-align: center; font-size: 13px; color: var(--text-3); margin-block: -4px; }
  .webapp-step { display: none; }
  .webapp { padding: 18px 16px; gap: 16px; border-radius: 22px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 64px); }
  .webapp { width: 100%; }
  .phone, .scroll-cue { display: none; }
  .hero-stores { flex-wrap: nowrap; justify-content: center; gap: 10px; width: min(332px, 100%); align-self: center; }
  .hero-stores > span:not(.badge) { display: none; }
  .hero-stores .badge:nth-last-child(2) { flex: 332 1 0; min-width: 0; }
  .hero-stores .badge:last-child { flex: 360 1 0; min-width: 0; }
  .hero-stores .badge img { width: 100%; height: auto; }
  .how, .four { min-height: 0; padding: 56px 0; }
  .steps, .post-grid { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .step-visual { height: 280px; }
  .step-connect { height: auto; padding: 16px; }
  .steps li { gap: 16px; }
  .four-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
  .four-card { width: min(280px, 80%); align-self: center; order: 1; }
  .four-head { order: 0; }
  .swipe { order: 2; width: 100%; flex-direction: row; align-items: center; text-align: left; gap: 16px; }
  .swipe-left { align-items: center; text-align: left; }
  .swipe-badge { width: 52px; height: 52px; }
  .latest-head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 28px; }
  .featured { grid-template-columns: 1fr; gap: 14px; }
  .post-cols { grid-template-columns: 1fr; }
  .toc { display: none; }
  .share { grid-column: auto; }
  .post-cols > div:empty { display: none; }
  .post-hero { border-radius: 18px; }
  .inline-cta { padding: 20px; }
  .game-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .entry-content .game-row h3 { font-size: 18px; }
  .game-single { grid-template-columns: 1fr; gap: 24px; }
  .game-single-cover { width: min(240px, 70%); }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .cta-actions .button { width: 100%; margin-left: 0; }
  .legal-cols { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; font-size: 13px; }
  .site-footer { padding: 48px 0 32px; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 32px 40px; }
}
