/* =====================================================================
   BLACK TORCH, as the launcher wears it (kit: launcher/BRAND.md, launcher/brand/assets/tokens/tokens.css).
   Flat colour, hard shadows, ink-and-paper corners. No gradient, no glow, no blur, no orange/gold/red/green/blue.
   Ember rose is the eye only: the o of Torch, the waw of the Arabic name, an attention dot. Never text, never a fill.
   This file styles everything that is the launcher's: nav, hero text, launcher showcase, Shop, download, FAQ, closing call,
   community, footer, phone bar. The game's own sections (Wizard's Raid, from #games to the early-access cards) keep style.css.
   ===================================================================== */
:root {
  --bt-night: #15121B; --bt-surface-0: #1C1824; --bt-surface: #211C2B; --bt-surface-2: #24202E;
  --bt-line: #2C2737; --bt-shadow: #0C0A10;
  --bt-text: #E7E2EE; --bt-muted: #A69FB4; --bt-ivory: #ECE7F0;
  --bt-violet: #7A56C8; --bt-press: #4B3480; --bt-lavender: #A98BE0; --bt-ember: #E07A6B;
  --bt-ui: "Cairo", system-ui, sans-serif;
  --bt-title: "IM Fell English SC", Georgia, serif;
  --bt-title-ar: "Aref Ruqaa", "Cairo", serif;
  --bt-hard: 8px 8px 0 var(--bt-shadow);
}

.skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 300; padding: 12px 18px; background: var(--bt-violet); color: #fff; font: 700 16px/1 var(--bt-ui); border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.nav :focus-visible, .bt-hero :focus-visible, .bt-peek :focus-visible, .bt-sec :focus-visible, .bt-foot :focus-visible, .dock :focus-visible { outline: 3px solid var(--bt-lavender); outline-offset: 3px; border-radius: 8px; }

/* ---------- the studio's name ---------- */
.wordmark { font: 400 26px/1 var(--bt-title); letter-spacing: .06em; color: var(--bt-text); white-space: nowrap; }
.wordmark i { font-style: normal; color: var(--bt-ember); }
[dir="rtl"] .wordmark { font: 700 28px/1.2 var(--bt-title-ar); letter-spacing: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand .bt-flame { width: 42px; height: 42px; border-radius: 10px; }
.bt-flame { display: block; flex: none; overflow: hidden; }
.bt-flame > img { display: block; width: 100%; height: 100%; }
.bt-flame.live { display: grid; place-items: center; background: var(--bt-surface); border: 1px solid var(--bt-line); box-shadow: 3px 3px 0 var(--bt-shadow); }
.bt-flame.live > svg { display: block; }
.brand .wm { display: block; }
.brand small { display: block; margin-top: 4px; font: 600 10.5px/1 var(--bt-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bt-muted); }
[dir="rtl"] .brand small { letter-spacing: 0; font-size: 12px; text-transform: none; margin-top: 0; }

/* ---------- nav: solid night, like the launcher's own top bar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 10px 0; background: var(--bt-night); border-bottom: 1px solid var(--bt-line); }
.nav .wrap { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 9px 13px; font: 600 15px/1 var(--bt-ui); color: var(--bt-muted); text-decoration: none; border-radius: 8px; white-space: nowrap; transition: color 180ms ease-out, background 180ms ease-out; }
[dir="rtl"] .nav-links a { font-size: 16px; }
.nav-links a:hover { color: var(--bt-text); background: var(--bt-surface-2); }
.nav-links a.active { color: var(--bt-lavender); box-shadow: inset 0 -2px 0 var(--bt-violet); border-radius: 8px 8px 0 0; }
.lang { display: inline-flex; border: 1px solid var(--bt-line); border-radius: 8px; overflow: hidden; background: var(--bt-surface); }
.lang button { background: none; border: 0; padding: 8px 12px; cursor: pointer; font: 700 13px/1 var(--bt-ui); color: var(--bt-muted); }
.lang button[aria-pressed="true"] { background: var(--bt-violet); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--bt-line); border-radius: 10px; background: var(--bt-surface-2); cursor: pointer; padding: 0; position: relative; }
.burger i, .burger i::before, .burger i::after { position: absolute; content: ""; inset-inline: 11px; height: 2px; background: var(--bt-text); border-radius: 2px; transition: transform 180ms ease-out, opacity 180ms ease-out; }
.burger i { top: 21px; } .burger i::before { top: -7px; inset-inline: 0; } .burger i::after { top: 7px; inset-inline: 0; }
.nav.open .burger i { background: transparent; } .nav.open .burger i::before { transform: translateY(7px) rotate(45deg); } .nav.open .burger i::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons: violet, white label, a hard shadow, down 4 px in 100 ms ---------- */
.ic { width: 22px; height: 22px; flex: none; fill: currentColor; }
.bt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  font: 700 17px/1 var(--bt-ui); text-decoration: none; cursor: pointer; user-select: none;
  color: #fff; background: var(--bt-violet); border: 0; border-radius: 10px; box-shadow: 0 5px 0 var(--bt-press);
  transition: transform 100ms ease-out, box-shadow 100ms ease-out, background 180ms ease-out;
}
.bt-btn:hover { box-shadow: 0 6px 0 var(--bt-press); transform: translateY(-1px); }
.bt-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--bt-press); }
.bt-btn.ghost { color: var(--bt-text); background: var(--bt-surface-2); box-shadow: 0 5px 0 var(--bt-shadow), inset 0 0 0 1px var(--bt-line); }
.bt-btn.ghost:hover { box-shadow: 0 6px 0 var(--bt-shadow), inset 0 0 0 1px var(--bt-line); }
.bt-btn.ghost:active { box-shadow: 0 1px 0 var(--bt-shadow), inset 0 0 0 1px var(--bt-line); }
.bt-btn.small { min-height: 40px; padding: 0 15px; font-size: 14.5px; box-shadow: 0 4px 0 var(--bt-press); }
.bt-btn.small .ic { width: 18px; height: 18px; }
.bt-btn.big, .bt-btn.big-ghost { min-height: 64px; padding: 0 24px; font-size: 18px; }
.bt-btn.big { gap: 14px; text-align: start; }
.bt-btn.big .ic { width: 28px; height: 28px; }
.bt-btn .dl-text { display: grid; gap: 6px; }
.bt-btn .dl-text b { font: 800 19px/1 var(--bt-ui); }
.bt-btn .dl-text small { font: 600 12px/1 var(--bt-ui); letter-spacing: .06em; opacity: .88; }
[dir="rtl"] .bt-btn .dl-text small { letter-spacing: 0; font-size: 13px; }
.bt-btn.shake { animation: shake .5s; }
.dl-nav { gap: 8px; }

