/* Generated by tools/import_assets.py — do not edit. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/nunito-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/nunito-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: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/nunito-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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/fraunces-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/fraunces-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: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/fraunces-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;
}

/* playmemory.app — one stylesheet, four looks.
   Every page shares the same components; each audience sets its own tokens on <body>:
   .theme-general (night arcade), .theme-kids (sunny sky), .theme-seniors (ivory and sage), .theme-pros (clean clinic). */

/* #pragma mark - Tokens */

:root {
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --radius-small: 16px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --system-sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --classic: #2EC4B6;
  --halloween: #FF7A18;
  --christmas: #E63946;
  --platinum: #C9A23A;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23fff' fill-opacity='.38' d='M20 9l3.2 6.6 7.2 1-5.2 5 1.3 7.2L20 25.4l-6.5 3.4 1.3-7.2-5.2-5 7.2-1z'/%3E%3C/svg%3E");
}

.theme-general {
  color-scheme: dark;
  --bg: #0E0A24;
  --bg-2: #171035;
  --surface: rgba(255, 255, 255, .06);
  --surface-strong: rgba(255, 255, 255, .1);
  --border: rgba(255, 255, 255, .12);
  --text: #F6F3FF;
  --muted: #BDB6DF;
  --accent: #FF5FA2;
  --accent-2: #FFB547;
  --accent-3: #5FD3FF;
  --button-bg: linear-gradient(135deg, #FF5FA2, #FF9A4D);
  --button-text: #fff;
  --display: "Bricolage Grotesque", "Nunito", var(--system-sans);
  --body: "Nunito", var(--system-sans);
  --card-back-1: #7B5CFF;
  --card-back-2: #FF5FA2;
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, .65);
}

.theme-kids {
  color-scheme: light;
  --bg: #FFF8E7;
  --bg-2: #FFEFD0;
  --surface: #FFFFFF;
  --surface-strong: #FFF3D6;
  --border: rgba(31, 42, 68, .1);
  --text: #1F2A44;
  --muted: #56607A;
  --accent: #FF6B6B;
  --accent-2: #FFC93C;
  --accent-3: #4ECDC4;
  --accent-4: #9B5DE5;
  --button-bg: #FF6B6B;
  --button-text: #fff;
  --display: "Nunito", var(--system-sans);
  --body: "Nunito", var(--system-sans);
  --card-back-1: #4D96FF;
  --card-back-2: #FFC93C;
  --shadow: 0 24px 50px -24px rgba(31, 42, 68, .35);
}

.theme-seniors {
  color-scheme: light;
  font-size: 112.5%;
  --bg: #F6F1E7;
  --bg-2: #EDE4D2;
  --surface: #FFFDF8;
  --surface-strong: #F1EADB;
  --border: rgba(30, 43, 37, .14);
  --text: #1C2822;
  --muted: #45524B;
  --accent: #2F5D50;
  --accent-2: #9C7A2E;
  --accent-3: #6E8F7E;
  --button-bg: #2F5D50;
  --button-text: #fff;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito", var(--system-sans);
  --card-back-1: #2F5D50;
  --card-back-2: #B08D3C;
  --shadow: 0 24px 50px -28px rgba(30, 43, 37, .4);
}

.theme-pros {
  color-scheme: light;
  --bg: #F3F7F8;
  --bg-2: #E6EFF1;
  --surface: #FFFFFF;
  --surface-strong: #EAF3F4;
  --border: rgba(16, 48, 58, .12);
  --text: #10303A;
  --muted: #4B6670;
  --accent: #1F7A8C;
  --accent-2: #E07A5F;
  --accent-3: #81B29A;
  --button-bg: #1F7A8C;
  --button-text: #fff;
  --display: "Bricolage Grotesque", "Nunito", var(--system-sans);
  --body: "Nunito", var(--system-sans);
  --card-back-1: #1F7A8C;
  --card-back-2: #81B29A;
  --shadow: 0 24px 50px -28px rgba(16, 48, 58, .35);
}

