/* Home page (round 2, 2026-10-16). Section order and layout families (each used once):
   hero = asymmetric split with a live line, server = caravan ledger, news = feature + list, callings = scene-panel
   accordion with the champion's plinth (the page's signature), features = the road, about = the founders' letter,
   download = centered call, community = the campfire.
   Every rule outside the last block is a still end state. All motion lives in ONE block at the end, inside
   @media (prefers-reduced-motion: no-preference), with home-* keyframes on the individual scale/translate/rotate. */

/* ================= HERO ================= */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(620px, 92dvh, 860px); display: grid; align-items: center; }
/* the art + the Silk Road drawn on its sand (route.svg?v=3: same size and crop, so both layers share one position) */
.hero-bg { position: absolute; inset: 0; z-index: -3; background: url("../img/art/route.svg?v=3") 62% 35% / cover no-repeat, url("../img/art/A-03_hero.webp") 62% 35% / cover no-repeat; }
/* desktop: the caravan drops away from the header and the empty dune below it shrinks */
@media (min-width: 900px) { .hero-bg { background-position: 62% 22%, 62% 22%; } }
/* phone: the whole caravan, centred and smaller, so the logo and the call to action come up into the first screen */
@media (max-width: 767px) { .hero-bg { background-image: url("../img/art/route.svg?v=3"), url("../img/art/A-03_hero_1280.webp"); background-position: 74% 56px; background-size: 150% auto; background-color: var(--bg); } }
/* a dark foreground dune under the words, then the reading shade and the fade into the page */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(85% 55% at 18% 108%, rgba(7, 11, 23, .92), transparent 70%),
    linear-gradient(90deg, rgba(11, 17, 36, .92) 0%, rgba(11, 17, 36, .72) 26%, rgba(11, 17, 36, .25) 46%, transparent 60%),
    linear-gradient(180deg, rgba(11, 17, 36, .5) 0%, transparent 18%, transparent 70%, var(--bg) 100%); }
[dir="rtl"] .hero::before { background:
    radial-gradient(85% 55% at 82% 108%, rgba(7, 11, 23, .92), transparent 70%),
    linear-gradient(270deg, rgba(11, 17, 36, .92) 0%, rgba(11, 17, 36, .72) 26%, rgba(11, 17, 36, .25) 46%, transparent 60%),
    linear-gradient(180deg, rgba(11, 17, 36, .55) 0%, transparent 22%, transparent 62%, var(--bg) 100%); }
@media (max-width: 899px) { .hero::before, [dir="rtl"] .hero::before { background: linear-gradient(180deg, rgba(11, 17, 36, .45) 0%, transparent 14%, transparent 42%, rgba(11, 17, 36, .9) 62%, var(--bg) 78%); } }
/* Arabic: the text sits on the right, so the art is mirrored and the caravan walks on the left (the picture has no writing) */
[dir="rtl"] .hero-bg { transform: scaleX(-1); }
/* a gold horizon where the road meets the page */
.hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(226, 169, 59, .5) 25%, rgba(246, 207, 121, .9) 50%, rgba(226, 169, 59, .5) 75%, transparent);
  box-shadow: 0 0 22px 3px rgba(226, 169, 59, .28); }
.hero-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-embers span { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--copper-300); opacity: 0;
  box-shadow: 0 0 6px 1px rgba(240, 178, 122, .6); }
.hero-inner { width: 100%; padding-block: 96px var(--sp-8); }
.hero-copy { position: relative; z-index: var(--z-raised); max-width: 540px; }
/* the h1 holds only the logo; the gold seam under it is ::before (motion.css owns ::after for the logo glint) */
.hero-title { position: relative; padding-bottom: var(--sp-4); }
.hero-title .hero-logo { display: block; width: clamp(260px, 18rem + 16vw, 600px); height: auto; filter: drop-shadow(0 10px 24px rgba(4, 7, 16, .75)); }
/* the line the owner wants searched (D-486): real text inside the H1, English on every page, under the logo */
.hero-tagline { display: block; margin-top: var(--sp-2); font: 400 clamp(1.25rem, .9rem + 1.3vw, 2rem)/1.15 var(--font-display-latin);
  letter-spacing: .14em; text-transform: uppercase; color: #F6CF79; text-shadow: 0 2px 14px rgba(4, 7, 16, .9), 0 0 22px rgba(226, 169, 59, .35); }
.hero-title::before { content: ""; position: absolute; inset-inline-start: 4px; bottom: 0; width: min(62%, 300px); height: 2px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(246, 207, 121, .95), rgba(226, 169, 59, .45) 55%, transparent); box-shadow: 0 0 14px rgba(226, 169, 59, .45); }
[dir="rtl"] .hero-title::before { transform-origin: right center; background: linear-gradient(-90deg, rgba(246, 207, 121, .95), rgba(226, 169, 59, .45) 55%, transparent); }
.hero-lead { margin-block: var(--sp-5) var(--sp-6); color: var(--sand-300); font-size: 1.1875rem; line-height: 1.55; max-width: 34ch; text-shadow: 0 1px 12px rgba(7, 11, 23, .85); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-6); }
.hero-cta .link { display: inline-flex; align-items: center; min-height: 44px; }
/* the road is alive: the live player count, the one turquoise thing on the first screen */
.hero-live { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--sp-6); padding: 8px 18px 8px 14px; color: var(--sand-300); font-size: .9375rem;
  background: rgba(11, 17, 36, .6); box-shadow: inset 0 0 0 1px rgba(226, 169, 59, .22); clip-path: var(--clip-cut-sm); }