/* ---------- hero: the game's world behind, the launcher in front ---------- */
.bt-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(640px, calc(100vh - 20px), 800px); padding: 120px 0 180px; }
/* the world is tinted toward the brand's violet with one flat colour (multiply), and sinks into night as the page scrolls (an overlay whose opacity main.js sets): no gradient, no seam */
.bt-hero-tint { position: absolute; inset: 0; z-index: -2; background: var(--bt-press); mix-blend-mode: multiply; opacity: .42; pointer-events: none; }
.bt-hero-fade { position: absolute; inset: 0; z-index: 2; background: var(--bt-night); opacity: 0; pointer-events: none; }
.bt-hero .wrap { position: relative; z-index: 3; }
/* the hero ends in a hand-inked ridge, night below it */
.bt-edge { position: absolute; inset: auto 0 -1px 0; z-index: 2; display: block; width: 100%; height: clamp(44px, 6.2vw, 90px); fill: var(--bt-night); pointer-events: none; }
/* the poster: a hand-cut ink plate with the kit's hard shadow, a hair off true */
.bt-poster-wrap { max-width: 640px; filter: drop-shadow(8px 8px 0 var(--bt-shadow)); transform: rotate(-.5deg); }
[dir="rtl"] .bt-poster-wrap { transform: rotate(.5deg); }
.bt-poster { padding: clamp(30px, 3.6vw, 48px) clamp(28px, 3.6vw, 48px) clamp(30px, 3.4vw, 44px); background: var(--bt-night); clip-path: polygon(0.0% 0.29%, 3.85% 0.14%, 7.69% 0.59%, 11.54% 0.07%, 15.38% 0.48%, 19.23% 0.33%, 23.08% 0.05%, 26.92% 0.46%, 30.77% 0.03%, 34.62% 0.39%, 38.46% 0.06%, 42.31% 0.08%, 46.15% 0.38%, 50.0% 0.74%, 53.85% 0.11%, 57.69% 0.2%, 61.54% 0.56%, 65.38% 0.85%, 69.23% 0.52%, 73.08% 0.36%, 76.92% 0.88%, 80.77% 0.04%, 84.62% 0.77%, 88.46% 0.26%, 92.31% 0.13%, 96.15% 0.11%, 100.0% 0.28%, 99.85% 4.55%, 99.34% 9.09%, 99.67% 13.64%, 99.71% 18.18%, 99.5% 22.73%, 99.64% 27.27%, 99.25% 31.82%, 99.25% 36.36%, 99.36% 40.91%, 99.74% 45.45%, 99.54% 50.0%, 99.45% 54.55%, 99.67% 59.09%, 99.56% 63.64%, 99.44% 68.18%, 99.84% 72.73%, 99.76% 77.27%, 99.4% 81.82%, 99.66% 86.36%, 99.62% 90.91%, 99.9% 95.45%, 99.78% 100.0%, 96.15% 99.36%, 92.31% 99.98%, 88.46% 99.21%, 84.62% 99.48%, 80.77% 99.78%, 76.92% 99.24%, 73.08% 99.54%, 69.23% 99.14%, 65.38% 99.7%, 61.54% 99.79%, 57.69% 99.62%, 53.85% 99.89%, 50.0% 99.38%, 46.15% 99.73%, 42.31% 99.63%, 38.46% 99.62%, 34.62% 99.51%, 30.77% 99.86%, 26.92% 99.95%, 23.08% 99.53%, 19.23% 99.7%, 15.38% 99.15%, 11.54% 99.73%, 7.69% 99.68%, 3.85% 99.99%, 0.0% 99.84%, 0.23% 95.45%, 0.31% 90.91%, 0.53% 86.36%, 0.02% 81.82%, 0.37% 77.27%, 0.13% 72.73%, 0.09% 68.18%, 0.05% 63.64%, 0.61% 59.09%, 0.1% 54.55%, 0.2% 50.0%, 0.31% 45.45%, 0.7% 40.91%, 0.06% 36.36%, 0.36% 31.82%, 0.44% 27.27%, 0.71% 22.73%, 0.66% 18.18%, 0.69% 13.64%, 0.22% 9.09%, 0.33% 4.55%); }
.bt-h1 { margin: 0; line-height: 1; }
.bt-lockup { display: flex; align-items: center; gap: 18px; }
.bt-lockup .bt-flame { width: 76px; height: 76px; border-radius: 17px; }
.bt-lockup .wordmark { font-size: clamp(44px, 5.2vw, 68px); line-height: 1.05; }
[dir="rtl"] .bt-lockup .wordmark { font-size: clamp(48px, 6vw, 78px); line-height: 1.3; }
.bt-tagline { margin: 22px 0 8px; font: 800 clamp(22px, 2.5vw, 30px)/1.25 var(--bt-ui); color: var(--bt-text); }
[dir="rtl"] .bt-tagline { line-height: 1.5; }
.bt-sub { margin: 0; font: 500 17px/1.6 var(--bt-ui); color: var(--bt-muted); }
[dir="rtl"] .bt-sub { line-height: 1.9; font-size: 18px; }
.bt-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 16px; padding-bottom: 5px; }
.bt-cta.center { justify-content: center; }
.bt-note { margin: 0; font: 500 14px/1.6 var(--bt-ui); color: var(--bt-muted); }
.bt-note a, .bt-fine a, .steam-line a { color: var(--bt-lavender); text-underline-offset: 4px; }
.bt-note a:hover, .steam-line a:hover { color: var(--bt-text); }

