/* SMRbot public pages (home, events): the shared chrome on top of brand.css.
   Load order: brand.css, then site.css, then the page's own css. Everything here is RTL first and holds at 360px.
   The motion here plays even when the device asks for less motion: the owner wants the site to move.
   art-preview.html shows every piece; copy its header, sheet and footer markup.

   Contents (classes to use)
   - base ........ body.site  .wrap  .wrap-wide  .section  .section-tight  .num  .ltr  .muted  .sr-only  .skip-link
   - type ........ .display (.line)  .hl  .lead  .meta-line (ul > li)  .eyebrow  .intro (children rise in on load)
   - header ...... header.site-head (.solid when no dark hero under it) > .sh-inner > a.sh-logo (.logo-mark .sh-sep .sh-word)
                   nav.sh-nav (a[aria-current="page"])  .sh-actions  button.sh-menu[aria-controls]
                   .sh-sheet[hidden] > .sh-scrim[data-close] + .sh-panel (.sh-panel-head .sh-panel-nav .sh-panel-actions .sh-panel-waves)
   - buttons ..... .btn + .btn-coral | .btn-cream | .btn-teal | .btn-gold | .btn-ghost ; .btn-sm .btn-lg .btn-icon .btn-block ; .btn-row
                   .link-more  .arrow-btn
   - heads ....... .sec-head (> div + link) .sec-title .sec-sub .sec-head.center .panel-title
   - cards ....... .card  .card-sunk  .card-teal (.waved)  .card-glass  .card-hover  .fcard (.fcard-body .fcard-title .fcard-text)
   - chips ....... .chips (.chips-scroll)  .chip[aria-pressed] (.chip-n)  .chip-tile  .pill(-teal|-coral|-gold|-cream|-solid|-glass)
                   .badge-live  .stat-chip (.stat-n .stat-l)  .stats-row
   - reveal ...... [data-reveal] = rise | "fade" | "zoom" | "start" | "end" | "stagger" ; data-reveal-delay="ms"  (art.js mountReveal)
   - carousel .... .car[data-carousel] > .car-track + .car-prev/.car-next (.car-btn, .car-nav, .car-side) + .car-dots (art.js carousel)
   - hero ........ section.site-hero > [data-scene] + content (.scene-room at its end for phones)
   - dialog ...... dialog.modal > .modal-head (.modal-close) + .modal-body
   - footer ...... footer.site-foot > .sf-waves + .sf-inner (.sf-brand .sf-logo .sf-tag | nav.sf-cols > .sf-col) + .sf-bottom
   - monitor ..... art.js monitorArt() (.mn-* keyframes here)
   brand.css holds the tokens, .ic, .tile, .gtile and the scene, which the dashboards use too. */

/* =====================================================================================================================
   Base
   ===================================================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
:root { --head-h: 78px; }
@media (max-width: 980px) { :root { --head-h: 66px; } }
html:has(> body.site) { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
html.sh-lock { overflow: hidden; }
.site {
  margin: 0; min-height: 100vh; overflow-x: clip; color-scheme: light;
  background: var(--lt-page); color: var(--lt-text); --focus: var(--teal-600);
  font: 400 17px/1.75 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:where(.site) :where(h1, h2, h3, h4, p, figure, blockquote, dl, dd) { margin: 0; }
:where(.site) :where(h1, h2, h3, h4) { font-family: var(--f-display); text-wrap: balance; }
:where(.site) :where(a) { color: inherit; }
:where(.site) :where(img, video) { max-width: 100%; height: auto; }
:where(.site) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.site :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--cream-100); color: var(--teal-800); font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease-out); }
.skip-link:focus { transform: none; }
.sh-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.num { font-family: var(--f-latin); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--lt-muted); }
.on-dark .muted, .card-teal .muted, .site-hero .muted { color: var(--dk-muted); }

/* =====================================================================================================================
   Type
   ===================================================================================================================== */
.display { font: 800 clamp(38px, 5.4vw, 76px)/1.24 var(--f-display); letter-spacing: -.005em; text-wrap: balance; }
.display .line { display: block; }
.hl { color: var(--yellow-500); }
.on-light .hl, .card .hl { color: var(--coral-text); }
.lead { font: 500 clamp(17px, 1.45vw, 20px)/1.85 var(--f-body); color: var(--lt-muted); max-width: 58ch; }
.site-hero .lead, .on-dark .lead, .card-teal .lead { color: var(--dk-muted); }
/* «إدارة • حماية • اقتصاد …» */
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font: 600 clamp(15px, 1.35vw, 19px)/1.6 var(--f-body); }
.meta-line > li { display: inline-flex; align-items: center; }
.meta-line > li:not(:last-child)::after { content: ""; width: 6px; height: 6px; margin-inline: 12px; border-radius: 50%; background: var(--yellow-500); box-shadow: 0 0 0 3px rgb(255 203 87 / .18); }
@media (max-width: 420px) { .meta-line > li:not(:last-child)::after { margin-inline: 8px; width: 5px; height: 5px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--coral-50); color: var(--coral-800); font: 700 13.5px/1.2 var(--f-body); letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgb(255 122 86 / .18);
}
.eyebrow .ic { width: 16px; height: 16px; color: var(--coral-600); }
.site-hero .eyebrow, .on-dark .eyebrow, .card-teal .eyebrow { background: rgb(255 203 87 / .14); color: var(--yellow-300); box-shadow: inset 0 0 0 1px rgb(255 203 87 / .28); }
.site-hero .eyebrow .ic, .on-dark .eyebrow .ic, .card-teal .eyebrow .ic { color: var(--yellow-500); }