[dir="rtl"] .hero-live { padding: 8px 14px 8px 18px; }
.hero-live b { color: var(--turq-300); font: 1.25rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.hero-live .live { position: relative; flex: none; width: 9px; height: 9px; }
.hero-live[data-status=offline] b, .hero-live[data-status=maintenance] b { color: var(--text-2); }
@media (max-width: 899px) { .hero { min-height: 0; align-items: end; } .hero-inner { padding-block: min(64vh, 520px) var(--sp-9); } }
@media (max-width: 767px) { .hero-inner { padding-block: calc(56px + 150vw / 2.133 - 8px) var(--sp-9); } }
/* phones (owner review 2026-10-16): a smaller logo below the road so the gold road and its stops show, and everything centred */
@media (max-width: 767px) {
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero-title .hero-logo { width: min(260px, 70vw); margin-inline: auto; }
  .hero-title::before, [dir="rtl"] .hero-title::before { inset-inline: 0; margin-inline: auto; transform-origin: center;
    background: linear-gradient(90deg, transparent, rgba(246, 207, 121, .95) 30%, rgba(246, 207, 121, .95) 70%, transparent); }
  .hero-lead { margin-inline: auto; }
  .hero-cta { flex-direction: column; justify-content: center; }
  .hero-live { display: flex; width: fit-content; margin-inline: auto; }
}

/* ================= SERVER: the caravan ledger ================= */
.server { position: relative; z-index: 2; padding-bottom: var(--sp-6); }
@media (min-width: 900px) { .server { margin-top: calc(var(--sp-9) * -1); } }
.server-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .server-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
@media (min-width: 1100px) { .server-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.server .panel { overflow: hidden; box-shadow: 0 30px 60px -20px rgba(4, 7, 16, .8); }
.server .panel::after { content: ""; position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(226, 169, 59, .13), transparent 75%); }
/* the nine facts read as a two-column ledger with a thin gold rule between the columns */
@media (min-width: 1100px) {
  .panel-info .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-7);
    background: linear-gradient(rgba(226, 169, 59, .18), rgba(226, 169, 59, .18)) 50% 0 / 1px 100% no-repeat; background-clip: content-box; }
}
.panel-info .spec > div { border-radius: 2px; transition: background var(--t-base); }
.panel-info .spec > div:hover { background: linear-gradient(90deg, transparent, rgba(226, 169, 59, .09), transparent); }
.panel-info .spec > div:hover dd { color: var(--copper-300); }
/* the live panel: the player count is the headline, the status, fortress war and client version sit under it */
.panel-live .live-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }
.panel-live .live-list > div { min-width: 0; }
.panel-live .live-list dt { font-size: .875rem; }
.panel-live .live-list > div:nth-child(2) { order: -1; grid-column: 1 / -1; display: flex; flex-direction: column-reverse; padding-bottom: var(--sp-4);
  box-shadow: inset 0 -1px 0 rgba(226, 169, 59, .18); }
.panel-live .live-list > div:nth-child(3) { order: 1; grid-column: 1 / -1; }
.panel-live dd[data-status] { color: var(--turq-300); font: 1.25rem/1.2 var(--font-head); }
.panel-live dd[data-status=offline] { color: var(--ember-500, #E5533D); }
.panel-live dd[data-status=maintenance] { color: var(--copper-300); }
.panel-live dd[data-bind=online] { margin: 0 0 4px; font: clamp(2.75rem, 2rem + 2vw, 3.75rem)/1 var(--font-display); color: var(--sand-50); text-shadow: 0 0 26px rgba(226, 169, 59, .3); }
.panel-live .live { position: relative; width: 10px; height: 10px; }

/* ================= NEWS ================= */
.news-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4); box-shadow: inset 0 -1px 0 rgba(226, 169, 59, .16); }
.news-head .section-title { margin: 0; }
/* room for the focus ring inside the scrolling filter row, and 44 px targets */
.news-head .tabs { padding-block: 6px; }
.news-head .tab { min-width: 44px; min-height: 44px; text-align: center; }
.news-head .tab:focus-visible { outline: 2px solid var(--copper-300); outline-offset: -3px; }
.news-grid { display: grid; gap: var(--sp-7); }
.news-grid > * { min-width: 0; }
@media (min-width: 1024px) { .news-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-8); } }
.news-grid:has(> .news-feature[hidden]) { grid-template-columns: minmax(0, 1fr); }   /* no news to feature: the message takes the row */
.news-feature .swiper { overflow: hidden; }
.feature-post { display: block; }
.feature-post .media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; clip-path: var(--clip-cut); background: var(--night-800); }
.feature-post .media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.feature-post .media .char { position: absolute; top: 5%; bottom: 0; inset-inline-end: 6%; width: 44%; height: 95%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 20px 24px rgba(4, 7, 16, .65)); }
/* the cover post sits in a gold frame (a light sweep crosses it on hover, see the motion block) */
.feature-post .media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 23, .55)); box-shadow: inset 0 0 0 1px rgba(226, 169, 59, .28); transition: box-shadow var(--t-base); }
.feature-post:hover .media::after { box-shadow: inset 0 0 0 1px rgba(246, 207, 121, .75), inset 0 0 40px rgba(226, 169, 59, .18); }
.feature-post .media::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 190, .22) 50%, transparent 62%); }
.feature-post .body { padding-top: var(--sp-5); }
.feature-post h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-block: var(--sp-2); transition: color var(--t-base); }
.feature-post:hover h3 { color: var(--copper-300); }
.feature-post p { color: var(--text-2); max-width: 56ch; }
/* bullets: a 3 px line on a 43 px tall target */
.news-feature .swiper-pagination { position: static; display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.news-feature .swiper-pagination-bullet { box-sizing: content-box; width: 28px; height: 3px; padding-block: 20px; margin: 0 !important; border-radius: 0;
  background: var(--night-600); background-clip: content-box; opacity: 1; transition: background-color var(--t-base); }
.news-feature .swiper-pagination-bullet-active { width: 48px; background-color: var(--copper-500); }
.news-list a { position: relative; }
.news-list a::before { content: ""; position: absolute; inset-block: 10%; inset-inline-start: 0; width: 2px; background: var(--copper-500); scale: 1 0; }
.news-list a:hover::before, .news-list a:focus-visible::before { scale: 1 1; }
.news-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--sp-4); }