/* ---------- the launcher, as a real window ---------- */
/* the screens rise over the hero's bottom by 150 px (half on the world, half on the page): the night ground starts where the hero ends */
.bt-peek { position: relative; z-index: 3; margin-top: -150px; padding: 0 0 clamp(44px, 6vw, 80px); scroll-margin-top: 60px; }
.bt-peek::before { content: ""; position: absolute; z-index: -1; inset: 150px 0 0 0; background: var(--bt-night); }
.bt-window { margin: 0 auto; max-width: 1040px; background: var(--bt-night); border: 1px solid var(--bt-line); border-radius: 10px; overflow: hidden; box-shadow: var(--bt-hard); }
.bt-window img { display: block; width: 100%; height: auto; }
.bt-facts { list-style: none; margin: 18px auto 0; padding: 0; max-width: 1180px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.bt-facts li { display: flex; align-items: center; gap: 9px; font: 600 15px/1.4 var(--bt-ui); color: var(--bt-text); }
.bt-facts .ic { color: var(--bt-lavender); width: 20px; height: 20px; }

/* ---------- sections ---------- */
.bt-sec { position: relative; padding: clamp(56px, 8vw, 104px) 0; background: var(--bt-night); color: var(--bt-text); font-family: var(--bt-ui); border-top: 1px solid var(--bt-line); }
.bt-sec.alt { background: var(--bt-surface-0); }
[dir="rtl"] .bt-sec { line-height: 1.9; }
.bt-head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 44px); }
.bt-head.center { margin-inline: auto; text-align: center; }
.bt-eyebrow { margin: 0 0 14px; font: 700 13px/1 var(--bt-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--bt-lavender); }
[dir="rtl"] .bt-eyebrow { letter-spacing: 0; font-size: 15px; text-transform: none; }
.bt-title { margin: 0 0 16px; font: 400 clamp(30px, 3.7vw, 46px)/1.15 var(--bt-title); letter-spacing: .03em; color: var(--bt-text); }
[dir="rtl"] .bt-title { font: 700 clamp(32px, 4.2vw, 50px)/1.5 var(--bt-title-ar); letter-spacing: 0; }
.bt-lead { margin: 0; max-width: 64ch; font: 500 clamp(17px, 1.7vw, 19.5px)/1.7 var(--bt-ui); color: var(--bt-muted); }
.bt-head.center .bt-lead { margin-inline: auto; }
.bt-fine { margin: 24px 0 0; max-width: 84ch; font: 500 14px/1.65 var(--bt-ui); color: var(--bt-muted); }
.wrap.narrow { width: min(100% - 40px, 820px); }
.wrap.wide { width: min(100% - 40px, 1300px); }

