/* SMRbot home page, on top of brand.css and site.css (load order: brand, site, home).
   The teal hero with the gate, a glass tray of feature cards over its hills, three panels, then the sections on cream.
   Like the rest of the site, the motion here plays even when the device asks for less motion (the owner wants it). */

.home { --hk-muted: #E1EAE6; } /* quiet text on the lighter teal (AA on #2E6E72) */
.home main { position: relative; }
/* a warm light behind the cream sections */
.home main::before {
  content: ""; position: absolute; inset: 900px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 100% 18%, rgb(255 203 87 / .10), transparent 70%),
    radial-gradient(800px 600px at 0% 46%, rgb(255 122 86 / .07), transparent 70%),
    radial-gradient(900px 700px at 100% 78%, rgb(63 135 138 / .08), transparent 70%);
}
.home .section { padding-block: clamp(40px, 5.5vw, 84px); }
.home code {
  font: 700 .86em/1 var(--f-latin); direction: ltr; unicode-bidi: isolate; white-space: nowrap;
  padding: 3px 8px; border-radius: 7px; background: var(--lt-sunk); color: var(--teal-800); box-shadow: inset 0 0 0 1px var(--lt-line);
}
.sheet-mark { display: block; height: 28px; }
.foot-mark { display: block; height: 34px; }

/* =====================================================================================================================
   The hero
   ===================================================================================================================== */
/* The tray of feature cards rises over the foot of the hero by --tray-over. The hero follows the screen's height as well as
   its width, so on laptops (1366×768, 1440×900, 1536×864) the tray's top sits about 200px above the bottom of the screen
   and the cards are part of the first view. The text keeps clear of the coral hill (about half the hills' height). */
.home { --tray-over: clamp(36px, 4.6vw, 72px); }
.home-hero {
  min-height: clamp(560px, min(max(53vw, 680px), 100svh - 200px + var(--tray-over)), 860px);
  display: flex; align-items: center; padding-bottom: clamp(150px, 10.5vw + 16px, 230px); --scene-floor: var(--lt-page);
}
/* the gate stands on the hills just above the tray, so its people stay in view */
@media (min-width: 761px) { .home-hero .sc-gate { bottom: calc(var(--wv-h) * .045 + var(--tray-over) - 30px); } }
.hero-inner { display: grid; justify-items: start; gap: clamp(16px, 2.6svh, 24px); }
.hero-inner > * { max-width: 640px; }
.home-hero .display { font-size: clamp(40px, min(5.5vw, 9.4svh), 80px); text-shadow: 0 2px 24px rgb(6 26 28 / .35); }
/* English runs longer: a little smaller and wider, so the title keeps to two lines like the Arabic */
html[lang="en"] .home-hero .display { font-size: clamp(34px, min(4.5vw, 8svh), 66px); }
html[lang="en"] .hero-inner > .display { max-width: 780px; }
.home-hero .meta-line { color: var(--cream-100); }
.home-hero .btn-row { margin-top: 6px; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; color: var(--dk-muted); font-size: 14.5px; line-height: 1.6; }
.live-dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--yellow-500); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow-500); animation: live-ring 2.2s var(--ease-out) infinite; }

/* =====================================================================================================================
   The feature cards: a glass tray over the foot of the hero
   ===================================================================================================================== */
/* it rests on the hills, just under the gate's people; a near-solid cream bar (no live blur over the moving hills) */
.feat { position: relative; z-index: 3; margin-top: calc(var(--tray-over) * -1); }
.feat-row {
  list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  border-radius: 30px; background: rgb(255 249 240 / .92); border: 1px solid rgb(255 255 255 / .8);
  box-shadow: 0 40px 70px -40px rgb(12 43 45 / .55), 0 10px 24px -16px rgb(150 90 40 / .18), inset 0 1px 0 rgb(255 255 255 / .9);
}
/* the bar rises with its first card, so the glass is never seen empty */
.rv-on .feat-row { transition: opacity .9s var(--ease-out) var(--rv-delay, 0s), transform 1.05s var(--ease-out) var(--rv-delay, 0s); }
.rv-on .feat-row:not(.in) { opacity: 0; transform: translateY(26px); }
.feat-row > li { display: flex; min-width: 0; }
/* as in the mockup: the tile at the start, the title and its line beside it, a small arrow at the foot of the end side */
.feat-row .fcard {
  flex: 1; min-width: 0; --card-pad: 14px 14px 12px; border-radius: 22px;
  grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tile body" "tile go"; grid-template-rows: 1fr auto; gap: 2px 12px;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgb(255 255 255 / .9);
}
.feat-row .card-teal.fcard { box-shadow: 0 22px 40px -22px rgb(12 43 45 / .8), inset 0 1px 0 rgb(243 231 211 / .12); }
.feat-row .card-teal.fcard::before {
  content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 122 86 / .34), transparent); animation: glow-drift 9s ease-in-out infinite alternate;
}
.feat-row .fcard > [data-tile] { align-self: center; }
.feat-row .fcard .tile { width: 56px; }
.feat-row .fcard-body { align-self: start; gap: 2px; }
.feat-row .fcard-title { font-size: 16.5px; line-height: 1.4; }
.feat-row .fcard-text { font-size: 13.5px; line-height: 1.6; }
.feat-row .card-teal .fcard-text { color: var(--hk-muted); }
.feat-row .fcard .arrow-btn { width: 28px; height: 28px; justify-self: end; align-self: end; margin-top: 0; }
.feat-row .fcard .arrow-btn .ic { width: 15px; height: 15px; }
.feat-row .fcard-title .num { font-weight: 800; }

/* =====================================================================================================================
   Three panels: the live demo, the games carousel, the plans
   ===================================================================================================================== */