/* ================= CALLINGS: scene panels, one opens; the open fighter stands on the champion's plinth ================= */
.callings { background: radial-gradient(70% 60% at 50% 100%, rgba(156, 85, 35, .16), transparent 70%), var(--night-950); }
@media (min-width: 1600px) { .callings .container { max-width: 1440px; } }
.callings-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-5) var(--sp-7); margin-bottom: var(--sp-7); }
/* civilization switch: two rectangular options in one frame */
.race-switch { display: inline-flex; padding: 4px; gap: 4px; background: rgba(11, 17, 36, .6); box-shadow: inset 0 0 0 1px rgba(246, 238, 223, .14); border-radius: 2px; }
.race { min-width: 132px; height: 48px; padding-inline: var(--sp-5); border-radius: 1px; color: var(--text-2); font: 1.125rem var(--font-head);
  transition: background var(--t-base), color var(--t-base), box-shadow var(--t-base); }
.race:hover { color: var(--text); background: rgba(26, 38, 72, .7); }
.race[aria-selected="true"] { color: var(--copper-300); background: var(--night-700); box-shadow: inset 0 -2px 0 var(--copper-500), inset 0 0 0 1px rgba(226, 169, 59, .35);
  text-shadow: 0 0 16px rgba(226, 169, 59, .45); }
.gates[hidden] { display: none; }
.gates { display: flex; gap: var(--sp-3); height: clamp(520px, 72vh, 720px); }
/* each calling is a scene panel: same cut-corner shape as every card on the site */
.gate { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; clip-path: var(--clip-cut); background: var(--night-800); color: var(--text); }
.gate-scene { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; filter: saturate(.7) brightness(.42);
  transition: filter .6s var(--ease); }
.gate::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 17, 36, .2) 0%, rgba(11, 17, 36, .05) 40%, rgba(7, 11, 23, .92) 100%); }
.gate.is-open::after { box-shadow: inset 0 0 0 1px rgba(226, 169, 59, .42), inset 0 -120px 140px -80px rgba(226, 169, 59, .22); }
/* active indicator: a gold bar on top, like the active menu item, drawn from the reading side */
.gate::before { content: ""; position: absolute; z-index: 4; inset: 0 0 auto; height: 3px; background: var(--copper-500); scale: 0 1; transform-origin: left center; }
[dir="rtl"] .gate::before { transform-origin: right center; }
.gate:hover .gate-scene { filter: saturate(.85) brightness(.55); }
.gate.is-open { flex-grow: 5; }
.gate.is-open::before { scale: 1 1; }
.gate.is-open .gate-scene { filter: saturate(1) brightness(.62); }
.gate-scene::after { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 228, 170, .38) 50%, transparent 68%); }
.gate-btn { position: absolute; inset: 0; z-index: 5; cursor: pointer; }
.gate.is-open .gate-btn { cursor: default; }
.gate-btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--copper-300); }
.gate-art { position: absolute; z-index: 1; inset: 14% 0 0; }
.gate-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 8%);
  filter: grayscale(.4) brightness(.7); transition: filter var(--t-base); }
.gate:hover .gate-art img { filter: grayscale(.1) brightness(.9); }
/* logical sides, so the phone rule below (same specificity, later) wins in Arabic too */
.gate.is-open .gate-art { inset-block: 4% 0; inset-inline: 30% -8%; }
.gate.is-open .gate-art img { inset-block-end: 6%; height: 94%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 24px 28px rgba(4, 7, 16, .75)); }
/* THE CHAMPION'S PLINTH (the home page's signature): a lit gold ring on the ground under the chosen fighter.
   The art box is a size container; each gate gives its render's feet (--fdx = (feet_x - .5) * W/H) and shape (--hw = H/W),
   so the ring is drawn from the drawn figure's height (--fh) and lands under the feet, at any width and in Arabic
   (physical left: the render is never mirrored). */
.gate-art { container-type: size; }
.gate-art::after, .gate-art::before { --fh: min(94cqh, 100cqw * var(--hw, 1)); --fx: calc(50% + var(--fdx, 0) * var(--fh)); }
.gate-art::after { content: ""; position: absolute; z-index: -1; inset: auto; left: calc(var(--fx) - .19 * var(--fh)); bottom: calc(6cqh - .016 * var(--fh));
  width: calc(.38 * var(--fh)); height: calc(.096 * var(--fh)); border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(246, 207, 121, .62), rgba(226, 169, 59, .2) 60%, transparent);
  box-shadow: 0 0 0 1.5px rgba(246, 207, 121, .85), 0 0 0 7px rgba(226, 169, 59, .12), 0 0 40px 8px rgba(226, 169, 59, .28); }
.gate-art::before { content: ""; position: absolute; z-index: -1; inset: auto; left: calc(var(--fx) - .115 * var(--fh)); bottom: calc(6cqh + .008 * var(--fh));
  width: calc(.23 * var(--fh)); height: calc(.048 * var(--fh)); border-radius: 50%; opacity: 0;
  box-shadow: 0 0 0 1px rgba(246, 207, 121, .6); }
.gate.is-open .gate-art::after, .gate.is-open .gate-art::before { opacity: 1; }
.gate-name { position: absolute; z-index: 3; inset-inline: var(--sp-4); bottom: var(--sp-5); font: 1.125rem/1.2 var(--font-head); }
.gate-name small { display: block; margin-top: 4px; color: var(--text-2); font: 500 .875rem/1.3 var(--font-body); }
.gate.is-open .gate-name { opacity: 0; }
.gate-info { position: absolute; z-index: 3; inset-inline-start: clamp(24px, 5%, 48px); bottom: clamp(28px, 7%, 56px); width: min(44%, 360px); opacity: 0; pointer-events: none; }
.gate.is-open .gate-info { opacity: 1; }
.gate-info h3 { font-size: clamp(1.75rem, 1.1rem + 1.3vw, 2.5rem); line-height: 1.1; margin-bottom: var(--sp-2); text-wrap: balance; hyphens: manual;
  text-shadow: 0 2px 18px rgba(7, 11, 23, .9); }
