/* =====================================================================
   MaxGamez · Toy Box design system
   The site looks like a casual game's own menu: sky, chunky buttons,
   letter tiles, level cards. One bright look by choice (no dark theme).

   RULES (enforced in this file, keep them when editing):
   1. Colors, spacing, radii, type sizes, shadows and timings come ONLY
      from the tokens below. No raw values in components.
   2. Spacing uses the 4/8 scale (--s-1 … --s-9). Sections are separated
      by --section; cards use --pad-card inside.
   3. "Lift" elevation = a hard bottom edge + one soft shadow. Every raised
      element uses --lift-1 or --lift-2 and sets its own --edge color.
   4. Interactive feedback: hover raises (-2px buttons, -4px cards),
      press sinks onto its edge. Nothing rotates or wobbles on hover.
   5. Ambient motion only on decoration (clouds, coin, star). Content
      never loops. Everything stops under prefers-reduced-motion.
   6. Icons: one 24px stroke set (stroke 2.25, round caps), sized
      --i-sm 20 / --i-md 24 / --i-lg 28. No emoji or text glyphs as icons.
   7. Tap targets are at least 44px.
   ===================================================================== */
/* Baloo Bhaijaan 2 (SIL Open Font License), self-hosted so no visitor data goes to Google. */
@font-face { font-family: 'Baloo Bhaijaan 2'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/baloo-bhaijaan-2-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Baloo Bhaijaan 2'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/baloo-bhaijaan-2-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo Bhaijaan 2'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/baloo-bhaijaan-2-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Body text: Figtree (Latin) and IBM Plex Sans Arabic, both SIL Open Font License, self-hosted. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/figtree-latin-ext-400-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/figtree-latin-400-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-sans-arabic-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ibm-plex-sans-arabic-arabic-600.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }

:root {
  color-scheme: light;
  /* Color */
  --sky-light: #4fb3ff;  --sky: #1f86ff;  --sky-deep: #0b55e8;  --sky-edge: #0a3cae;
  --sun: #ffc21a;        --sun-edge: #e09400;
  --mint: #12d18e;       --mint-edge: #0aa36c;
  --coral: #ff5a47;      --coral-edge: #d6392a;
  --grape: #6d45ff;      --grape-edge: #4c22e0;
  --ink: #10204f;        --ink-soft: #33457a;   --muted: #4f5f8f;
  --paper: #ffffff;      --cloud: #f5f8ff;      --line: #dfe6f7;
  --cream: #fff7e3;      --cream-edge: #efe0b8;
  --tile: #fff6df;       --tile-edge: #e2cf9f;
  --danger: #c2341f;     --ok-bg: #e3f9ef;      --ok: #146b48;   --tbc-bg: #fff0c7;  --tbc: #7a5a00;
  /* Game tones: main, light, deep, soft surface */
  --wl: #6d45ff; --wl-light: #a57dff; --wl-deep: #4422cc; --wl-soft: #f0eaff;
  --cj: #ff6a12; --cj-light: #ffad2e; --cj-deep: #cc4a00; --cj-soft: #fff0e2;
  --rs: #13a356; --rs-light: #63db53; --rs-deep: #0b7a3d; --rs-soft: #e4f8e8;
  /* Space (4/8 scale) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 44px);
  --section: clamp(56px, 8vw, 88px);
  --pad-card: var(--s-5);
  --container: 1180px;
  /* Radius */
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  /* Type */
  /* Display face (headings, buttons, labels): playful. Body face (paragraphs): calm and readable. */
  --font: 'Baloo Bhaijaan 2', 'Arial Rounded MT Bold', Tahoma, sans-serif;
  --font-body: 'Figtree', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --fs-xs: 13px; --fs-sm: 15px; --fs-md: 17px; --fs-lg: 20px; --fs-xl: 24px;
  --fs-h3: 28px;
  --fs-h2: clamp(2rem, 3.6vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 4.25rem);
  --lh-tight: 1.1; --lh-body: 1.55;
  /* Elevation */
  --soft-1: 0 8px 18px rgb(16 46 140 / .10);
  --soft-2: 0 14px 30px rgb(16 46 140 / .16);
  --lift-1: 0 4px 0 var(--edge, var(--line)), var(--soft-1);
  --lift-2: 0 6px 0 var(--edge, var(--line)), var(--soft-2);
  /* Motion */
  --t-fast: 140ms; --t: 220ms; --t-slow: 480ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* Icons */
  --i-sm: 20px; --i-md: 24px; --i-lg: 28px;
  /* Controls */
  --ctl-lg: 56px; --ctl-md: 48px; --ctl-sm: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-md); font-weight: 400; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* Display face only where personality helps; everything else reads in the body face */
