/* ==========================================================================
   Maiwar Game Studio — one stylesheet for the whole site.
   Every page uses the same header, footer, type, spacing and components.
   Game pages only change the accent colour (body.g-sudoku / body.g-block).
   ========================================================================== */

:root {
  /* brand (from logo/final) */
  --navy: #0b1233;
  --navy-2: #22358a;
  --teal: #18b3a6;
  --teal-glow: #2ee6d2;
  --blue: #1e6fd9;
  --blue-glow: #3d8bff;
  --gold: #ffc531;
  --orange: #ff8a3d;

  /* neutrals */
  --ink: #14183a;
  --text: #3d4362;
  --muted: #6e7391;
  --line: #e7e9f2;
  --soft: #f5f6fa;
  --white: #fff;

  /* accent (studio = river blue; games override) */
  --accent: #1e6fd9;
  --accent-ink: #1559b5;
  --accent-soft: #eaf2fd;
  --accent-grad: linear-gradient(135deg, #18b3a6 0%, #1e6fd9 100%);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 58, .05), 0 4px 14px rgba(20, 24, 58, .05);
  --shadow: 0 2px 6px rgba(20, 24, 58, .04), 0 18px 44px rgba(20, 24, 58, .09);
  --shadow-phone: 0 30px 60px -18px rgba(11, 18, 51, .38), 0 12px 24px -12px rgba(11, 18, 51, .22);
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.g-sudoku {
  --accent: #1565e8;
  --accent-ink: #0f4fbb;
  --accent-soft: #eaf2ff;
  --accent-grad: linear-gradient(135deg, #3b82f6 0%, #1149c9 100%);
}
.g-block {
  --accent: #6a3de8;
  --accent-ink: #5329c8;
  --accent-soft: #f1ecff;
  --accent-grad: linear-gradient(135deg, #ff4f7e 0%, #6a3de8 55%, #2a1570 100%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.025em; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 10px; }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -.035em; line-height: 1.04; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.03em; }
.h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 36em; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons + badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  color: var(--white); background: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20, 24, 58, .18); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost-light { background: rgba(255, 255, 255, .08); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.link-arrow:hover .arr { transform: translateX(3px); }
.link-arrow .arr { transition: transform .25s var(--ease); }

.stores { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.stores a { display: inline-block; border-radius: 10px; transition: transform .25s var(--ease), opacity .2s; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 48px; width: auto; }
.stores img.gp { height: 71px; margin: -11.5px -9px; }
.stores--center { justify-content: center; }
.soon-pill { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-stuck { border-color: var(--line); box-shadow: 0 6px 20px rgba(20, 24, 58, .04); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.hdr__logo { display: block; flex: none; }
.hdr__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; border-radius: 999px; font-size: 15.5px; font-weight: 600; color: var(--text); text-decoration: none; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent-grad); }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 0 18px; font-size: 15px; color: var(--white); }
.nav .btn:hover { background: var(--ink); color: var(--white); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 11px 10px; border: 0; border-radius: 12px; background: var(--soft); cursor: pointer; }
.menu-btn span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 120px) 0; }
.sec--soft { background: var(--soft); }
.sec--tight { padding-top: clamp(40px, 6vw, 64px); }
.sec__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.sec__head .lead { margin: 16px auto 0; }
.sec__head--left { margin-left: 0; text-align: left; }
.sec__head--left .lead { margin-left: 0; }

/* ---------- studio hero (navy, river line like the logo) ---------- */
.hero-studio { position: relative; overflow: hidden; color: #c9d1ee; background: radial-gradient(1100px 600px at 75% 20%, #22358a 0%, transparent 65%), radial-gradient(800px 500px at 0% 100%, #142060 0%, transparent 60%), var(--navy); }
.hero-studio__river { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero-studio__river .glow { stroke-width: 70; opacity: .18; filter: blur(18px); }
.hero-studio__river .line { stroke-width: 10; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 3.2s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-studio__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 120px); }
.hero-studio .eyebrow { color: var(--teal-glow); }
.hero-studio h1 { color: var(--white); }
.hero-studio h1 .grad-text { --accent-grad: linear-gradient(90deg, #2ee6d2, #3d8bff); }
.hero-studio .lead { color: #b7c0e3; margin: 22px 0 34px; }
.hero-studio__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-studio__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: #9aa5d0; }
.hero-studio__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-studio__meta li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero-studio__phones { position: relative; height: 540px; }
.hero-studio__phones .phone { position: absolute; width: 238px; }
.hero-studio__phones .phone:nth-child(1) { left: 6%; top: 46px; transform: rotate(-7deg); }
.hero-studio__phones .phone:nth-child(2) { right: 6%; top: 0; transform: rotate(5deg); }
.hero-studio__star { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; color: var(--gold); filter: drop-shadow(0 0 14px rgba(255, 197, 49, .8)); animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.82) rotate(18deg); opacity: .75; } }

/* ---------- phone screenshot frame ---------- */
.phone { border-radius: 30px; padding: 7px; background: #0e1430; box-shadow: var(--shadow-phone); }
.phone img { width: 100%; border-radius: 24px; }
.phone--light { background: var(--white); box-shadow: var(--shadow-phone), inset 0 0 0 1px var(--line); }

/* ---------- game cards (home) ---------- */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.game-card:hover { transform: translateY(-6px); box-shadow: 0 2px 6px rgba(20, 24, 58, .05), 0 30px 60px rgba(20, 24, 58, .14); }
.game-card__media { position: relative; height: 300px; overflow: hidden; background: var(--accent-grad); }
.game-card__media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .12)); }
.game-card__media img.shot { position: absolute; left: 50%; top: 34px; width: 56%; transform: translateX(-50%); border-radius: 22px 22px 0 0; border: 6px solid rgba(255, 255, 255, .92); border-bottom: 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transition: transform .5s var(--ease); }
a.game-card:hover .game-card__media img.shot { transform: translateX(-50%) translateY(-8px); }
.game-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.game-card__title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.game-card__title img { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow-sm); flex: none; }
.game-card__title h3 { font-size: 1.28rem; }
.game-card__title small { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.game-card p { margin: 0 0 20px; font-size: 15.5px; color: var(--muted); }
.game-card .link-arrow { margin-top: auto; color: var(--accent-ink); }
.game-card--soon .game-card__media { display: grid; place-items: center; background: radial-gradient(400px 260px at 50% 20%, #22358a, transparent 70%), var(--navy); }
.game-card--soon .road { position: absolute; left: 0; right: 0; bottom: 56px; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 28px, transparent 28px 52px); animation: road 1.2s linear infinite; }
@keyframes road { to { background-position: -52px 0; } }
.game-card--soon .car { position: relative; font-size: 64px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .4)); }
.game-card--soon .tag { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 197, 49, .16); color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.features--4 { grid-template-columns: repeat(4, 1fr); gap: 36px 32px; }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- split rows (text + screenshot) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 96px); }
.split + .split { margin-top: clamp(72px, 10vw, 120px); }
.split--flip .split__media { order: 2; }
.split__media { position: relative; display: flex; justify-content: center; padding: 40px 0; }
.split__media::before { content: ''; position: absolute; inset: 0 6%; border-radius: 40px; background: var(--accent-soft); }
.split__media .phone { position: relative; width: min(290px, 70%); }
.split__media--duo .phone { width: min(240px, 46%); }
.split__media--duo .phone:first-child { transform: translateY(26px) rotate(-3deg); margin-right: -18px; z-index: 1; }
.split__media--duo .phone:last-child { transform: rotate(3deg); }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--text); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ''; position: absolute; left: 8.5px; top: 7.5px; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ticks b { color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 13px; border-radius: 999px; background: var(--soft); color: var(--text); font-size: 14px; font-weight: 600; }