.gate-info h3::after { content: ""; display: block; width: 64px; height: 2px; margin-top: var(--sp-3); background: linear-gradient(90deg, var(--copper-300), rgba(226, 169, 59, 0)); }
[dir="rtl"] .gate-info h3::after { background: linear-gradient(-90deg, var(--copper-300), rgba(226, 169, 59, 0)); }
.gate-info .role { display: block; color: var(--copper-300); font-weight: 600; margin-bottom: var(--sp-4); }
.gate-info p { color: var(--sand-300); font-size: 1rem; line-height: 1.6; text-shadow: 0 1px 10px rgba(7, 11, 23, .9); }
.gate-info .gear { display: block; margin-top: var(--sp-5); padding-top: var(--sp-4); box-shadow: inset 0 1px 0 rgba(246, 238, 223, .14); color: var(--text-2); font-size: .9375rem; }
.gate-info .gear b { color: var(--text); font-weight: 600; }
/* the European side has nine weapons: the open panel keeps a readable width, closed names run sideways */
@media (min-width: 900px) {
  .gates[data-count="9"] .gate.is-open { flex: 0 0 42%; }
  .gates[data-count="9"] .gate-name { inset-inline: auto; inset-inline-start: 50%; bottom: var(--sp-5); translate: -50% 0; writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; font-size: 1.0625rem; }
  [dir="rtl"] .gates[data-count="9"] .gate-name { translate: 50% 0; }
  .gates[data-count="9"] .gate-name small { display: none; }
  .gates[data-count="9"] .gate-info { width: min(48%, 320px); }
  /* closed gates show each calling's weapon, not the same armour four times: crop and zoom on the weapon hand */
  .gate:not(.is-open) .gate-art img { object-position: var(--focus-closed, var(--focus, 50% 8%)); transform-origin: var(--focus-closed, 50% 50%); scale: 1.3; }
}
@media (max-width: 899px) {
  .gates { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-3); scrollbar-width: thin; }
  .gate { flex: 0 0 82vw; height: 580px; scroll-snap-align: center; }
  .gate::before { scale: 1 1; }
  .gate .gate-scene { filter: saturate(1) brightness(.6); }
  .gate .gate-name { opacity: 0; }
  .gate .gate-info { opacity: 1; width: auto; inset-inline-end: var(--sp-5); }
  .gate .gate-art, .gate.is-open .gate-art { inset: 4% 6% 43%; }
  .gate .gate-art img, .gate.is-open .gate-art img { inset: 0 0 6%; height: 94%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 24px 28px rgba(4, 7, 16, .75)); }
  .gate .gate-art::after, .gate .gate-art::before { opacity: 1; }
}
/* small phones: lift the fighter so his feet and the plinth clear the weapon title */
@media (max-width: 440px) { .gate .gate-art, .gate.is-open .gate-art { inset: 3% 6% 50%; } }

/* ================= FEATURES: seven stops on the road ================= */
.showcase { display: grid; gap: var(--sp-5); margin-top: var(--sp-7); }
.showcase > * { min-width: 0; }
@media (min-width: 1024px) { .showcase { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); } }
.show-stage { position: relative; clip-path: var(--clip-cut); background: var(--night-800); }
/* the stage is a framed window with gold corners (they swap sides with the cut corners in Arabic) */
.show-stage::after { content: ""; position: absolute; inset: 10px; z-index: 5; pointer-events: none;
  background:
    linear-gradient(var(--copper-500), var(--copper-500)) right top / 28px 2px no-repeat, linear-gradient(var(--copper-500), var(--copper-500)) right top / 2px 28px no-repeat,
    linear-gradient(var(--copper-500), var(--copper-500)) left bottom / 28px 2px no-repeat, linear-gradient(var(--copper-500), var(--copper-500)) left bottom / 2px 28px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(226, 169, 59, .16); }
[dir="rtl"] .show-stage::after { background-position: left top, left top, right bottom, right bottom; }
.show-slide { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.show-media { position: absolute; inset: 0; }
.show-media > img:first-child { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(.9); }
/* the real game models (Studio3D renders), standing on the scene */
.feat-fig { position: absolute; z-index: 2; bottom: 0; inset-inline-end: 6%; height: 94%; width: auto; max-width: 62%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 26px 30px rgba(4, 7, 16, .75)) drop-shadow(0 0 1px rgba(255, 220, 160, .35)); }
[dir="rtl"] .feat-fig { transform: scaleX(-1); }
.show-slide::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 23, .94)), linear-gradient(90deg, rgba(7, 11, 23, .7), transparent 55%); }
[dir="rtl"] .show-slide::after { background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 23, .94)), linear-gradient(-90deg, rgba(7, 11, 23, .7), transparent 55%); }
.show-slide figcaption { position: absolute; z-index: 3; inset-inline: clamp(20px, 4%, 40px); bottom: clamp(20px, 5%, 40px); max-width: 52ch; }
.show-slide h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); margin-bottom: var(--sp-2); text-shadow: 0 2px 18px rgba(7, 11, 23, .9); }
.show-slide p { color: var(--sand-300); }
@media (max-width: 639px) {
  .show-slide { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--night-800); }
  .show-media { position: relative; inset: auto; aspect-ratio: 16 / 9; overflow: hidden; }
  .feat-fig { inset-inline-end: 50%; translate: 50% 0; max-width: 90%; }
  [dir="rtl"] .feat-fig { translate: -50% 0; }
  .show-slide::after { inset: 0 0 auto; aspect-ratio: 16 / 9; height: auto; }
  .show-slide figcaption { position: static; padding: var(--sp-5); }
}
.show-list { display: grid; align-content: start; gap: 4px; }
.show-tab { position: relative; display: flex; align-items: center; min-height: 56px; padding: 12px 18px; border-radius: 2px; text-align: start;
  color: var(--text-2); font-weight: 500; background: rgba(18, 27, 54, .5); box-shadow: inset 0 0 0 1px rgba(246, 238, 223, .08);
  transition: background var(--t-base), color var(--t-base), box-shadow var(--t-base); }