h1, h2, h3, h4, dt, b, strong, button, .gbtn, .ghost, .textlink, .chip, .crumb, .main-nav, .mobile-menu a, .logo, .genre-chip, .grow-genre,
.tag, .tagline, .grow-tag, .num, .mini, .f-col p, .mm-label, .tiles, .pn, .copied, .share > span, .facts-line, .field label, .lang, .email, .follow-us small, .email-box small, .hn-head, .dots { font-family: var(--font); }
.prose, .prose p, .lead, .about, .grow-text > p, .nrow p, .feat-text > p, .sub, dd { font-family: var(--font-body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: var(--lh-tight); text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: var(--r-sm); }
.skip { min-height: var(--ctl-sm); display: inline-flex; align-items: center; position: fixed; top: var(--s-2); inset-inline-start: var(--s-2); z-index: 50; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.i { width: var(--i-md); height: var(--i-md); flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: var(--i-sm); height: var(--i-sm); }
.i.fill { fill: currentColor; stroke: none; }
html[dir=rtl] .flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
/* Header: sits on the hero at first; after scrolling it turns solid navy,
   hides while you scroll down and comes back when you scroll up. */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 84px; transition: min-height var(--t) var(--ease); }
.site-header.solid { background: var(--ink); box-shadow: 0 4px 0 rgb(0 0 0 / .18); }
.site-header.solid > .wrap { min-height: 68px; }
.site-header.hide { transform: translateY(-110%); }
.main-nav { display: flex; align-items: center; gap: var(--s-1); font-weight: 700; color: var(--paper); }
.main-nav a { display: inline-flex; align-items: center; min-height: var(--ctl-sm); padding: 0 var(--s-3); border-radius: var(--r-sm); transition: background-color var(--t-fast) var(--ease); }
.main-nav a:hover { background: rgb(255 255 255 / .16); }
.main-nav a[aria-current="page"] { background: rgb(255 255 255 / .22); }
.menu-btn { display: none; width: var(--ctl-sm); height: var(--ctl-sm); margin-inline-start: var(--s-2); padding: 0; border: 0; border-radius: var(--r-sm); background: rgb(255 255 255 / .18); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--paper); transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu { background: var(--ink); color: var(--paper); border-top: 1px solid rgb(255 255 255 / .12); height: calc(100vh - 68px - env(safe-area-inset-top, 0px)); height: calc(100dvh - 68px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
html.menu-open, html.menu-open body { overflow: hidden; }
.mobile-menu .wrap { display: grid; padding-block: var(--s-3) var(--s-6); }
.mobile-menu a { display: flex; align-items: center; min-height: var(--ctl-md); font-size: var(--fs-xl); font-weight: 800; border-bottom: 1px solid rgb(255 255 255 / .1); }
.mm-label { margin-top: var(--s-4); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a9b6e6; }
html[dir=rtl] .mm-label { letter-spacing: 0; }
.main-nav .lang { margin-inline-start: var(--s-2); }
.site-header .gbtn.small { box-shadow: 0 4px 0 var(--edge); }
.site-header .gbtn.small:hover { box-shadow: 0 6px 0 var(--edge); }
.site-header.solid .logo b { text-shadow: none; }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); min-height: var(--ctl-sm); direction: ltr; }
.logo svg { width: 44px; height: 47px; flex-shrink: 0; transition: transform var(--t) var(--ease); }
.logo:hover svg { transform: translateY(-2px); }
.logo b { font-size: var(--fs-xl); font-weight: 800; line-height: 1; color: var(--paper); text-shadow: 0 2px 0 var(--sky-edge); }

/* ---------- Buttons ---------- */
.gbtn { --b: var(--mint); --edge: var(--mint-edge); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--ctl-lg); padding: 0 var(--s-5); border: 0; border-radius: var(--r-md); background: var(--b); background-image: linear-gradient(rgb(255 255 255 / .22), rgb(255 255 255 / 0) 55%); color: var(--fg); font-size: var(--fs-lg); font-weight: 800; line-height: 1; cursor: pointer; box-shadow: var(--lift-2); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.gbtn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge), var(--soft-2); }
.gbtn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--edge), var(--soft-1); }
.gbtn.sun { --b: var(--sun); --edge: var(--sun-edge); --fg: var(--ink); }
.gbtn.white { --b: var(--paper); --edge: var(--line); --fg: var(--ink); background-image: none; }
.gbtn.small { min-height: var(--ctl-md); padding: 0 var(--s-4); border-radius: var(--r-sm); font-size: var(--fs-md); box-shadow: var(--lift-1); }
.gbtn.small:hover { box-shadow: 0 6px 0 var(--edge), var(--soft-1); }
.gbtn.small:active { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.round-btn { width: var(--ctl-md); min-height: var(--ctl-md); padding: 0; border-radius: 50%; }
.lang { min-height: var(--ctl-sm); }

/* Google Play badge: follows the standard store badge (black, thin grey border,
   small "GET IT ON" over "Google Play"). Drop Google's official badge file in
   assets/google-play-badge.svg and rebuild to use the official artwork. */
.play-badge { display: inline-flex; align-items: center; gap: 10px; height: var(--ctl-lg); padding: 0 18px 0 14px; border-radius: 10px; border: 1px solid #a6a6a6; background: #000; color: #fff; line-height: 1; transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.play-badge:hover { background: #1c1c1c; transform: translateY(-2px); }
.play-badge:active { transform: translateY(1px); }
.play-badge .pb-mark { width: 26px; height: 28px; flex-shrink: 0; }
.play-badge .pb-text { display: flex; flex-direction: column; gap: 3px; text-align: start; }
.play-badge small { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-family: Arial, Helvetica, sans-serif; }
.play-badge strong { font-size: 21px; font-weight: 600; letter-spacing: -.01em; font-family: Arial, Helvetica, sans-serif; }
html[dir=rtl] .play-badge small { letter-spacing: 0; text-transform: none; font-size: 11px; font-family: var(--font); }
.play-badge.light { border-color: rgb(255 255 255 / .55); }
/* Pre-release: same badge, not clickable, no hover lift. */
.play-badge.soon { cursor: default; background: #000; }
.play-badge.soon:hover, .play-badge.soon:active { background: #000; transform: none; }
.play-badge.soon small { color: var(--sun); }
.play-badge.soon.official { opacity: .85; }
.play-badge.compact { height: var(--ctl-md); padding: 0 var(--s-4) 0 var(--s-3); gap: var(--s-2); }
.play-badge.compact .pb-mark { width: 22px; height: 24px; }
.play-badge.compact strong { font-size: 17px; }
.play-badge.compact small { font-size: 9px; }
.play-badge img { height: 100%; width: auto; }
.play-badge.official { padding: 0; border: 0; background: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: 140px 0; background: radial-gradient(120% 80% at 50% 0%, var(--sky-light), var(--sky) 45%, var(--sky-deep)); color: var(--paper); }
.cloud { position: absolute; z-index: -1; background: var(--paper); border-radius: var(--r-pill); opacity: .9; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: var(--paper); border-radius: 50%; }
.c1 { width: 180px; height: 48px; top: 120px; inset-inline-start: 4%; animation: drift 28s ease-in-out infinite alternate; }
.c1::before { width: 80px; height: 80px; left: 26px; top: -40px; } .c1::after { width: 56px; height: 56px; left: 90px; top: -26px; }
.c2 { width: 140px; height: 38px; top: 210px; inset-inline-end: 6%; animation: drift 34s ease-in-out infinite alternate-reverse; }
.c2::before { width: 62px; height: 62px; left: 20px; top: -30px; } .c2::after { width: 44px; height: 44px; left: 70px; top: -20px; }
@keyframes drift { to { transform: translateX(56px); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: end; }
.tiles { display: flex; flex-wrap: wrap; gap: var(--s-2); direction: ltr; }
.tiles + .tiles { margin-top: var(--s-3); }
.tiles span { --edge: var(--tile-edge); width: clamp(44px, 6.4vw, 72px); aspect-ratio: 1 / 1.05; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--tile); color: var(--ink); font-weight: 800; font-size: clamp(28px, 4.4vw, 50px); line-height: 1; box-shadow: 0 7px 0 var(--edge), var(--soft-2); animation: tile-in var(--t-slow) var(--spring) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.tiles.row2 span { --edge: var(--sun-edge); background: var(--sun); }
html[dir=rtl] .tiles { justify-content: flex-end; }
@keyframes tile-in { from { opacity: 0; transform: translateY(-28px) scale(.6); } }
.hero h1 { margin-top: var(--s-5); font-size: clamp(2rem, 3.9vw, 3.1rem); text-shadow: 0 3px 0 var(--sky-edge); max-width: 19ch; }
.hero-grid > div > p { margin-top: var(--s-3); font-size: var(--fs-lg); max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.hero .ctas { margin-block: var(--s-6) var(--s-8); }
.stage { position: relative; height: 470px; }
.phone { position: absolute; bottom: -30px; width: 210px; aspect-ratio: 709 / 1536; border-radius: var(--r-xl); border: 7px solid var(--ink); overflow: hidden; background: var(--ink); box-shadow: 0 30px 50px rgb(11 42 122 / .4); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone { z-index: 2; } .phone.p2 { z-index: 3; }
.hero-phone { z-index: 2; }
.phone.p1 { inset-inline-start: 4%; bottom: -60px; transform: rotate(-9deg); }
.phone.p2 { inset-inline-start: calc(50% - 115px); width: 230px; z-index: 3; }
.phone.p3 { inset-inline-end: 4%; bottom: -60px; transform: rotate(9deg); }
.ground { position: relative; z-index: 4; height: 64px; background: var(--mint); }
.ground::before { content: ''; position: absolute; inset-inline: 0; top: -26px; height: 28px; background: radial-gradient(28px 26px at 28px 26px, var(--mint) 98%, transparent) 0 0 / 56px 28px repeat-x; }

/* Hero decorations (sun, star, coin, letter tiles).
   Outer .deco = position + pointer parallax (--px/--py set by site.js, depth --d).
   Inner layers own the looping motion, so the two never fight over transform. */
.deco { position: absolute; z-index: 3; pointer-events: none; translate: calc(var(--px, 0) * var(--d) * 1px) calc(var(--py, 0) * var(--d) * 1px); transition: translate 700ms var(--ease); animation: deco-in var(--t-slow) var(--ease) backwards; animation-delay: var(--in, 800ms); }
@keyframes deco-in { from { opacity: 0; scale: .7; } }
.deco svg { display: block; width: 100%; height: 100%; overflow: visible; }
.deco.sun { --in: 650ms; z-index: 1; width: 132px; height: 132px; top: -24px; inset-inline-end: 2%; }
.sun-halo { position: absolute; inset: -26%; border-radius: 50%; background: radial-gradient(circle, rgb(255 214 77 / .55), rgb(255 214 77 / 0) 65%); animation: halo 5s ease-in-out infinite; }
.sun .rays { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
@keyframes halo { 50% { opacity: .55; scale: .9; } }
@keyframes spin { to { rotate: 360deg; } }
.deco.star3d { --in: 900ms; width: 64px; height: 64px; top: 120px; inset-inline-start: 0; }
.star3d .bob { display: block; width: 100%; height: 100%; animation: rock 5.5s ease-in-out infinite; transform-origin: 50% 60%; }
/* Coin: flips on its axis now and then */
.deco.coin { --in: 1000ms; z-index: 4; width: 46px; height: 46px; top: 250px; inset-inline-end: 0; }
.coin .flipper { display: block; width: 100%; height: 100%; animation: coin-flip 5s var(--ease) infinite, bob 4s ease-in-out infinite; }
@keyframes coin-flip { 0%, 70% { rotate: y 0deg; } 100% { rotate: y 360deg; } }
@keyframes bob { 50% { translate: 0 -8px; } }
/* Letter tiles: small Word Lake style pieces */
.deco.ltile { --in: 1100ms; z-index: 4; }
.ltile .bob { --edge: var(--tile-edge); display: grid; place-items: center; width: 40px; height: 42px; border-radius: 10px; background: var(--tile); color: var(--ink); font-weight: 800; font-size: 24px; line-height: 1; box-shadow: 0 5px 0 var(--edge), 0 10px 18px rgb(16 46 140 / .25); animation: rock 6s ease-in-out infinite; }
.deco.t1 { top: 18px; inset-inline-start: 24%; }
.deco.t1 .bob { animation-delay: -2s; }
.deco.t2 { top: 330px; inset-inline-start: 4%; --in: 1200ms; }
.deco.t2 .bob { width: 34px; height: 36px; font-size: 20px; animation-delay: -4s; }
@keyframes rock { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
.gh-art .deco.sun { top: 0; inset-inline-end: 4%; }
.gh-art .deco.star3d { top: 190px; inset-inline-start: 8%; }
.gh-art .deco.coin { top: 330px; inset-inline-end: 8%; }
.gh-art .deco.t1 { top: 70px; inset-inline-start: 22%; }
.game-hero:not(.wl) .ltile { display: none; }
.gh-art .deco.t2 { display: none; }
.gh-art 


.section-title { font-size: var(--fs-h2); }

/* Secondary actions: ghost button (on color) and text link (on paper) */
.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ctl-lg); padding: 0 var(--s-5); border: 2.5px solid rgb(255 255 255 / .75); border-radius: var(--r-md); color: var(--paper); font-size: var(--fs-lg); font-weight: 800; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.ghost:hover { background: rgb(255 255 255 / .14); border-color: var(--paper); }
.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: var(--ctl-sm); font-weight: 800; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.textlink .i { width: var(--i-sm); height: var(--i-sm); transition: translate var(--t-fast) var(--ease); }
.textlink:hover .i { translate: 3px 0; }
html[dir=rtl] .textlink:hover .i { translate: -3px 0; }

/* ---------- Home: game shelf (alternating rows, not a card grid) ---------- */
.shelf { padding-block: var(--section) var(--s-6); }
.shelf-title { font-size: var(--fs-h2); }
.grow { --tone: var(--wl); --tone-2: var(--wl-light); --tone-text: var(--wl-deep); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-7); align-items: center; padding-block: var(--s-7); }
.grow + .grow { border-top: 2px solid var(--line); }
.grow.cj { --tone: var(--cj); --tone-2: var(--cj-light); --tone-text: var(--cj-deep); }
.grow.rs { --tone: var(--rs); --tone-2: var(--rs-light); --tone-text: var(--rs-deep); }
.grow.flipped .grow-art { order: -1; }
.grow-genre { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tone-text); }
html[dir=rtl] .grow-genre { letter-spacing: 0; }
.grow h3 { margin-top: var(--s-2); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
.grow h3 a { display: inline-block; }
.grow h3 a:hover { color: var(--tone-text); }
.grow-tag { margin-top: var(--s-3); font-size: var(--fs-xl); font-weight: 800; line-height: 1.25; }
.grow-text > p:not(.grow-tag) { margin-top: var(--s-2); color: var(--muted); max-width: 40ch; }
.grow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.grow-art { position: relative; display: block; height: 400px; margin-top: var(--s-7); border-radius: var(--r-xl); background: radial-gradient(90% 80% at 30% 15%, color-mix(in srgb, var(--tone-2) 85%, white), transparent 60%), linear-gradient(150deg, var(--tone-2), var(--tone) 70%); box-shadow: 0 10px 0 color-mix(in srgb, var(--tone) 55%, black), 0 20px 40px color-mix(in srgb, var(--tone) 30%, transparent); }
.gp { position: absolute; bottom: var(--s-6); aspect-ratio: 709 / 1536; border: 7px solid var(--ink); border-radius: var(--r-xl); overflow: hidden; background: var(--ink); transition: transform var(--t-slow) var(--ease); }
.gp img { width: 100%; height: 100%; object-fit: cover; }
.gp.front { width: 210px; inset-inline-start: 18%; z-index: 2; transform: rotate(-4deg); box-shadow: 0 24px 40px rgb(15 27 69 / .35); }
.gp.back { width: 176px; inset-inline-end: 14%; bottom: var(--s-7); transform: rotate(6deg); opacity: .92; }
.grow:hover .gp.front { transform: rotate(-2deg) translateY(-8px); }
.grow:hover .gp.back { transform: rotate(8deg) translateY(-4px); }

/* Plain definition lists: used instead of icon cards */
.plain-list { margin: 0; display: grid; }
.plain-list > div { padding-block: var(--s-4); border-top: 2px solid var(--line); }
.plain-list > div:last-child { border-bottom: 2px solid var(--line); }
.plain-list dt { font-size: var(--fs-lg); font-weight: 800; line-height: 1.3; color: var(--tone-text, var(--ink)); }
.plain-list dd { margin: var(--s-1) 0 0; color: var(--muted); }
.plain-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); }
.plain-list.two > div:nth-last-child(2) { border-bottom: 2px solid var(--line); }
.team .plain-list > div { border-color: var(--cream-edge); }
.tone-wl { --tone-text: var(--wl-deep); } .tone-cj { --tone-text: var(--cj-deep); } .tone-rs { --tone-text: var(--rs-deep); }

/* Game page: short facts line + help band */
.facts-line { margin-top: var(--s-4); font-weight: 700; opacity: .95; }
.facts-line span + span::before { content: '·'; margin-inline: var(--s-2); opacity: .7; }
.help { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; padding-top: var(--s-6); border-top: 2px solid var(--line); }
.help h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.help p { margin-top: var(--s-2); color: var(--muted); max-width: 44ch; }
.help-links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); }

/* ---------- Home "Made a game?" ---------- */
.team { padding-block: var(--section); background: var(--cream); }
.team .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.team h2 { font-size: var(--fs-h2); }
.team p { margin-block: var(--s-3) var(--s-5); max-width: 42ch; color: var(--muted); }

/* ---------- Footer ---------- */
footer { padding-block: var(--s-7) var(--s-6); background: var(--ink); color: #c6d0f0; font-size: var(--fs-sm); }
footer > .wrap { display: grid; grid-template-columns: minmax(344px, 1.8fr) repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.f-brand { display: grid; gap: var(--s-3); justify-items: start; }
.f-brand p { max-width: 30ch; color: #c6d0f0; }
.f-mail { display: inline-flex; align-items: center; min-height: var(--ctl-sm); color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.f-col { display: grid; justify-items: start; }
.f-col p { margin-bottom: var(--s-1); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8f9cd0; }
html[dir=rtl] .f-col p { letter-spacing: 0; }
.f-col a { display: inline-flex; align-items: center; min-height: var(--ctl-sm); transition: color var(--t-fast) var(--ease); }
.f-col a:hover { color: var(--paper); }
footer .logo b { text-shadow: none; font-size: var(--fs-lg); }
footer .logo svg { width: 36px; height: 38px; }

/* ---------- Inner page hero ---------- */
.page-hero { --g1: var(--sky-light); --g2: var(--sky); --g3: var(--sky-deep); --edge-text: var(--sky-edge); position: relative; overflow: hidden; isolation: isolate; padding-top: 112px; background: radial-gradient(120% 90% at 50% 0%, var(--g1), var(--g2) 45%, var(--g3)); color: var(--paper); }
.page-hero.wl { --g1: var(--wl-light); --g2: var(--wl); --g3: var(--wl-deep); --edge-text: var(--wl-deep); }
.page-hero.cj { --g1: var(--cj-light); --g2: var(--cj); --g3: var(--cj-deep); --edge-text: var(--cj-deep); }
.page-hero.rs { --g1: var(--rs-light); --g2: var(--rs); --g3: var(--rs-deep); --edge-text: var(--rs-deep); }
.page-hero .ground { background: var(--paper); }
.page-hero .ground::before { background: radial-gradient(28px 26px at 28px 26px, var(--paper) 98%, transparent) 0 0 / 56px 28px repeat-x; }
.page-hero .cloud.c1 { inset-inline-start: auto; inset-inline-end: 40%; top: 132px; opacity: .5; }
.crumb { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--ctl-sm); padding: 0 var(--s-3); border-radius: var(--r-pill); background: rgb(255 255 255 / .18); font-size: var(--fs-sm); font-weight: 700; transition: background-color var(--t-fast) var(--ease); }
.crumb:hover { background: rgb(255 255 255 / .3); }
.legal-hero h1 { margin-top: var(--s-4); font-size: var(--fs-h1); text-shadow: 0 3px 0 var(--edge-text); }
.legal-hero h1:last-child { margin-bottom: var(--s-8); }
.hero-sub { margin-block: var(--s-3) var(--s-8); font-size: var(--fs-lg); max-width: 40ch; opacity: .95; }

/* ---------- Game page hero ---------- */
.game-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.gh-text { padding-bottom: var(--s-8); }
.title-row { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.app-icon-img { width: 96px; height: 96px; border-radius: var(--r-lg); box-shadow: 0 6px 0 rgb(0 0 0 / .2), var(--soft-2); }
.genre-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: rgb(255 255 255 / .2); border: 1.5px solid rgb(255 255 255 / .45); font-size: var(--fs-sm); font-weight: 700; }
.game-hero h1 { margin-top: var(--s-2); font-size: var(--fs-h1); line-height: 1; text-shadow: 0 4px 0 var(--edge-text); }
.tagline { margin-top: var(--s-4); font-size: var(--fs-xl); font-weight: 800; line-height: 1.25; max-width: 26ch; }
.game-hero .about { margin-top: var(--s-3); max-width: 46ch; opacity: .92; }
.game-hero .ctas { margin-top: var(--s-5); }
.gh-art { position: relative; height: 560px; display: grid; place-items: end center; }
.gh-art .glow { z-index: 0; position: absolute; top: var(--s-6); left: 50%; width: min(420px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .35), rgb(255 255 255 / 0) 68%); transform: translateX(-50%); }
.hero-phone { position: relative; width: 250px; aspect-ratio: 709 / 1536; border-radius: 36px; border: 8px solid var(--ink); overflow: hidden; background: var(--ink); transform: translateY(var(--s-6)) rotate(4deg); box-shadow: 0 30px 60px rgb(11 26 74 / .4); animation: phone-in var(--t-slow) var(--ease) backwards .1s; }
html[dir=rtl] .hero-phone { transform: translateY(var(--s-6)) rotate(-4deg); }
@keyframes phone-in { from { opacity: 0; transform: translateY(120px) rotate(4deg); } }
.hero-phone img, .hero-phone video { display: block; width: 100%; height: 100%; object-fit: cover; }

.vid-toggle { position: absolute; z-index: 5; bottom: var(--s-8); inset-inline-end: 10%; width: var(--ctl-sm); height: var(--ctl-sm); display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 var(--line), var(--soft-1); }
.vid-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vid-toggle .ico-play { display: none; fill: currentColor; }
.vid-toggle[aria-pressed="true"] .ico-play { display: block; }
.vid-toggle[aria-pressed="true"] .ico-pause { display: none; }
.legal .jump { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.section:last-of-type { padding-bottom: var(--section); }
.section > h2, .section-head h2 { font-size: var(--fs-h2); }
.section > .sub { margin-block: var(--s-2) var(--s-6); max-width: 52ch; color: var(--muted); }

/* Showcase: numbered journey + 3D phone slider */
.showcase { --tone: var(--wl); --soft: var(--wl-soft); position: relative; overflow: hidden; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--tone) 16%, var(--soft)), var(--soft) 60%); }
.showcase.cj { --tone: var(--cj); --soft: var(--cj-soft); }
.showcase.rs { --tone: var(--rs); --soft: var(--rs-soft); }
.sc-head h2 { font-size: var(--fs-h2); }
.sc-head p { margin-top: var(--s-2); color: var(--muted); }
.sc-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s-6); align-items: center; margin-top: var(--s-6); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.step { --edge: transparent; width: 100%; display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 0; border-radius: var(--r-md); background: rgb(255 255 255 / .65); text-align: start; cursor: pointer; box-shadow: 0 0 0 var(--edge); transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.step:hover { background: var(--paper); }
.step .num { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--paper); color: var(--tone); font-weight: 800; font-size: var(--fs-md); font-variant-numeric: tabular-nums; box-shadow: 0 3px 0 var(--line); transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.step .txt { padding-top: 5px; min-width: 0; }
.step b { display: block; font-size: var(--fs-md); line-height: 1.3; }
.step small { display: grid; grid-template-rows: 0fr; opacity: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; transition: grid-template-rows var(--t) var(--ease), opacity var(--t) var(--ease), margin var(--t) var(--ease); }
.step small > span { overflow: hidden; }
.step[aria-pressed="true"] { --edge: color-mix(in srgb, var(--tone) 35%, white); background: var(--paper); box-shadow: 0 5px 0 var(--edge), var(--soft-1); transform: translateY(-2px); }
.step[aria-pressed="true"] .num { background: var(--tone); color: var(--paper); box-shadow: 0 3px 0 color-mix(in srgb, var(--tone) 60%, black); }
.step[aria-pressed="true"] small { grid-template-rows: 1fr; opacity: 1; margin-top: 2px; }
.flow { --pw: 250px; min-width: 0; }
.stage3d { position: relative; height: calc(var(--pw) * 2.166 + 16px); perspective: 1400px; outline-offset: 8px; overflow: hidden; overflow: clip; overflow-clip-margin: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fphone { position: absolute; top: 0; left: 50%; width: var(--pw); margin-left: calc(var(--pw) / -2); aspect-ratio: 709 / 1536; padding: 0; border: 7px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--ink); cursor: pointer; transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease), filter var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease); will-change: transform; }
.fphone img, .fphone video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fphone.active { cursor: default; box-shadow: 0 28px 48px rgb(15 27 69 / .32); }
.fdesc { display: none; margin: var(--s-4) auto 0; max-width: 34ch; text-align: center; font-weight: 700; min-height: 3em; }
.fnav { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-5); }
.dots { display: flex; gap: var(--s-2); }
.dots i { width: 10px; height: 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--tone) 28%, white); transition: width var(--t) var(--ease), background-color var(--t) var(--ease); }
.dots i.on { width: 28px; background: var(--tone); }