.trio { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; margin-top: 18px; align-items: stretch; }
.trio > * { min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head .panel-title { font-size: clamp(17px, 1.35vw, 19px); white-space: nowrap; min-width: 0; }
.panel-head .link-more { font-size: 14px; flex: none; }

.live-card { --card-pad: 24px 24px 22px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 6px; min-height: 270px; border-radius: 26px; }
.live-copy { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; }
.live-title { font: 800 clamp(21px, 1.7vw, 25px)/1.35 var(--f-display); color: var(--cream-100); }
.live-text { color: var(--hk-muted); font-size: 14.5px; line-height: 1.75; }
.live-copy .btn { margin-top: 4px; }
.live-art { align-self: end; margin-inline-end: -8px; margin-bottom: -6px; }
.live-art .monitor-art { filter: drop-shadow(0 22px 26px rgb(2 16 18 / .45)); animation: sc-float 7s ease-in-out infinite; }
/* three panels in a row: the badge and a one-line title across the card, then the text and button beside a large monitor */
@media (min-width: 1321px) {
  .live-card {
    /* the start column is never narrower than its button, so the button never runs into the monitor */
    grid-template-columns: minmax(min-content, .8fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "badge badge" "title title" "text art" "btn art"; gap: 0 12px; align-items: start;
  }
  .live-copy { display: contents; }
  .live-copy .badge-live { grid-area: badge; justify-self: start; margin-bottom: 12px; min-width: 0; }
  /* one line; contained, so its width never pushes the columns apart */
  .live-title { grid-area: title; white-space: nowrap; min-width: 0; contain: inline-size; font-size: clamp(20px, 1.65vw, 25px); margin-bottom: 8px; }
  .live-text { grid-area: text; font-size: 14px; line-height: 1.7; }
  .live-copy .btn { grid-area: btn; justify-self: start; margin-top: 12px; padding-inline: 14px; white-space: nowrap; }
  .live-art { grid-area: art; align-self: end; width: calc(100% + 22px); margin-inline-end: -22px; margin-bottom: -8px; }
}

.picks, .plans-mini { --card-pad: 20px; border-radius: 26px; display: flex; flex-direction: column; }
.picks { container: picks / inline-size; }
/* whole cards per page and a fifth of the next one peeking in, so every page the arrows, dots and autoplay reach shows its
   games in full (art.js rounds the cards per page from the visible width: 2.2 → 2, 3.2 → 3, 4.2 → 4) */
.picks .car { --car-per: 2.2; --car-gap: 10px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* the track runs to the card's edges, so the next game peeks in */
.picks .car-track { margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; }
@container picks (min-width: 480px) { .picks .car { --car-per: 3.2; } }
@container picks (min-width: 680px) { .picks .car { --car-per: 4.2; } }
.picks .gtile { border-radius: 18px; }
.car-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.car-foot .car-dots { margin-top: 0; }
.car-foot .car-btn { width: 34px; height: 34px; }
.car-foot .car-btn .ic { width: 18px; height: 18px; }
/* the dots stay small but each takes a 24px tap */
.home .car-dots { gap: 14px; }
.home .car-dot { position: relative; }
.home .car-dot::before { content: ""; position: absolute; inset: -8px; border-radius: var(--r-pill); }

.plans3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; }
.mini {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 15px 13px 13px; border-radius: 20px; color: var(--dk-text); color-scheme: dark; --focus: var(--yellow-500);
  background: radial-gradient(120% 70% at 100% 0%, rgb(63 135 138 / .3), transparent 60%), var(--grad-teal);
  box-shadow: 0 18px 32px -20px rgb(12 43 45 / .8), inset 0 1px 0 rgb(243 231 211 / .1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.mini:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -22px rgb(12 43 45 / .85), inset 0 1px 0 rgb(243 231 211 / .14); }
.mini.t3 {
  background: radial-gradient(120% 70% at 100% 0%, rgb(255 203 87 / .24), transparent 60%), linear-gradient(160deg, #1F5357, #0C2B2D);
  box-shadow: inset 0 0 0 1.5px rgb(255 203 87 / .55), 0 18px 32px -20px rgb(12 43 45 / .8);
}
.mini-name { display: flex; align-items: center; gap: 6px; font: 800 16.5px/1.3 var(--f-display); }
.mini-name .ic { width: 18px; height: 18px; color: var(--yellow-500); }
.mini-tag { color: var(--hk-muted); font-size: 12.5px; line-height: 1.5; min-height: 3em; }
.mini-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin-top: 2px; }
.mini-price b { font: 800 27px/1.15 var(--f-latin); color: var(--cream-100); }
.mini.t1 .mini-price b { font-family: var(--f-display); font-size: 24px; }
.mini.t3 .mini-price b { color: var(--yellow-400); }
.mini-price span { color: var(--hk-muted); font-size: 12px; }
.mini ul { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; }
.mini li { display: flex; align-items: flex-start; gap: 6px; color: #EADBC2; font-size: 12.5px; line-height: 1.55; }
.mini li .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--yellow-500); }
.mini .btn { margin-top: auto; min-height: 38px; padding-inline: 10px; font-size: 13.5px; }

/* =====================================================================================================================
   The bot's cards: a teal band with the list of cards and the stack that deals itself
   ===================================================================================================================== */
.showcase { padding-top: clamp(44px, 6vw, 84px); }
.show-band {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-2xl);
  padding: clamp(26px, 4.2vw, 58px) clamp(18px, 4.2vw, 58px) clamp(110px, 10vw, 150px);
  color: var(--dk-text); color-scheme: dark; --focus: var(--yellow-500); --foot-bg: #153D40;
  background:
    radial-gradient(55% 60% at 100% 0%, rgb(63 135 138 / .55), transparent 70%),
    radial-gradient(45% 55% at 0% 35%, rgb(255 203 87 / .10), transparent 70%),
    linear-gradient(180deg, #1F5357 0%, #183F42 55%, #153D40 100%);
  box-shadow: 0 50px 90px -40px rgb(12 43 45 / .6), inset 0 1px 0 rgb(243 231 211 / .1);
}
.show-band .sec-head { position: relative; z-index: 1; }
.show-band .sec-title { color: var(--dk-text); }
.show-band .sec-sub { color: var(--dk-muted); }
.show-band .eyebrow { background: rgb(255 203 87 / .14); color: var(--yellow-300); box-shadow: inset 0 0 0 1px rgb(255 203 87 / .28); }
.show-band .eyebrow .ic { color: var(--yellow-500); }
.show-waves { position: absolute; inset-inline: 0; bottom: 0; height: clamp(76px, 8.5vw, 124px); z-index: 0; overflow: hidden; pointer-events: none; }

.stage { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(240px, .36fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(8px, 1.5vw, 20px); }
.stage-side { min-width: 0; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stage-list button {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 0; border-radius: 16px;
  background: transparent; color: rgb(243 231 211 / .78); font: 700 16.5px/1.3 var(--f-display); text-align: start; cursor: pointer;
  transition: background-color .45s var(--ease-soft), color .45s, box-shadow .45s;
}
.stage-list .tile { width: 38px; opacity: .78; transition: transform .6s var(--ease-spring), opacity .45s; }
.stage-list button:hover { color: var(--cream-100); background: rgb(243 231 211 / .05); }
.stage-list button:hover .tile { opacity: 1; transform: translateY(-2px) rotate(-4deg); }
.stage-list button[aria-current="true"] { color: var(--cream-100); background: rgb(243 231 211 / .1); box-shadow: inset 0 0 0 1px rgb(243 231 211 / .12), 0 14px 28px -20px rgb(0 0 0 / .6); }
.stage-list button[aria-current="true"] .tile { opacity: 1; transform: scale(1.08) rotate(-5deg); }
.stage-list .bar {
  position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(270deg, var(--yellow-500), var(--coral-500)); transform: scaleX(0); transform-origin: right;
}
[dir="ltr"] .stage-list .bar { transform-origin: left; background: linear-gradient(90deg, var(--yellow-500), var(--coral-500)); }
.stage-list button[aria-current="true"] .bar { opacity: 1; animation: fill-line var(--stage-ms, 5600ms) linear forwards; }
.stage.paused .stage-list button[aria-current="true"] .bar { animation-play-state: paused; }
@keyframes fill-line { to { transform: scaleX(1); } }
.stage-cap {
  margin-top: 16px; min-height: 3.7em; padding-inline-start: 14px; border-inline-start: 2px solid var(--yellow-500);
  color: var(--dk-muted); font-size: 15.5px; line-height: 1.8;
}
.stage-cap.swap { animation: swap-in .6s var(--ease-out) both; }
/* (English only) the cards are shown in Arabic here: a quiet line under the caption, on the teal band */
.show-band .cards-note { margin-top: 12px; color: var(--dk-muted); font-size: 13px; }
.show-band .cards-note .ic { color: var(--yellow-500); }
.games-note { justify-content: center; margin-top: 18px; }
.stack { display: grid; padding: 2% 0 9% 9%; }
.slip { grid-area: 1 / 1; align-self: center; margin: 0; transform-origin: 50% 60%; transition: transform .95s var(--ease-out), opacity .75s var(--ease-out); }
.slip img { display: block; width: 100%; height: auto; border-radius: 22px; background: var(--cream-300); cursor: pointer; box-shadow: 0 36px 70px -26px rgb(2 16 18 / .8), 0 0 0 1px rgb(243 231 211 / .08); }
.slip[data-pos="0"] { z-index: 5; transform: rotate(-1.2deg); }
.slip[data-pos="1"] { z-index: 4; transform: translate(-5%, 6%) rotate(-4deg) scale(.93); opacity: .55; }
.slip[data-pos="2"] { z-index: 3; transform: translate(-9%, 11%) rotate(-6.5deg) scale(.86); opacity: .25; }
.slip[data-pos="far"] { z-index: 1; transform: translate(-9%, 11%) rotate(-6.5deg) scale(.8); opacity: 0; pointer-events: none; }
.slip[data-pos="out"] { z-index: 6; transform: translate(24%, -6%) rotate(7deg) scale(1.02); opacity: 0; pointer-events: none; }

/* =====================================================================================================================
   A segmented switch (the billing cycle, the games' tabs): a teal thumb slides under the chosen button
   ===================================================================================================================== */
.seg {
  position: relative; isolation: isolate; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px;
  border-radius: var(--r-pill); background: var(--lt-card); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--lt-line);
}
.seg::before {
  content: ""; position: absolute; z-index: -1; inset-block: 5px; inset-inline-start: 5px; width: calc((100% - 10px) / 2);
  border-radius: var(--r-pill); background: var(--grad-teal); box-shadow: 0 10px 20px -10px rgb(12 43 45 / .85), inset 0 1px 0 rgb(243 231 211 / .16);
  transition: transform .7s var(--ease-spring);
}
.seg:has(> :nth-child(2)[aria-pressed="true"])::before, .seg:has(> :nth-child(2)[aria-selected="true"])::before { transform: translateX(-100%); }
[dir="ltr"] .seg:has(> :nth-child(2)[aria-pressed="true"])::before, [dir="ltr"] .seg:has(> :nth-child(2)[aria-selected="true"])::before { transform: translateX(100%); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 24px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--lt-text-2); font: 700 15.5px/1.2 var(--f-body); white-space: nowrap; cursor: pointer; transition: color .45s;
}
.seg button:hover { color: var(--teal-800); }
.seg button b { padding: 3px 9px; border-radius: var(--r-pill); background: var(--coral-100); color: var(--coral-800); font: 800 12.5px/1.2 var(--f-body); transition: background-color .45s, color .45s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: var(--cream-100); }
.seg button[aria-pressed="true"] b, .seg button[aria-selected="true"] b { background: var(--yellow-500); color: var(--ink-900); }

/* =====================================================================================================================
   The plans
   ===================================================================================================================== */
.plans .sec-head { margin-bottom: 22px; }
.billing-row { display: flex; justify-content: center; margin-bottom: clamp(26px, 3.6vw, 44px); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tier { --card-pad: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 18px; border-radius: 28px; min-width: 0; }
.tier.card:hover, .tier.card-teal:hover { transform: translateY(-6px); }
.tier.card:hover { box-shadow: var(--sh-lg), inset 0 1px 0 rgb(255 255 255 / .9); }
.tier.card-teal:hover { box-shadow: 0 40px 70px -30px rgb(12 43 45 / .85), inset 0 1px 0 rgb(243 231 211 / .12); }
.tier-head { display: flex; align-items: center; gap: 14px; }
.tier-head .tile { width: 58px; }
.tier-head h3 { font: 800 26px/1.3 var(--f-display); }
.tier-tag { margin-top: 2px; color: var(--lt-muted); font-size: 14.5px; line-height: 1.6; }
.card-teal .tier-tag { color: var(--hk-muted); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 4px 10px; min-height: 104px; padding-block: 16px; border-block: 1px dashed var(--lt-line-2); }
.card-teal .price { border-color: rgb(243 231 211 / .16); }
.price b { font: 800 clamp(44px, 4.3vw, 58px)/1 var(--f-latin); letter-spacing: -.01em; }
.tier.t1 .price b { font-family: var(--f-display); font-size: clamp(38px, 3.6vw, 48px); color: var(--teal-800); }
.price span { color: var(--lt-muted); font-size: 15px; font-weight: 600; }
.card-teal .price span { color: var(--hk-muted); }
.price small { flex-basis: 100%; color: var(--yellow-400); font-size: 13.5px; font-weight: 700; }
.price.swap > * { animation: price-in .7s var(--ease-out) both; }
.price.swap > :nth-child(2) { animation-delay: .06s; }
.price.swap > :nth-child(3) { animation-delay: .12s; }
.count { display: flex; align-items: center; gap: 10px; font: 800 17px/1.4 var(--f-display); }
.count .ic { width: 22px; height: 22px; color: var(--teal-600); }
.card-teal .count .ic { color: var(--yellow-500); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.7; color: var(--lt-text-2); }
.points li .ic { flex: none; width: 21px; height: 21px; padding: 3.5px; margin-top: 3px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); }
.card-teal .points li { color: #EADBC2; }
.card-teal .points li .ic { background: rgb(255 203 87 / .16); color: var(--yellow-400); }
.tier .btn { margin-top: auto; }
/* the gold plan: a deeper teal, a gold ring and a slow sheen running round its edge */
.tier.t3 {
  background:
    radial-gradient(90% 55% at 100% 0%, rgb(255 203 87 / .22), transparent 62%),
    radial-gradient(70% 50% at 0% 100%, rgb(255 122 86 / .16), transparent 70%),
    linear-gradient(160deg, #1F5357, #0C2B2D);
  box-shadow: inset 0 0 0 1.5px rgb(255 203 87 / .45), 0 30px 60px -30px rgb(12 43 45 / .8);
}
.tier.t3 .price b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the sheen: a fixed 1.5px ring (masked) with a large conic light turning inside it by transform only */
.sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; border-radius: inherit; padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.sheen::before {
  content: ""; position: absolute; inset: -75%;
  background: conic-gradient(transparent 0 64%, rgb(255 226 154 / .95) 76%, transparent 88%);
  animation: sheen-turn 7s linear infinite; will-change: transform;
}
@keyframes sheen-turn { to { transform: rotate(1turn); } }

.compare-card { margin-top: 22px; --card-pad: clamp(18px, 2.4vw, 28px); border-radius: 26px; }
.compare { margin-top: 12px; overflow-x: auto; overscroll-behavior-x: contain; }
.compare table { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.compare th, .compare td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--lt-line); }
.compare thead th { font: 800 16px/1.3 var(--f-display); color: var(--lt-text); border-bottom: 2px solid var(--lt-line-2); white-space: nowrap; }
.th-in { display: inline-flex; align-items: center; gap: 8px; }
.compare .ic { width: 19px; height: 19px; }
.compare thead .t1 .ic { color: var(--teal-600); }
.compare thead .t2 .ic { color: var(--coral-700); }
.compare thead .t3 .ic { color: var(--yellow-700); }
.compare tbody th { text-align: start; font: 700 15px/1.4 var(--f-body); color: var(--lt-text-2); white-space: nowrap; }
.compare tbody th .ic { color: var(--teal-500); }
.compare td { color: var(--lt-text); }
.compare td.none { color: var(--cream-700); }
.compare tbody tr { transition: background-color .3s; }
.compare tbody tr:hover { background: var(--lt-card-2); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tr > :last-child { background: rgb(255 203 87 / .08); }
.compare thead tr > :last-child { border-radius: 14px 14px 0 0; }
.compare tbody tr:last-child > :last-child { border-radius: 0 0 14px 14px; }
/* a number never leaves its noun */
.compare .nw { white-space: nowrap; }
.compare .plus { display: block; margin-top: 2px; color: var(--lt-muted); font-size: 12.5px; font-weight: 600; line-height: 1.5; }

.all-features { margin-top: 18px; }
.all-features summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; border-radius: 20px;
  background: var(--lt-card-2); border: 1.5px dashed var(--lt-line-2); color: var(--teal-700); font: 700 16px/1.3 var(--f-body);
  transition: background-color .35s, border-color .35s, color .35s;
}
.all-features summary::-webkit-details-marker { display: none; }
.all-features summary:hover { background: var(--lt-card); border-color: var(--teal-400); color: var(--teal-800); }
.af-plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--teal-700); transition: background-color .4s, transform .6s var(--ease-spring); }
.af-plus::before, .af-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--cream-100); transition: transform .5s var(--ease-spring); }
.af-plus::after { transform: rotate(90deg); }
.all-features[open] .af-plus { background: var(--coral-600); transform: rotate(180deg); }
.all-features[open] .af-plus::after { transform: rotate(0deg); }
.tiers-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.all-features[open] .tiers-list > * { animation: swap-in .7s var(--ease-out) both; }
.all-features[open] .tiers-list > :nth-child(2) { animation-delay: .08s; }
.all-features[open] .tiers-list > :nth-child(3) { animation-delay: .16s; }
.tier-full { padding: 22px 24px 24px; border-radius: 24px; background: var(--lt-card); border: 1px solid var(--lt-line); box-shadow: var(--sh-sm); }
.tier-full h3 { display: flex; align-items: center; gap: 8px; font: 800 21px/1.3 var(--f-display); }
.tier-full h3 .ic { width: 22px; height: 22px; }
.tier-full.t1 h3 .ic { color: var(--teal-600); }
.tier-full.t2 h3 .ic { color: var(--coral-700); }
.tier-full.t3 h3 .ic { color: var(--yellow-700); }
.tier-full .tier-intro { margin-top: 4px; color: var(--coral-text); font-weight: 700; font-size: 14.5px; }
.tier-full dl { margin: 14px 0 0; display: grid; }
.tier-full dt { margin-top: 12px; color: var(--lt-text); font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.tier-full dt:first-child { margin-top: 0; }
.tier-full dd { margin: 2px 0 0; color: var(--lt-muted); font-size: 14.5px; line-height: 1.7; }
.tier-full dt.group { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--teal-600); font: 800 14.5px/1.4 var(--f-display); }
.tier-full dt.group::after { content: ""; flex: 1; height: 1px; background: var(--lt-line-2); }
.tiers-note { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin-top: 22px; color: var(--lt-muted); font-size: 15px; line-height: 1.7; text-align: center; }
.tiers-note .ic { width: 20px; height: 20px; margin-top: 3px; color: var(--teal-500); }