/* the hero's copy arrives line by line when the page opens */
.intro > * { animation: intro-rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 180ms); }
.intro > :nth-child(2) { --i: 1; } .intro > :nth-child(3) { --i: 2; } .intro > :nth-child(4) { --i: 3; }
.intro > :nth-child(5) { --i: 4; } .intro > :nth-child(6) { --i: 5; } .intro > :nth-child(7) { --i: 6; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* =====================================================================================================================
   Header over the hero (+ the phone menu sheet). mountSiteHeader() adds .scrolled and runs the sheet.
   ===================================================================================================================== */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top);
  color: var(--dk-text); --focus: var(--yellow-500); color-scheme: dark;
  transition: background-color .45s var(--ease-soft), box-shadow .45s var(--ease-soft), backdrop-filter .45s;
}
.site-head::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(8 31 33 / .5), transparent); transition: opacity .45s; }
.site-head.scrolled { background: rgb(12 43 45 / .84); backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35); box-shadow: 0 14px 34px -22px rgb(0 0 0 / .7), inset 0 -1px 0 var(--dk-line); }
.site-head.scrolled::after { opacity: 0; }
/* a page without a dark hero under the header: the glass from the start */
.site-head.solid { background: rgb(12 43 45 / .92); backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35); box-shadow: inset 0 -1px 0 var(--dk-line); }
.site-head.solid::after { opacity: 0; }
.sh-inner { height: var(--head-h); width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); }
.sh-logo { display: inline-flex; align-items: center; gap: 12px; flex: none; color: inherit; text-decoration: none; border-radius: 12px; }
.sh-logo .logo-mark { height: 30px; transition: transform .6s var(--ease-spring); }
.sh-logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.sh-logo .sh-sep { width: 1px; height: 28px; background: rgb(243 231 211 / .28); }
.sh-word { font: 800 25px/1 var(--f-latin); letter-spacing: .01em; color: var(--cream-100); }
.sh-nav { flex: 1; display: flex; justify-content: center; gap: 2px; }
.sh-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-pill);
  color: rgb(243 231 211 / .84); text-decoration: none; font: 600 15px/1 var(--f-body); white-space: nowrap;
  transition: color .3s, background-color .3s;
}
.sh-nav a .ic { width: 18px; height: 18px; color: rgb(255 219 126 / .85); transition: transform .45s var(--ease-spring), color .3s; }
.sh-nav a::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--coral-500), var(--yellow-500)); transform: scaleX(0); transition: transform .45s var(--ease-out);
}
.sh-nav a:hover { color: var(--cream-100); background: rgb(243 231 211 / .07); }
.sh-nav a:hover .ic { transform: translateY(-2px) rotate(-6deg); color: var(--yellow-500); }
.sh-nav a[aria-current="page"], .sh-nav a.on { color: var(--cream-100); }
.sh-nav a[aria-current="page"]::after, .sh-nav a.on::after { transform: scaleX(1); }
.sh-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.sh-menu {
  display: none; width: 46px; height: 46px; flex: none; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border-radius: 14px; border: 1px solid rgb(243 231 211 / .22); background: rgb(243 231 211 / .07); color: var(--cream-100);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease-out);
}
.sh-menu .ic { width: 24px; height: 24px; }
.sh-menu:hover { background: rgb(243 231 211 / .14); border-color: rgb(255 203 87 / .5); }
.sh-menu:active { transform: scale(.94); }
@media (max-width: 1120px) {
  .sh-nav a { padding-inline: 10px; font-size: 14.5px; }
  .sh-nav a .ic { display: none; }
}
@media (max-width: 980px) {
  .sh-nav, .sh-actions .btn-cream { display: none; }
  .sh-actions { margin-inline-start: auto; }
  .sh-menu { display: inline-flex; }
  .sh-logo .sh-sep { display: none; }
}
@media (max-width: 420px) {
  .sh-word { font-size: 21px; }
  .sh-logo { gap: 9px; }
  .sh-logo .logo-mark { height: 25px; }
  .sh-actions .btn { padding-inline: 13px; font-size: 14px; gap: 6px; }
  .sh-menu { width: 42px; height: 42px; }
}