/* the Shop's pictures */
.bt-collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bt-shot { position: relative; grid-column: span 3; margin: 0; overflow: hidden; background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 8px; box-shadow: 5px 5px 0 var(--bt-shadow); transform: rotate(var(--tilt, 0deg)); }
.bt-shot:nth-child(odd) { --tilt: -.3deg; } .bt-shot:nth-child(even) { --tilt: .3deg; }
[dir="rtl"] .bt-shot:nth-child(odd) { --tilt: .3deg; } [dir="rtl"] .bt-shot:nth-child(even) { --tilt: -.3deg; }
.bt-shot.s-big { grid-column: span 6; grid-row: span 2; --tilt: -.4deg; }
[dir="rtl"] .bt-shot.s-big { --tilt: .4deg; }
.bt-shot img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bt-shot.s-big img { aspect-ratio: auto; min-height: 100%; }
.bt-shot figcaption { position: absolute; inset-inline-start: 10px; bottom: 10px; display: grid; gap: 2px; padding: 6px 10px 7px; background: var(--bt-night); border: 1px solid var(--bt-line); border-radius: 6px; line-height: 1.25; }
.bt-shot figcaption b { font: 700 14px/1.25 var(--bt-ui); color: var(--bt-text); }
.bt-shot figcaption span { font: 600 11.5px/1.2 var(--bt-ui); color: var(--bt-lavender); }
.bt-chips { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bt-chips li { padding: 7px 14px; font: 600 14px/1.3 var(--bt-ui); color: var(--bt-text); background: var(--bt-surface-2); border: 1px solid var(--bt-line); border-radius: 999px; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-areas: "head card" "steps card"; column-gap: clamp(28px, 5vw, 64px); align-items: start; }
.dl-head { grid-area: head; } .steps { grid-area: steps; } .dl-card { grid-area: card; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: start; }
.steps li::before { content: counter(step); grid-row: 1 / span 2; width: 52px; height: 52px; display: grid; place-items: center; font: 800 22px/1 var(--bt-ui); color: #fff; background: var(--bt-violet); border-radius: 10px; box-shadow: 0 4px 0 var(--bt-press); }
.steps b { font: 800 20px/1.3 var(--bt-ui); color: var(--bt-text); align-self: end; }
.steps span { color: var(--bt-muted); font-size: 16.5px; line-height: 1.6; }
.dl-card { display: grid; gap: 20px; padding: clamp(22px, 3vw, 30px); background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 8px; box-shadow: var(--bt-hard); transform: rotate(.3deg); }
[dir="rtl"] .dl-card { transform: rotate(-.3deg); }
.dl-card-head { display: flex; align-items: center; gap: 16px; }
.dl-card-head .bt-flame { width: 64px; height: 64px; border-radius: 14px; }
.dl-card h3 { margin: 0; font: 800 clamp(21px, 2.4vw, 26px)/1.25 var(--bt-ui); color: var(--bt-text); }
.dl-ver { margin: 4px 0 0; font: 600 14.5px/1.3 var(--bt-ui); color: var(--bt-lavender); }
.dl-card .bt-btn.big { width: 100%; }
.specs { margin: 0; display: grid; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--bt-line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--bt-muted); font-weight: 600; }
.specs dd { margin: 0; color: var(--bt-text); font-weight: 700; text-align: end; }
.help { border: 1px solid var(--bt-line); border-radius: 8px; background: var(--bt-surface-0); }
.help summary, .bt-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.help summary { padding: 13px 16px; font: 700 15.5px/1.4 var(--bt-ui); color: var(--bt-text); }
.help summary::-webkit-details-marker, .bt-faq summary::-webkit-details-marker { display: none; }
.help summary::after, .bt-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; font: 600 20px/1 var(--bt-ui); color: var(--bt-lavender); background: var(--bt-surface-2); border: 1px solid var(--bt-line); border-radius: 8px; }
details[open] > summary::after { content: "−"; }
.help-body { padding: 0 16px 16px; color: var(--bt-muted); font-size: 15.5px; }
.help-body p { margin: 0 0 12px; }
.help-body ol { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 6px; }
.help-body b { color: var(--bt-text); }
.hash-row { display: grid; gap: 8px; }
code { font: 600 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--bt-night); color: var(--bt-lavender); padding: 3px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.hash-row code { display: block; padding: 10px 12px; }
.copy { justify-self: start; cursor: pointer; font: 700 13.5px/1 var(--bt-ui); color: var(--bt-text); background: var(--bt-surface-2); border: 1px solid var(--bt-line); border-radius: 8px; padding: 9px 14px; min-height: 40px; box-shadow: 0 3px 0 var(--bt-shadow); }
.copy:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--bt-shadow); }
.steam-line { margin: 0; color: var(--bt-muted); font-size: 15px; }