/* =====================================================================================================================
   The games: the tabs, a wall of games, and the chosen game's card in a teal frame
   ===================================================================================================================== */
.game-tabs { margin-bottom: 26px; }
.game-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.wall { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; min-width: 0; }
.wall button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 8px; padding-inline-end: 16px;
  border: 1px solid var(--lt-line); border-radius: 18px; background: var(--lt-card); color: var(--lt-text-2); box-shadow: var(--sh-xs);
  font: 700 15px/1.25 var(--f-body); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .35s, color .35s, border-color .35s;
}
.wall button .tile { width: 36px; filter: drop-shadow(0 5px 8px rgb(12 43 45 / .2)); }
.wall button:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--lt-line-2); color: var(--teal-800); }
.wall button:hover .tile .tile-art { transform: translateY(-2px) scale(1.06) rotate(-3deg); }
.wall button[aria-pressed="true"] {
  background: var(--grad-teal); color: var(--cream-100); border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 16px 28px -14px rgb(12 43 45 / .8), inset 0 1px 0 rgb(243 231 211 / .14);
}
.wall:not(.in) > button { opacity: 0; }
.wall.in > button { animation: chip-in .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 26ms); }
@keyframes chip-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; } }

.game-show { margin: 0; position: sticky; top: calc(var(--head-h) + 20px); --card-pad: 16px; display: grid; gap: 14px; border-radius: 28px; }
.gshot { overflow: hidden; border-radius: 18px; background: var(--cream-300); box-shadow: 0 20px 40px -22px rgb(2 16 18 / .75); }
.gshot img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; object-position: top; }
.gshot.swap img { animation: shot-in .65s var(--ease-out) both; }
.game-card { padding: 2px 8px 8px; }
.gtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gname { font: 800 24px/1.3 var(--f-display); color: var(--cream-100); }
#gplan { font-style: normal; font: 700 12.5px/1.3 var(--f-body); padding: 4px 12px; border-radius: var(--r-pill); background: rgb(243 231 211 / .12); color: var(--cream-100); box-shadow: inset 0 0 0 1px rgb(243 231 211 / .22); }
#gplan.t2 { background: var(--grad-coral); color: #0A2426; box-shadow: none; }
#gplan.t3 { background: var(--grad-gold); color: var(--ink-900); box-shadow: none; }
.game-card p { margin-top: 6px; color: var(--dk-muted); font-size: 15.5px; line-height: 1.8; }
.game-card.swap .gtop, .game-card.swap p { animation: swap-in .55s var(--ease-out) both; }
.game-card.swap p { animation-delay: .06s; }
.games-more { display: flex; justify-content: center; margin-top: 34px; }

