/* THE LOOK OF THE LANGUAGE PAGES  (pages.css, project root, class A)
   NEW (2026-10-30, 24-growth section 3): used ONLY by the pages in en/ fa/ de/ es/ fr/ fi/ pt/ (written by tools/build-seo-pages.js). The app never loads it.
   Look = what a NEW visitor sees in the app: dark theme + violet palette + Classic style. The colours are the violet DARK block of css/09-loading-palettes.css
   (--h 295, --ha 300): if that palette changes, change the numbers here too. Fonts: Outfit (Latin), Sahel (Persian), the same files as the app.
   Layout stays like English in every language (00-rules rule 5): only the text inside .t runs right to left on Persian pages. No letter-spacing (Persian letters must stay joined). */
@font-face { font-family: 'Outfit'; font-weight: 400 500; font-style: normal; font-display: swap; src: local('Outfit'), url('fonts/outfit-400.woff?v=a87190bc') format('woff');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: 'Outfit'; font-weight: 600 700; font-style: normal; font-display: swap; src: local('Outfit Bold'), url('fonts/outfit-700.woff?v=f106fbf9') format('woff');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: 'Sahel'; font-weight: 400 500; font-style: normal; font-display: swap; src: url('fonts/sahel-400.woff?v=4b9c200f') format('woff'); }
@font-face { font-family: 'Sahel'; font-weight: 600 700; font-style: normal; font-display: swap; src: url('fonts/sahel-700.woff?v=8070c5eb') format('woff'); }

:root {
  --h: 295; --ha: 300;                                   /* = [data-palette="violet"] in css/09-loading-palettes.css */
  --bg:          oklch(27.9% 0.037 var(--h));
  --dome:        oklch(21%   0.035 var(--h));            /* the dark curved top of the first page */
  --card:        oklch(32%   0.045 var(--h));
  --line:        oklch(41%   0.050 var(--h));
  --disc-face:   oklch(39%   0.055 var(--h));
  --disc-hi:     oklch(50%   0.050 var(--h));
  --disc-rim:    oklch(32%   0.045 var(--h));
  --text-primary:#F1F5F9;
  --text-muted:  oklch(77%   0.030 var(--h));
  --accent:      oklch(76% 0.15 var(--ha));
  --accent-soft: oklch(76% 0.15 var(--ha) / 0.45);
  --accent-text: oklch(22% 0.06 var(--ha));
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
html[lang="fa"] { --font: 'Sahel', 'Outfit', Tahoma, 'Segoe UI', system-ui, sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body {
  direction: ltr; min-height: 100vh; font-family: var(--font); color: var(--text-primary); line-height: 1.65; font-size: 17px;
  background:
    radial-gradient(130% 520px at 50% -40px, var(--dome) 0 99%, transparent 100%) no-repeat,          /* dark dome with a round bottom edge, like the first page */
    radial-gradient(70% 380px at 50% 100%, oklch(76% 0.15 var(--ha) / 0.22), transparent 70%) no-repeat, /* violet light at the bottom */
    var(--bg);
}
html[lang="fa"] body { line-height: 1.95; }
a { color: var(--accent); }
.wrap { max-width: 780px; margin: 0 auto; padding: 18px 16px 48px; }

/* top row: brand + language menu (never mirrored) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.brand { font-family: 'Outfit', system-ui, sans-serif; font-size: 30px; font-weight: 600; line-height: 1; text-decoration: none; color: var(--text-primary); direction: ltr;
  animation: brandGlow 5s ease-in-out infinite; }
.brand span { color: var(--accent); }
@keyframes brandGlow {   /* the same glow as the big Bazdate word in the app (09-loading-palettes.css) */
  0%, 100% { text-shadow: 0 0 14px oklch(76% 0.15 var(--ha) / 0.45), 0 0 34px oklch(76% 0.15 var(--ha) / 0.25); }
  50%      { text-shadow: 0 0 20px oklch(76% 0.15 var(--ha) / 0.70), 0 0 48px oklch(76% 0.15 var(--ha) / 0.40); }
}
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a { padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: oklch(37% 0.04 var(--h) / 0.6); color: var(--text-primary); text-decoration: none; font-size: 14px; }
.langs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }

/* first block: title, one sentence, the big button */
.hero { text-align: center; margin-bottom: 30px; }
h1 { font-size: clamp(28px, 6.6vw, 42px); font-weight: 700; line-height: 1.22; margin-bottom: 14px; }
.lead { color: var(--text-muted); font-size: 18px; max-width: 620px; margin: 0 auto 26px; }
.play { display: inline-block; position: relative; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 19px; text-decoration: none;
  padding: 16px 40px; border-radius: 999px;
  box-shadow: 0 0 0 5px var(--disc-rim), 0 0 26px var(--accent-soft), 0 10px 30px rgba(0,0,0,.35); }
.play:hover { filter: brightness(1.07); }
.play:active { transform: scale(0.97); }
.note { color: var(--text-muted); font-size: 14px; margin-top: 14px; }

/* screenshots (only when the files exist) */
.shots { display: flex; gap: 10px; justify-content: center; margin: 0 0 28px; }
.shots img { flex: 1 1 0; min-width: 0; max-width: 240px; height: auto; border-radius: 16px; border: 1.5px solid var(--line); object-fit: contain;   /* up to 3 side by side, they shrink to fit a phone (no sideways scrolling) */
  box-shadow: 0 12px 30px rgba(0,0,0,.35); }

/* the article */
.card, .foot, .more { overflow-wrap: anywhere; }
.card { background: oklch(32% 0.045 var(--h) / 0.85); border: 1.5px solid var(--line); border-radius: 24px; padding: 28px 24px;
  box-shadow: 0 18px 44px rgba(0,0,0,.30); }
.card h2 { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 26px 0 8px; color: var(--text-primary); }
.card h2:first-child { margin-top: 0; }
.card p { color: oklch(90% 0.02 var(--h)); }
.card p + p { margin-top: 12px; }
.card ul { padding-inline-start: 1.3em; margin: 10px 0; display: flex; flex-direction: column; gap: 7px; color: oklch(90% 0.02 var(--h)); }
.card li::marker { color: var(--accent); }
.again { text-align: center; margin: 34px 0; }

/* links to the other pages: round "disc" chips like the game discs of the app */
.more h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; text-align: center; color: var(--text-muted); }
.more div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.more a { padding: 9px 17px; border-radius: 999px; color: var(--text-primary); text-decoration: none; font-size: 15px;
  background: radial-gradient(circle at 35% 25%, var(--disc-hi), var(--disc-face) 60%);
  box-shadow: 0 0 0 3px var(--disc-rim), 0 6px 16px rgba(0,0,0,.30); }
.more a:hover { box-shadow: 0 0 0 3px var(--disc-rim), 0 0 18px var(--accent-soft); }

.foot { margin-top: 34px; color: var(--text-muted); font-size: 14px; text-align: center; }
.foot p + p { margin-top: 6px; }
.adult { font-weight: 600; }

/* Persian: the TEXT runs right to left, the boxes stay where they are (rule 5). Centred text stays centred.
   unicode-bidi: normal, not plaintext: a Persian sentence that STARTS with the Latin word "Bazdate" must still read right to left. */
html[dir="rtl"] .t :where(p, h1, h2, ul, li) { direction: rtl; unicode-bidi: normal; }
html[dir="rtl"] .card :where(p, h2, ul, li) { text-align: right; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .card { padding: 22px 16px; border-radius: 20px; }
  .shots img { border-radius: 12px; }
}

/* ───── PAGE-TO-APP ANIMATION (View Transition between two pages of the same site) ─────
   Tapping the TOP "Play now" pill opens the app: the pill grows into the round "Let's Play" disc and the small Bazdate logo grows into the big Bazdate word.
   The app side is the same block at the end of css/09-loading-palettes.css (names bz-brand / bz-play): change BOTH together. Browsers without it (Firefox) just open the page.
   Only ONE element per name on a page: the bottom pill has no name (two would cancel the animation). */
@view-transition { navigation: auto; }
.vt-brand { view-transition-name: bz-brand; }
.vt-play { view-transition-name: bz-play; }
::view-transition-group(bz-brand), ::view-transition-group(bz-play) { animation-duration: 0.65s; animation-timing-function: cubic-bezier(.22, .9, .24, 1); }
::view-transition-image-pair(bz-play) { border-radius: 999px; overflow: clip; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }
