/* cheerquake.com: the app's colours (src/renderer/styles.css), from the logo: deep navy, electric blue, orange.
   Logical properties only, so the Arabic pages (dir="rtl") mirror by themselves. Everything shows without
   JavaScript; assets/site.js only adds motion (and none when the visitor asks for reduced motion). */
:root {
  color-scheme: dark;
  --bg: #060a15;
  --bg-2: #0a1020;
  --panel: #0d1429;
  --panel-2: #121b34;
  --border: #1b2646;
  --border-2: #283658;
  --text: #eef3fb;
  --text-2: #b4c0d8;
  --muted: #7886a5;
  --accent: #ff8a1f;
  --accent-hover: #ffa04a;
  --accent-soft: rgba(255, 138, 31, 0.14);
  --accent-text: #ffffff;
  --accent-grad: linear-gradient(180deg, #ffa23a 0%, #ff7d16 52%, #f0600a 100%);
  --cyan: #2ea8ff;
  --cyan-soft: rgba(46, 168, 255, 0.13);
  --ok: #2fd16f;
  --brand-line: linear-gradient(90deg, transparent, rgba(46, 168, 255, 0.7) 18%, rgba(160, 200, 255, 0.55) 50%, rgba(255, 138, 31, 0.7) 82%, transparent);
  --radius: 18px;
  --wrap: 1140px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
:lang(ar) { --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; --font-display: var(--font); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); overflow-x: hidden; }
:lang(ar) body { line-height: 1.85; }
img { max-width: 100%; display: block; }
/* Pictures can't be dragged out, selected or saved with a long press (site.js blocks the right-click menu). */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(6, 10, 21, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block-end: 1px solid var(--border); }
.top::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--brand-line); pointer-events: none; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 6px rgba(46, 168, 255, 0.28)); }
.wordmark { font-style: italic; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.wordmark > span { background-clip: text; -webkit-background-clip: text; color: transparent; }
.wordmark > .b-quake { padding-inline-end: 3px; }
.wordmark.ar { font-style: normal; font-size: 20px; letter-spacing: 0; direction: rtl; }
.b-cheer { background-image: linear-gradient(180deg, #ffffff 0%, #d5ddec 52%, #93a1bd 100%); }
.b-quake { background-image: linear-gradient(180deg, #ffd46e 0%, #ff9a22 50%, #ff6a0b 100%); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text-2); padding: 7px 11px; border-radius: 10px; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a.lang { border: 1px solid var(--border-2); color: var(--text); }
.nav a.nav-cta { background: var(--accent-grad); color: var(--accent-text); font-weight: 700; text-shadow: 0 1px 2px rgba(110, 38, 0, 0.45); margin-inline-start: 6px; }
.nav a.nav-cta:hover { background: var(--accent-grad); filter: brightness(1.08); }
@media (max-width: 760px) {
  .nav .opt { display: none; }
  .top .wrap { gap: 10px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
}

/* ---------- Buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 13px; font-weight: 700; font-size: 16px; border: 1px solid transparent; font-family: inherit; cursor: pointer; transition: transform 0.15s, filter 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--accent-grad); color: var(--accent-text); text-shadow: 0 1px 2px rgba(110, 38, 0, 0.45); box-shadow: 0 10px 26px -10px rgba(255, 122, 18, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--border-2); color: var(--text); background: rgba(13, 20, 41, 0.6); }
.btn.ghost:hover { border-color: rgba(46, 168, 255, 0.55); background: var(--panel-2); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; font-size: 14px; border: 1px solid rgba(255, 138, 31, 0.25); }
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 138, 31, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 138, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 31, 0); } }

/* ---------- Hero ---------- */
/* The hero spans the whole width and clips its glow and sparks, so they never widen the page. */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 34px 0 64px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(640px 360px at 64% 18%, rgba(255, 138, 31, 0.2), transparent 70%),
              radial-gradient(620px 360px at 34% 28%, rgba(46, 168, 255, 0.2), transparent 70%),
              linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-logo-wrap { position: relative; width: min(520px, 88%); margin: 0 auto 4px; }
.hero-logo-wrap::before { content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle at 38% 50%, rgba(46, 168, 255, 0.45), transparent 60%), radial-gradient(circle at 64% 46%, rgba(255, 138, 31, 0.45), transparent 60%); filter: blur(34px); z-index: -1; animation: glow 4.5s ease-in-out infinite; }
.hero-logo { width: 100%; height: auto; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-0.6deg); } }
@keyframes glow { 50% { opacity: 0.55; transform: scale(1.08); } }
h1 { font: 800 clamp(34px, 6vw, 60px)/1.1 var(--font-display); margin: 14px auto 16px; max-width: 840px; letter-spacing: -0.02em; }
:lang(ar) h1 { letter-spacing: 0; line-height: 1.3; }
h1 em { font-style: normal; background: linear-gradient(180deg, #ffd46e 0%, #ff9a22 55%, #ff6a0b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 720px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: -18px; position: relative; z-index: 2; }
.stat { background: linear-gradient(180deg, rgba(18, 27, 52, 0.9), rgba(13, 20, 41, 0.9)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.stat b { display: block; font: 800 clamp(28px, 4vw, 40px)/1.1 var(--font-display); background: linear-gradient(90deg, #7cc4ff, #2ea8ff 40%, #ff9a22 60%, #ffb048); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; direction: ltr; }
.stat span { color: var(--text-2); font-size: 15px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sections ---------- */
section { padding: 72px 0; position: relative; }
h2 { font: 800 clamp(27px, 3.8vw, 40px)/1.2 var(--font-display); margin: 0 0 10px; text-align: center; }
section > .wrap > h2::after { content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: linear-gradient(90deg, #2ea8ff, #ff8a1f); }
.sub { color: var(--text-2); text-align: center; max-width: 680px; margin: 0 auto 36px; }
.alt { background: radial-gradient(700px 300px at 50% 0%, rgba(46, 168, 255, 0.07), transparent 70%), var(--bg-2); border-block: 1px solid var(--border); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px 220px at var(--mx, 50%) var(--my, 0%), rgba(46, 168, 255, 0.14), transparent 70%); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.card:hover { border-color: rgba(46, 168, 255, 0.45); box-shadow: 0 16px 36px -18px rgba(46, 168, 255, 0.55); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 14px 0 6px; font-size: 19px; position: relative; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; position: relative; }
.icon { position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(46, 168, 255, 0.25); }
.icon.orange { background: var(--accent-soft); color: var(--accent); border-color: rgba(255, 138, 31, 0.28); }
.icon svg { width: 25px; height: 25px; }
/* The last feature card fills its row (7 cards: 3 + 3 + 1, or 2 + 2 + 2 + 1), icon beside its text. */
.card.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.card.wide .icon { flex: none; width: 56px; height: 56px; }
.card.wide h3 { margin-top: 0; }
.card .tag { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; font-size: 12px; font-weight: 700; color: var(--accent-hover); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 16%; top: 46px; height: 2px; background: linear-gradient(90deg, rgba(46, 168, 255, 0.6), rgba(255, 138, 31, 0.6)); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.step .num { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font: 800 34px var(--font-display); color: #fff; background: radial-gradient(circle at 35% 30%, #1d2c52, var(--panel)); border: 2px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 2px rgba(46, 168, 255, 0.5), 0 0 24px rgba(46, 168, 255, 0.25); }
.step:nth-child(2) .num { box-shadow: 0 0 0 2px rgba(160, 200, 255, 0.5), 0 0 24px rgba(160, 200, 255, 0.2); }
.step:nth-child(3) .num { box-shadow: 0 0 0 2px rgba(255, 138, 31, 0.6), 0 0 24px rgba(255, 138, 31, 0.25); }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }
/* "How it works" plays once it is on screen (site.js): step 1 lights up, the line runs to 2, then to 3. */
.steps.seq::before { transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .steps.seq::before { transform-origin: right center; }
.steps.seq.go::before { animation: stepline 2.2s 0.35s linear forwards; }
@keyframes stepline { to { transform: scaleX(1); } }
.steps.seq .step { opacity: 0.18; transform: translateY(14px) scale(0.96); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1); }
.steps.seq .step.lit { opacity: 1; transform: none; }
.steps.seq .step.lit .num { animation: numpop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes numpop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.6), 0 0 40px rgba(255, 138, 31, 0.6); } 100% { transform: none; } }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 26px; } .steps::before { display: none; } }

/* ---------- "Watch a gift land": one game after another (Elden Ring, Minecraft, GTA V, Palworld) ----------
   Each scene is a LIVE panel and a game screen. Without JavaScript the first scene shows; site.js plays the gifts,
   moves on to the next game when one ends, and lets the visitor pick a game with the tabs or the arrows. */
.stage-tabs { display: none; align-items: center; gap: 8px; justify-content: center; margin: -8px 0 22px; }
.js .stage-tabs { display: flex; }
.st-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.st-list::-webkit-scrollbar { display: none; }
.st-tab { position: relative; display: inline-flex; align-items: center; gap: 9px; padding-block: 6px; padding-inline: 6px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel); color: var(--text-2); font: 700 14px var(--font); cursor: pointer; white-space: nowrap; overflow: hidden; transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s; }
.st-tab img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; background: radial-gradient(circle, rgba(46, 168, 255, 0.28), transparent 70%); }
.st-tab:hover { color: var(--text); border-color: rgba(46, 168, 255, 0.55); transform: translateY(-1px); }
.st-tab[aria-selected="true"] { color: #fff; border-color: rgba(255, 138, 31, 0.75); background: linear-gradient(180deg, rgba(255, 138, 31, 0.2), rgba(255, 138, 31, 0.06)); }
.st-tab i, .sh-tab i { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, #2ea8ff, #ff8a1f); }
[dir="rtl"] .st-tab i, [dir="rtl"] .sh-tab i { background: linear-gradient(270deg, #2ea8ff, #ff8a1f); }
.st-tab[aria-selected="true"] i, .sh-tab[aria-selected="true"] i { animation: stfill var(--dur, 9s) linear forwards; }
.paused .st-tab i, .paused .sh-tab i { animation-play-state: paused; }
@keyframes stfill { to { width: 100%; } }
.st-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.st-arrow:hover { border-color: rgba(255, 138, 31, 0.7); transform: scale(1.06); }
.st-arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .st-arrow svg { transform: scaleX(-1); }
.scene + .scene { display: none; }
.js .scene { display: none; }
.js .scene.on { display: block; animation: scenein 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes scenein { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

.demo { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.3fr); align-items: center; gap: 0; position: relative; }
.live { background: var(--panel); border: 1px solid var(--border-2); border-radius: 22px; padding: 16px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8); }
.live-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.live-head .rec { background: #ff4d5e; color: #fff; padding: 2px 9px; border-radius: 6px; font-size: 12px; letter-spacing: 0.04em; }
.live-head .game-name { color: var(--text-2); font-weight: 700; }
.live-head .views { color: var(--muted); margin-inline-start: auto; font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); font-size: 15px; transition: border-color 0.25s, background 0.25s, transform 0.25s; }
.feed li .g { font-size: 22px; line-height: 1; width: 30px; text-align: center; flex: none; }
.feed li .what { color: var(--text-2); }
.feed li .does { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--accent-hover); white-space: nowrap; }
.feed li.on { border-color: rgba(255, 138, 31, 0.7); background: rgba(255, 138, 31, 0.1); transform: scale(1.02); }
.beam { height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(46, 168, 255, 0.15), rgba(255, 138, 31, 0.5)); margin: 0 6px; position: relative; }
[dir="rtl"] .beam { background: linear-gradient(270deg, rgba(46, 168, 255, 0.15), rgba(255, 138, 31, 0.5)); }

.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid var(--border-2); box-shadow: 0 24px 50px -26px rgba(46, 168, 255, 0.55); }
.scenery { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.screen::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(4, 7, 16, 0.5)); z-index: 1; pointer-events: none; }
/* The pictures keep their own shape: the height follows the width (they are square drawings). */
.screen img { height: auto; aspect-ratio: 1; object-fit: contain; }
.screen .hero-pic { position: absolute; bottom: 6%; inset-inline-start: 5%; width: 25%; z-index: 2; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); transform-origin: 50% 100%; }
.js .screen .hero-pic { animation: idle 3.4s ease-in-out infinite; }
@keyframes idle { 50% { transform: translateY(-3px) scaleY(1.015); } }
.sc-elden { background: radial-gradient(60% 60% at 70% 20%, rgba(255, 214, 110, 0.45), transparent 70%), linear-gradient(180deg, #2b1e40 0%, #6d4256 42%, #c98a52 70%, #3a2a24 100%); }
.sc-mc { background: linear-gradient(180deg, #6fb8ff 0%, #a6d8ff 62%, #d6f0ff 100%); }
.sc-gta { background: radial-gradient(50% 50% at 28% 62%, rgba(255, 207, 107, 0.55), transparent 70%), linear-gradient(180deg, #2b1856 0%, #8a2d72 40%, #ff7a4a 72%, #ffb35a 100%); }
.sc-pal { background: radial-gradient(60% 50% at 78% 12%, rgba(255, 255, 220, 0.7), transparent 60%), linear-gradient(180deg, #4fa3f0 0%, #9fd3ff 60%, #e3f5ff 100%); }
.hud { position: absolute; inset-block-start: 12px; inset-inline: 14px; display: flex; align-items: center; gap: 10px; z-index: 5; font-size: 13px; font-weight: 700; }
.hp { flex: 1; max-width: 46%; height: 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.25); }
.hp i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, #ff4d5e, #ff8a8a); border-radius: inherit; transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.3s; }
.hp.full i { background: linear-gradient(90deg, #2fd16f, #8affb7); }
.timer { margin-inline-start: auto; background: rgba(6, 10, 21, 0.75); color: #fff; border: 1px solid rgba(46, 168, 255, 0.5); padding: 3px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; direction: ltr; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.timer.up { transform: scale(1.18); border-color: #7cc4ff; box-shadow: 0 0 18px rgba(124, 196, 255, 0.7); }
.screen.shake { animation: shake 0.5s; }
@keyframes shake { 15% { transform: translate(-7px, 2px); } 30% { transform: translate(6px, -3px); } 45% { transform: translate(-5px, 2px); } 60% { transform: translate(4px, -1px); } 80% { transform: translate(-2px, 1px); } }
/* Without JavaScript the effects stay listed under the game. */
.fx-list { position: absolute; inset-block-end: 10px; inset-inline: 12px; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.js .fx-list { display: none; }
.fx { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(6, 10, 21, 0.8); color: #ffd28a; border: 1px solid var(--border-2); }

/* The effects site.js puts on the game screen. left: 50% with translateX(-50%) centres them in both directions. */
.say { position: absolute; top: 17%; left: 50%; z-index: 7; margin: 0; padding: 8px 18px; border-radius: 999px; white-space: nowrap; font-weight: 900; font-size: clamp(14px, 2vw, 21px); background: rgba(6, 10, 21, 0.86); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); color: #ffd28a; transform: translateX(-50%) scale(0.6); opacity: 0; pointer-events: none; }
.say.heal { color: #6dffa6; } .say.time { color: #8fd0ff; } .say.drop, .say.strike { color: #ffb048; } .say.rain { color: #ffe27a; }
.say.pop { animation: sayp 1.7s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
@keyframes sayp { 14% { opacity: 1; transform: translateX(-50%) scale(1.1); } 24% { opacity: 1; transform: translateX(-50%) scale(1); } 78% { opacity: 1; transform: translateX(-50%) translateY(-10px); } 100% { opacity: 0; transform: translateX(-50%) translateY(-22px); } }
.ring { position: absolute; left: 50%; top: 48%; height: 76%; aspect-ratio: 1; z-index: 4; border-radius: 50%; transform: translate(-50%, -50%) scale(0); pointer-events: none; }
.ring::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 0deg, #ff8a1f, #ffd46e, #2ea8ff, #b06bff, #ff8a1f); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: spin 2.4s linear infinite; filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.9)); }
.ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 60%, rgba(255, 138, 31, 0.32), rgba(20, 8, 30, 0.82) 62%, rgba(6, 3, 14, 0.92)); box-shadow: 0 0 40px rgba(255, 138, 31, 0.45), inset 0 0 30px rgba(0, 0, 0, 0.6); }
@keyframes spin { to { transform: rotate(360deg); } }
.ring img { position: absolute; left: 11%; bottom: 17%; width: 78%; z-index: 1; opacity: 0; transform: translateY(35%) scale(0.45); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7)); }
.ring .rsay { position: absolute; left: 50%; bottom: 7%; z-index: 2; margin: 0; padding: 5px 13px; border-radius: 999px; white-space: nowrap; font-weight: 900; font-size: clamp(11px, 1.6vw, 16px); color: #ffb048; background: rgba(6, 10, 21, 0.9); border: 1px solid rgba(255, 176, 72, 0.55); transform: translateX(-50%) scale(0.6); opacity: 0; }
.ring.in { animation: ringin 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.ring.in img { animation: rise 0.75s 0.15s cubic-bezier(0.2, 1.3, 0.4, 1) forwards; }
.ring.in .rsay { animation: rsay 0.4s 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.ring.out { animation: ringout 0.4s ease-in forwards; }
@keyframes ringin { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes ringout { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rsay { to { opacity: 1; transform: translateX(-50%) scale(1); } }
.fly-pic { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
/* The airstrike's jet and missiles are cut-outs with their own shape (not square). */
.screen img.jet, .screen img.missile { aspect-ratio: auto; }
.scorch { position: absolute; z-index: 3; width: 13%; height: 5%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(20, 8, 6, 0.85), rgba(60, 24, 10, 0.5) 60%, transparent); transform: translate(-50%, -50%); animation: scorch 1.8s ease-out forwards; }
@keyframes scorch { from { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 0.9; } to { opacity: 0; transform: translate(-50%, -50%) scale(1.1); } }
.boom { position: absolute; z-index: 5; width: 34%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff 0 12%, #ffe9a0 22%, #ffb040 40%, rgba(255, 90, 20, 0.6) 58%, transparent 70%); transform: translate(-50%, -50%) scale(0.1); animation: boom 0.7s ease-out forwards; }
@keyframes boom { 40% { opacity: 1; } to { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }
.flash { position: absolute; inset: 0; z-index: 6; background: #fff7e0; opacity: 0; pointer-events: none; animation: flash 0.45s ease-out; }
@keyframes flash { 10% { opacity: 0.75; } to { opacity: 0; } }
.spark { position: absolute; z-index: 5; font-weight: 900; color: #6dffa6; text-shadow: 0 0 8px rgba(47, 209, 111, 0.9); pointer-events: none; font-size: clamp(12px, 1.8vw, 20px); }
.flyer { position: absolute; z-index: 8; font-size: 30px; line-height: 1; pointer-events: none; filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.8)); }
@media (max-width: 820px) {
  .demo { grid-template-columns: 1fr; gap: 14px; }
  .screen .hero-pic { width: 24%; }
  .hud { inset-block-start: 10px; }
  .beam { width: 3px; height: 30px; margin: 0 auto; background: linear-gradient(180deg, rgba(46, 168, 255, 0.15), rgba(255, 138, 31, 0.5)); }
  [dir="rtl"] .beam { background: linear-gradient(180deg, rgba(46, 168, 255, 0.15), rgba(255, 138, 31, 0.5)); }
  .stage-tabs { gap: 6px; }
  .st-arrow { width: 34px; height: 34px; }
  .st-tab { font-size: 13px; padding-inline-end: 12px; }
  .st-tab img { width: 26px; height: 26px; }
}
@media (max-width: 520px) { .st-tab span { display: none; } .st-tab { padding-inline-end: 6px; } }

/* ---------- New in CheerQuake: a feature list beside a moving picture of the feature ---------- */
.show { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 18px; align-items: stretch; }
.sh-tabs { display: grid; gap: 8px; align-content: start; }
.sh-tab { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; text-align: start; cursor: pointer; overflow: hidden; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.sh-tab:hover { border-color: rgba(46, 168, 255, 0.5); transform: translateX(2px); }
[dir="rtl"] .sh-tab:hover { transform: translateX(-2px); }
.sh-tab[aria-selected="true"] { border-color: rgba(255, 138, 31, 0.7); background: linear-gradient(90deg, rgba(255, 138, 31, 0.14), rgba(13, 20, 41, 0.6)); }
[dir="rtl"] .sh-tab[aria-selected="true"] { background: linear-gradient(270deg, rgba(255, 138, 31, 0.14), rgba(13, 20, 41, 0.6)); }
.sh-tab .icon { flex: none; width: 42px; height: 42px; border-radius: 12px; }
.sh-tab .icon svg { width: 22px; height: 22px; }
.sh-tab b { display: block; font-size: 16px; line-height: 1.3; }
.sh-tab .sh-line { display: block; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.sh-panels { position: relative; min-height: 420px; border-radius: 22px; border: 1px solid var(--border-2); background: radial-gradient(500px 280px at 15% 0%, rgba(46, 168, 255, 0.16), transparent 70%), radial-gradient(500px 280px at 90% 100%, rgba(255, 138, 31, 0.14), transparent 70%), var(--panel); overflow: hidden; box-shadow: 0 24px 50px -30px rgba(46, 168, 255, 0.6); }
.panel { display: none; height: 100%; padding: 24px; flex-direction: column; gap: 18px; }
.panel:first-child { display: flex; }
.js .panel { display: none; }
.js .panel.on { display: flex; animation: scenein 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.panel .p-art { flex: 1; display: grid; place-items: center; min-height: 250px; position: relative; }
.panel .p-text { margin: 0; color: var(--text-2); font-size: 15px; text-align: center; max-width: 560px; align-self: center; }
.panel .p-text b { color: var(--text); }
.js .show-tabs-hint { display: none; }

/* Boss fight */
.pb { width: min(440px, 100%); display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(40, 14, 30, 0.9), rgba(16, 8, 24, 0.95)); border: 1px solid rgba(255, 90, 90, 0.35); box-shadow: 0 0 40px rgba(255, 60, 60, 0.18); position: relative; }
.pb img { width: 34%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
.pb.hit img { animation: hit 0.35s; }
@keyframes hit { 30% { transform: translateX(-5px) rotate(-3deg); filter: brightness(1.8) drop-shadow(0 0 12px #ff5a5a); } 60% { transform: translateX(4px) rotate(2deg); } }
.pb-info { flex: 1; min-width: 0; }
.pb-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.pb-lvl { margin-inline-start: auto; font-size: 12px; font-weight: 800; color: #ffd46e; background: rgba(255, 212, 110, 0.12); border: 1px solid rgba(255, 212, 110, 0.35); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pb-bar { position: relative; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); overflow: hidden; }
.pb-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: linear-gradient(90deg, #ff3d5a, #ff8a1f); transition: width 0.5s cubic-bezier(0.2, 0.9, 0.3, 1); }
[dir="rtl"] .pb-bar i { background: linear-gradient(270deg, #ff3d5a, #ff8a1f); }
.pb-bar span { position: relative; display: block; text-align: center; font-size: 12px; font-weight: 800; line-height: 18px; direction: ltr; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.pb-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; align-content: start; gap: 4px; min-height: 76px; }
.pb-log li { font-size: 13px; color: var(--text-2); animation: logIn 0.35s ease both; }
.pb-log li b { color: #ff9a6a; }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }
.pb-dmg { position: absolute; z-index: 3; top: 18%; inset-inline-start: 22%; font-weight: 900; font-size: 22px; color: #ffb048; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); pointer-events: none; animation: dmg 1s ease-out forwards; }
@keyframes dmg { from { opacity: 0; transform: translateY(6px) scale(0.7); } 20% { opacity: 1; transform: scale(1.15); } to { opacity: 0; transform: translateY(-34px); } }
.pb-win { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(6, 3, 14, 0.82); font-weight: 900; font-size: 22px; color: #ffd46e; text-align: center; padding: 10px; opacity: 0; pointer-events: none; }
.pb.won .pb-win { animation: win 1.6s ease forwards; }
@keyframes win { 15%, 80% { opacity: 1; } to { opacity: 0; } }

/* 28 overlays, 18 looks */
.pl { width: min(540px, 100%); display: grid; gap: 10px; --pl-bg: rgba(13, 20, 41, 0.92); --pl-edge: #2ea8ff; --pl-text: #fff; --pl-hi: #ff8a1f; --pl-r: 16px; --pl-font: var(--font); }
/* Five overlays at once (alert, goal, timer, top gifters, chat), all in the look picked below them. */
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "alert alert" "goal timer" "board chat"; gap: 10px; }
.pl-card { border-radius: var(--pl-r); background: var(--pl-bg); border: 2px solid var(--pl-edge); color: var(--pl-text); font-family: var(--pl-font); box-shadow: 0 0 22px color-mix(in srgb, var(--pl-edge) 35%, transparent); transition: background 0.45s, border-color 0.45s, color 0.45s, border-radius 0.45s, box-shadow 0.45s; min-width: 0; }
.pl-alert { grid-area: alert; display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.pl-alert .pl-emoji { font-size: 34px; line-height: 1; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.pl-alert b { display: block; font-size: 18px; color: var(--pl-hi); }
.pl-alert span { font-size: 13.5px; opacity: 0.9; }
.pl-goal { grid-area: goal; padding: 10px 12px; }
.pl-goal-top { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.pl-goal-top span:last-child { direction: ltr; unicode-bidi: isolate; }
.pl-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 74%; border-radius: inherit; background: linear-gradient(90deg, var(--pl-edge), var(--pl-hi)); transition: background 0.45s; }
[dir="rtl"] .pl-bar i { background: linear-gradient(270deg, var(--pl-edge), var(--pl-hi)); }
.pl-timer { grid-area: timer; padding: 8px 12px; display: grid; place-items: center; text-align: center; }
.pl-timer span { font-size: 11.5px; font-weight: 800; opacity: 0.85; }
.pl-timer b { font-size: 24px; font-weight: 900; color: var(--pl-hi); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; line-height: 1.15; }
.pl-board { grid-area: board; padding: 9px 12px; }
.pl-board h4, .pl-chat h4 { margin: 0 0 5px; font-size: 12px; font-weight: 800; color: var(--pl-hi); }
.pl-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; }
.pl-board li { display: flex; gap: 6px; }
.pl-board li b { margin-inline-start: auto; color: var(--pl-hi); direction: ltr; unicode-bidi: isolate; }
.pl-chat { grid-area: chat; padding: 9px 12px; }
.pl-chat p { margin: 0 0 3px; font-size: 12.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-chat p b { color: var(--pl-hi); }
.pl-name { justify-self: center; font-size: 13px; font-weight: 800; color: var(--text-2); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pl-chips button { font: 700 12.5px var(--font); color: var(--text-2); background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.pl-chips button[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--accent-grad); }
.pl[data-look="neon"] { --pl-bg: #12032a; --pl-edge: #ff3df2; --pl-hi: #2ff3ff; --pl-r: 14px; }
.pl[data-look="neon"] .pl-alert b, .pl[data-look="neon"] .pl-timer b { text-shadow: 0 0 10px #2ff3ff; }
.pl[data-look="medieval"] { --pl-bg: #2c1d0e; --pl-edge: #b8913d; --pl-hi: #f3d48a; --pl-r: 4px; --pl-font: Georgia, "Times New Roman", serif; }
.pl[data-look="candy"] { --pl-bg: linear-gradient(135deg, #ff9ccf, #b49cff); --pl-edge: #fff; --pl-hi: #fff59d; --pl-r: 24px; }
/* Cyber steel: the normal font (a monospace font spaces the letters out, and breaks Arabic's joined letters). */
.pl[data-look="cyber"] { --pl-bg: linear-gradient(180deg, #06121f, #02060c); --pl-edge: #3de0ff; --pl-hi: #3de0ff; --pl-r: 2px; }
.pl[data-look="cyber"] .pl-card { box-shadow: 0 0 18px rgba(61, 224, 255, 0.45), inset 0 0 12px rgba(61, 224, 255, 0.15); }
.pl[data-look="royal"] { --pl-bg: linear-gradient(180deg, #241b0c, #0f0c07); --pl-edge: #f2c94c; --pl-hi: #fbe7a1; --pl-r: 12px; --pl-font: Georgia, serif; }
.pl[data-look="ocean"] { --pl-bg: linear-gradient(180deg, #035a73, #01223a); --pl-edge: #9ef0e8; --pl-hi: #9ef0e8; --pl-r: 22px; }
/* Arabic keeps the page's font in every look: serif fonts from Latin designs have no Arabic letters of their own. */
:lang(ar) .pl[data-look] { --pl-font: var(--font); }
@media (max-width: 520px) { .pl-grid { grid-template-columns: 1fr; grid-template-areas: "alert" "goal" "timer" "board" "chat"; } }

/* Scenes: landscape and portrait */
.ps-stage { position: relative; width: min(400px, 92%); aspect-ratio: 16 / 9; border-radius: 14px; border: 2px dashed rgba(124, 196, 255, 0.5); background: linear-gradient(180deg, rgba(46, 168, 255, 0.1), rgba(255, 138, 31, 0.06)), repeating-linear-gradient(0deg, transparent 0 19px, rgba(255, 255, 255, 0.04) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(255, 255, 255, 0.04) 19px 20px); transition: width 0.8s cubic-bezier(0.6, 0, 0.2, 1), aspect-ratio 0.8s cubic-bezier(0.6, 0, 0.2, 1); }
.ps-stage.port { width: min(170px, 46%); aspect-ratio: 9 / 16; }
.ps-item { position: absolute; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 800; color: #fff; text-align: center; padding: 2px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); transition: left 0.8s cubic-bezier(0.6, 0, 0.2, 1), top 0.8s cubic-bezier(0.6, 0, 0.2, 1), width 0.8s cubic-bezier(0.6, 0, 0.2, 1), height 0.8s cubic-bezier(0.6, 0, 0.2, 1); overflow: hidden; }
.ps-item.a { background: linear-gradient(135deg, #ff8a1f, #ff5a3d); left: 30%; top: 26%; width: 40%; height: 34%; }
.ps-item.c { background: linear-gradient(135deg, #2ea8ff, #6b6bff); left: 3%; top: 38%; width: 22%; height: 56%; }
.ps-item.g { background: linear-gradient(135deg, #2fd16f, #1aa36b); left: 30%; top: 4%; width: 40%; height: 14%; }
.ps-item.b { background: linear-gradient(135deg, #ff3d5a, #b02a6b); left: 75%; top: 4%; width: 22%; height: 20%; }
.port .ps-item.a { left: 8%; top: 36%; width: 84%; height: 22%; }
.port .ps-item.c { left: 5%; top: 62%; width: 60%; height: 34%; }
.port .ps-item.g { left: 8%; top: 3%; width: 84%; height: 8%; }
.port .ps-item.b { left: 8%; top: 13%; width: 84%; height: 9%; }
.ps-switch { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.ps-switch button { font: 700 13px var(--font); color: var(--text-2); background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.ps-switch button[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--accent-grad); }
.ps-wrap { display: grid; justify-items: center; width: 100%; }

/* Viewers, points and VIP ranks */
.pr { list-style: none; margin: 0; padding: 0; width: min(420px, 100%); position: relative; }
.pr li { position: relative; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.3s, background 0.3s; }
.js .pr li { position: absolute; inset-inline: 0; top: 0; margin: 0; }
.pr li.up { border-color: rgba(255, 212, 110, 0.7); background: rgba(255, 212, 110, 0.08); }
.pr .pr-n { width: 18px; font-weight: 800; color: var(--muted); text-align: center; }
.pr-av.c1 { background: #ff8a1f; } .pr-av.c2 { background: #2ea8ff; } .pr-av.c3 { background: #b06bff; } .pr-av.c4 { background: #2fd16f; } .pr-av.c5 { background: #ff4d8d; }
.pr .pr-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.pr b { flex: 1; min-width: 0; font-size: 15px; }
.pr .pr-rank { font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pr .pr-pts { width: 74px; text-align: end; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffd46e; direction: ltr; }
.r0 { color: #d39a62; } .r1 { color: #c9d4e6; } .r2 { color: #ffd46e; } .r3 { color: #7ce8ff; }
.pr .pr-boom { position: absolute; inset-inline-end: 96px; top: -12px; font-size: 12px; font-weight: 900; color: #ffd46e; pointer-events: none; animation: dmg 1.2s ease-out forwards; white-space: nowrap; }

/* Phone deck and Stream Deck */
.pd { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.pd-phone { width: 168px; padding: 16px 12px; border-radius: 28px; background: #0a0f1f; border: 2px solid #2a3a62; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8), inset 0 0 0 4px #121b34; }
.pd-phone::before { content: ""; display: block; width: 46px; height: 5px; border-radius: 3px; background: #24304f; margin: 0 auto 12px; }
.pd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pd-grid button { position: relative; overflow: hidden; display: grid; place-items: center; gap: 2px; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text); font: 700 11px var(--font); cursor: pointer; }
.pd-grid button .e { font-size: 24px; line-height: 1; }
.pd-grid button.tap { border-color: var(--accent); background: rgba(255, 138, 31, 0.18); }
.pd-grid button.tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transform: translate(-50%, -50%); animation: ripple 0.6s ease-out forwards; }
@keyframes ripple { to { width: 180%; height: 180%; opacity: 0; } }
.pd-out { width: 200px; min-height: 120px; display: grid; place-items: center; }
.pd-toast { padding: 12px 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid rgba(255, 138, 31, 0.5); font-weight: 800; text-align: center; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); }
.pd-toast.new { animation: toastIn 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.85); } }
.pd-toast small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }

/* Smart sounds */
.psd { width: min(440px, 100%); display: grid; gap: 10px; }
.psd-lane { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); transition: opacity 0.4s, border-color 0.3s; opacity: 0.35; }
.psd-lane.play { opacity: 1; border-color: rgba(46, 168, 255, 0.55); }
.psd-lane.cut { opacity: 0.5; border-color: rgba(255, 77, 94, 0.55); }
.psd-lane .g { font-size: 24px; width: 30px; text-align: center; }
.psd-lane .psd-name { width: 128px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.psd-lane .psd-name small { display: block; color: #ffd46e; font-weight: 800; }
.psd-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 32px; }
.psd-wave i { flex: 1; height: 20%; border-radius: 2px; background: linear-gradient(180deg, #7cc4ff, #2ea8ff); transition: height 0.3s; }
.psd-lane.play .psd-wave i { animation: eq 0.9s ease-in-out infinite alternate; }
.psd-lane.play .psd-wave i:nth-child(3n) { animation-duration: 0.6s; } .psd-lane.play .psd-wave i:nth-child(3n+1) { animation-duration: 0.75s; animation-delay: -0.3s; } .psd-lane.play .psd-wave i:nth-child(4n) { animation-duration: 0.5s; animation-delay: -0.2s; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }
.psd-lane.big .psd-wave i { background: linear-gradient(180deg, #ffd46e, #ff8a1f); }
.psd-lane.cut .psd-wave i { background: #ff4d5e; height: 12%; }
.psd-state { width: 84px; text-align: end; font-size: 12px; font-weight: 800; color: var(--muted); }
.psd-lane.play .psd-state { color: #7cc4ff; } .psd-lane.cut .psd-state { color: #ff6b7d; }

/* Apps and lights */
.pa { width: min(440px, 100%); display: grid; gap: 16px; justify-items: center; }
.pa-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; width: 100%; padding: 10px; border-radius: 14px; background: #05070f; border: 1px solid var(--border-2); }
.pa-strip i { aspect-ratio: 1; border-radius: 50%; background: var(--led, #2ea8ff); box-shadow: 0 0 12px var(--led, #2ea8ff), 0 0 26px var(--led, #2ea8ff); transition: background 0.35s, box-shadow 0.35s; }
.pa-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pa-app { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border-2); font-size: 13px; font-weight: 700; transition: border-color 0.3s, transform 0.3s, background 0.3s; }
.pa-app .e { font-size: 18px; }
.pa-app.on { border-color: var(--accent); background: rgba(255, 138, 31, 0.14); transform: translateY(-3px); }
.pa-gift { font-size: 14px; font-weight: 800; color: var(--text-2); min-height: 22px; }

@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; }
  .sh-tabs { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .sh-tabs::-webkit-scrollbar { display: none; }
  .sh-tab .sh-line { display: none; }
  .sh-tab { padding: 10px; }
  .sh-panels { min-height: 380px; }
  .panel { padding: 18px 14px; }
}

/* ---------- Platforms: events from all four arrive in one place ---------- */
.pf-feed { list-style: none; margin: 18px auto 0; padding: 0; max-width: 560px; display: grid; gap: 8px; }
.js .pf-feed { min-height: 194px; }
.pf-feed li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); font-size: 14.5px; }
.js .pf-feed li { display: none; }
.js .pf-feed li.on { display: flex; animation: pfIn 0.45s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
@keyframes pfIn { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
.pf-feed .pf-tag { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: #fff; white-space: nowrap; direction: ltr; }
.pf-feed .pf-do { margin-inline-start: auto; font-size: 12.5px; font-weight: 800; color: var(--accent-hover); white-space: nowrap; }
.t-tiktok { background: linear-gradient(90deg, #25f4ee, #fe2c55); } .t-twitch { background: #9146ff; } .t-youtube { background: #ff0033; } .t-kick { background: #53fc18; color: #08110a !important; }
.platform.ping { animation: ping 0.6s ease; }
@keyframes ping { 40% { transform: translateY(-4px); box-shadow: 0 0 0 2px rgba(255, 138, 31, 0.6), 0 16px 30px -18px rgba(255, 138, 31, 0.8); } }

/* ---------- Games showcase ---------- */
.filters { display: none; gap: 8px; justify-content: center; flex-wrap: wrap; margin: -12px 0 26px; }
.js .filters { display: flex; }
.filters button { font: 600 14px var(--font); color: var(--text-2); background: var(--panel); border: 1px solid var(--border-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.filters button:hover { color: var(--text); border-color: rgba(46, 168, 255, 0.5); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--accent-grad); border-color: transparent; text-shadow: 0 1px 2px rgba(110, 38, 0, 0.45); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.game { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 16px; text-align: center; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; overflow: hidden; }
.game[hidden] { display: none; }
.game.show { animation: gamein 0.35s ease both; }
@keyframes gamein { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.game .art { position: relative; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; }
.game .art::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(46, 168, 255, 0.28), transparent 68%); transition: transform 0.3s, background 0.3s; }
.game .art img { position: relative; width: 82%; height: auto; transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)); }
.game:hover { border-color: rgba(255, 138, 31, 0.55); transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(255, 138, 31, 0.6); }
.game:hover .art::before { transform: scale(1.12); background: radial-gradient(circle, rgba(255, 138, 31, 0.3), transparent 68%); }
.game:hover .art img { transform: scale(1.07) rotate(-2deg); }
.game h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; }
.game p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
/* Each game links to its own page (games/<game>/, made by scripts/site/build-games.mjs). */
.game-link { display: block; color: inherit; }
.game-link:hover { text-decoration: none; }
.gx-home-more { text-align: center; margin: 26px 0 0; }
.fine { color: var(--muted); font-size: 14px; text-align: center; max-width: 760px; margin: 26px auto 0; }
@media (max-width: 520px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game { padding: 10px 10px 12px; }
  .game h3 { font-size: 14px; }
  .game p { font-size: 12.5px; }
}

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.platform { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.platform .p-name { font: 800 20px var(--font-display); display: block; margin-bottom: 8px; direction: ltr; }
/* How the platform's money counts in CheerQuake (like TikTok coins). */
.platform .p-rate { display: block; margin-bottom: 10px; font-weight: 900; font-size: 15px; background: linear-gradient(90deg, #ffd46e, #ff9a22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-feed small { color: #ffd46e; font-weight: 800; font-size: 12px; margin-inline-start: 4px; }
.platform .p-state { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border-2); }
.platform.now { border-color: rgba(47, 209, 111, 0.45); box-shadow: 0 0 0 1px rgba(47, 209, 111, 0.15), 0 16px 30px -22px rgba(47, 209, 111, 0.7); }
.platform.now .p-state { color: var(--ok); background: rgba(47, 209, 111, 0.12); border-color: rgba(47, 209, 111, 0.35); }
@media (max-width: 760px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 0 20px; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(46, 168, 255, 0.45); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; font-size: 24px; line-height: 1; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* ---------- Closing call to action ---------- */
.final { text-align: center; padding: 46px 24px; border-radius: 28px; border: 1px solid var(--border-2); background: radial-gradient(500px 260px at 20% 0%, rgba(46, 168, 255, 0.22), transparent 70%), radial-gradient(500px 260px at 80% 100%, rgba(255, 138, 31, 0.22), transparent 70%), var(--panel); position: relative; overflow: hidden; }
.final img { width: 92px; height: 92px; margin: 0 auto 10px; filter: drop-shadow(0 0 18px rgba(46, 168, 255, 0.45)); }
.final h2::after { display: none; }
.final p { color: var(--text-2); max-width: 600px; margin: 0 auto 22px; }

/* ---------- Scroll reveal (only when site.js runs and motion is welcome) ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
.reveal-on [data-reveal-d="1"] { transition-delay: 0.08s; }
.reveal-on [data-reveal-d="2"] { transition-delay: 0.16s; }
.reveal-on [data-reveal-d="3"] { transition-delay: 0.24s; }

/* ---------- Legal pages ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); text-align: start; margin: 0 0 6px; }
.doc h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; border-radius: 3px; background: linear-gradient(90deg, #2ea8ff, #ff8a1f); }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { text-align: start; font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.doc .box p { margin: 0; }

/* The page-not-found page (and the site's Streamlabs pages): the big logo in the middle. */
.doc.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 32px; text-align: center; }
.doc.lost h1 { text-align: center; }
.doc.lost img.lost-logo { width: min(380px, 82%); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.45)); }
.doc.lost h1::after { margin-inline: auto; }

/* ---------- Footer ---------- */
footer { position: relative; border-block-start: 1px solid var(--border); padding: 40px 0 44px; color: var(--muted); font-size: 14px; background: var(--bg-2); }
footer::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 1px; background: var(--brand-line); pointer-events: none; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .f-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
footer .f-brand img { width: 30px; height: 30px; }
footer .tagline { color: var(--muted); font-weight: 600; letter-spacing: 0.06em; font-size: 12px; text-transform: uppercase; }
:lang(ar) footer .tagline { letter-spacing: 0; text-transform: none; font-size: 13px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
footer a { color: var(--text-2); }
footer .disclaimer { flex-basis: 100%; margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