/* =====================================================================================================================
   «جرّب البوت»: a channel in the page, framed like a window, with tiles floating around it
   ===================================================================================================================== */
.try-stage { position: relative; max-width: 1000px; margin-inline: auto; }
.try-stage::before {
  content: ""; position: absolute; inset: 8% -6% -6%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(63 135 138 / .22), transparent), radial-gradient(40% 40% at 20% 80%, rgb(255 122 86 / .14), transparent 70%);
  filter: blur(10px);
}
.float { position: absolute; z-index: 0; width: 78px; line-height: 0; animation: sc-float 6.5s ease-in-out infinite; }
.float .tile { width: 100%; }
.f1 { inset-inline-start: -118px; top: 70px; animation-delay: -1.2s; }
.f2 { inset-inline-end: -112px; top: 150px; width: 70px; animation-delay: -3.1s; animation-duration: 7.5s; }
.f3 { inset-inline-start: -96px; bottom: 120px; width: 64px; animation-delay: -4.4s; animation-duration: 8s; }
.f4 { inset-inline-end: -100px; bottom: 60px; width: 60px; animation-delay: -2.2s; }

.chat {
  position: relative; z-index: 1; overflow: hidden; border-radius: 28px; color: var(--dk-text); color-scheme: dark; --focus: var(--yellow-500);
  background: linear-gradient(180deg, #123538, #0C2B2D); border: 1px solid rgb(243 231 211 / .1);
  box-shadow: 0 0 0 9px rgb(255 251 244 / .7), 0 0 0 10px var(--lt-line), 0 50px 90px -40px rgb(12 43 45 / .75);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--dk-line); background: rgb(243 231 211 / .03); }