/* ---------- the carousel: the launcher's screens, the current one centred, its neighbours showing at the sides ---------- */
.bt-car { position: relative; --sgn: -1; --sw: min(1040px, 74vw); --gap: clamp(16px, 2.4vw, 32px); }
[dir="rtl"] .bt-car { --sgn: 1; }
.bt-viewport { overflow: hidden; padding: 6px 0 14px; }
.bt-track { display: flex; gap: var(--gap); padding-inline: calc((100% - var(--sw)) / 2); transform: translateX(calc(var(--i, 0) * (var(--sw) + var(--gap)) * var(--sgn))); transition: transform 560ms cubic-bezier(.2, .8, .2, 1); }
.bt-slide { flex: 0 0 var(--sw); min-width: 0; display: grid; gap: 20px; align-content: start; cursor: pointer; opacity: .5; transform: scale(.9); transform-origin: 50% 0; transition: opacity 560ms ease-out, transform 560ms cubic-bezier(.2, .8, .2, 1); }
.bt-slide.on { opacity: 1; transform: none; cursor: default; }
.bt-slide .bt-window { max-width: none; width: calc(100% - 8px); margin: 0; } /* the hard shadow (8 px, to the right) stays inside the slide */
.bt-cap { display: grid; justify-items: center; gap: 4px; text-align: center; opacity: 0; transition: opacity 360ms ease-out; }
.bt-slide.on .bt-cap { opacity: 1; transition-delay: 160ms; }
.bt-cap h3 { margin: 0; font: 800 24px/1.3 var(--bt-ui); color: var(--bt-text); }
.bt-cap p { margin: 0; font: 500 17px/1.6 var(--bt-ui); color: var(--bt-muted); }
.bt-arrow { position: absolute; top: calc(6px + var(--sw) * .3 - 24px); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff; background: var(--bt-violet); border: 0; border-radius: 10px; box-shadow: 0 4px 0 var(--bt-press); transition: transform 100ms ease-out, box-shadow 100ms ease-out; }
.bt-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .bt-arrow svg { scale: -1 1; }
.bt-arrow:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bt-press); }
.bt-arrow.prev { inset-inline-start: clamp(8px, 2vw, 28px); } .bt-arrow.next { inset-inline-end: clamp(8px, 2vw, 28px); }
.bt-dots { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.bt-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--bt-line); cursor: pointer; transition: width 180ms ease-out, background 180ms ease-out; }
.bt-dots button::after { content: ""; position: absolute; inset: -14px -5px; }
.bt-dots button.on { width: 30px; background: var(--bt-violet); }
.bt-fine.center { text-align: center; margin-inline: auto; }
.bt-ticks { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; }
.bt-ticks li { display: flex; align-items: center; gap: 11px; font: 600 15.5px/1.5 var(--bt-ui); color: var(--bt-text); }
.bt-ticks .ic { width: 22px; height: 22px; color: var(--bt-lavender); fill: none; }