/* ---------- game hero ---------- */
.hero-game { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--white) 100%); }
.hero-game::before { content: ''; position: absolute; width: 760px; height: 760px; right: -180px; top: -260px; border-radius: 50%; background: var(--accent-grad); opacity: .12; filter: blur(10px); }
.hero-game__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: clamp(52px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-game__icon { width: 84px; height: 84px; margin-bottom: 26px; border-radius: 22px; box-shadow: 0 16px 34px -10px rgba(20, 24, 58, .35); }
.hero-game .lead { margin: 20px 0 30px; }
.hero-game__phones { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.hero-game__phones .phone { width: min(250px, 48%); }
.hero-game__phones .phone:first-child { margin-top: 50px; margin-right: -26px; transform: rotate(-5deg); z-index: 1; }
.hero-game__phones .phone:last-child { transform: rotate(4deg); }
.hero-game__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.hero-game__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-game__facts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.stats li { padding: 4px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.stats span { font-size: 14.5px; color: var(--muted); }

/* mode cards (Block Puzzle) */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode { border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.mode__media { display: flex; justify-content: center; padding: 30px 30px 0; background: var(--accent-soft); height: 270px; overflow: hidden; }
.mode__media img { width: 64%; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(20, 24, 58, .15); }
.mode__body { padding: 24px 26px 28px; }
.mode__tag { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mode h3 { font-size: 1.3rem; margin-bottom: 8px; }
.mode p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* screenshot strip */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 10px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 34px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots .phone { flex: none; width: 220px; scroll-snap-align: center; cursor: zoom-in; transition: transform .35s var(--ease); }
.shots .phone:hover { transform: translateY(-6px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps--4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: s; position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.steps li::before { content: '0' counter(s); display: block; margin-bottom: 12px; font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; position: relative; cursor: pointer; padding: 22px 48px 22px 0; font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { margin: -6px 0 22px; padding-right: 40px; color: var(--muted); }

/* call-to-action band */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(44px, 7vw, 76px) clamp(24px, 6vw, 72px); background: var(--accent-grad); color: rgba(255, 255, 255, .86); text-align: center; }
.cta::before { content: ''; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -300px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -200px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta > * { position: relative; z-index: 1; }
.cta img.cta__icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 16px 34px rgba(0, 0, 0, .25); }
.cta h2 { color: var(--white); }
.cta p { max-width: 520px; margin: 12px auto 28px; font-size: 1.1rem; }
.cta--navy { background: radial-gradient(700px 400px at 80% 0%, #22358a, transparent 70%), var(--navy); color: #b7c0e3; }

/* about (home) */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__art { position: relative; max-width: 440px; }
.about__art img { width: 100%; border-radius: 36px; box-shadow: 0 40px 80px -30px rgba(11, 18, 51, .55); }
.about__art figcaption { margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--gold); font-size: 14.5px; color: var(--muted); }
.about__art figcaption b { color: var(--ink); }
.about .lead { margin: 18px 0 0; }
.about .stats { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- page header (support / privacy) ---------- */
.page-head { padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 4vw, 44px); background: linear-gradient(180deg, var(--accent-soft), var(--white)); }
.page-head .wrap { max-width: 860px; }
.page-head .lead { margin: 14px 0 0; }
.page-head__meta { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }

/* long text (privacy, support) */
.prose { max-width: 860px; margin: 0 auto; padding: 0 24px clamp(72px, 9vw, 112px); color: var(--text); font-size: 16.5px; }
.prose h2 { font-size: 1.4rem; margin: 48px 0 12px; letter-spacing: -.02em; }
.prose h3 { font-size: 1.06rem; margin: 26px 0 8px; letter-spacing: -.01em; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose code { padding: 2px 7px; border-radius: 6px; background: var(--soft); font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15px; }
.prose th, .prose td { padding: 12px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; background: var(--soft); }
.prose .note { margin: 0 0 8px; padding: 22px 26px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.prose .note strong { display: block; margin-bottom: 4px; color: var(--ink); }
.prose .note ul { margin: 6px 0 0; }
.prose .contact-box { padding: 20px 24px; border-radius: var(--radius-sm); background: var(--soft); }
.prose .contact-box p { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }

/* support */
.help { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-bottom: 8px; }
.help__card { padding: 30px; border-radius: var(--radius); background: var(--ink); color: #c4cae3; }
.help__card h2 { margin: 0 0 8px !important; color: var(--white); font-size: 1.5rem; }
.help__card p { margin: 0 0 22px; }
.help__card .btn { background: var(--white); color: var(--ink); }
.help__card small { display: block; margin-top: 16px; font-size: 14px; color: #9aa1c3; }
.help__card small a { color: var(--white); font-weight: 600; }
.help__list { padding: 26px 28px; border-radius: var(--radius); background: var(--soft); }
.help__list h3 { margin: 0 0 10px; }
.help__list ul { margin: 0; padding-left: 20px; font-size: 15.5px; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; margin: 8px 0 0; }
.topics h3 { margin: 0 0 4px; }
.topics p { margin: 0; font-size: 15.5px; color: var(--muted); }
.prose .faq { margin: 0; }
.prose .faq summary { font-size: 1rem; }

/* ---------- download pages ---------- */
.dl { padding: clamp(36px, 6vw, 72px) 0 clamp(72px, 9vw, 112px); background: linear-gradient(180deg, var(--accent-soft), var(--white)); }
.dl__card { max-width: 540px; margin: 0 auto; padding: 40px 34px 34px; border-radius: 30px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.dl__icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 24px; box-shadow: 0 16px 34px -10px rgba(20, 24, 58, .35); }
.dl h1 { font-size: clamp(1.7rem, 5vw, 2.1rem); }
.dl__lead { margin: 10px 0 22px; color: var(--muted); }
.dl__status { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--soft); font-size: 15px; font-weight: 600; color: var(--ink); }
.dl__stores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl__store, .dl__soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 116px; padding: 16px 12px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.dl__store { box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.dl__store:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dl__store img { height: 46px; width: auto; }
.dl__store img.gp { height: 68px; margin: -11px 0; }
.dl__store.is-pick { box-shadow: inset 0 0 0 2px var(--accent), 0 12px 26px color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-ink); }
.dl__soon { border: 1.5px dashed var(--line); }
.dl__soon b { color: var(--ink); font-size: 15px; }
.dl.is-ios .dl__soon { border-color: var(--accent); background: var(--accent-soft); }
.dl__shots { display: flex; justify-content: center; gap: 12px; margin: 30px 0 6px; }
.dl__shots img { width: 29%; max-width: 140px; border-radius: 18px; box-shadow: var(--shadow); }
.dl__more { display: inline-block; margin-top: 18px; }
.picker { display: grid; gap: 12px; margin-top: 6px; text-align: left; }
.picker a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.picker a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.picker img { width: 60px; height: 60px; border-radius: 16px; flex: none; }
.picker b { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.picker span { font-size: 14px; color: var(--muted); }
.picker .arr { margin-left: auto; color: var(--muted); font-size: 20px; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.nf__icon { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 32px; box-shadow: 0 30px 60px -20px rgba(11, 18, 51, .5); }
.nf .lead { margin: 16px auto 30px; }
.nf .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- footer ---------- */
.ftr { background: var(--navy); color: #9ea7cc; font-size: 15px; }
.ftr__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 52px; }
.ftr__logo img { height: 46px; width: auto; }
.ftr__about p { max-width: 320px; margin: 20px 0 18px; line-height: 1.6; }
.ftr__mail { color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.ftr__mail:hover { border-color: var(--teal-glow); color: var(--teal-glow); }
.ftr__social { display: flex; gap: 10px; margin-top: 20px; }
.ftr__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); transition: background .2s, color .2s; }
.ftr__social a:hover { background: var(--teal-glow); color: var(--navy); }
.ftr__bottom a { color: #b5bddc; }
.ftr__bottom a:hover { color: var(--white); }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta__btns .btn svg { margin-right: 6px; vertical-align: -4px; }
.ftr h2 { margin: 6px 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.ftr__col a { display: block; padding: 5px 0; color: #b5bddc; text-decoration: none; }
.ftr__col a:hover { color: var(--white); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: #7f88b0; }
.ftr__bottom p { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 18, 51, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 26px; box-shadow: var(--shadow-phone); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

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

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .games { grid-template-columns: 1fr 1fr; }
  .game-card--soon { grid-column: 1 / -1; flex-direction: row; }
  .game-card--soon .game-card__media { width: 42%; height: auto; min-height: 220px; }
  .features--4 { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(20, 24, 58, .1); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav a[aria-current="page"] { background: var(--soft); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 8px 0 0; min-height: 52px; }
  .hero-studio__grid, .hero-game__grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-studio .lead, .hero-game .lead { margin-left: auto; margin-right: auto; }
  .hero-studio__btns, .hero-studio__meta, .hero-game__facts, .hero-game .stores { justify-content: center; }
  .hero-game__icon { margin-left: auto; margin-right: auto; }
  .hero-studio__phones { height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-studio__phones .phone { width: 196px; }
  .hero-game__phones { max-width: 440px; margin: 0 auto; }
  .split, .about { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .about__art { margin: 0 auto; max-width: 360px; }
  .features { grid-template-columns: 1fr 1fr; }
  .modes { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps, .steps--4 { grid-template-columns: 1fr 1fr; }
  .help { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hdr__in { height: 66px; }
  .hdr__logo img { height: 36px; }
  .nav { top: 66px; }
  .hero-studio__phones { height: 360px; }
  .hero-studio__phones .phone { width: 160px; border-radius: 24px; padding: 5px; }
  .hero-studio__phones .phone img { border-radius: 19px; }
  .hero-studio__phones .phone:nth-child(1) { left: 2%; }
  .hero-studio__phones .phone:nth-child(2) { right: 2%; }
  .games { grid-template-columns: 1fr; }
  .game-card--soon { flex-direction: column; }
  .game-card--soon .game-card__media { width: auto; min-height: 0; height: 200px; }
  .game-card__media { height: 260px; }
  .features, .features--4 { grid-template-columns: 1fr; gap: 30px; }
  .steps, .steps--4 { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .topics { grid-template-columns: 1fr; }
  .phone { border-radius: 24px; padding: 5px; }
  .phone img { border-radius: 19px; }
  .shots .phone { width: 180px; }
  .cta { border-radius: 26px; }
  .dl__card { padding: 30px 20px 26px; border-radius: 26px; }
  .dl__stores { grid-template-columns: 1fr; }
  .stores img { height: 46px; }
  .stores img.gp { height: 68px; margin: -11px -8px; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 56px; }
  .prose { font-size: 16px; padding-left: 20px; padding-right: 20px; }
  .prose table { font-size: 14px; }
  .help__card, .help__list { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-studio__river .line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
.cta--navy .eyebrow { color: var(--teal-glow); }
.cta .eyebrow { justify-content: center; color: rgba(255, 255, 255, .85); }
.hero-game .h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
.split .lead { margin-top: 16px; }

/* small text links inside the game hero (support / privacy) */
.hero-game__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-size: 14.5px; font-weight: 600; }
.hero-game__links a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.hero-game__links a:hover { border-color: var(--accent); }
/* game name + icon at the top of support / privacy pages (links back to the game) */
.page-head__game { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 700; font-size: 15px; color: var(--accent-ink); text-decoration: none; }
.page-head__game img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.page-head__game:hover { text-decoration: underline; }
.picker--big { margin: 0 0 24px; }
.help--one { grid-template-columns: 1fr; }
@media (max-width: 860px) { .hero-game__links { justify-content: center; } }