.chat-dots { display: inline-flex; gap: 6px; flex: none; }
.chat-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral-500); }
.chat-dots i:nth-child(2) { background: var(--yellow-500); }
.chat-dots i:nth-child(3) { background: var(--teal-400); }
.chan { font-weight: 700; font-size: 16px; color: var(--cream-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wallet { margin-inline-start: auto; padding: 4px 13px; border-radius: var(--r-pill); background: rgb(255 203 87 / .12); color: var(--yellow-300); box-shadow: inset 0 0 0 1px rgb(255 203 87 / .3); font-size: 14px; font-weight: 600; white-space: nowrap; }
/* the log fits its messages and grows with them, then scrolls (no empty dark well before the first command) */
.chat-log {
  min-height: 280px; max-height: clamp(300px, 100svh - 290px, 600px); overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 10px; display: flex; flex-direction: column; gap: 20px;
  scrollbar-width: thin; scrollbar-color: rgb(255 203 87 / .35) transparent;
}
/* the start of the channel, as in Discord: the messages sit at the foot of the log, the channel's welcome above them */
.chat-log > :first-child { margin-top: auto; }
.chat-intro { display: grid; justify-items: start; gap: 4px; padding: 6px 0 18px; border-bottom: 1px solid var(--dk-line); }
.chat-intro-mark { display: block; width: 62px; height: 62px; margin-bottom: 10px; line-height: 0; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .35)); }
.chat-intro-mark .logo-mark { width: 62px; height: 62px; }
.chat-intro-h { color: var(--cream-100); font: 800 22px/1.4 var(--f-display); }
.chat-intro p:last-child { color: var(--dk-muted); font-size: 14.5px; line-height: 1.7; }
.msg { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; animation: msg-in .5s var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px); } }
.msg .av { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #E3D5BE; }
.msg .av img { display: block; width: 100%; height: 100%; }
.msg.me .av { background: linear-gradient(135deg, var(--teal-600), var(--teal-700)); color: var(--cream-100); font-weight: 700; font-size: 18px; }
.msg .who { display: flex; align-items: center; gap: 8px; color: var(--cream-100); font-size: 15px; font-weight: 700; line-height: 1.5; }
.msg .tag { padding: 0 6px; border-radius: 5px; background: var(--yellow-500); color: var(--ink-900); font-size: 11px; font-weight: 700; line-height: 1.6; }
.msg time { color: var(--dk-muted); font-size: 12px; font-weight: 400; }
.msg .body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.msg .body p { color: #E3D5BE; font-size: 15.5px; line-height: 1.75; }
.msg .body p.late { opacity: 0; transform: translateY(6px); }
.msg .body p.late.shown { animation: late-in .5s var(--ease-out) 1s forwards; }
@keyframes late-in { to { opacity: 1; transform: none; } }
.msg .card { display: block; width: min(100%, 520px); height: auto; padding: 0; border: 0; border-radius: 14px; background: var(--cream-300); box-shadow: 0 16px 30px -18px rgb(0 0 0 / .6); }
.msg .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.msg .btns button { padding: 9px 16px; border: 1px solid var(--dk-line); border-radius: 10px; background: rgb(243 231 211 / .1); color: var(--cream-100); font: 600 15px/1.2 var(--f-body); cursor: pointer; transition: background-color .25s, transform .3s var(--ease-out); }
.msg .btns button:hover:not(:disabled) { background: rgb(243 231 211 / .18); transform: translateY(-2px); }
.msg .btns button:disabled { cursor: default; opacity: .5; }
.msg .btns button.right { opacity: 1; background: var(--teal-600); border-color: var(--teal-400); }
.msg .btns button.wrong { opacity: 1; background: var(--coral-800); border-color: var(--coral-600); }
.typing { display: flex; align-items: center; gap: 4px; padding-inline-start: 56px; color: var(--dk-muted); font-size: 13px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dk-muted); animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; margin-inline-end: 6px; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }
.chat-bar { display: flex; flex-direction: column; gap: 12px; padding: 14px 22px 18px; border-top: 1px solid var(--dk-line); background: rgb(243 231 211 / .02); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chips button {
  padding: 8px 15px; border: 1px solid rgb(255 203 87 / .38); border-radius: var(--r-pill); background: transparent; color: var(--yellow-300);
  font: 600 14px/1.2 var(--f-body); cursor: pointer; transition: background-color .25s, color .25s, transform .3s var(--ease-out);
}
.chat-chips button:hover { background: rgb(255 203 87 / .14); color: var(--cream-100); transform: translateY(-2px); }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--dk-line); border-radius: 14px; background: rgb(243 231 211 / .06); transition: border-color .25s, box-shadow .25s; }
.chat-input:focus-within { border-color: rgb(255 203 87 / .5); box-shadow: 0 0 0 4px rgb(255 203 87 / .1); }
.chat-input input { flex: 1; min-width: 0; padding: 8px 10px; border: 0; outline: none; background: none; color: var(--cream-100); font: 500 16px/1.5 var(--f-body); }
.chat-input input::placeholder { color: var(--dk-muted); }
.send { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 11px; background: var(--grad-gold); color: var(--ink-900); cursor: pointer; transition: transform .35s var(--ease-spring); }
.send:hover { transform: scale(1.06); }
.send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .send svg { transform: scaleX(-1); }