/* ---------- the games, last: a game page inside the launcher, then the game in its own look (style.css) ---------- */
.game-zone { background: var(--bg); border-top: 1px solid var(--bt-line); }
.games-bridge { position: relative; padding: clamp(56px, 8vw, 100px) 0 clamp(36px, 5vw, 64px); color: var(--bt-text); font-family: var(--bt-ui); }
.gb-head { max-width: 640px; margin-bottom: 30px; }
.gb-head .bt-title { margin-bottom: 10px; }
.gb-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px); margin-bottom: clamp(28px, 4vw, 44px); padding: clamp(24px, 4vw, 44px); overflow: hidden; background: var(--bt-surface) url("../img/hero-castle-sm.webp?v=1") center 35% / cover no-repeat; border: 1px solid var(--bt-line); border-radius: 8px; box-shadow: var(--bt-hard); isolation: isolate; }
.gb-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bt-night); opacity: .62; }
.gb-art img { width: min(380px, 100%); filter: drop-shadow(4px 6px 0 rgba(12, 12, 24, .85)); }
.gb-meta { display: grid; gap: 22px; justify-items: start; }
.gb-meta .badges { margin: 0; }
.game-zone .eyebrow { color: var(--gold); }

/* ---------- FAQ ---------- */
.bt-faq { display: grid; gap: 10px; }
.bt-faq details { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 8px; }
.bt-faq summary { padding: 17px 20px; font: 700 18px/1.4 var(--bt-ui); color: var(--bt-text); }
.bt-faq details[open] { background: var(--bt-surface-2); box-shadow: 0 4px 0 var(--bt-shadow); }
.bt-faq details p { margin: 0; padding: 0 20px 20px; color: var(--bt-muted); font-size: 16.5px; line-height: 1.7; }

/* ---------- community ---------- */
.comm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 3.5vw, 40px); align-items: stretch; }
.bt-card { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 8px; box-shadow: 5px 5px 0 var(--bt-shadow); padding: clamp(22px, 3vw, 32px); min-width: 0; }
.comm-card { display: flex; flex-direction: column; gap: 14px; }
.comm-card h3 { margin: 0; font: 800 clamp(22px, 2.4vw, 28px)/1.3 var(--bt-ui); color: var(--bt-text); }
.comm-card p { margin: 0; color: var(--bt-muted); }
.bt-tag { align-self: flex-start; padding: 6px 11px 5px; font: 700 12px/1 var(--bt-ui); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--bt-violet); border-radius: 6px; }
.bt-tag.soft { color: var(--bt-lavender); background: var(--bt-surface-2); box-shadow: inset 0 0 0 1px var(--bt-line); }
[dir="rtl"] .bt-tag { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.comm-card .stack { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; padding: 8px 0 5px; }
.bt-btn.steam { position: relative; min-height: 64px; padding: 0 24px; cursor: not-allowed; opacity: .92; }
.bt-btn.steam .soon { position: relative; margin-inline-start: 4px; padding: 4px 8px 3px; font: 800 11px/1 var(--bt-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bt-night); background: var(--bt-ivory); border-radius: 5px; }
[dir="rtl"] .bt-btn.steam .soon { letter-spacing: 0; font-size: 12px; text-transform: none; }
.form { display: grid; gap: 14px; margin-top: 2px; }
.field { position: relative; }
.field input[type=email] { width: 100%; height: 56px; padding: 0 18px; font: 600 17px var(--bt-ui); color: var(--bt-text); background: var(--bt-surface-0); border: 1px solid var(--bt-line); border-radius: 8px; transition: border-color 180ms ease-out; }
.field input::placeholder { color: var(--bt-muted); }
.field input:focus { outline: none; border-color: var(--bt-lavender); box-shadow: 0 0 0 2px var(--bt-lavender); }
.field.err input { border-color: var(--bt-ember); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .bt-btn { width: 100%; }
.form .bt-btn[disabled] { opacity: .65; cursor: progress; }
.form-msg { min-height: 26px; font: 600 15.5px/1.5 var(--bt-ui); color: var(--bt-text); }
.form-msg.ok::before, .form-msg.bad::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 9px; border-radius: 50%; }
.form-msg.ok::before { background: var(--bt-lavender); } .form-msg.bad::before { background: var(--bt-ember); }
.fine { margin: 0; font-size: 14px; color: var(--bt-muted); }
.toast { position: fixed; z-index: 120; inset-inline: 0; bottom: 28px; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); padding: 14px 20px; background: var(--bt-surface-2); color: var(--bt-text); border: 1px solid var(--bt-line); border-radius: 8px; box-shadow: 5px 5px 0 var(--bt-shadow); font: 600 16px/1.4 var(--bt-ui); transform: translateY(160%); transition: transform 180ms ease-out; text-align: center; }
.toast.show { transform: translateY(0); }