/* #pragma mark - Base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

:lang(ja) h1, :lang(ja) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(ko) h1, :lang(ko) h2,
:lang(th) h1, :lang(th) h2, :lang(hi) h1, :lang(hi) h2, :lang(bn) h1, :lang(bn) h2 { letter-spacing: 0; line-height: 1.3; }
:lang(ar), :lang(he) { letter-spacing: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(he) h1, :lang(he) h2 { letter-spacing: 0; line-height: 1.25; }
:lang(ur) { line-height: 2; letter-spacing: 0; }
:lang(ur) h1, :lang(ur) h2, :lang(ur) h3 { line-height: 1.8; letter-spacing: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
:lang(ja) .eyebrow, :lang(zh-Hans) .eyebrow, :lang(zh-Hant) .eyebrow, :lang(ko) .eyebrow, :lang(ar) .eyebrow, :lang(he) .eyebrow, :lang(ur) .eyebrow { letter-spacing: .02em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.is-centered { margin-inline: auto; text-align: center; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent-3, var(--accent)); outline-offset: 3px; border-radius: 6px; }

/* #pragma mark - Buttons and badges */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .7em 1.4em;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-bounce), box-shadow .25s ease, filter .25s ease;
  box-shadow: 0 10px 24px -12px var(--accent);
}
.button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 40px; padding: .45em 1.1em; font-size: .92rem; }
.theme-kids .button { box-shadow: 0 5px 0 #D64F4F, 0 14px 24px -12px rgba(214, 79, 79, .6); }
.theme-kids .button:active { transform: translateY(4px); box-shadow: 0 1px 0 #D64F4F; }

.store-badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .25s var(--ease-bounce); }
.store-badge img { height: 48px; width: auto; }
.store-badge.badge-large img { height: 58px; }
.store-badge:hover { transform: translateY(-2px) scale(1.02); }

.text-link { font-weight: 800; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.pill {
  display: inline-block;
  padding: .3em .9em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  font-size: .85rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.price { font-weight: 800; color: var(--muted); font-size: .95rem; }

.rating { display: flex; align-items: center; gap: .5em; margin: 0; font-size: .95rem; color: var(--muted); }
.rating strong { color: var(--text); }
.stars {
  font-size: 1.1rem;
  letter-spacing: .08em;
  background: linear-gradient(90deg, #FFC531 calc(var(--rating) / 5 * 100%), rgba(128, 128, 128, .35) 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[dir="rtl"] .stars { background: linear-gradient(-90deg, #FFC531 calc(var(--rating) / 5 * 100%), rgba(128, 128, 128, .35) 0); -webkit-background-clip: text; background-clip: text; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-inline-start: 2.1em; font-weight: 700; }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .2em;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* #pragma mark - Header */

.season-banner { display: none; padding: .55rem var(--gutter); text-align: center; font-weight: 800; font-size: .92rem; text-decoration: none; color: #fff; }
.season-halloween { background: linear-gradient(90deg, #3B0F5C, #FF7A18, #3B0F5C); }
.season-christmas { background: linear-gradient(90deg, #0B3D2E, #E63946, #0B3D2E); }
html[data-season="halloween"] .season-halloween, html[data-season="christmas"] .season-christmas { display: block; }
.season-banner:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.brand .app-icon img, .brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
.header-nav { display: flex; gap: 4px; margin-inline: auto; }
.header-nav a { padding: .45em .9em; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--muted); white-space: nowrap; transition: background .2s ease, color .2s ease; }
.header-nav a:hover { color: var(--text); background: var(--surface); }
.header-nav a[aria-current="page"] { color: var(--text); background: var(--surface-strong); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.header-nav + .header-actions { margin-inline-start: 0; }

.language-menu { position: relative; }
.language-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 .8em;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: .92rem;
}
.language-menu summary::-webkit-details-marker { display: none; }
/* A closed menu takes no room: some browsers still lay its list out, past the edge of the page. */
.language-menu:not([open]) ul { display: none; }
.language-menu summary svg { width: 18px; height: 18px; fill: currentColor; }
.language-menu ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 2px;
  width: max-content;
  max-width: min(420px, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.language-menu a { display: block; padding: .45em .8em; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.language-menu a:hover { background: var(--surface-strong); }
.language-menu a[aria-current] { font-weight: 800; color: var(--accent); }

/* #pragma mark - Hero */

.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 1.8rem 0 1.2rem; }
.hero-facts { color: var(--muted); font-weight: 700; font-size: .95rem; }

.hero-general h1 {
  background: linear-gradient(100deg, #FFFFFF 10%, #FFC6E0 45%, #FFD08A 75%, #9EE6FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: #7B5CFF; top: -160px; inset-inline-start: -120px; }
.blob-2 { width: 420px; height: 420px; background: #FF5FA2; bottom: -160px; inset-inline-end: 8%; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: #22C7E8; top: 30%; inset-inline-end: -80px; animation-delay: -12s; opacity: .35; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.12); } }

/* #pragma mark - Memory game */

.memory-game {
  position: relative;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.theme-general .memory-game { background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); backdrop-filter: blur(12px); }
.game-hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hud-item { display: grid; justify-items: center; min-width: 64px; padding: 6px 12px; border-radius: 16px; background: var(--surface-strong); }
.hud-item small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hud-item b { font-family: var(--display); font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.game-hint { margin: 0; flex: 1; text-align: center; font-weight: 800; font-size: .95rem; color: var(--muted); }

.game-board { display: grid; grid-template-columns: repeat(var(--columns, 4), 1fr); gap: clamp(8px, 1.2vw, 12px); }
.game-card { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; -webkit-tap-highlight-color: transparent; }
.game-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-out);
  animation: deal .6s var(--ease-bounce) backwards;
  animation-delay: calc(var(--index) * 45ms + 200ms);
}
@keyframes deal { from { transform: translateY(-40px) rotate(-8deg) scale(.6); opacity: 0; } }
.game-card.is-flipped .game-card-inner, .game-card.is-matched .game-card-inner { transform: rotateY(180deg); }
.card-side {
  position: absolute;
  inset: 0;
  border-radius: clamp(10px, 1.4vw, 16px);
  border: clamp(3px, .4vw, 5px) solid #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}
.card-back { background: var(--star) center / 46% no-repeat, var(--card-back-1); }
.game-card.is-alt .card-back { background-color: var(--card-back-2); }
.card-face {
  display: grid;
  place-items: center;
  transform: rotateY(180deg);
  background: #fff;
}
.card-face .card-art { width: 80%; height: 80%; }
.game-card:hover .card-back { filter: brightness(1.08); }
.game-card.is-matched { z-index: 2; cursor: default; }
.game-card.is-matched .card-face { box-shadow: 0 0 0 3px var(--accent-2), 0 14px 30px -8px rgba(0, 0, 0, .5); }
.game-score-pop { position: absolute; z-index: 3; pointer-events: none; font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: #C04BFF; text-shadow: 0 2px 0 #fff; animation: pop 1s var(--ease-out) forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.6); } 30% { opacity: 1; transform: translateY(-6px) scale(1.1); } to { opacity: 0; transform: translateY(-40px); } }

.game-win {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
  animation: fade-in .4s ease;
}
.game-win[hidden] { display: none; }
.game-win .button { justify-self: center; }
.game-win p { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; }
@keyframes fade-in { from { opacity: 0; } }
.confetti { position: absolute; top: -10px; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; z-index: 5; animation: confetti 1.6s ease-in forwards; }
@keyframes confetti { to { transform: translate3d(var(--x), 520px, 0) rotate(720deg); opacity: 0; } }

/* #pragma mark - Devices */

.device {
  position: relative;
  margin-inline: auto;
  background: linear-gradient(145deg, #34343A, #0B0B0E);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow);
}
/* Bezel and corners are proportional to the device width, so a small iPhone still looks like an iPhone.
   The screen keeps slightly smaller corners than the real one to hide as little of the capture as possible.
   Margins in % refer to the device width, horizontal radii to the box width and vertical ones to its height. */
.device img { display: block; height: auto; }
.device-phone { width: min(300px, 72vw); border-radius: 13.2% / 6.25%; }
.device-phone img { width: 94.8%; margin: 2.6%; border-radius: 11.2% / 5.15%; }
.device-ipad { width: min(720px, 100%); border-radius: 6.2% / 4.72%; }
.device-ipad img { width: 94%; margin: 3%; border-radius: 3.4% / 2.55%; }
.split-visual .device-ipad { width: min(480px, 100%); }
.tilt-left { rotate: -5deg; }
.tilt-right { rotate: 5deg; margin-top: 64px; }
.devices-duo { display: flex; justify-content: center; align-items: flex-start; }
.devices-duo .device-phone { width: min(260px, 44vw); margin: 0; }
.devices-duo .device-phone + .device-phone { margin-inline-start: -36px; }

/* #pragma mark - Layout helpers */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-reverse .split-text { order: 2; }
.split-text .section-head { margin-bottom: 1.5rem; }

/* #pragma mark - Stats */

.stats { padding-block: 28px; border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-list { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px 32px; margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.stats-list li { display: grid; justify-items: center; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats-list span { color: var(--muted); font-weight: 700; font-size: .92rem; }
.stat-prefix { order: -1; }

/* #pragma mark - Modes */

.modes-layout { display: grid; grid-template-columns: 430px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.modes-device { position: sticky; top: max(96px, calc(50vh - 320px)); }
.mode-shot { position: absolute; inset: 0; opacity: 0; transform: scale(.97); transition: opacity .5s ease, transform .6s var(--ease-out); }
.mode-shot:first-child { position: relative; inset: auto; }
.mode-shot.is-active { opacity: 1; transform: none; }
.modes-list { list-style: none; margin: 0; padding: 0; }
.mode-step { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; padding-block: 24px; opacity: .35; transition: opacity .5s ease; }
.mode-step.is-current { opacity: 1; }
.mode-step h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .35em; }
.mode-step p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34em; }
.mode-index { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--accent); margin-bottom: .6rem; }
.mode-step.is-featured h3::after { content: ""; display: block; width: 64px; height: 6px; margin-top: .35em; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.phone-fan.mode-inline { display: none; }
.mode-inline.phone-fan .device-phone { width: min(190px, 40vw); }
.mode-inline.phone-fan .fan-front { margin-inline-start: -48px; margin-top: 30px; }

/* #pragma mark - Editions */

.edition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.edition {
  --edition: var(--classic);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), border-color .3s ease;
}
.edition-halloween { --edition: var(--halloween); }
.edition-christmas { --edition: var(--christmas); }
.edition-platinum { --edition: var(--platinum); }
.edition:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--edition) 60%, transparent); }
.edition-glow { position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--edition) 55%, transparent), transparent); opacity: .5; pointer-events: none; }
.edition .app-icon img, .app-icon img { border-radius: 22%; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.edition img { width: 88px; height: 88px; margin-bottom: 18px; }
.edition h3 { margin-bottom: .2em; }
.store-name { font-size: .85rem; color: var(--muted); margin-bottom: .9em; }
.edition p { position: relative; }
.edition .price { margin-top: auto; }
.edition .button { position: relative; background: var(--edition); box-shadow: 0 10px 24px -12px var(--edition); color: #fff; }

/* #pragma mark - Edition worlds */

.world { position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 150px); color: #fff; }
.world-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.world-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.world .eyebrow { color: inherit; opacity: .85; margin: 0; }
.world .lead { color: rgba(255, 255, 255, .82); }
.world .price { color: rgba(255, 255, 255, .75); }
.world-devices { display: flex; justify-content: center; }
.world-devices .device-phone { width: min(260px, 42vw); margin: 0; }
.world-devices .device-phone + .device-phone { margin-inline-start: -36px; }
.app-title { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.app-title img { width: 64px; height: 64px; }
.app-title h3 { margin: 0; }

.world-halloween { background: radial-gradient(ellipse at 20% 0%, rgba(255, 122, 24, .28), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(155, 70, 255, .35), transparent 50%), linear-gradient(180deg, #120821, #22093A); }
.world-halloween h2 { color: #FFB25B; text-shadow: 0 0 28px rgba(255, 122, 24, .45); }
.world-christmas { background: radial-gradient(ellipse at 80% 0%, rgba(230, 57, 70, .3), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(255, 214, 102, .2), transparent 50%), linear-gradient(180deg, #0A3326, #061C15); }
.world-christmas h2 { color: #FFE3A3; }
.world-platinum { color: #2A2416; background: radial-gradient(ellipse at 15% 10%, rgba(255, 255, 255, .9), transparent 50%), linear-gradient(160deg, #F8F2E4, #E7D8B6); }
.world-platinum .lead { color: #5A4E36; }
.world-platinum .price { color: #6B5B3A; }
.world-platinum h2 { background: linear-gradient(100deg, #6E5313, #C9A23A 45%, #7A5C14); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* #pragma mark - Card packs */

.handmade-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: .5rem 0 0;
  padding: .45em 1.1em;
  border-radius: 999px;
  border: 2px dashed var(--accent);
  color: var(--accent);
  font-weight: 800;
}
.handmade-badge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pack-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pack {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.pack:hover, .pack:focus-visible { z-index: 3; }
.pack h3 { margin: 14px 0 0; font-size: 1.1rem; }
.pack-count { margin: 0; color: var(--muted); font-weight: 700; font-size: .9rem; }
.pack-fan { position: relative; width: 100%; height: 126px; }
.pack-card {
  position: absolute;
  bottom: 0;
  inset-inline-start: 50%;
  width: 86px;
  height: 86px;
  margin-inline-start: -43px;
  display: grid;
  place-items: center;
  padding: 9px;
  border-radius: 14px;
  border: 4px solid #fff;
  background: #fff;
  color: #1F2A44;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45);
  --spread: 58px;
  transform-origin: 50% 100%;
  transform: translate(calc(var(--rest) * 22px), calc(var(--rest) * var(--rest) * 4px)) rotate(calc(var(--rest) * 10deg));
  z-index: var(--zr);
  transition: transform .55s var(--ease-out), opacity .35s ease;
  transition-delay: calc((var(--step) + 2) * 30ms);
}
.pack-card.is-extra { opacity: 0; }
.pack:hover .pack-card, .pack:focus-visible .pack-card {
  transform: translate(calc(var(--step) * var(--spread)), calc(var(--lift) * 5px - 22px)) rotate(calc(var(--step) * 9deg));
  z-index: var(--zo);
  opacity: 1;
}
.card-art { width: 100%; height: 100%; background: center / contain no-repeat; }
/* Pack illustrations are lazy images the pointer goes through: no image menu, no drag. */
.pack-art { display: block; width: 100%; height: 100%; }
.pack-art img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.pack-grid, .memory-game { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pack-value { font-family: var(--display); font-weight: 800; line-height: 1; text-align: center; white-space: nowrap; }
.pack-value.is-glyph { font-size: 2.5rem; }
/* A word always stays on one line: its size follows its length. */
.pack-value.is-word { font-size: min(1.45rem, calc(96px / var(--chars))); }
.pack-card:nth-child(3n + 1) .pack-value { color: #FF5B6E; }
.pack-card:nth-child(3n + 2) .pack-value { color: #3D7BF7; }
.pack-card:nth-child(3n) .pack-value { color: #12A88F; }

/* #pragma mark - Themes */

.skin-group { margin-bottom: clamp(40px, 6vw, 72px); }
.skin-group h3 { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 1.5rem; }
.skin-group h3 img { width: 40px; height: 40px; }
.skin-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 40px; }
.skin { display: grid; justify-items: center; gap: 14px; text-align: center; }
.skin span { font-weight: 800; font-size: .95rem; max-width: 220px; }

/* Two phones in a light fan: a menu behind, a game in front */
.phone-fan { display: flex; justify-content: center; align-items: flex-start; }
.phone-fan .device-phone { width: 230px; margin: 0; flex: 0 0 auto; transition: rotate .5s var(--ease-out), translate .5s var(--ease-out); }
.phone-fan .fan-back { rotate: -6deg; }
.phone-fan .fan-front { rotate: 5deg; margin-inline-start: -64px; margin-top: 44px; }
.phone-fan.fan-small .device-phone { width: 128px; }
.phone-fan.fan-small .fan-front { margin-inline-start: -40px; margin-top: 26px; }
.skin:hover .fan-back { rotate: -10deg; }
.skin:hover .fan-front { rotate: 9deg; translate: 8px 0; }

/* #pragma mark - Devices */

.devices { text-align: center; }
.devices .section-head { margin-bottom: 1rem; }
.devices-lead { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.devices-stage { position: relative; width: min(980px, 100%); margin: 0 auto; padding-bottom: 40px; }
.devices-note { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* Mac: screen, desktop wallpaper and the app window, then the keyboard base */
.device-mac { container-type: inline-size; width: min(760px, 86%); margin: 0 auto; }
.mac-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 2.9cqw 2.9cqw .8cqw .8cqw; background: linear-gradient(145deg, #3A3A40, #111114); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow); }
.mac-screen::before { content: ""; position: absolute; inset: 1.8cqw; border-radius: 1cqw; background: radial-gradient(ellipse at 20% 20%, #7B5CFF, transparent 55%), radial-gradient(ellipse at 85% 80%, #FF5FA2, transparent 50%), linear-gradient(135deg, #24164F, #0E0A24); }
.mac-window { position: absolute; top: 5.5%; bottom: 4.5%; left: 50%; translate: -50% 0; aspect-ratio: 2752 / 2130; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.3cqw; background: #F2F2F4; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.mac-titlebar { flex: 0 0 auto; display: flex; gap: .8cqw; align-items: center; height: 2.9cqw; padding: 0 1.3cqw; background: #E7E7EA; }
.mac-titlebar span { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #FF5F57; }
.mac-titlebar span:nth-child(2) { background: #FEBC2E; }
.mac-titlebar span:nth-child(3) { background: #28C840; }
.mac-window img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mac-window picture { display: block; flex: 1 1 auto; min-height: 0; }
.mac-base { position: relative; width: 116%; height: 2.1cqw; margin-inline: -8%; border-radius: 0 0 2.1cqw 2.1cqw; background: linear-gradient(180deg, #D9D9DE, #9C9CA3); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .6); }
.mac-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: .8cqw; translate: -50% 0; border-radius: 0 0 1cqw 1cqw; background: #8D8D94; }
.stage-ipad.device-ipad { position: absolute; left: 0; bottom: 0; width: min(250px, 27%); rotate: -4deg; }
.stage-iphone.device-phone { position: absolute; right: 2%; bottom: 0; width: min(150px, 16%); rotate: 5deg; }

/* iPhone Duo almost fully open: two halves of one landscape capture, slightly folded at the hinge */
.duo-showcase { margin: clamp(56px, 8vw, 96px) auto 0; }
.duo-showcase figcaption { margin-top: 22px; color: var(--muted); font-size: .95rem; }
/* Sizes in cqw (hundredths of the open device's width) keep the same look at any size. */
.device-duo { container-type: inline-size; display: flex; justify-content: center; width: min(820px, 100%); margin: 0 auto; perspective: 1800px; }
.duo-half { position: relative; width: 50%; aspect-ratio: 700 / 985; overflow: hidden; background: linear-gradient(145deg, #4A4A50, #1A1A1E); box-shadow: var(--shadow); }
.duo-half picture, .duo-half img { display: block; }
.duo-half img { position: absolute; top: 1.4cqw; height: calc(100% - 2.8cqw); width: auto; max-width: none; }
.duo-left { border-radius: 4.6cqw .5cqw .5cqw 4.6cqw; transform-origin: 100% 50%; transform: rotateY(9deg); }
.duo-left img { left: 1.4cqw; border-radius: 3.2cqw 0 0 3.2cqw; }
.duo-right { border-radius: .5cqw 4.6cqw 4.6cqw .5cqw; transform-origin: 0 50%; transform: rotateY(-9deg); }
.duo-right img { right: 1.4cqw; border-radius: 0 3.2cqw 3.2cqw 0; }
.duo-half::after { content: ""; position: absolute; inset: 1.4cqw; pointer-events: none; }
.duo-left::after { background: linear-gradient(90deg, transparent 70%, rgba(0, 0, 0, .18)); border-radius: 3.2cqw 0 0 3.2cqw; }
.duo-right::after { background: linear-gradient(270deg, transparent 70%, rgba(255, 255, 255, .08)); border-radius: 0 3.2cqw 3.2cqw 0; }
[dir="rtl"] .device-duo { direction: ltr; }

/* #pragma mark - Audiences, FAQ and final call */

.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-card {
  position: relative;
  display: block;
  padding: 30px 28px 56px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.audience-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.audience-card p { color: var(--muted); margin: 0; }
.audience-card .arrow { position: absolute; inset-inline-end: 26px; bottom: 20px; font-size: 1.5rem; font-weight: 800; color: var(--accent); transition: translate .3s var(--ease-out); }
[dir="rtl"] .audience-card .arrow { transform: scaleX(-1); }
.audience-card:hover .arrow { translate: 6px 0; }
[dir="rtl"] .audience-card:hover .arrow { translate: -6px 0; }
.audience-card::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 6px; margin-bottom: 18px; }
.audience-general::before { background: linear-gradient(90deg, #7B5CFF, #FF5FA2); }
.audience-kids::before { background: linear-gradient(90deg, #FF6B6B, #FFC93C); }
.audience-seniors::before { background: linear-gradient(90deg, #2F5D50, #B08D3C); }
.audience-pros::before { background: linear-gradient(90deg, #1F7A8C, #81B29A); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.faq-item p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 46em; }
.faq-toggle { position: relative; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--surface-strong); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; inset: 50% 7px auto; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform .3s ease; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }

.final { text-align: center; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.final-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.final-apps li { display: grid; justify-items: center; gap: 10px; min-width: 200px; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.final-apps img { width: 72px; height: 72px; }
.final-apps span { font-family: var(--display); font-weight: 800; }
.final-apps .store-badge img { width: auto; height: 44px; border-radius: 0; box-shadow: none; }

/* #pragma mark - Footer */

.site-footer { padding-block: 64px 32px; background: var(--bg-2); border-top: 1px solid var(--border); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 36px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-family: var(--body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-main .brand { margin-bottom: 1rem; color: var(--text); }
.footer-main .footer-links { margin-top: 1rem; }
.footer-languages ul { grid-template-columns: repeat(2, 1fr); column-gap: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.footer-bottom p { margin: 0 0 .4rem; }

/* #pragma mark - Kids page */

.hero-kids { background: linear-gradient(180deg, #8ED8FF 0%, #C8ECFF 55%, var(--bg) 100%); padding-bottom: clamp(110px, 12vw, 160px); }
.hero-kids h1 { color: #1F2A44; }
.hero-kids h1 { font-weight: 900; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; top: 40px; inset-inline-end: 8%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #FFE066 55%, #FFC93C 56%, #FFC93C 70%, transparent 71%); box-shadow: 0 0 80px 20px rgba(255, 224, 102, .6); animation: spin 40s linear infinite; }
.cloud { position: absolute; width: 180px; height: 60px; border-radius: 60px; background: #fff; opacity: .9; animation: float-x 30s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 80px; height: 80px; top: -40px; inset-inline-start: 26px; }
.cloud::after { width: 100px; height: 100px; top: -54px; inset-inline-start: 70px; }
.cloud-1 { top: 18%; inset-inline-start: -200px; }
.cloud-2 { top: 58%; inset-inline-start: -200px; animation-duration: 42s; animation-delay: -18s; transform: scale(.7); }
.cloud-3 { top: 8%; inset-inline-start: -200px; animation-duration: 55s; animation-delay: -36s; transform: scale(.5); opacity: .7; }
@keyframes float-x { to { translate: calc(100vw + 400px) 0; } }
[dir="rtl"] .cloud { animation-name: float-x-rtl; }
@keyframes float-x-rtl { to { translate: calc(-100vw - 400px) 0; } }
@keyframes spin { to { rotate: 360deg; } }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--bg); }
.theme-kids .eyebrow { color: #E0457B; }
.theme-kids .memory-game { border: 0; background: #fff; box-shadow: 0 8px 0 #E8DCC0, var(--shadow); }
.theme-kids .section-head h2, .theme-kids h2 { font-weight: 900; }
.learn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.learn-card { padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: 0 6px 0 rgba(31, 42, 68, .06); }
.learn-card svg { width: 44px; height: 44px; padding: 9px; border-radius: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.learn-card:nth-child(1) svg { background: #FF6B6B; }
.learn-card:nth-child(2) svg { background: #4D96FF; }
.learn-card:nth-child(3) svg { background: #FFB547; }
.learn-card:nth-child(4) svg { background: #4ECDC4; }
.learn-card h3 { margin-bottom: .3em; }
.learn-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.grow { background: var(--bg-2); }
.grow-boards { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(20px, 4vw, 48px); }
.grow-board { display: grid; gap: 6px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.grow-board span { width: 34px; height: 34px; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); background: var(--star) center / 60% no-repeat, #4D96FF; }
.grow-board span:nth-child(3n + 2) { background-color: #FFC93C; }
.grow-board span:nth-child(3n) { background-color: #FF6B6B; }
.grow-2 { grid-template-columns: repeat(2, 1fr); }
.grow-6 { grid-template-columns: repeat(3, 1fr); }
.grow-12 { grid-template-columns: repeat(4, 1fr); }
.grow-20 { grid-template-columns: repeat(5, 1fr); }
.season-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Edition choice of the kids, seniors and professionals pages */
.choose-platinum { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 36px; background: linear-gradient(150deg, #FBF6EA, #EADDBF); color: #2A2416; box-shadow: var(--shadow); }
.choose-platinum .store-name, .choose-platinum .price { color: #6B5B3A; }
.choose-platinum .pill { background: #2A2416; color: #F3E7C8; }
.choose-platinum h2, .choose-platinum h3 { color: #2A2416; }
.choose-platinum .eyebrow { color: #8A6A1F; }
.choose-platinum .check-list li::before { background-color: #8A6A1F; }
.choose-platinum-visual { display: flex; justify-content: center; }
.choose-platinum-visual .device-phone { width: min(230px, 38vw); margin: 0; }
.choose-platinum-visual .device-phone + .device-phone { margin-inline-start: -30px; }
.choose-platinum .rating { color: #6B5B3A; margin-bottom: 1rem; }
.choose-platinum .rating strong { color: #2A2416; }
.choose-try { margin: clamp(40px, 6vw, 64px) auto 20px; max-width: 760px; text-align: center; font-size: 1.15rem; font-weight: 800; }
.choose-free { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.choose-free-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.choose-free-card img { width: 64px; height: 64px; flex: 0 0 64px; }
.choose-free-card h4 { font-family: var(--display); font-size: 1.05rem; margin-bottom: .2em; }
.choose-free-card p { margin-bottom: .5em; font-size: .95rem; color: var(--muted); }
.choose-free-card .price { margin-bottom: .4em; }
.choose-then { margin: 32px auto 0; max-width: 760px; text-align: center; font-size: 1.1rem; color: var(--muted); }

/* #pragma mark - Seniors page */

.hero-seniors { background: radial-gradient(ellipse at 85% 10%, rgba(176, 141, 60, .18), transparent 55%), linear-gradient(180deg, #EFE7D6, var(--bg)); }
.hero-seniors h1 { font-weight: 600; letter-spacing: -.01em; color: #1C2822; }
.theme-seniors h2 { font-weight: 600; letter-spacing: -.01em; }
.theme-seniors .eyebrow { color: var(--accent-2); }
.theme-seniors .lead { color: #3D4A43; }
.theme-seniors .memory-game { background: #FFFDF8; }
.theme-seniors .game-hint { font-size: 1.05rem; }
.leaves { position: absolute; inset: 0; pointer-events: none; }
.leaves span { position: absolute; width: 120px; height: 60px; border-radius: 0 100%; background: linear-gradient(135deg, rgba(47, 93, 80, .16), rgba(110, 143, 126, .08)); animation: sway 9s ease-in-out infinite alternate; }
.leaves span:nth-child(1) { top: 12%; inset-inline-start: 4%; rotate: 25deg; }
.leaves span:nth-child(2) { top: 70%; inset-inline-start: 42%; rotate: -20deg; width: 90px; height: 45px; animation-delay: -3s; }
.leaves span:nth-child(3) { top: 8%; inset-inline-end: 6%; rotate: -35deg; width: 150px; height: 75px; animation-delay: -5s; }
.leaves span:nth-child(4) { bottom: 6%; inset-inline-end: 30%; rotate: 60deg; width: 80px; height: 40px; animation-delay: -7s; }
@keyframes sway { to { transform: translateY(14px) rotate(6deg); } }
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit { padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.benefit-number { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.benefit p { color: var(--muted); margin: 0; }
.theme-seniors .comfort, .theme-seniors .together { background: var(--bg-2); }
.theme-seniors .together { background: var(--bg); }
.theme-seniors .button { border-radius: 14px; }

/* #pragma mark - Professionals page */

.hero-pros { background: linear-gradient(180deg, #E3EEF1, var(--bg)); }
.grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(31, 122, 140, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 122, 140, .08) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); }
.chip-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; }
.chip-list li { padding: .65em 1.2em; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; box-shadow: 0 6px 14px -10px rgba(16, 48, 58, .35); }
.needs { background: var(--bg-2); }
.need-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.need { padding: 28px 26px; border-radius: 22px; background: var(--surface); border-inline-start: 6px solid var(--accent); box-shadow: 0 10px 26px -20px rgba(16, 48, 58, .5); }
.need:nth-child(even) { border-inline-start-color: var(--accent-2); }
.need p { color: var(--muted); margin: 0; }
.session .choose-platinum-visual .device-ipad { width: min(420px, 100%); }
.disclaimer { margin: 36px auto 0; max-width: 820px; padding: 18px 22px; border-radius: 16px; background: var(--surface-strong); color: var(--muted); font-size: .92rem; text-align: center; }

/* #pragma mark - Root page */

.root-chooser { padding-block: 12vh; text-align: center; }
.root-languages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.root-languages a { display: block; padding: .8em; border-radius: 14px; background: var(--surface); text-decoration: none; font-weight: 700; }

/* #pragma mark - Scroll reveal */

.intro { animation: rise .9s var(--ease-out) backwards; }
.hero-text .intro:nth-child(2) { animation-delay: .08s; }
.hero-text .intro:nth-child(3) { animation-delay: .16s; }
.hero-text .intro:nth-child(4) { animation-delay: .24s; }
.hero-text .intro:nth-child(5) { animation-delay: .32s; }
.hero-game.intro { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }

html:not(.no-js) .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s ease var(--delay, 0ms), translate .8s var(--ease-out) var(--delay, 0ms); }
html:not(.no-js) .reveal.is-visible { opacity: 1; translate: 0 0; }
html:not(.no-js) .theme-seniors .reveal { translate: 0 10px; transition-duration: 1s; }
html:not(.no-js) .tilt-right.reveal { transition-delay: 150ms; }

/* #pragma mark - Responsive */

@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .header-nav { order: 3; width: 100%; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .edition-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .need-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid, .split, .world-grid, .choose-platinum { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 0; }
  .hero-game { max-width: 520px; width: 100%; margin-inline: auto; }
  .modes-layout { grid-template-columns: 1fr; }
  .modes-device { display: none; }
  .mode-step { min-height: 0; opacity: 1; padding-block: 28px; border-bottom: 1px solid var(--border); }
  .phone-fan.mode-inline { display: flex; justify-content: flex-start; margin: 22px 0 10px; }
  .audience-grid, .benefit-grid, .choose-free { grid-template-columns: 1fr; }
  .tilt-right { margin-top: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-download { display: none; }
  .language-menu summary span { display: none; }
  .edition-grid, .need-grid, .learn-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .store-badge.badge-large img { height: 52px; }
  .hud-item { min-width: 54px; padding: 4px 8px; }
  .game-hint { font-size: .85rem; }
  .devices-duo .device-phone, .world-devices .device-phone { width: 46vw; }
  /* The open menu spans the header, whatever the reading direction: it never sticks out of the page. */
  .header-inner { position: relative; }
  .language-menu { position: static; }
  .language-menu ul { grid-template-columns: 1fr 1fr; inset-inline: 0; width: auto; max-width: none; }
  .pack-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stage-ipad.device-ipad { width: 30%; }
  .stage-iphone.device-phone { width: 19%; }
  .pack { padding: 20px 8px 16px; }
  .pack-fan { height: 92px; }
  .pack-card { width: 62px; height: 62px; margin-inline-start: -31px; padding: 5px; border-width: 3px; border-radius: 11px; --spread: 34px; }
  .pack-value.is-glyph { font-size: 1.8rem; }
  .pack-value.is-word { font-size: min(1.05rem, calc(72px / var(--chars))); }
  .phone-fan.fan-small .device-phone { width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html:not(.no-js) .reveal { opacity: 1; translate: none; }
}