/* =====================================================================================================================
   How to add the bot: four steps joined by a dotted line, and the note on servers that already exist
   ===================================================================================================================== */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps::before {
  content: ""; position: absolute; top: 25px; inset-inline: 12.5%; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--cream-600) 0 8px, transparent 8px 16px); opacity: .7;
  transform: scaleX(0); transform-origin: right; transition: transform 1.6s var(--ease-out) .25s;
}
[dir="ltr"] .steps::before { transform-origin: left; }
.steps.in::before { transform: scaleX(1); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.step-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font: 800 22px/1 var(--f-latin); color: var(--ink-900); background: linear-gradient(135deg, #FF9670, #FFCB57);
  box-shadow: 0 0 0 7px var(--lt-page), 0 12px 24px -10px rgb(240 98 61 / .7), inset 0 1px 0 rgb(255 255 255 / .45);
  transform: scale(.3); opacity: 0; transition: transform .8s var(--ease-spring), opacity .4s;
}
.steps.in .step-n { transform: none; opacity: 1; transition-delay: calc(var(--i, 0) * 140ms + .2s); }
.step-card { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; --card-pad: 22px 22px 24px; border-radius: 24px; }
.step-card .tile { width: 54px; margin-bottom: 4px; }
.step-card h3 { font: 800 20px/1.35 var(--f-display); }
.step-card p { color: var(--lt-muted); font-size: 15px; line-height: 1.85; }
.step-card .btn, .step-card .warn-link { margin-top: auto; }
.step-card p:last-child { margin-bottom: 0; }
.warn-link {
  display: inline-flex; align-items: center; gap: 6px; padding-top: 4px; color: var(--coral-text); font-size: 14.5px; font-weight: 700;
  text-decoration: underline; text-decoration-color: rgb(184 67 31 / .35); text-underline-offset: 5px; transition: text-decoration-color .3s;
}
.warn-link .ic { width: 18px; height: 18px; }
.warn-link:hover { text-decoration-color: currentColor; }

.setup-warn {
  max-width: 940px; margin: 30px auto 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px;
  --card-pad: clamp(20px, 2.6vw, 30px); border-radius: 26px; scroll-margin-top: calc(var(--head-h) + 24px);
  background: linear-gradient(180deg, #FFFBF2, #FFF5E2); border-color: rgb(242 174 58 / .35);
}
.setup-warn::before { content: ""; position: absolute; inset-block: 22px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad-gold); }
[dir="rtl"] .setup-warn::before { border-radius: 4px 0 0 4px; }
.warn-tile .tile { width: 54px; }
.warn-body { display: grid; gap: 10px; min-width: 0; }
.warn-body h3 { font: 800 21px/1.35 var(--f-display); }
.warn-body p { color: var(--lt-text-2); font-size: 15.5px; line-height: 1.9; }
.warn-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.warn-body li { position: relative; padding-inline-start: 22px; color: var(--lt-muted); font-size: 15px; line-height: 1.85; }
.warn-body li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-600); box-shadow: 0 0 0 3px rgb(255 203 87 / .28); }
.setup-warn:target { animation: warn-glow 1.8s var(--ease-out); }
@keyframes warn-glow { 0%, 30% { box-shadow: 0 0 0 6px rgb(255 203 87 / .45), var(--sh-md); } 100% { box-shadow: var(--sh-md), inset 0 1px 0 rgb(255 255 255 / .9); } }