/* the sheet: a teal panel sliding in from the start side, links that rise in one after another */
.sh-sheet { position: fixed; inset: 0; z-index: 70; color-scheme: dark; }
.sh-sheet[hidden] { display: none; }
.sh-scrim { position: absolute; inset: 0; background: rgb(6 24 26 / .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .45s var(--ease-out); }
.sh-panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 400px); overflow: hidden auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 18px 0;
  background: radial-gradient(120% 60% at 100% 0%, rgb(63 135 138 / .5), transparent 60%), var(--grad-teal);
  color: var(--dk-text); --focus: var(--yellow-500); box-shadow: -30px 0 60px -20px rgb(0 0 0 / .5);
  translate: 100% 0; transition: translate .55s var(--ease-out);
}
[dir="ltr"] .sh-panel { translate: -100% 0; }
.sh-sheet.open .sh-scrim { opacity: 1; }
.sh-sheet.open .sh-panel { translate: 0 0; }
.sh-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sh-panel-head .sh-menu { display: inline-flex; }
.sh-panel-nav { display: grid; gap: 4px; }
.sh-panel-nav a {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 16px; text-decoration: none;
  font: 700 18px/1.3 var(--f-body); color: var(--cream-100); transition: background-color .3s, transform .3s var(--ease-out);
  opacity: 0; transform: translateX(24px);
}
[dir="ltr"] .sh-panel-nav a { transform: translateX(-24px); }
.sh-panel-nav a .ic { width: 22px; height: 22px; color: var(--yellow-500); }
.sh-panel-nav a .ic-go { margin-inline-start: auto; color: rgb(243 231 211 / .5); }
.sh-panel-nav a .ic-go .ic, .sh-panel-nav a .ic.ic-go { width: 18px; height: 18px; color: inherit; }
.sh-panel-nav a:hover, .sh-panel-nav a[aria-current="page"] { background: rgb(243 231 211 / .09); }
.sh-sheet.open .sh-panel-nav a { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), background-color .3s; transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.sh-panel-nav a:nth-child(2) { --i: 1; } .sh-panel-nav a:nth-child(3) { --i: 2; } .sh-panel-nav a:nth-child(4) { --i: 3; }
.sh-panel-nav a:nth-child(5) { --i: 4; } .sh-panel-nav a:nth-child(6) { --i: 5; } .sh-panel-nav a:nth-child(7) { --i: 6; }
.sh-panel-actions { display: grid; gap: 10px; margin-top: 22px; }
.sh-panel-actions .btn { width: 100%; }
.sh-panel-waves { position: relative; margin: auto -18px 0; padding-top: 28px; height: 110px; flex: none; overflow: hidden; --foot-bg: #153D40; }

/* =====================================================================================================================
   Buttons: .btn + one of .btn-coral .btn-cream .btn-teal .btn-gold .btn-ghost; sizes .btn-sm .btn-lg; .btn-icon .btn-block
   They lift on hover and a band of light sweeps across them.
   ===================================================================================================================== */
.btn {
  --btn-bg: linear-gradient(180deg, #FFFCF5, #F3E7D3); --btn-fg: var(--teal-800);
  --btn-sh: 0 1px 1px rgb(255 255 255 / .6) inset, var(--sh-sm); --btn-sh-hover: 0 1px 1px rgb(255 255 255 / .6) inset, var(--sh-md);
  --sw-from: 150%; --sw-to: -360%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 11px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-sh);
  font: 700 16px/1.2 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s, background-color .3s, color .3s;
}
[dir="ltr"] .btn { --sw-from: -150%; --sw-to: 360%; }
.btn::after {
  content: ""; position: absolute; inset-block: -30%; inset-inline-start: 0; width: 42%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent); transform: translateX(var(--sw-from)) skewX(-20deg);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--btn-sh-hover); }
.btn:hover::after { transition: transform .9s var(--ease-out); transform: translateX(var(--sw-to)) skewX(-20deg); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn .ic { width: 1.3em; height: 1.3em; transition: transform .45s var(--ease-spring); }
.btn:hover .ic-arrow-left, .btn:hover .ic-chevron-left { transform: translateX(-4px); }
.btn:hover .ic-arrow, .btn:hover .ic-chevron-right { transform: translateX(4px); }
.btn:hover .ic-play { transform: scale(1.12); }
.btn:hover .ic-discord { transform: rotate(-8deg) scale(1.08); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* coral: deep teal letters on coral (AA); --btn-coral-ink can be changed in one place */
.btn-coral {
  --btn-bg: var(--grad-coral); --btn-fg: var(--btn-coral-ink, #0A2426);
  --btn-sh: inset 0 1px 0 rgb(255 255 255 / .38), var(--sh-coral); --btn-sh-hover: inset 0 1px 0 rgb(255 255 255 / .45), 0 18px 34px -14px rgb(240 98 61 / .8);
}
.btn-cream { --btn-bg: linear-gradient(180deg, #FFFCF5, #F1E3CC); --btn-fg: var(--teal-800); }
.btn-teal {
  --btn-bg: var(--grad-teal); --btn-fg: var(--cream-100);
  --btn-sh: inset 0 1px 0 rgb(243 231 211 / .14), 0 12px 26px -14px rgb(12 43 45 / .8); --btn-sh-hover: inset 0 1px 0 rgb(243 231 211 / .18), 0 18px 34px -14px rgb(12 43 45 / .85);
}
.btn-teal::after { background: linear-gradient(100deg, transparent, rgb(255 255 255 / .2), transparent); }
.btn-gold { --btn-bg: var(--grad-gold); --btn-fg: var(--ink-900); --btn-sh: inset 0 1px 0 rgb(255 255 255 / .45), var(--sh-gold); --btn-sh-hover: inset 0 1px 0 rgb(255 255 255 / .5), 0 18px 34px -14px rgb(242 174 58 / .85); }
.btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 36%, transparent); box-shadow: none; }
.btn-ghost::after { background: linear-gradient(100deg, transparent, color-mix(in srgb, currentColor 16%, transparent), transparent); }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); border-color: color-mix(in srgb, currentColor 70%, transparent); box-shadow: none; }
.btn-sm { min-height: 42px; padding: 8px 18px; gap: 8px; font-size: 14.5px; }
.btn-lg { min-height: 60px; padding: 14px 34px; gap: 12px; font-size: 18px; }
.btn-icon { width: 46px; min-height: 46px; padding: 0; gap: 0; }
.btn-icon.btn-sm { width: 40px; min-height: 40px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 420px) { .btn-row > .btn-lg { flex: 1 1 100%; } }

/* «عرض الكل ←»: a quiet link with an arrow that leans forward */
.link-more { display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1.2 var(--f-body); color: var(--teal-700); text-decoration: none; padding: 6px 2px; border-radius: 8px; }
.link-more .ic { width: 18px; height: 18px; transition: transform .4s var(--ease-spring); }
.link-more:hover { color: var(--coral-text); }
.link-more:hover .ic-arrow-left { transform: translateX(-4px); }
.on-dark .link-more, .card-teal .link-more { color: var(--yellow-300); }

/* a small round arrow button (in feature cards) */
.arrow-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-700); transition: background-color .35s, color .35s, transform .45s var(--ease-spring);
}
.arrow-btn .ic { width: 17px; height: 17px; }
.card-teal .arrow-btn { background: rgb(243 231 211 / .12); color: var(--cream-100); }
a:hover > .arrow-btn, .arrow-btn:hover, .tile-host:hover .arrow-btn { background: var(--coral-500); color: #0A2426; transform: translateX(-3px); }
[dir="ltr"] a:hover > .arrow-btn, [dir="ltr"] .tile-host:hover .arrow-btn { transform: translateX(3px); }

/* =====================================================================================================================
   Section heads
   ===================================================================================================================== */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; margin-bottom: clamp(22px, 3vw, 36px); }