.tone-wl { --tone: var(--wl); } .tone-cj { --tone: var(--cj); } .tone-rs { --tone: var(--rs); }


/* More games */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.mini { --c: var(--wl); --c2: var(--wl-light); --edge: var(--wl-deep); display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-lg); background: linear-gradient(150deg, var(--c2), var(--c)); color: var(--paper); box-shadow: 0 7px 0 var(--edge), var(--soft-1); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.mini.cj { --c: var(--cj); --c2: var(--cj-light); --edge: var(--cj-deep); }
.mini.rs { --c: var(--rs); --c2: var(--rs-light); --edge: var(--rs-deep); }
.mini:hover { transform: translateY(-4px); box-shadow: 0 11px 0 var(--edge), var(--soft-2); }
.mini .ph { width: 56px; aspect-ratio: 709 / 1536; flex-shrink: 0; border: 3px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; background: var(--ink); }
.mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.mini b { display: block; font-size: var(--fs-xl); line-height: 1.1; }
.mini small { font-size: var(--fs-sm); font-weight: 700; opacity: .9; }
.mini .go { width: var(--ctl-sm); height: var(--ctl-sm); margin-inline-start: auto; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform var(--t) var(--ease); }
html[dir=rtl] .mini:hover .go { transform: translateX(-3px); }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin-inline: auto; padding: var(--s-7) var(--gutter) var(--s-9); }
.legal h2 { margin-top: var(--s-6); font-size: var(--fs-xl); line-height: 1.25; }
.legal h3 { margin-top: var(--s-5); font-size: var(--fs-lg); line-height: 1.3; }
.legal p, .legal li { margin-top: var(--s-2); color: var(--ink-soft); }
.legal a { color: var(--sky-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { margin-top: 0 !important; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.draft { --edge: var(--cream-edge); margin-top: 0 !important; padding: var(--s-4); border-radius: var(--r-md); background: var(--cream); box-shadow: 0 4px 0 var(--edge); font-size: var(--fs-sm); color: var(--tbc) !important; }
.tbc { display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--tbc-bg); color: var(--tbc); font-size: var(--fs-xs); font-weight: 700; }

/* ---------- About & contact ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.about-grid .lead { margin-block: var(--s-3) var(--s-5); max-width: 52ch; font-size: var(--fs-lg); color: var(--ink-soft); }
.about-games { display: grid; gap: var(--s-3); }
.about-games h3 { font-size: var(--fs-xl); margin-bottom: var(--s-1); }
.contact-card { --edge: var(--sky-edge); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-6); padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--sky-light), var(--sky) 50%, var(--sky-deep)); color: var(--paper); box-shadow: 0 10px 0 var(--edge), var(--soft-2); }
.contact-side h2 { font-size: var(--fs-h2); text-shadow: 0 3px 0 var(--sky-edge); }
.contact-side p { margin-top: var(--s-3); font-size: var(--fs-lg); opacity: .95; }
.email-box { margin-top: var(--s-6); padding: var(--s-4); border-radius: var(--r-lg); background: rgb(255 255 255 / .16); border: 1.5px solid rgb(255 255 255 / .4); }
.email-box small { font-size: var(--fs-sm); font-weight: 700; opacity: .9; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-1); }
.email { display: inline-flex; align-items: center; gap: var(--s-2); font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; user-select: all; overflow-wrap: anywhere; }
.cform { --edge: #c9d6f5; display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 6px 0 var(--edge); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: var(--ctl-md); padding: var(--s-3) var(--s-4); border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--cloud); color: var(--ink); font: inherit; font-size: var(--fs-md); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: var(--paper); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.cform .gbtn { justify-self: start; }
.form-error { color: var(--danger); font-weight: 700; font-size: var(--fs-sm); }
.form-ok { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: var(--fs-sm); }
.form-ok[hidden], .form-error[hidden] { display: none; }


/* ---------- Social icons ---------- */
.social { display: flex; flex-wrap: wrap; gap: var(--s-2); }
footer .social, .follow .social { gap: 6px; }
/* Phones: full-size icons spread across one line; two rows only when they cannot fit. */
@media (max-width: 480px) {
  .follow { padding: var(--s-4); }
  .follow, .f-brand, .follow-us, .mobile-menu .wrap { container-type: inline-size; }
  .follow .social, footer .social, .social.on-color, .mm-social { display: grid; grid-auto-flow: column; grid-auto-columns: 44px; justify-content: space-between; gap: 8px 4px; width: 100%; }
  .follow .social .soc, footer .social .soc, .social.on-color .soc, .mm-social .soc { width: 44px; height: 44px; }
}
/* A little tight: slightly smaller icons, still one line. */
@container (max-width: 331px) {
  .follow .social, footer .social, .social.on-color, .mm-social { grid-auto-columns: 40px; gap: 8px 2px; }
  .follow .social .soc, footer .social .soc, .social.on-color .soc, .mm-social .soc { width: 40px; height: 40px; }
}
/* Not enough room for seven icons on one line: two tidy rows (4 + 3) at full size. */
@container (max-width: 297px) {
  .follow .social, footer .social, .social.on-color, .mm-social { grid-auto-flow: row; grid-template-columns: repeat(4, 44px); justify-content: start; gap: 10px 12px; }
  .follow .social .soc, footer .social .soc, .social.on-color .soc, .mm-social .soc { width: 44px; height: 44px; }
}
.soc { display: inline-grid; place-items: center; width: var(--ctl-sm); height: var(--ctl-sm); padding: 0; border: 0; border-radius: var(--r-sm); background: rgb(255 255 255 / .1); color: var(--paper); cursor: pointer; transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.soc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.soc:hover { background: rgb(255 255 255 / .2); transform: translateY(-2px); }
.soc[hidden] { display: none; }
.social.on-color .soc { background: rgb(255 255 255 / .18); }
.social.big .soc, .share .soc { --edge: var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--lift-1); }
.social.big .soc:hover, .share .soc:hover { background: var(--cloud); }
.mm-social { margin-top: var(--s-5); }
@media (max-height: 640px) { .mobile-menu a { min-height: var(--ctl-sm); font-size: var(--fs-lg); } .mm-label { margin-top: var(--s-3); } .mm-social { margin-top: var(--s-4); } }
.mobile-menu .mm-social .soc { display: inline-grid; place-items: center; min-height: 0; border-bottom: 0; font-size: inherit; }
.follow-us { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.follow-us small { font-size: var(--fs-sm); font-weight: 700; opacity: .9; }

/* ---------- News ---------- */
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.pmeta .tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--sun); color: var(--ink); font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; }
html[dir=rtl] .pmeta .tag { letter-spacing: 0; }
.pmeta.light { margin-top: var(--s-5); color: rgb(255 255 255 / .9); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip { min-height: var(--ctl-sm); padding: 0 var(--s-4); border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; padding-bottom: var(--s-7); }
.feat h2 { margin-top: var(--s-3); font-size: var(--fs-h2); }
.feat h2 a:hover, .nrow h3 a:hover { color: var(--sky-deep); }
.feat-text > p { margin-block: var(--s-3) var(--s-4); font-size: var(--fs-lg); color: var(--muted); max-width: 44ch; }
.fthumb, .thumb { display: block; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(150deg, var(--sky-light), var(--sky)); box-shadow: 0 8px 0 var(--sky-edge), var(--soft-2); }
.fthumb.wide { aspect-ratio: 1200 / 630; }
.fthumb img, .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.fthumb.tall { aspect-ratio: 1200 / 630; text-align: center; }
.fthumb.tall img { display: inline-block; width: 30%; height: auto; aspect-ratio: 709 / 1536; border: 6px solid var(--ink); border-radius: var(--r-lg); margin-top: 6%; }
.feat:hover .fthumb img { transform: scale(1.03); }
.nrows { display: grid; }
.nrow { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--s-6); align-items: center; padding-block: var(--s-5); border-top: 2px solid var(--line); }
.nrow:last-child { border-bottom: 2px solid var(--line); }
.nrow h3 { margin-top: var(--s-2); font-size: var(--fs-xl); line-height: 1.25; }
.nrow p { margin-top: var(--s-2); color: var(--muted); max-width: 60ch; }
.thumb { border-radius: var(--r-lg); box-shadow: 0 5px 0 var(--sky-edge), var(--soft-1); }
.thumb.wide { aspect-ratio: 1200 / 630; }
.thumb.tall { aspect-ratio: 1200 / 630; text-align: center; }
.thumb.tall img { display: inline-block; width: 34%; height: auto; aspect-ratio: 709 / 1536; border: 4px solid var(--ink); border-radius: var(--r-sm); margin-top: 8%; }
.nrow:hover .thumb img { transform: scale(1.04); }
.feat[hidden], .nrow[hidden] { display: none; }
.follow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-6); align-items: center; margin-top: var(--s-8); padding: var(--s-6); border-radius: var(--r-xl); background: var(--cream); }
.follow h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.follow p { margin-top: var(--s-1); color: var(--muted); }
.follow .textlink { grid-column: 1 / -1; justify-self: start; }
.home-news { padding-block: var(--s-6) var(--section); }
.hn-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }

/* Article */
.post-hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.post-hero .hero-sub { margin-top: var(--s-3); }
.post { max-width: 820px; padding-block: var(--s-7) var(--section); }
.post-cover { margin: 0 0 var(--s-6); }
.post-store { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-5); }
.post-cover.wide img { width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: 0 8px 0 var(--sky-edge), var(--soft-2); }
.post-cover.tall, .post-clip { display: grid; place-items: center; padding: var(--s-6) var(--s-4); border-radius: var(--r-xl); background: radial-gradient(90% 80% at 30% 15%, var(--sky-light), transparent 60%), linear-gradient(150deg, var(--sky-light), var(--sky-deep)); }
.post-clip { margin: var(--s-5) 0; }
.post-phone { width: min(260px, 70%); aspect-ratio: 709 / 1536; border: 7px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 40px rgb(15 27 69 / .35); }
.post-phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: var(--fs-lg); line-height: 1.7; color: var(--ink-soft); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: var(--fs-h3); color: var(--ink); }
.prose h3 { margin-top: var(--s-6); font-size: var(--fs-xl); color: var(--ink); }
.prose a { color: var(--sky-deep); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.prose a.play-badge { color: #fff; font-weight: inherit; text-decoration: none; }
.prose ul, .prose ol { padding-inline-start: var(--s-5); }
.prose img { border-radius: var(--r-lg); }
.prose blockquote { margin-inline: 0; padding: var(--s-4) var(--s-5); border-inline-start: 0; border-radius: var(--r-md); background: var(--cream); font-weight: 700; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 2px solid var(--line); font-weight: 800; }
.share > span:first-child { margin-inline-end: var(--s-2); }
.copied { font-size: var(--fs-sm); color: var(--ok); }
.post-games { margin-top: var(--s-7); }
.post-games h2 { font-size: var(--fs-xl); margin-bottom: var(--s-4); }
.postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7); }
.pn { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-5); border: 2px solid var(--line); border-radius: var(--r-lg); transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.pn:hover { border-color: var(--sky); transform: translateY(-2px); }
.pn small { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[dir=rtl] .pn small { letter-spacing: 0; }
.pn b { font-size: var(--fs-lg); line-height: 1.3; }
.pn.next { text-align: end; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-phone { width: 220px; }
  .gh-art .deco.sun { width: 104px; height: 104px; }
}
@media (max-width: 1024px) {
  .sc-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .steps { order: 2; display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-1) 2px var(--s-3); scrollbar-width: none; }
  .steps li { flex: 0 0 auto; }
  .step { align-items: center; padding: var(--s-2) var(--s-3); }
  .step .txt { padding-top: 0; }
  .step small { display: none; }
  .step[aria-pressed="true"] { transform: none; }
  .fdesc { display: block; }
}
@media (max-width: 900px) {
  .feat { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .nrow { grid-template-columns: minmax(0, 1fr) 120px; gap: var(--s-4); }
  .follow { grid-template-columns: minmax(0, 1fr); }
  footer > .wrap { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, auto)); }
  .grow { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-6); }
  .grow .grow-art, .grow.flipped .grow-art { order: -1; height: 320px; }
  .gp.front { width: 160px; inset-inline-start: calc(50% - 165px); } .gp.back { width: 136px; inset-inline-end: auto; inset-inline-start: calc(50% + 5px); }
  .grow-art { max-width: 560px; width: 100%; margin-inline: auto; }
  .plain-list.two, .help { grid-template-columns: minmax(0, 1fr); }
  .plain-list.two > div:nth-last-child(2) { border-bottom: 0; }
  .hero { padding-top: 120px; }
  .hero-grid, .game-grid, .team .inner, .sc-body, .about-grid, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .hero .ctas { margin-bottom: var(--s-5); }
  .stage { height: 380px; }
  .phone { width: 160px; } .phone.p2 { width: 180px; inset-inline-start: calc(50% - 90px); }
  .more { grid-template-columns: minmax(0, 1fr); }
  .main-nav a { display: none; }
  .menu-btn { display: inline-flex; }
  .page-hero .cloud.c1 { display: none; }
  .gh-text { padding-bottom: 0; }
  .gh-art { height: 430px; }
  .gh-art .deco.coin { top: 56px; inset-inline-end: auto; inset-inline-start: 14%; }
  .hero-phone { width: 200px; }
  .sc-body { gap: var(--s-4); }
  .steps { order: 2; display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-1) 2px var(--s-3); scrollbar-width: none; }
  .steps li { flex: 0 0 auto; }
  .step { align-items: center; padding: var(--s-2) var(--s-3); }
  .step .txt { padding-top: 0; }
  .step small { display: none; }
  .step[aria-pressed="true"] { transform: none; }
  .fdesc { display: block; }
  .flow { --pw: 210px; }
}
@media (max-width: 480px) {
  .nrow { grid-template-columns: minmax(0, 1fr); }
  .nrow-media { order: -1; }
  .thumb.wide { aspect-ratio: 1200 / 630; }
  .thumb.tall { aspect-ratio: 1200 / 630; }
  .postnav { grid-template-columns: minmax(0, 1fr); }
  footer > .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-brand { grid-column: 1 / -1; }
  .deco.sun { width: 92px; height: 92px; }
  .deco.star3d { width: 46px; height: 46px; top: 90px; }
  .stage { height: 320px; }
  .phone { width: 128px; } .phone.p2 { width: 146px; inset-inline-start: calc(50% - 73px); }
  .flow { --pw: 180px; }
  .gh-art { height: 380px; }
  .hero-phone { width: 170px; }
  .cform { padding: var(--s-4); }
  .logo svg { width: 38px; height: 40px; } .logo b { font-size: var(--fs-lg); }
  .play-badge strong { font-size: 19px; }
}
@media (max-width: 600px) {
  .page-hero + .section { padding-top: var(--s-6); }
  /* Phones: keep the game header calm and the title readable. */
  .game-hero > .cloud, .gh-art .deco.coin { display: none; }
  .hero > .cloud.c2 { top: 128px; }
  .page-hero + .post { padding-top: var(--s-5); }
}
@media (max-width: 374px) {
  .site-header > .wrap { gap: var(--s-2); }
  .logo { gap: var(--s-2); }
  .logo svg { width: 34px; height: 36px; } .logo b { font-size: var(--fs-md); }
  .site-header .gbtn.small { padding: 0 var(--s-3); font-size: var(--fs-sm); }
  .menu-btn { margin-inline-start: var(--s-1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