.show-tab:hover { color: var(--text); background: var(--night-800); }
.show-tab:focus-visible { outline: 2px solid var(--copper-300); outline-offset: -3px; }
.show-tab[aria-selected="true"] { color: var(--text); background: linear-gradient(90deg, rgba(226, 169, 59, .16), var(--night-700) 55%);
  box-shadow: inset 3px 0 0 var(--copper-500), inset 0 0 0 1px rgba(226, 169, 59, .3); }
[dir="rtl"] .show-tab[aria-selected="true"] { background: linear-gradient(-90deg, rgba(226, 169, 59, .16), var(--night-700) 55%); box-shadow: inset -3px 0 0 var(--copper-500), inset 0 0 0 1px rgba(226, 169, 59, .3); }
.show-tab[aria-selected="true"] span { color: var(--copper-300); }
/* time left before the showcase moves on (only while autoplay runs, see the motion block) */
.show-progress { position: absolute; inset: auto 0 0; height: 2px; background: var(--copper-700); scale: 0 1; transform-origin: left center; }
[dir="rtl"] .show-progress { transform-origin: right center; }
/* desktop: the list is a road, a dashed gold line with a waypoint diamond for every stop */
@media (min-width: 1024px) {
  .show-list { position: relative; gap: 6px; padding-inline-start: 28px; }
  .show-list::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 9px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--copper-500) 0 6px, transparent 6px 12px); opacity: .7; }
  .show-tab::before { content: ""; position: absolute; top: 50%; inset-inline-start: -24px; width: 10px; height: 10px; margin-top: -5px; rotate: 45deg;
    background: var(--night-700); box-shadow: 0 0 0 1px var(--copper-500); }
  .show-tab[aria-selected="true"]::before { background: var(--copper-300); box-shadow: 0 0 0 1px var(--copper-300), 0 0 12px 2px rgba(226, 169, 59, .6); }
}
@media (max-width: 1023px) {
  .show-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 6px var(--sp-3);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  [dir="rtl"] .show-list { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
  .show-tab { scroll-snap-align: start; min-height: 48px; }
}

/* ================= ABOUT: the founders' letter, sealed with the FunWorld mark ================= */
.about-wrap { display: grid; max-width: 820px; margin-inline: auto; }
.about-seal { position: relative; z-index: 2; isolation: isolate; display: grid; place-items: center; aspect-ratio: 1; width: 168px; margin: 0 auto -84px; }
.about-seal::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(226, 169, 59, .22), transparent 68%); }
/* a thin turning ring of gold (kept to 2 px: a ring, never rays) */
.about-seal::after { content: ""; position: absolute; inset: 3%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 14%, rgba(246, 207, 121, .7) 22%, transparent 30% 64%, rgba(226, 169, 59, .5) 72%, transparent 80%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); }
.about-seal img { position: relative; z-index: 1; width: 78%; height: auto; filter: drop-shadow(0 14px 24px rgba(4, 7, 16, .85)); }
.about-text { position: relative; padding: clamp(96px, 9vw, 120px) clamp(24px, 6vw, 72px) clamp(40px, 5vw, 64px);
  background: radial-gradient(120% 80% at 50% 0%, rgba(226, 169, 59, .08), transparent 60%), var(--night-900);
  box-shadow: inset 0 0 0 1px rgba(226, 169, 59, .2), 0 30px 60px -30px rgba(4, 7, 16, .9); }
.about-text .section-title { margin-bottom: var(--sp-6); }
.about-text p { color: var(--sand-200, #e9dfcb); font-size: 1.1875rem; line-height: 1.9; max-width: 60ch; }
.about-text p + p { margin-top: var(--sp-5); }
.about-sign { display: grid; justify-items: start; gap: 2px; margin-top: var(--sp-7) !important; }
/* the owner's signature (2026-10-16): Ghost in the Ruqaa hand beside Ghost in an English script, solid gold ink */
.sign-row { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; padding-bottom: 4px; }
.sign-ar, .sign-en { color: #F4C65C; line-height: 1.25; text-shadow: 0 1px 0 rgba(255, 243, 204, .25), 0 2px 0 rgba(58, 36, 8, .9), 0 0 18px rgba(226, 169, 59, .3); }
.sign-ar { font: 700 clamp(2.4rem, 1.8rem + 2vw, 3.2rem) "Aref Ruqaa", var(--font-head); direction: rtl; }
/* "about" sits far down: the browser skips its layout (and its two signature fonts, ~90 KB) until it comes near (Q1893) */
.section.about { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.sign-en { font: 400 clamp(2.4rem, 1.8rem + 2vw, 3.3rem) "Great Vibes", cursive; direction: ltr; letter-spacing: 0; }
/* one signature per language (owner 2026-10-16): Arabic page = «غوست», English page = Ghost */
html:not([lang="ar"]) .sign-ar, html[lang="ar"] .sign-en { display: none; }
/* one gold ink rule under the signature, drawn from the reading side */
.about-sign > .sign-row { order: 0; } .about-sign > small { order: 2; }
.about-sign::after { content: ""; order: 1; width: 180px; height: 1px; margin-block: 2px 6px; background: var(--copper-500); transform-origin: left center; }
[dir="rtl"] .about-sign::after { transform-origin: right center; }
.about-sign small { color: var(--text-3); font-size: .9375rem; }

/* ================= DOWNLOAD ================= */
.download { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-bottom: clamp(260px, 30vw, 420px); }
.download::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/placeholder/bg_storm.webp") center 30% / cover; filter: brightness(.62) saturate(1.15); }
.download::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, rgba(11, 17, 36, .55), rgba(11, 17, 36, .95)); }
/* five fighters in a row at the foot of the section, the middle ones bigger and in front */
.download > .container { position: relative; z-index: 1; }
.dl-lineup { position: absolute; z-index: 0; inset: auto 0 0; display: flex; justify-content: center; align-items: flex-end; height: clamp(250px, 30vw, 430px); pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 22%); mask-image: linear-gradient(0deg, transparent, #000 22%); }
.dl-lineup::before { content: ""; position: absolute; inset: auto 10% 0; height: 70%; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(226, 169, 59, .28), transparent 70%); }
.dl-lineup img { height: 80%; width: auto; max-width: 20%; object-fit: contain; object-position: bottom; margin-inline: 0; filter: brightness(.92) drop-shadow(0 16px 20px rgba(4, 7, 16, .8)); }
.dl-lineup img:nth-child(2), .dl-lineup img:nth-child(4) { height: 90%; position: relative; z-index: 1; filter: brightness(1) drop-shadow(0 16px 20px rgba(4, 7, 16, .8)); }
.dl-lineup img:nth-child(3) { height: 100%; position: relative; z-index: 2; filter: drop-shadow(0 18px 24px rgba(4, 7, 16, .85)); }
@media (max-width: 639px) { .dl-lineup img:nth-child(1), .dl-lineup img:nth-child(5) { display: none; } .dl-lineup img { max-width: 32%; } }
.download .section-title { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); margin-bottom: var(--sp-4); text-shadow: 0 4px 30px rgba(7, 11, 23, .9); }
.download .section-lead { margin: 0 auto var(--sp-7); }
.download-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-5) var(--sp-7); }
.download-cta .link { display: inline-flex; align-items: center; min-height: 44px; }
.dl-steps { position: relative; list-style: none; padding: 0; margin: var(--sp-8) auto 0; display: grid; gap: var(--sp-4); max-width: 920px; }
@media (min-width: 768px) { .dl-steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
  /* gold threads join the three steps */
  .dl-steps::before { content: ""; position: absolute; z-index: -1; inset-inline: 8%; top: 50%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(226, 169, 59, .7) 20%, rgba(246, 207, 121, .9) 50%, rgba(226, 169, 59, .7) 80%, transparent); box-shadow: 0 0 12px rgba(226, 169, 59, .4); } }