.sec-head > div { display: grid; gap: 12px; max-width: 760px; justify-items: start; }
.sec-title { display: flex; align-items: center; gap: 12px; font: 800 clamp(26px, 3.1vw, 40px)/1.3 var(--f-display); color: var(--lt-text); }
.sec-title .ic { width: .9em; height: .9em; color: var(--yellow-600); flex: none; }
.sec-title .tile { width: 1.35em; }
.sec-sub { color: var(--lt-muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.8; max-width: 62ch; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center > div { justify-items: center; }
.sec-head.center .sec-title { justify-content: center; }
.on-dark .sec-title, .card-teal .sec-title { color: var(--dk-text); }
.on-dark .sec-sub, .card-teal .sec-sub { color: var(--dk-muted); }
/* a small title inside a card or panel */
.panel-title { display: flex; align-items: center; gap: 10px; font: 800 20px/1.35 var(--f-display); }
.panel-title .ic { width: 22px; height: 22px; color: var(--yellow-600); }
.card-teal .panel-title .ic { color: var(--yellow-500); }

/* =====================================================================================================================
   Cards: .card (near-white, soft shadow) and .card-teal; .card-hover lifts; .fcard is the feature card
   ===================================================================================================================== */
.card, .card-teal {
  position: relative; border-radius: var(--r-lg); padding: var(--card-pad, clamp(18px, 2vw, 26px));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.card { background: var(--lt-card); color: var(--lt-text); border: 1px solid var(--lt-line); box-shadow: var(--sh-md), inset 0 1px 0 rgb(255 255 255 / .9); --focus: var(--teal-600); }
.card-sunk { background: var(--lt-card-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7); }
.card-teal {
  color: var(--dk-text); border: 1px solid rgb(243 231 211 / .1); box-shadow: var(--sh-teal); --focus: var(--yellow-500); color-scheme: dark; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgb(63 135 138 / .45), transparent 55%), var(--grad-teal);
}
/* a few soft waves at the foot of a teal card */
.card-teal.waved::after {
  content: ""; position: absolute; inset: auto 0 0; height: 46%; z-index: -1; pointer-events: none; opacity: .9;
  background:
    radial-gradient(75% 85% at 12% 118%, rgb(255 122 86 / .55), transparent 70%),
    radial-gradient(65% 75% at 88% 125%, rgb(255 203 87 / .42), transparent 70%);
}
.card-glass { background: rgb(243 231 211 / .07); border: 1px solid rgb(243 231 211 / .14); color: var(--dk-text); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -24px rgb(0 0 0 / .6); }
.card-hover:hover, a.card:hover, a.card-teal:hover, button.card:hover { transform: translateY(-5px); }
.card-hover:hover, a.card:hover, button.card:hover { box-shadow: var(--sh-lg), inset 0 1px 0 rgb(255 255 255 / .9); border-color: var(--lt-line-2); }
a.card-teal:hover, .card-teal.card-hover:hover { box-shadow: 0 34px 64px -26px rgb(12 43 45 / .85), inset 0 1px 0 rgb(243 231 211 / .12); }
:where(a.card, a.card-teal) { display: block; text-decoration: none; }

/* the feature card: an illustrated tile at the start, a title and one line, a small arrow at the end */
.fcard { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tile body" "tile go"; align-items: start; gap: 6px 16px; text-decoration: none; }
.fcard > .tile, .fcard > [data-tile], .fcard > [data-game-tile], .fcard-tile { grid-area: tile; align-self: start; }
.fcard .tile { width: 64px; }
.fcard-body { grid-area: body; display: grid; gap: 4px; }
.fcard-title { font: 800 18.5px/1.35 var(--f-display); }
.fcard-text { font-size: 14.5px; line-height: 1.65; color: var(--lt-muted); }
.card-teal .fcard-text, .fcard.card-teal .fcard-text { color: var(--dk-muted); }
.fcard .arrow-btn { grid-area: go; justify-self: end; margin-top: 4px; }

/* =====================================================================================================================
   Chips, pills, badges, stat chips
   ===================================================================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; margin-inline: -2px; scroll-snap-type: x proximity; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll > * { scroll-snap-align: start; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--lt-line); background: var(--lt-card); color: var(--lt-text-2); box-shadow: var(--sh-xs);
  font: 700 14.5px/1.1 var(--f-body); white-space: nowrap; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.chip .ic { width: 18px; height: 18px; color: var(--teal-600); transition: color .3s, transform .45s var(--ease-spring); }
.chip:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); border-color: var(--lt-line-2); }
.chip:hover .ic { transform: rotate(-8deg) scale(1.1); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip.on {
  background: var(--grad-teal); color: var(--cream-100); border-color: transparent;
  box-shadow: inset 0 1px 0 rgb(243 231 211 / .14), 0 10px 22px -12px rgb(12 43 45 / .8);
}
.chip[aria-pressed="true"] .ic, .chip.on .ic { color: var(--yellow-500); }
.chip-n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--lt-sunk); color: var(--lt-text-2); font: 700 12px/1 var(--f-latin); }
.chip[aria-pressed="true"] .chip-n, .chip.on .chip-n { background: rgb(243 231 211 / .16); color: var(--cream-100); }
/* the square chip with the icon above the word (the events filter, as in the mockups) */
.chip-tile { flex-direction: column; justify-content: center; gap: 7px; min-width: 88px; min-height: 76px; padding: 12px 12px 10px; border-radius: 18px; font-size: 13.5px; }
.chip-tile .ic { width: 26px; height: 26px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--r-pill); font: 700 12.5px/1.3 var(--f-body); white-space: nowrap; background: var(--teal-100); color: var(--teal-800); }
.pill .ic { width: 14px; height: 14px; }
.pill-teal { background: var(--teal-100); color: var(--teal-800); }
.pill-coral { background: var(--coral-100); color: var(--coral-800); }
.pill-gold { background: var(--yellow-100); color: var(--yellow-text); }
.pill-cream { background: var(--cream-300); color: var(--teal-800); }
.pill-solid { background: var(--grad-teal); color: var(--cream-100); }
.pill-solid.coral { background: var(--grad-coral); color: #0A2426; }
.pill-solid.gold { background: var(--grad-gold); color: var(--ink-900); }
.pill-glass { background: rgb(243 231 211 / .12); color: var(--cream-100); box-shadow: inset 0 0 0 1px rgb(243 231 211 / .18); }

/* «تجربة مباشرة»: a pill with a dot that sends out a ring */
.badge-live { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--yellow-100); color: var(--coral-800); font: 700 13.5px/1.2 var(--f-body); }
.badge-live .dot, .badge-live::before { content: ""; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--coral-500); flex: none; }
.badge-live::after { content: ""; position: absolute; inset-inline-start: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 2px solid var(--coral-500); animation: live-ring 1.9s var(--ease-out) infinite; }
@keyframes live-ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }

/* a cream box with a tile, a number that counts up and its label (the events hero) */
.stat-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 20px;
  background: linear-gradient(180deg, #FFFCF6, #F3E7D3); color: var(--teal-800); box-shadow: var(--sh-md), inset 0 1px 0 rgb(255 255 255 / .9);
}
[dir="rtl"] .stat-chip { padding: 10px 12px 10px 18px; }
.stat-chip .tile { width: 44px; }
.stat-chip .stat-n { display: block; font: 800 28px/1 var(--f-latin); font-variant-numeric: tabular-nums; }
.stat-chip .stat-l { display: block; margin-top: 4px; font: 600 13.5px/1.2 var(--f-body); color: var(--lt-muted); }
.stats-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) {
  .stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-chip { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; }
  .stat-chip .tile { width: 34px; }
  .stat-chip .stat-n { font-size: 22px; }
  .stat-chip .stat-l { font-size: 12px; }
}

/* =====================================================================================================================
   Reveal on scroll: [data-reveal] → .in (art.js mountReveal). Hidden until the module runs; a fail-safe shows
   everything after 2.5s if it never does.
   ===================================================================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--d-reveal) var(--ease-out), transform 1.05s var(--ease-out); transition-delay: var(--rv-delay, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="zoom"] { transform: translateY(14px) scale(.94); }
[data-reveal="start"] { transform: translateX(36px); }
[data-reveal="end"] { transform: translateX(-36px); }
[dir="ltr"] [data-reveal="start"] { transform: translateX(-36px); }
[dir="ltr"] [data-reveal="end"] { transform: translateX(36px); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="stagger"] { opacity: 1; transform: none; }
[data-reveal="stagger"] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .95s var(--ease-out); transition-delay: calc(var(--i, 0) * 85ms + var(--rv-delay, 0s)); }
[data-reveal="stagger"].in > * { opacity: 1; transform: none; }
html:not(.rv-on) [data-reveal], html:not(.rv-on) [data-reveal="stagger"] > * { animation: rv-failsafe .01s 2.5s forwards; }
@keyframes rv-failsafe { to { opacity: 1; transform: none; } }

/* =====================================================================================================================
   Carousel (art.js carousel): a scroll-snap track, round buttons, dots
   ===================================================================================================================== */
.car { position: relative; --car-gap: 14px; --car-per: 4; }
.car-track {
  display: grid; grid-auto-flow: column; gap: var(--car-gap);
  grid-auto-columns: calc((100% - (var(--car-per) - 1) * var(--car-gap)) / var(--car-per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 6px 4px 16px; margin: -6px -4px -16px; border-radius: 18px;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }
.car-track:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.car-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--lt-line); background: var(--lt-card); color: var(--teal-700); box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease-out), background-color .3s, color .3s, box-shadow .3s;
}
.car-btn .ic { width: 20px; height: 20px; }
.car-btn:hover { background: var(--teal-700); color: var(--cream-100); transform: translateY(-2px); box-shadow: var(--sh-md); }
.car-btn:active { transform: scale(.94); }
.car-nav { display: inline-flex; gap: 8px; }
/* buttons on the sides of the track instead */
.car-side .car-prev, .car-side .car-next { position: absolute; top: calc(50% - 26px); z-index: 2; }
.car-side .car-prev { inset-inline-start: -16px; }
.car-side .car-next { inset-inline-end: -16px; }
.car-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.car-dots[hidden] { display: none; }
.car-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--cream-500); cursor: pointer; transition: width .5s var(--ease-out), background-color .3s; }
.car-dot.on { width: 26px; background: var(--coral-500); }
.car-dot:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-teal .car-dot { background: rgb(243 231 211 / .3); }
/* the dots stay 8px to look at with a 24px tap area */
.car-dots { gap: 14px; }
.car-dot { position: relative; }
.car-dot::before { content: ""; position: absolute; inset: -8px; border-radius: var(--r-pill); }
@media (max-width: 900px) { .car { --car-per: 3; } }
@media (max-width: 640px) { .car { --car-per: 2.25; } .car-side .car-btn { display: none; } }


/* =====================================================================================================================
   The hero: a teal box under the fixed header, the scene behind its content
   ===================================================================================================================== */
.site-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--dk-text); background: var(--teal-800); color-scheme: dark; --focus: var(--yellow-500);
  padding-top: calc(var(--head-h) + env(safe-area-inset-top));
}
.site-hero > :not(.scene):not([data-scene]) { position: relative; z-index: 2; }
.site-hero .btn-ghost { color: var(--cream-100); }

/* =====================================================================================================================
   Dialog: <dialog class="modal"> with .modal-head / .modal-body (the events «طريقة اللعب»)
   ===================================================================================================================== */