/* =====================================================================================================================
   The closing call: a teal band with the gate at its end
   ===================================================================================================================== */
.closing { padding-top: clamp(8px, 2vw, 24px); }
.close-band {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: center; min-height: clamp(270px, 24vw, 330px);
  padding: clamp(26px, 4vw, 56px); border-radius: var(--r-2xl); color: var(--cream-100); color-scheme: dark; --focus: var(--yellow-500);
  background: var(--teal-800); box-shadow: 0 50px 90px -40px rgb(12 43 45 / .65);
}
.close-copy { position: relative; z-index: 2; display: grid; justify-items: start; gap: 12px; max-width: 54%; }
.close-copy h2 { font: 800 clamp(26px, 3vw, 42px)/1.3 var(--f-display); text-shadow: 0 2px 18px rgb(6 26 28 / .35); }
.close-copy p { color: var(--dk-muted); font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.8; }
.close-copy .btn-row { margin-top: 6px; }

/* the footer's waves overlap its top a little more than their sway lifts them, and the front wave (the colour of the teal
   under it) reaches below its box, so the yellow and coral layers behind never show as a hairline at the foot when the
   layers sway out of step (the footer, the cards' band and the phone menu all use these waves) */
.home .sf-waves { bottom: calc(100% - 6px); }
.home .sf-f3 { bottom: -6px; height: calc(58% + 6px); }

/* ---- shared motion ---- */
/* the page's own loops rest while their block is off screen (home.js marks the block .is-awake) */
.tiers:not(.is-awake) .sheen::before, .try-stage:not(.is-awake) .float, .feat:not(.is-awake) .card-teal::before { animation-play-state: paused; }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes price-in { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shot-in { from { opacity: .2; transform: scale(1.03); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glow-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30%, -12%, 0); } }

/* =====================================================================================================================
   Smaller screens
   ===================================================================================================================== */