/* ---------- footer ---------- */
.bt-foot { position: relative; padding: 52px 0 34px; background: var(--bt-surface-0); border-top: 1px solid var(--bt-line); color: var(--bt-text); font-family: var(--bt-ui); }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.foot .brand { margin-bottom: 14px; margin-inline-end: 0; }
.foot p { margin: 0; color: var(--bt-muted); font-size: 15.5px; max-width: 46ch; }
.foot h4 { margin: 0 0 14px; font: 700 12.5px/1 var(--bt-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--bt-lavender); }
[dir="rtl"] .foot h4 { letter-spacing: 0; font-size: 15px; text-transform: none; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--bt-muted); text-decoration: none; font-size: 16px; }
.foot a:hover { color: var(--bt-text); text-decoration: underline; text-decoration-color: var(--bt-violet); text-underline-offset: 4px; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--bt-line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--bt-muted); font-size: 14px; }

/* ---------- the phone's download bar ---------- */
.dock { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .burger { display: block; }
  .nav-links { position: absolute; inset: 100% 16px auto 16px; flex-direction: column; background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 8px; box-shadow: var(--bt-hard); padding: 8px; display: none; margin-top: 10px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 17px; }
  .nav-links a.active { box-shadow: inset 3px 0 0 var(--bt-violet); border-radius: 8px; }
  [dir="rtl"] .nav-links a.active { box-shadow: inset -3px 0 0 var(--bt-violet); }
}
@media (max-width: 900px) {
  .dl-grid { grid-template-columns: 1fr; grid-template-areas: "head" "card" "steps"; row-gap: 14px; }
  .gb-card { grid-template-columns: 1fr; }
  .bt-car { --sw: 90vw; --gap: 12px; }
  .bt-arrow { top: auto; bottom: -16px; width: 44px; height: 44px; } /* on a phone the arrows sit beside the dots, not over the picture */
  .bt-facts { margin-top: 38px; }
  .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; }
  .comm-grid { grid-template-columns: 1fr; }
  .dl-nav { display: none; }
  .dock { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bt-night); border-top: 1px solid var(--bt-line); transform: translateY(115%); visibility: hidden; transition: transform 180ms ease-out, visibility 0s 180ms; }
  .dock.show { transform: none; visibility: visible; transition: transform 180ms ease-out; }
  .dock .bt-btn.big { width: 100%; min-height: 58px; }
  .bt-foot { padding-bottom: 96px; }
  .bt-hero { padding-bottom: 150px; }
  .bt-peek { margin-top: -110px; } .bt-peek::before { inset-block-start: 110px; }
}
@media (max-width: 700px) {
  .bt-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bt-shot, .bt-shot.s-big { grid-column: span 1; grid-row: auto; }
  .bt-shot.s-big { grid-column: span 2; }
  .bt-shot.s-big img { aspect-ratio: 16 / 9; min-height: 0; }
  .bt-shot figcaption { inset-inline-start: 6px; bottom: 6px; padding: 4px 7px 5px; }
  .bt-shot figcaption b { font-size: 12.5px; } .bt-shot figcaption span { font-size: 10.5px; }
  .bt-facts { justify-content: flex-start; margin-top: 26px; }
}
@media (max-width: 600px) {
  .bt-hero { padding: 92px 0 130px; }
  .bt-poster { max-width: none; }
  .bt-lockup .bt-flame { width: 56px; height: 56px; border-radius: 13px; }
  .bt-cta { flex-direction: column; align-items: stretch; }
  .bt-cta .bt-btn { width: 100%; }
  .foot { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 44px 1fr; column-gap: 14px; }
  .steps li::before { width: 44px; height: 44px; font-size: 19px; }
  .bt-faq summary { font-size: 16.5px; padding: 15px 16px; }
  .bt-faq details p { padding: 0 16px 16px; }
  .specs > div { flex-direction: column; gap: 2px; } .specs dd { text-align: start; }
  .comm-card .stack .bt-btn { width: 100%; }
}
@media (max-width: 480px) {
  .nav .wrap { gap: 10px; }
  .brand { gap: 8px; } .brand .bt-flame { width: 38px; height: 38px; border-radius: 9px; }
  .wordmark { font-size: 22px; letter-spacing: .04em; } [dir="rtl"] .wordmark { font-size: 23px; }
  .brand small { font-size: 9.5px; letter-spacing: .16em; }
  .lang button { padding: 7px 9px; font-size: 12.5px; }
  .burger { width: 42px; height: 42px; }
}
@media (max-width: 400px) {
  .bt-poster { padding: 20px 18px; }
  .bt-lockup { gap: 12px; align-items: center; }
  .bt-lockup .bt-flame { width: 48px; height: 48px; border-radius: 11px; }
  .bt-lockup .wordmark { font-size: 34px; white-space: normal; }
  [dir="rtl"] .bt-lockup .wordmark { font-size: 36px; }
}
@media (max-width: 360px) {
  .nav .wrap { gap: 6px; width: min(100% - 24px, var(--maxw)); }
  .brand { gap: 6px; } .brand .bt-flame { width: 32px; height: 32px; border-radius: 8px; }
  .wordmark { font-size: 18px; letter-spacing: .02em; } [dir="rtl"] .wordmark { font-size: 20px; }
  .brand small { display: none; }
  .lang button { padding: 7px 7px; font-size: 12px; }
  .burger { width: 38px; height: 38px; } .burger i, .burger i::before, .burger i::after { inset-inline: 8px; } .burger i { top: 18px; }
}
.game-zone section { padding-block: clamp(40px, 6vw, 76px); } .game-zone .games-bridge { padding-block: clamp(56px, 8vw, 96px) clamp(28px, 4vw, 48px); }