dialog.modal {
  width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 860px); padding: 0; border: 0; border-radius: 26px; overflow: hidden;
  background: var(--lt-card); color: var(--lt-text); box-shadow: var(--sh-xl); color-scheme: light; --focus: var(--teal-600);
}
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in .55s var(--ease-out) both; }
dialog.modal::backdrop { background: rgb(6 24 26 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.modal[open]::backdrop { animation: fade-in .45s var(--ease-out) both; }
.modal-head {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 22px; flex: none; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 120% at 100% 0%, rgb(63 135 138 / .5), transparent 60%), var(--grad-teal); color: var(--cream-100); --focus: var(--yellow-500);
}
.modal-head .tile { width: 52px; }
.modal-head h2, .modal-head h3 { font: 800 21px/1.35 var(--f-display); }
.modal-head .modal-close { margin-inline-start: auto; color: var(--cream-100); }
.modal-body { padding: 22px; overflow: auto; overscroll-behavior: contain; line-height: 1.85; }
@media (max-width: 600px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  dialog.modal[open] { animation: sheet-up .55s var(--ease-out) both; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================================================================
   Footer: teal, with swaying waves on its top edge (art.js footerWaves() in .sf-waves)
   ===================================================================================================================== */
.site-foot {
  position: relative; margin-top: clamp(90px, 11vw, 150px); color: var(--dk-text); color-scheme: dark; --focus: var(--yellow-500);
  background: radial-gradient(70% 90% at 88% 100%, rgb(63 135 138 / .32), transparent 70%), var(--foot-bg);
}
.sf-waves { position: absolute; inset-inline: 0; bottom: calc(100% - 6px); height: clamp(64px, 8vw, 124px); overflow: hidden; pointer-events: none; }
.sf-wave { position: absolute; bottom: 0; left: -80px; width: calc(100% + 160px); height: 100%; animation: sc-sway var(--d, 18s) ease-in-out var(--dl, 0s) infinite alternate; will-change: transform; }
.sf-f2 { height: 80%; } .sf-f3 { bottom: -6px; height: calc(58% + 6px); }
.sf-inner { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; padding: clamp(28px, 4vw, 48px) 0 clamp(26px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); }
.sf-brand { display: grid; gap: 16px; align-content: start; }
.sf-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--cream-100); text-decoration: none; width: max-content; }
.sf-logo .logo-mark { height: 34px; }
.sf-logo .sh-word { font-size: 27px; }
.sf-tag { color: var(--dk-muted); font-size: 15.5px; line-height: 1.85; max-width: 40ch; }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sf-col { display: grid; gap: 2px; align-content: start; }
.sf-col h3, .sf-col h2 { margin-bottom: 8px; font: 800 15px/1.4 var(--f-display); color: var(--yellow-500); }
.sf-col a { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 6px 0; color: rgb(243 231 211 / .82); text-decoration: none; font-size: 15px; transition: color .3s, transform .4s var(--ease-out); }
.sf-col a .ic { width: 17px; height: 17px; color: rgb(255 219 126 / .8); }
.sf-col a:hover { color: var(--cream-100); transform: translateX(-4px); }
[dir="ltr"] .sf-col a:hover { transform: translateX(4px); }
.sf-bottom { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 18px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dk-line); color: var(--dk-muted); font-size: 14px; }
@media (max-width: 820px) {
  .sf-inner { grid-template-columns: 1fr; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) { .sf-cols { grid-template-columns: 1fr 1fr; gap: 18px 14px; } }

/* =====================================================================================================================
   The monitor (art.js monitorArt): the member's message, the bot typing, the bot's card
   ===================================================================================================================== */
.monitor-art { display: block; width: 100%; height: auto; overflow: visible; }
.monitor-art .mn-msg, .monitor-art .mn-dot { transform-box: fill-box; }
.mn-m1 { animation: mn-m1 9s var(--ease-out) infinite; }
.mn-m2 { animation: mn-m2 9s var(--ease-out) infinite; }
.mn-typing { animation: mn-typing 9s linear infinite; }
.mn-dot { animation: mn-dot 1s ease-in-out infinite; }
.mn-dot:nth-child(2) { animation-delay: .15s; } .mn-dot:nth-child(3) { animation-delay: .3s; }
.mn-wave { animation: mn-wave 5.6s ease-in-out infinite alternate; }
.mn-wave2 { animation-duration: 4.4s; animation-direction: alternate-reverse; }
.mn-arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mn-arc 9s var(--ease-out) infinite; }
@keyframes mn-m1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mn-m2 { 0%, 25% { opacity: 0; transform: translateY(8px); } 32%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mn-typing { 0%, 11% { opacity: 0; } 13%, 24% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes mn-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes mn-wave { from { transform: translateX(-7px); } to { transform: translateX(7px); } }
@keyframes mn-arc { 0%, 32% { stroke-dashoffset: 1; } 48%, 100% { stroke-dashoffset: 0; } }

/* =====================================================================================================================
   Two languages (site-i18n.js): the AR | EN switch, the page waiting for its English, and what mirrors in English.
   English is LTR: the layout above is written with logical sides, so it mirrors by itself; what follows mirrors the rest.
   ===================================================================================================================== */
/* the page stays hidden (a moment) while its English is put in, then fades in; a switch fades it out before it reloads */
.site { transition: opacity .35s var(--ease-out); }
html.i18n-wait body { opacity: 0; }
html.i18n-wait .intro > * { animation-play-state: paused; }
html.i18n-leave body { opacity: 0; transition-duration: .2s; }

/* the switch: two letters in a pill, the language on screen filled */
.lang-sw {
  position: relative; display: inline-flex; align-items: center; flex: none; gap: 2px; padding: 3px; border-radius: var(--r-pill);
  border: 1px solid rgb(243 231 211 / .22); background: rgb(243 231 211 / .07); direction: ltr;
}
.lang-sw a {
  display: inline-grid; place-items: center; min-width: 38px; height: 32px; padding: 0 10px; border-radius: var(--r-pill);
  color: rgb(243 231 211 / .8); text-decoration: none; font: 800 13px/1 var(--f-latin); letter-spacing: .06em;
  transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.lang-sw a:hover { color: var(--cream-100); background: rgb(243 231 211 / .1); }
.lang-sw a:active { transform: scale(.94); }
.lang-sw a[aria-current="true"] { background: var(--cream-100); color: var(--teal-800); box-shadow: 0 6px 14px -8px rgb(0 0 0 / .6); }
.lang-sw a:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }
@media (max-width: 559px) { .sh-actions .lang-sw { display: none; } }
/* laptops narrower than the full header (981–1279px): the header's switch becomes one compact button, a globe and the
   other language's code (one tap away). The nav keeps its icons while they fit: the Arabic header down to 1250px (below
   that it reads as it does below 1120px), the longer English nav drops them across the range; from 1100px down the nav
   and the buttons tighten a little in both */
@media (min-width: 981px) and (max-width: 1279px) {
  .sh-actions .lang-sw a[aria-current="true"] { display: none; }
  .sh-actions .lang-sw a { display: inline-flex; align-items: center; gap: 6px; padding-inline: 10px 12px; }
  .sh-actions .lang-sw a::before {
    content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
    -webkit-mask: var(--globe) center / contain no-repeat; mask: var(--globe) center / contain no-repeat;
    --globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9s1.3-6.4 3.8-9z'/%3E%3C/svg%3E");
  }
}
@media (min-width: 981px) and (max-width: 1249px) {
  .sh-nav a .ic { display: none; }
  .sh-nav a { padding-inline: 10px; font-size: 14.5px; }
}
@media (min-width: 1250px) and (max-width: 1279px) {
  html[lang="en"] .sh-nav a .ic { display: none; }
  html[lang="en"] .sh-nav a { padding-inline: 10px; font-size: 14.5px; }
}
@media (min-width: 981px) and (max-width: 1100px) {
  /* (the globe needs room the narrowest laptops do not have) */
  .sh-actions .lang-sw a { min-width: 36px; padding-inline: 7px; }
  .sh-actions .lang-sw a::before { display: none; }
  .sh-nav a { padding-inline: 6px; font-size: 14px; }
  .sh-logo { gap: 10px; }
  .sh-logo .sh-sep { display: none; }
  .sh-actions { gap: 8px; }
  .sh-actions .btn-sm { padding-inline: 13px; }
}
/* in the phone sheet: a row of its own, named in both languages (the page's own language first) */
.sh-panel-lang {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 10px 10px 14px;
  border-radius: 16px; background: rgb(243 231 211 / .06); box-shadow: inset 0 0 0 1px rgb(243 231 211 / .1);
}
[dir="rtl"] .sh-panel-lang { padding: 10px 14px 10px 10px; }
.sh-lang-l { display: inline-flex; align-items: center; gap: 8px; color: rgb(243 231 211 / .86); font: 700 15px/1.2 var(--f-body); }
.sh-lang-l .ic { width: 20px; height: 20px; color: var(--yellow-500); }
.sh-lang-sep { color: rgb(243 231 211 / .4); }
[dir="ltr"] .sh-lang-l > [lang="en"] { order: 1; }
[dir="ltr"] .sh-lang-l > .sh-lang-sep { order: 2; }
[dir="ltr"] .sh-lang-l > [lang="ar"] { order: 3; }
.sh-panel-lang .lang-sw a { min-width: 46px; height: 38px; font-size: 14px; }

/* a line only the English page shows: the cards are drawn in Arabic here (the bot draws them in English for English servers) */
.cards-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--lt-muted); }
.cards-note[hidden] { display: none; }
.cards-note .ic { width: 16px; height: 16px; flex: none; color: var(--teal-500); }
.on-dark .cards-note, .card-teal .cards-note { color: var(--dk-muted); }
.on-dark .cards-note .ic, .card-teal .cards-note .ic { color: var(--yellow-500); }