@media (max-width: 1260px) { .float { display: none; } }
/* five narrow cards in a row (1181–1320px): a smaller tile leaves the words more room */
@media (min-width: 1181px) and (max-width: 1320px) {
  .feat-row .fcard { --card-pad: 12px 12px 10px; column-gap: 10px; }
  .feat-row .fcard .tile { width: 46px; }
  .feat-row .fcard-title { font-size: 15.5px; }
  .feat-row .fcard-text { font-size: 13px; }
}
/* the three panels share a row from 1321px; below that the live demo and the games sit side by side, the plans under them */
@media (max-width: 1320px) {
  .trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plans-mini { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .feat-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feat-row > li { grid-column: span 2; }
  .feat-row > li:nth-child(n + 4) { grid-column: span 3; }
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps::before { display: none; }
  .stage { grid-template-columns: minmax(200px, .4fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .tiers-list { grid-template-columns: minmax(0, 1fr); }
  .game-stage { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* the chosen game's card on top, the games in three rows that slide sideways right under it, so a tap always changes
     a card that is on screen */
  .game-show { position: relative; top: auto; order: -1; }
  /* a steady frame: the card keeps one height whichever game is shown, so the row under it never jumps under a finger */
  .gshot { aspect-ratio: 1000 / 600; max-height: 46svh; margin-inline: auto; }
  .gshot img { height: 100%; max-height: none; object-fit: contain; object-position: center; }
  .game-card p { min-height: calc(1.8em * 3); }
  .wall {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: max-content; justify-content: start; gap: 8px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .wall::-webkit-scrollbar { display: none; }
  .wall > button { scroll-snap-align: start; }
}
@media (max-width: 820px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stack { order: -1; padding: 0 0 12% 10%; }
  .stage-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-inline: -2px; scroll-snap-type: x proximity; }
  .stage-list::-webkit-scrollbar { display: none; }
  .stage-list li { flex: none; scroll-snap-align: center; }
  .stage-list button { width: auto; padding: 7px 14px 9px 10px; font-size: 15px; white-space: nowrap; background: rgb(243 231 211 / .05); }
  [dir="rtl"] .stage-list button { padding: 7px 10px 9px 14px; }
  .stage-list .tile { width: 30px; }
  .stage-cap { min-height: 3.6em; margin-top: 10px; }
}
@media (max-width: 760px) {
  .home-hero { min-height: 0; padding-bottom: 0; align-items: flex-start; }
  .hero-inner { padding-top: 26px; justify-items: center; text-align: center; gap: 18px; }
  .hero-inner .meta-line, .hero-inner .btn-row { justify-content: center; }
  .hero-note { justify-content: center; font-size: 13.5px; }
  .feat { margin-top: -22px; }
  .feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; gap: 8px; border-radius: 26px; }
  .feat-row > li, .feat-row > li:nth-child(n + 4) { grid-column: auto; }
  .feat-row > li:last-child { grid-column: 1 / -1; }
  /* two cards a row on phones: the tile and the arrow on top, the title and its line under them */
  .feat-row .fcard { grid-template-areas: "tile go" "body body"; grid-template-rows: auto 1fr; gap: 10px; --card-pad: 14px 14px 16px; border-radius: 20px; }
  .feat-row .fcard > [data-tile], .feat-row .fcard .arrow-btn { align-self: start; }
  .feat-row > li:last-child .fcard { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tile body go"; grid-template-rows: auto; gap: 4px 14px; align-items: center; }
  .feat-row > li:last-child .fcard .arrow-btn { align-self: center; }
  .feat-row .fcard .tile { width: 50px; }
  .feat-row .fcard .arrow-btn { width: 30px; height: 30px; }
  .feat-row .fcard-title { font-size: 16px; }
  .feat-row .fcard-text { font-size: 13.5px; line-height: 1.65; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .live-card { grid-template-columns: minmax(0, 1fr); text-align: start; min-height: 0; gap: 14px; }
  .live-art { width: min(100%, 320px); justify-self: center; margin: 0 auto -8px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { flex-direction: row; align-items: flex-start; gap: 14px; }
  .step-n { width: 44px; height: 44px; font-size: 19px; flex: none; margin-top: 6px; }
  .step-card .tile { width: 48px; }
  .setup-warn { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  /* the row runs to the panel's edges (as the games track does), so the next plan slides in from the edge, shadows whole */
  .plans3 {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: -4px -20px -16px; padding: 4px 20px 16px; scroll-padding-inline: 20px;
  }
  .plans3::-webkit-scrollbar { display: none; }
  .mini { scroll-snap-align: start; }
  .mini-tag { min-height: 0; }
  .seg button { padding-inline: 16px; font-size: 15px; }
  .show-band { border-radius: 28px; }
  /* the comparison fits the phone: the values wrap under each other instead of scrolling sideways */
  .compare table { min-width: 0; font-size: 13.5px; }
  .compare th, .compare td { padding: 10px 6px; }
  .compare thead th, .compare tbody th { white-space: normal; }
  .compare thead th { font-size: 14px; }
  .compare thead .th-in { flex-direction: column; gap: 2px; }
  .compare tbody th .ic { display: none; }
  .compare tbody th { font-size: 13.5px; }
  .close-band { padding-bottom: 120px; }
  .close-band .sc-wave { height: 112px; }
  .try-stage::before { inset-inline: 0; }
  .chat-head { padding: 12px 14px; gap: 10px; }
  .chat-dots { display: none; }
  .chan { font-size: 15px; }
  .wallet { font-size: 12.5px; padding: 3px 10px; }
  .chat-log { min-height: 240px; max-height: clamp(280px, 100svh - 300px, 560px); padding: 16px 14px 8px; }
  .msg { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; }
  .msg .av { width: 34px; height: 34px; }
  .typing { padding-inline-start: 44px; }
  .chat-bar { padding: 12px 14px 14px; }
  .chat { border-radius: 22px; box-shadow: 0 0 0 6px rgb(255 251 244 / .7), 0 0 0 7px var(--lt-line), 0 40px 70px -40px rgb(12 43 45 / .75); }
  .tier-head h3 { font-size: 23px; }
  .close-copy { max-width: 100%; }
  .close-band { min-height: 0; }
  .gname { font-size: 21px; }
}
@media (max-width: 420px) {
  .home-hero .display { font-size: clamp(34px, 10.4vw, 44px); }
  /* the six words stay on one line */
  .home-hero .meta-line { font-size: clamp(13px, 3.75vw, 15.5px); }
  .home-hero .meta-line > li:not(:last-child)::after { margin-inline: 6px; width: 4px; height: 4px; }
  .wall { gap: 8px; }
  .wall button { min-height: 44px; font-size: 14px; gap: 8px; padding-inline-end: 12px; border-radius: 15px; }
  .wall button .tile { width: 30px; }
  .seg button { padding-inline: 12px; font-size: 14.5px; gap: 6px; }
  /* the comparison keeps every «27 مسابقة» whole and still fits a 360px screen */
  .compare th, .compare td { padding: 10px 4px; }
  .compare td { font-size: 13px; }
}
@media (max-width: 400px) {
  /* the featured panel's title wraps beside its link instead of running under it */
  .picks .panel-head { gap: 10px; }
  .picks .panel-title { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.25; }
  .picks .panel-title .ic { flex: none; }
  .picks .link-more { flex: none; }
  /* English words are longer: each count's noun drops under its number, so the table fits a 360px screen */
  html[lang="en"] .compare .nw { white-space: normal; }
  html[lang="en"] .compare .noun { display: block; font-size: 12px; line-height: 1.3; color: var(--lt-muted); }
  html[lang="en"] .compare .plus { font-size: 11.5px; }
}