.dl-steps li { display: grid; justify-items: center; gap: 6px; padding: var(--sp-5); background: rgba(13, 20, 41, .72); backdrop-filter: blur(6px); clip-path: var(--clip-cut); }
.dl-steps .medal { --m: 52px; margin-bottom: var(--sp-2); }
.dl-steps b { font: 1.125rem var(--font-head); color: var(--sand-50); }
.dl-steps small { color: var(--text-2); font-size: .875rem; }
@media (max-width: 767px) { .dl-steps li { grid-template-columns: auto 1fr; grid-template-rows: auto auto; justify-items: start; column-gap: var(--sp-4); row-gap: 2px; text-align: start; padding: var(--sp-4); }
  .dl-steps .medal { grid-row: 1 / 3; margin: 0; --m: 44px; } .dl-steps b, .dl-steps small { grid-column: 2; } }

/* ================= COMMUNITY: the party around a campfire ================= */
.community-wrap { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .community-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--sp-8); } }
/* no framed window: the party stands on a pool of firelight on the night ground */
.community-art { position: relative; isolation: isolate; aspect-ratio: 4 / 3; }
.community-art::before { content: ""; position: absolute; z-index: -1; inset: auto 6% 2%; height: 30%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 170, 80, .42), rgba(226, 120, 40, .14) 55%, transparent); }
.community-art img { position: absolute; inset: 4% 4% 4%; width: 92%; height: 92%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 22px 26px rgba(4, 7, 16, .7)); }
.community-grid { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 560px) { .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.comm { position: relative; display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5); background: var(--night-800); clip-path: var(--clip-cut); transition: background var(--t-base); }
.comm::after { content: ""; position: absolute; inset-block: 18%; inset-inline-start: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--copper-500), transparent); }
.comm:not(.is-soon):hover { background: var(--night-700); }
.comm-text { flex: 1; min-width: 0; }
.comm-title { display: block; font: 1.375rem/1.2 var(--font-head); }
.comm-text p { color: var(--text-2); font-size: .9375rem; }
.comm .count { text-align: end; font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
/* "Soon" stays readable: only the icon is dimmed (components.css dims the whole card) */
.comm.is-soon { opacity: 1; }
.comm.is-soon .medal { opacity: .55; }
.comm .count-soon { color: var(--text-2); font-size: .875rem; }
@media (max-width: 479px) { .comm { flex-wrap: wrap; } .comm .count { text-align: start; } }

/* ================= MOTION (the only moving rules on the page) ================= */
@media (prefers-reduced-motion: no-preference) {
  /* hero: one orchestrated entrance, the seam under the logo draws in, the horizon breathes, the live light sends a ring */
  .js .hero-copy > * { opacity: 0; translate: 0 18px; animation: home-rise .9s var(--ease) forwards; }
  .js .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .24s; }
  .js .hero-copy > .hero-live { animation-delay: 1.4s; }
  .js .hero-title::before { scale: 0 1; animation: home-seam 1.2s var(--ease) 1.2s forwards; }
  .hero-embers span { animation: home-ember linear infinite; }
  .hero::after { animation: home-horizon 6s ease-in-out infinite alternate; }
  .hero-live .live::after, .panel-live dd[data-status=online] .live::after { content: ""; position: absolute; inset: -3px; border-radius: 50%;
    box-shadow: 0 0 0 2px var(--turq-500); animation: home-live-ring 2.4s var(--ease) infinite; }
  .hero-live[data-status=offline] .live::after, .hero-live[data-status=maintenance] .live::after { content: none; }

  /* news: the cover zooms and a light sweep crosses it on hover, the list rail grows */
  .feature-post .media > img:first-child { transition: scale 1.2s var(--ease); }
  .feature-post:hover .media > img:first-child { scale: 1.04; }
  .feature-post:hover .media::before { opacity: 1; animation: home-sweep 1.1s var(--ease) forwards; }
  .news-list a::before { transition: scale var(--t-base) var(--ease); }
  .news-feature .swiper-pagination-bullet { transition: background-color var(--t-base), width var(--t-base); }

  /* callings: the accordion opens, the scene settles, a light sweep crosses it, the fighter steps in onto the plinth */
  .gate { transition: flex-grow .6s var(--ease); }
  .gate::before { transition: scale .5s var(--ease); }
  .gate-scene { scale: 1.06; transition: filter .6s var(--ease), scale 1.2s var(--ease); }
  .gate.is-open .gate-scene { scale: 1; }
  .gate-info { translate: 0 10px; transition: opacity .3s var(--ease), translate .3s var(--ease); }
  .gate.is-open .gate-info { translate: 0 0; transition-delay: .25s; }
  .gate.is-open .gate-scene::after { animation: home-gate-sweep 1.6s var(--ease) .15s both; }
  [dir="rtl"] .gate-art img { --gate-in-x: -16px; }
  .gate.is-open .gate-art img { animation: home-gate-in .5s var(--ease), home-gate-breathe 6s ease-in-out .5s infinite; }
  .gate.is-open .gate-art::after { animation: home-plinth .7s var(--ease) both, home-pool 4s ease-in-out .7s infinite alternate; }
  .gate.is-open .gate-art::before { animation: home-plinth-ring 2.8s ease-out .5s infinite; }
  .gates.is-entering .gate { animation: home-race-in .5s var(--ease) both; }
  .gates.is-entering .gate:nth-child(2) { animation-delay: .04s; } .gates.is-entering .gate:nth-child(3) { animation-delay: .08s; }
  .gates.is-entering .gate:nth-child(4) { animation-delay: .12s; } .gates.is-entering .gate:nth-child(5) { animation-delay: .16s; }
  .gates.is-entering .gate:nth-child(6) { animation-delay: .2s; } .gates.is-entering .gate:nth-child(7) { animation-delay: .24s; }
  .gates.is-entering .gate:nth-child(8) { animation-delay: .28s; } .gates.is-entering .gate:nth-child(9) { animation-delay: .32s; }

  /* features: slow Ken Burns on the active scene, the autoplay timer, the waypoint diamonds light up */
  .show-media > img:first-child { scale: 1.04; transition: scale 7s linear; }
  .swiper-slide-active .show-media > img:first-child { scale: 1.12; }
  .show-tab[aria-selected="true"] .show-progress.run { animation: home-show-progress var(--show-delay, 7s) linear forwards; }
  .show-tab::before { transition: background-color var(--t-base), box-shadow var(--t-base), scale var(--t-base) var(--ease); }
  .show-tab[aria-selected="true"]::before { scale: 1.25; }

  /* about: the seal floats, its ring turns, the ink rule under the signature draws in */
  .about-seal img { animation: home-float 7s ease-in-out infinite; }
  .about-seal::after { animation: home-ring 28s linear infinite; }
  @supports (animation-timeline: view()) {
    .about-sign::after { scale: 0 1; animation: home-ink linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }

  /* download + community: the firelight breathes, the party floats */
  .dl-lineup::before { animation: home-pool 5s ease-in-out infinite alternate; }
  .community-art::before { animation: home-pool 3.2s ease-in-out infinite alternate; }
  .community-art img { animation: home-float 8s ease-in-out infinite; }
}
@keyframes home-rise { to { opacity: 1; translate: 0 0; } }
@keyframes home-ember { 0% { opacity: 0; translate: 0 0; } 12% { opacity: .9; } 100% { opacity: 0; translate: 30px -80vh; } }
@keyframes home-seam { to { scale: 1 1; } }
@keyframes home-horizon { from { opacity: .55; } to { opacity: 1; } }
@keyframes home-live-ring { 0% { opacity: .9; scale: .7; } 100% { opacity: 0; scale: 2.8; } }
@keyframes home-sweep { from { translate: -100% 0; } to { translate: 100% 0; } }
@keyframes home-race-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes home-gate-in { from { opacity: 0; translate: var(--gate-in-x, 16px) 0; } to { opacity: 1; translate: 0 0; } }
@keyframes home-gate-sweep { 0% { opacity: 1; translate: -110% 0; } 100% { opacity: 1; translate: 110% 0; } }
@keyframes home-gate-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.02; } }
@keyframes home-plinth { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes home-plinth-ring { 0% { opacity: .9; scale: 1; } 100% { opacity: 0; scale: 2.2 1.6; } }
@keyframes home-pool { from { opacity: .7; scale: .94 1; } to { opacity: 1; scale: 1.06 1; } }
@keyframes home-show-progress { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes home-float { 50% { translate: 0 -10px; } }
@keyframes home-ring { to { rotate: 1turn; } }
@keyframes home-ink { from { scale: 0 1; } to { scale: 1 1; } }

/* ================= civilization switch (owner 2026-10-16: "a strong design") =================
   two banners, each with its warrior's portrait: the chosen one burns gold, the other waits in shadow */
.race-switch { position: relative; display: inline-flex; gap: 18px; padding: 0; background: none; box-shadow: none; }
.race-switch::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; translate: -50% -50%; rotate: 45deg; z-index: 2;
  background: linear-gradient(135deg, #FFE7A3, #B07A22); box-shadow: 0 0 0 3px #0A1022, 0 0 0 4px rgba(226, 169, 59, .5), 0 0 12px rgba(244, 198, 92, .6); }
.race-switch .race { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-width: 214px; height: 76px;
  padding-inline: 84px 26px; border-radius: 2px; text-align: start; color: var(--sand-300); font: 400 1.375rem/1 var(--font-head);
  background: linear-gradient(180deg, #131D3A, #0A1022);
  box-shadow: inset 0 0 0 1px rgba(226, 169, 59, .28), inset 0 0 0 5px rgba(8, 12, 26, .9), inset 0 0 0 6px rgba(226, 169, 59, .12), 0 10px 22px -12px rgba(0, 0, 0, .9);
  transition: color .3s, box-shadow .35s, background .35s; }
/* the civilization emblem (owner's icons, FunWorld/CHN Logo.ico and Eue folder icon.ico) on the start side, in a gold frame */
.race-switch .race::before { content: ""; position: absolute; z-index: -1; top: 50%; inset-inline-start: 16px; width: 50px; height: 50px; translate: 0 -50%; border-radius: 2px;
  background: url("../img/brand/civ-cn.webp") center / cover no-repeat; box-shadow: 0 0 0 1px rgba(226, 169, 59, .45), 0 0 0 3px rgba(8, 12, 26, .9), 0 0 0 4px rgba(226, 169, 59, .2);
  filter: grayscale(.75) brightness(.6); transition: filter .35s, scale .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.race-switch .race[data-race="european"]::before { background-image: url("../img/brand/civ-eu.webp"); }
/* a gold bar under the chosen banner */
.race-switch .race::after { content: ""; position: absolute; inset: auto 18px 6px; height: 2px; scale: 0 1; background: linear-gradient(90deg, transparent, #F4C65C, transparent);
  transition: scale .4s cubic-bezier(.2, .8, .2, 1); }
.race-switch .race:hover { color: var(--sand-50); background: linear-gradient(180deg, #17234A, #0C1328); }
.race-switch .race:hover::before { filter: grayscale(.4) brightness(.8); }
.race-switch .race[aria-selected="true"] { color: #FFE7A3; text-shadow: 0 0 16px rgba(244, 198, 92, .55), 0 1px 0 #2A1400;
  background: radial-gradient(70% 120% at 20% 50%, rgba(226, 169, 59, .28), transparent 70%), linear-gradient(180deg, #1D2A55, #0E1630);
  box-shadow: inset 0 0 0 1px #E2A93B, inset 0 0 0 5px rgba(8, 12, 26, .85), inset 0 0 0 6px rgba(244, 198, 92, .55), 0 0 26px rgba(226, 169, 59, .28), 0 12px 24px -12px rgba(0, 0, 0, .9); }
[dir="rtl"] .race-switch .race[aria-selected="true"] { background: radial-gradient(70% 120% at 80% 50%, rgba(226, 169, 59, .28), transparent 70%), linear-gradient(180deg, #1D2A55, #0E1630); }
.race-switch .race[aria-selected="true"]::before { filter: none; scale: 1.08;
  box-shadow: 0 0 0 1px #F4C65C, 0 0 0 3px rgba(8, 12, 26, .9), 0 0 0 4px rgba(244, 198, 92, .6), 0 0 18px rgba(244, 198, 92, .45); }
.race-switch .race[aria-selected="true"]::after { scale: 1 1; }
.race-switch .race:focus-visible { outline: 2px solid #F4C65C; outline-offset: 3px; }
:lang(ar) .race-switch .race { font-size: 1.375rem; font-weight: 600; }
@media (max-width: 560px) {
  .race-switch { display: flex; width: 100%; gap: 12px; }
  .race-switch .race { flex: 1; min-width: 0; height: 64px; padding-inline: 62px 10px; font-size: 1.125rem; }
  .race-switch .race::before { inset-inline-start: 12px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .race-switch .race[aria-selected="true"] { animation: home-race-pick .5s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes home-race-pick { from { scale: .97; } }
}

/* ---------- server timeline (owner #24509, Manager #27344): milestones on the reading side, updates on a gold spine ---------- */
.chron-grid { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 900px) { .chron-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .chron-head { position: sticky; top: 112px; } }
.chron-lead { margin: 0; color: var(--text-2); }
.chron-next { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); padding: var(--sp-5) var(--sp-6); }
.chron-milestone { display: flex; align-items: center; gap: var(--sp-4); }
.chron-milestone b { display: block; margin-bottom: 2px; color: var(--text-3); font-size: .875rem; font-weight: 600; }
.chron-milestone time, .chron-milestone [data-chron-next], .chron-milestone [data-chron-next] a { color: var(--text); font-weight: 600; font-size: 1.0625rem; }
.chron-milestone [data-chron-next] { display: block; }
.chron-milestone [data-chron-next] a { display: flex; align-items: center; min-height: 44px; margin-block: -8px; color: #F4C65C; text-decoration: none; }
.chron-milestone [data-chron-next] a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chron-milestone [data-chron-next] time { display: block; color: var(--text-2); font-size: .9375rem; font-weight: 500; }
.chron-list { position: relative; margin: 0; padding: 0; list-style: none; }
.chron-list::before { content: ""; position: absolute; inset-block: 28px 28px; inset-inline-start: 27px; width: 2px;
  background: linear-gradient(180deg, rgba(244, 198, 92, .75), rgba(226, 169, 59, .25) 70%, rgba(226, 169, 59, 0)); }
.chron-item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--sp-5); padding-block: var(--sp-4); }
.chron-item + .chron-item { border-top: 1px solid rgba(226, 169, 59, .1); }
.chron-body { min-width: 0; padding-top: 4px; }
.chron-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3); margin: 0; color: var(--text-3); font-size: .875rem; }
.chron-kind { color: #F4C65C; font-weight: 600; letter-spacing: .02em; }
.chron-item h3 { margin: 4px 0 6px; font-size: var(--fs-h3); }
.chron-item h3 a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -9px; color: inherit; text-decoration: none; }
.chron-item h3 a:hover, .chron-item h3 a:focus-visible { color: #F4C65C; }
.chron-item p:last-child { margin: 0; color: var(--text-2); }
.chron-empty { padding: var(--sp-5) 0; color: var(--text-3); }
.chron-item:first-child .medal { box-shadow: 0 0 0 6px rgba(244, 198, 92, .12); }