/* arrows that mean "forward" point the reading way */
[dir="ltr"] .ic-arrow-left, [dir="ltr"] .ic-go { scale: -1 1; }
/* the scenes' clouds and glow keep to the gate's side, which is the right in English (away from the text) */
[dir="ltr"] .site .sc-cloud { left: auto; right: var(--x); }
[dir="ltr"] .site .scene { --glow-x: 78%; }
[dir="ltr"] .site .scene--banner { --glow-x: 84%; }
/* an Arabic word a member types, inside the English (site-i18n.js isolateArabic): a box of its own, or the quote and comma
   after it are shaped as Arabic and the comma shrinks to a sliver («مسابقة”,or») */
html[lang="en"] bdi[lang="ar"] { display: inline-block; }
/* English reads a little tighter than Arabic */
html[lang="en"] .site { line-height: 1.65; }
html[lang="en"] .display { letter-spacing: -.015em; line-height: 1.12; }

/* =====================================================================================================================
   The footer's bottom line: the rights on one side; on the other, the site's line and the developer's credit
   ===================================================================================================================== */
.sf-bottom p { margin: 0; }
.sf-copy { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.sf-c { display: inline-flex; gap: 5px; unicode-bidi: isolate; font-family: var(--f-latin); color: rgb(243 231 211 / .86); }
.sf-line .sf-c-t { font-family: var(--f-latin); color: rgb(243 231 211 / .86); } /* (the English line, plain text) */
.sf-made { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.sf-dev {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 12px; border-radius: var(--r-pill);
  background: rgb(243 231 211 / .06); box-shadow: inset 0 0 0 1px rgb(243 231 211 / .14); color: rgb(243 231 211 / .82);
  font-size: 13.5px; line-height: 1.2; white-space: nowrap; transition: background-color .35s, box-shadow .35s;
}
[dir="rtl"] .sf-dev { padding: 6px 12px 6px 14px; }
a.sf-dev { text-decoration: none; cursor: pointer; }
a.sf-dev:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 3px; }
.sf-dev:hover { background: rgb(243 231 211 / .1); box-shadow: inset 0 0 0 1px rgb(255 203 87 / .4); }
.sf-dev .ic { width: 16px; height: 16px; color: var(--yellow-500); }
/* the name in the identity's coral-to-yellow, a slow light passing over it */
.sf-dev-name {
  font: 800 15px/1 var(--f-latin); letter-spacing: .02em; direction: ltr; unicode-bidi: isolate;
  background: linear-gradient(90deg, var(--coral-400), var(--yellow-500) 45%, #FFF1CC 55%, var(--yellow-500) 65%, var(--coral-400));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sf-shine 7s ease-in-out infinite;
}
@keyframes sf-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (max-width: 640px) {
  .sf-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
  .sf-made { flex-direction: column; gap: 10px; }
}