/* ---------- the opening: the launcher's own logo animation (assets/js/loader.js) over the page while it loads ---------- */
.bt-loader { display: none; }
.bt-booting { overflow: hidden; }
.bt-booting .bt-loader, .bt-loader.out { display: block; position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: var(--bt-night); direction: ltr; transition: opacity 320ms ease-out; }
.bt-loader.out { opacity: 0; pointer-events: none; }
.bt-loader .hub-boot__stage { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: 1920px; block-size: 1080px; transform: translate(-50%, -50%) scale(var(--hub-boot-k, 1)); transform-origin: 50% 50%; opacity: 0; }
.bt-loader.on .hub-boot__stage { opacity: 1; }
.bt-loader .hub-boot__cam { position: absolute; inset: 0; transform-origin: 50% 50%; }
.bt-loader .hub-boot__svg { position: absolute; inset-block-start: 0; inset-inline-start: 0; display: block; overflow: visible; }
.bt-loader .hub-boot__word { position: absolute; display: flex; flex-direction: column; align-items: flex-start; }
.bt-loader .hub-boot__en { font-family: var(--bt-title); line-height: 1.1; white-space: nowrap; color: var(--bt-ivory); }
.bt-loader .hub-boot__ch { display: inline-block; white-space: pre; opacity: 0; }
.bt-loader .hub-boot__en-sub { margin-block-start: 14px; font-family: var(--bt-title); letter-spacing: .32em; line-height: 1.2; white-space: nowrap; color: var(--bt-lavender); opacity: 0; }
.bt-loader .hub-boot__ar { font-family: var(--bt-title-ar); font-weight: 700; line-height: 1.35; white-space: nowrap; color: var(--bt-lavender); opacity: 0; }
.bt-loader .hub-boot__ar-sub { margin-block-start: 10px; font-family: var(--bt-ui); font-weight: 600; line-height: 1.3; white-space: nowrap; color: var(--bt-ivory); opacity: 0; }
.bt-skip { position: absolute; z-index: 2; inset-block-end: max(22px, env(safe-area-inset-bottom)); inset-inline-end: 22px; min-height: 44px; padding: 0 18px; background: none; border: 1px solid var(--bt-line); border-radius: 10px; color: var(--bt-muted); font: 600 15px/1 var(--bt-ui); cursor: pointer; }
.bt-skip:hover, .bt-skip:focus-visible { color: var(--bt-text); border-color: var(--bt-violet); }
.bt-skip:focus-visible { outline: 3px solid var(--bt-lavender); outline-offset: 3px; }
.bt-viewport { touch-action: pan-y; }
.bt-car.jump .bt-track { transition-duration: 900ms; }
@media (prefers-reduced-motion: reduce) { .bt-track, .bt-slide, .bt-cap { transition: none; } .bt-loader { transition: none; } }
