/* Dana (الدانة): one look for every page. Dark, cinematic, gold + sea. Plain CSS, no framework.
   The generators (Tools/website_*.py) link this file, so a restyle here reaches every page. */

:root {
  --bg: #070d10;
  --bg-2: #0a1317;
  --panel: rgba(18, 35, 42, 0.78);
  --panel-solid: #12232a;
  --panel-2: rgba(24, 48, 57, 0.55);
  --line: rgba(242, 193, 78, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #f2c14e;
  --gold-hot: #ffd46b;
  --gold-soft: #f6dc9a;
  --gold-deep: #b8741a;
  --sand: #e9d3a8;
  --text: #f3ead8;
  --muted: #a9b4b0;
  --sea: #2a8f99;
  --sea-glow: #4fd3e0;
  --red: #e5483c;
  --radius: 14px;
  --max: 1180px;
  --font-ar: "Tajawal", "Inter", system-ui, sans-serif;
  --font-ar-display: "Reem Kufi", "Tajawal", sans-serif;
  --font-en: "Inter", "Tajawal", system-ui, sans-serif;
  --font-en-display: "Oswald", "Inter", sans-serif;
  --display: var(--font-ar-display);
  --cut: 14px; /* the clipped corners of buttons and panels, like a game's UI */
}
html[lang="en"] { --display: var(--font-en-display); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ar); line-height: 1.75; font-size: 17px; overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }
img, video { max-width: 100%; display: block; }
a { color: var(--gold); }
::selection { background: var(--gold); color: #1d1405; }

/* One language at a time */
html[lang="ar"] [data-en], html[lang="en"] [data-ar] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Film grain + vignette over everything (cheap: one tiny SVG) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Top bar ---------- */
header.bar {
  position: fixed; top: 0; inset-inline: 0; z-index: 60; height: 68px;
  background: linear-gradient(180deg, rgba(7,13,16,.85), rgba(7,13,16,0));
  transition: background .3s ease, border-color .3s ease, height .3s ease;
  border-bottom: 1px solid transparent;
}
header.bar.solid { background: rgba(7,13,16,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); height: 60px; }
.bar .wrap { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); }
.brand .mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 8px rgba(242,193,78,.5)); }
.brand .ar { font: 700 28px/1 var(--font-ar-display); letter-spacing: 0; }
.brand .en { font: 600 13px/1 var(--font-en-display); letter-spacing: 5px; color: var(--gold-soft); opacity: .9; padding-top: 4px; }
nav.links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
nav.links a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; opacity: .8; padding: 8px 12px; border-radius: 8px; position: relative;
  transition: opacity .2s, color .2s;
}
nav.links a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
nav.links a:hover, nav.links a.on { color: var(--gold-hot); opacity: 1; }
nav.links a:hover::after, nav.links a.on::after { transform: scaleX(1); }
.lang {
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--gold); border-radius: 999px;
  padding: 6px 14px; font: 600 13px var(--font-en); cursor: pointer; letter-spacing: .3px; transition: background .2s, color .2s, border-color .2s;
}
.lang:hover { background: var(--gold); color: #1d1405; border-color: var(--gold); }
.bar-cta { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 10px; cursor: pointer; padding: 0; position: relative; }
.menu-btn span, .menu-btn::before, .menu-btn::after { content: ""; position: absolute; inset-inline: 11px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn::before { top: 14px; } .menu-btn span { top: 20px; } .menu-btn::after { top: 26px; }
header.open .menu-btn::before { transform: translateY(6px) rotate(45deg); }
header.open .menu-btn::after { transform: translateY(-6px) rotate(-45deg); }
header.open .menu-btn span { opacity: 0; }

/* ---------- Buttons (corner-cut, glowing) ---------- */
.btn {
  --c: var(--gold);
  position: relative; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  padding: 14px 28px; font: 700 18px var(--font-ar); color: var(--c); border: 0; background: transparent; isolation: isolate;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .18s ease, color .2s ease, filter .2s ease;
}
html[lang="en"] .btn { font-family: var(--font-en); font-weight: 700; letter-spacing: .3px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--c); opacity: .9;
  clip-path: inherit; }
.btn::after { content: ""; position: absolute; inset: 2px; z-index: -1; background: #0a1418;
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px)); transition: background .2s; }
.btn:hover { transform: translateY(-2px); filter: drop-shadow(0 6px 18px rgba(242,193,78,.4)); }
.btn:hover::after { background: rgba(242,193,78,.14); }
.btn.primary { color: #1d1405; }
.btn.primary::before { background: linear-gradient(135deg, var(--gold-hot), var(--gold) 55%, #e39a2c); opacity: 1; }
.btn.primary::after { background: linear-gradient(135deg, var(--gold-hot), var(--gold) 55%, #e39a2c); inset: 0; clip-path: inherit; }
.btn.primary:hover { filter: drop-shadow(0 8px 26px rgba(255,200,80,.6)) brightness(1.06); }
.btn.sea { --c: var(--sea-glow); }
.btn.sea:hover { filter: drop-shadow(0 6px 18px rgba(79,211,224,.4)); }
.btn.big { padding: 18px 38px; font-size: 21px; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .75; line-height: 1.3; }
.btn .t { display: block; line-height: 1.25; }
.btn.soon { cursor: default; opacity: .85; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg, .hero-video { position: absolute; inset: -4%; z-index: -4; width: 108%; height: 108%; object-fit: cover; }
.hero-bg { background-size: cover; background-position: center 60%; animation: drift 38s ease-in-out infinite alternate; }
.hero-video { max-width: none; opacity: 0; transition: opacity 1.6s ease; }
.hero-video.on { opacity: 1; }
@keyframes drift { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero::before { /* colour grade: teal shadows, warm highlights */
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 80% at 70% 100%, rgba(242,163,60,.38), transparent 60%),
    radial-gradient(90% 70% at 10% 0%, rgba(42,143,153,.35), transparent 60%),
    linear-gradient(180deg, rgba(7,13,16,.55) 0%, rgba(7,13,16,.25) 40%, rgba(7,13,16,.78) 82%, var(--bg) 100%);
  mix-blend-mode: normal;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; box-shadow: inset 0 0 220px 40px rgba(0,0,0,.65); pointer-events: none; }
#embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { padding-top: 110px; padding-bottom: 130px; width: 100%; }
.hero-in { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--font-en); letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-soft);
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,13,16,.55); backdrop-filter: blur(6px); }
html[lang="ar"] .eyebrow { font-family: var(--font-ar); letter-spacing: 0; font-size: 14px; text-transform: none; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.logo-title { margin: 22px 0 0; line-height: 1; font-weight: 400; }
.logo-title .ar {
  display: block; font: 700 clamp(88px, 17vw, 190px)/1 var(--font-ar-display);
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold-hot) 28%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(90,50,5,.55)) drop-shadow(0 10px 40px rgba(242,160,50,.45));
  padding: 8px 0 14px;
}
.logo-title .en { display: block; font: 500 clamp(18px, 3.2vw, 30px)/1 var(--font-en-display); letter-spacing: .6em; color: var(--gold-soft); margin-top: 4px; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
html[lang="en"] .logo-title .ar { font-size: clamp(96px, 19vw, 210px); letter-spacing: .02em; }
.hero p.lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 620px; margin: 26px 0 34px; color: #f6ecd6; text-shadow: 0 2px 16px rgba(0,0,0,.9); }
.downloads { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.alt-links { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.alt-links a { color: var(--sand); text-decoration: none; border-bottom: 1px dashed rgba(233,211,168,.4); }
.alt-links a:hover { color: var(--gold-hot); border-color: var(--gold-hot); }
.version { margin-top: 18px; color: var(--sand); font-size: 15px; opacity: .92; }
.version a { color: var(--gold-hot); }

.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: rgba(7,13,16,.62); backdrop-filter: blur(8px); font-size: 14px; color: var(--text); text-decoration: none; transition: border-color .2s; }
.status-pill:hover { border-color: var(--gold); }
.light { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #7d8a86; box-shadow: 0 0 0 3px rgba(255,255,255,.06); vertical-align: middle; flex: none; }
.light.open { background: #3fc652; box-shadow: 0 0 12px rgba(63,198,82,.7); animation: pulse 2.4s infinite; }
.light.closed { background: #e0524a; }
.light.unknown { background: #e8b834; }
.status-pill b { color: var(--gold-hot); font-weight: 700; }

.scroll-hint { position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(243,234,216,.5); border-radius: 14px; }
[dir="rtl"] .scroll-hint { transform: translateX(50%); }
.scroll-hint::after { content: ""; position: absolute; top: 7px; inset-inline-start: 50%; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 3px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.sec-head { margin-bottom: 40px; max-width: 820px; }
.kicker { display: block; font: 600 13px var(--font-en); letter-spacing: 4px; text-transform: uppercase; color: var(--sea-glow); margin-bottom: 8px; }
html[lang="ar"] .kicker { font-family: var(--font-ar); letter-spacing: 0; font-size: 15px; text-transform: none; font-weight: 700; }
h2 { font: 700 clamp(30px, 5vw, 54px)/1.15 var(--display); margin: 0 0 14px; color: var(--text); }
h2 em { font-style: normal; background: linear-gradient(180deg, var(--gold-hot), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="en"] h2 { text-transform: uppercase; letter-spacing: .02em; }
.lead { color: var(--muted); max-width: 760px; margin: 0 0 36px; font-size: 18px; }
.sec-head .lead { margin-bottom: 0; }
section.alt { background: linear-gradient(180deg, var(--bg), var(--bg-2) 20%, var(--bg-2) 80%, var(--bg)); }
.slant { position: relative; }
.slant::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 60px; background: var(--bg); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); z-index: 1; pointer-events: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Ticker ---------- */
.ticker { background: linear-gradient(90deg, #0d1c22, #10262d, #0d1c22); border-block: 1px solid var(--line); overflow: hidden; padding: 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 14px; padding: 15px 30px; font: 600 15px var(--font-en-display); letter-spacing: 3px; text-transform: uppercase; color: var(--sand); white-space: nowrap; }
html[lang="ar"] .ticker span { font-family: var(--font-ar-display); letter-spacing: 0; font-size: 17px; text-transform: none; }
.ticker span::after { content: "◆"; color: var(--gold); font-size: 10px; margin-inline-start: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
.stat { background: linear-gradient(180deg, rgba(18,35,42,.95), rgba(10,19,23,.95)); padding: 26px 18px; text-align: center; }
.stat b { display: block; font: 700 clamp(38px, 5vw, 58px)/1 var(--font-en-display); color: var(--gold-hot); text-shadow: 0 0 30px rgba(242,193,78,.35); }
.stat span { color: var(--sand); font-size: 15px; }

/* ---------- Bento (the world) ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-solid); padding: 26px; min-height: 220px; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.tile:hover { transform: translateY(-4px); border-color: rgba(242,193,78,.6); box-shadow: 0 18px 50px -12px rgba(242,193,78,.25); }
.tile .bgimg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.2s ease; filter: saturate(1.05); }
.tile:hover .bgimg { transform: scale(1.07); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,13,16,.05) 0%, rgba(7,13,16,.55) 50%, rgba(7,13,16,.96) 100%); }
.tile.plain::before { display: none; }
.tile.plain { justify-content: flex-start; background: linear-gradient(160deg, rgba(24,48,57,.9), rgba(12,24,29,.95)); }
.tile .ico { font-size: 30px; margin-bottom: 8px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.tile h3 { margin: 0 0 6px; font: 700 23px/1.25 var(--display); color: var(--gold-soft); }
html[lang="en"] .tile h3 { text-transform: uppercase; letter-spacing: .03em; font-size: 20px; }
.tile p { margin: 0; color: #d6d9d0; font-size: 15.5px; line-height: 1.65; }
.tile.plain p { color: var(--muted); }
.t-6 { grid-column: span 6; } .t-4 { grid-column: span 4; } .t-8 { grid-column: span 8; } .t-3 { grid-column: span 3; } .t-12 { grid-column: span 12; }
.tile.tall { min-height: 360px; }
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); opacity: .0; transition: opacity .3s; }
.tile:hover .corner { opacity: .8; }
.corner.tl { top: 10px; inset-inline-start: 10px; border-width: 2px 0 0 2px; } [dir="rtl"] .corner.tl { border-width: 2px 2px 0 0; }
.corner.br { bottom: 10px; inset-inline-end: 10px; border-width: 0 2px 2px 0; } [dir="rtl"] .corner.br { border-width: 0 0 2px 2px; }

/* ---------- Classes showcase ---------- */
.classes { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch; }
.class-list { display: flex; flex-direction: column; gap: 8px; }
.class-tab { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03);
  transition: background .2s, border-color .2s, transform .2s; }
.class-tab:hover { background: rgba(255,255,255,.07); transform: translateX(var(--nudge, 4px)); }
[dir="rtl"] .class-tab:hover { --nudge: -4px; }
.class-tab:focus-visible { outline: 2px solid var(--gold); }
.class-tab svg { width: 34px; height: 34px; flex: none; color: var(--cc, var(--gold)); }
.class-tab b { display: block; font: 700 19px/1.2 var(--display); }
html[lang="en"] .class-tab b { text-transform: uppercase; letter-spacing: .04em; font-size: 17px; }
.class-tab small { color: var(--muted); font-size: 13px; }
.class-tab.on { background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 22%, transparent), transparent); border-color: var(--cc); box-shadow: inset 3px 0 0 var(--cc); }
[dir="rtl"] .class-tab.on { box-shadow: inset -3px 0 0 var(--cc); background: linear-gradient(270deg, color-mix(in srgb, var(--cc) 22%, transparent), transparent); }
.class-panel { position: relative; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; min-height: 400px; padding: 36px; display: none; flex-direction: column; justify-content: flex-end; isolation: isolate;
  background: radial-gradient(80% 90% at 85% 15%, color-mix(in srgb, var(--cc) 30%, transparent), transparent 62%), linear-gradient(160deg, #10242b, #091216); }
[dir="rtl"] .class-panel { background: radial-gradient(80% 90% at 15% 15%, color-mix(in srgb, var(--cc) 30%, transparent), transparent 62%), linear-gradient(200deg, #10242b, #091216); }
.class-panel.on { display: flex; animation: panelin .5s ease both; }
@keyframes panelin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.class-panel .emblem { position: absolute; inset-block-start: 22px; inset-inline-end: 26px; width: min(46%, 300px); aspect-ratio: 1; z-index: -1; color: var(--cc); opacity: .95;
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--cc) 55%, transparent)); }
.class-panel .emblem svg { width: 100%; height: 100%; }
.class-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.015) 22px 23px); }
.class-panel h3 { margin: 0 0 4px; font: 700 clamp(36px, 5vw, 56px)/1.1 var(--display); color: var(--text); }
html[lang="en"] .class-panel h3 { text-transform: uppercase; letter-spacing: .03em; }
.class-panel .role { color: var(--cc); font: 700 16px var(--font-en); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
html[lang="ar"] .class-panel .role { font-family: var(--font-ar); letter-spacing: 0; font-size: 17px; text-transform: none; }
.class-panel p { margin: 0 0 18px; max-width: 560px; color: #dfe3da; font-size: 17.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 4px 14px; border-radius: 999px; font-size: 14px; border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent); color: #fff; background: color-mix(in srgb, var(--cc) 16%, transparent); }
.class-more { margin-top: 20px; }

/* ---------- Bosses ---------- */
.boss-feature { display: block; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; background: #000; margin-bottom: 18px; isolation: isolate; }
.boss-feature video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.boss-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,13,16,.92), transparent 55%), linear-gradient(90deg, rgba(7,13,16,.55), transparent 45%); pointer-events: none; }
[dir="rtl"] .boss-feature::after { background: linear-gradient(0deg, rgba(7,13,16,.92), transparent 55%), linear-gradient(270deg, rgba(7,13,16,.55), transparent 45%); }
.boss-feature .cap { position: absolute; z-index: 2; inset-inline-start: 28px; bottom: 24px; }
.boss-feature .cap .lvl { display: inline-grid; margin-bottom: 8px; }
.boss-feature .cap h3 { margin: 0; font: 700 clamp(26px, 4vw, 44px)/1.1 var(--display); text-shadow: 0 3px 20px #000; }
.boss-feature .cap span.where { color: var(--sand); font-size: 15px; }
.boss-feature .live { position: absolute; z-index: 2; top: 16px; inset-inline-end: 16px; font: 700 11px var(--font-en); letter-spacing: 2px; color: #fff; background: rgba(229,72,60,.9); padding: 3px 10px; border-radius: 4px; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.rail::-webkit-scrollbar { height: 8px; } .rail::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 4px; }
a.boss { flex: none; width: 230px; scroll-snap-align: start; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--panel-solid);
  transition: transform .25s, border-color .25s, box-shadow .25s; }
a.boss:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 16px 40px -10px rgba(242,193,78,.35); }
a.boss img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
a.boss:hover img { transform: scale(1.08); }
a.boss .meta { padding: 10px 14px 14px; }
a.boss b { display: block; color: var(--gold-soft); font: 700 18px/1.25 var(--display); }
a.boss .meta span { color: var(--muted); font-size: 13.5px; display: block; line-height: 1.4; margin-top: 2px; }
.lvl { flex: none; min-width: 46px; height: 28px; padding: 0 8px; border-radius: 6px; background: linear-gradient(180deg, #ff6a5a, #b3261e); color: #fff; font: 800 15px var(--font-en); display: grid; place-items: center; letter-spacing: .5px; box-shadow: 0 2px 10px rgba(229,72,60,.5); }
a.boss .lvl { position: absolute; top: 10px; inset-inline-start: 10px; }
.more { margin: 22px 0 0; }
.boss-note { color: var(--muted); max-width: 880px; font-size: 16px; margin: 22px 0 0; }

/* ---------- World map ---------- */
.map-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: center; }
.map-frame { position: relative; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: #0e3a5c; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.map-frame img { width: 100%; height: auto; }
.map-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0,0,0,.45); pointer-events: none; }
.pins { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.pins li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.pins li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; flex: none; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px var(--gold); }
.pins b { color: var(--gold-soft); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .6s ease, filter .3s; }
.gallery figure:hover img { transform: scale(1.05); filter: brightness(1.08); }
.gallery figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 36px 16px 12px; font-size: 15px; color: #fff; background: linear-gradient(0deg, rgba(7,13,16,.9), transparent); transform: translateY(8px); opacity: 0; transition: .3s; }
.gallery figure:hover figcaption { transform: none; opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(2,6,8,.94); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 80px rgba(242,193,78,.2); }

/* ---------- Live status band ---------- */
.live-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 30px 34px;
  background: radial-gradient(70% 140% at 0% 50%, rgba(63,198,82,.12), transparent 60%), linear-gradient(160deg, rgba(24,48,57,.9), rgba(10,19,23,.95)); }
[dir="rtl"] .live-band { background: radial-gradient(70% 140% at 100% 50%, rgba(63,198,82,.12), transparent 60%), linear-gradient(200deg, rgba(24,48,57,.9), rgba(10,19,23,.95)); }
.live-band h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 6px; }
.live-band .big-state { display: flex; align-items: center; gap: 14px; font: 700 clamp(22px, 3vw, 32px) var(--display); }
.live-band .big-state .light { width: 18px; height: 18px; }
.live-band .nums { color: var(--muted); font-size: 16px; margin-top: 4px; }
.live-band .nums b { color: var(--gold-hot); font-size: 22px; }

/* ---------- Download ---------- */
.dl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); margin-bottom: 34px; }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--text); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s; }
.dl-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 44px -12px rgba(242,193,78,.3); }
.dl-card svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 6px; }
.dl-card b { font: 700 21px/1.25 var(--display); color: var(--gold-soft); }
.dl-card small { color: var(--muted); font-size: 14px; }
.dl-card .rec { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #1d1405; }
.dl-card.first { border-color: var(--gold); background: linear-gradient(160deg, rgba(242,193,78,.14), rgba(18,35,42,.8)); }
.help { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 6px 0 6px; font: 700 21px var(--display); color: var(--gold-soft); }
.card p { margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.card ol { margin: 8px 0 0; padding-inline-start: 22px; color: var(--muted); }
.card li { margin: 7px 0; font-size: 15.5px; }
.icon { font-size: 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.beta-note { margin: 22px 0 0; max-width: 760px; padding: 14px 18px; border: 1px solid rgba(242,193,78,.4); border-radius: 12px; background: rgba(242,193,78,.07); color: var(--sand); font-size: 14.5px; line-height: 1.85; text-align: start; }
.beta-note b { color: var(--gold); }
.req { margin-top: 18px; color: var(--muted); font-size: 15px; }
.guide-band { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; padding: 28px 34px;
  background: linear-gradient(120deg, rgba(42,143,153,.18), rgba(242,193,78,.1)); }
.guide-band h3 { margin: 0 0 4px; font: 700 28px var(--display); }
.guide-band p { margin: 0; color: var(--muted); max-width: 640px; }

/* ---------- Updates (timeline; markup is made by Tools/website_updates.py) ---------- */
.updates { display: grid; gap: 16px; position: relative; padding-inline-start: 26px; }
.updates::before { content: ""; position: absolute; inset-inline-start: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(242,193,78,.08)); }
.update { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: border-color .25s; }
.update:hover { border-color: rgba(242,193,78,.55); }
.update::before { content: ""; position: absolute; inset-inline-start: -26px; top: 26px; width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--gold); transform: rotate(45deg); }
.uhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ver { font: 800 15px var(--font-en-display); letter-spacing: 1px; color: #1d1405; background: linear-gradient(135deg, var(--gold-hot), var(--gold)); padding: 2px 12px; direction: ltr;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.update time { color: var(--muted); font-size: 15px; }
.update h3 { margin: 10px 0 2px; font: 800 21px/1.45 var(--font-ar); color: var(--gold-soft); }
.update h4 { margin: 14px 0 4px; font-size: 14px; color: var(--sea-glow); letter-spacing: .5px; text-transform: uppercase; }
html[lang="ar"] .update h4 { text-transform: none; font-size: 15px; }
.update ul { margin: 0; padding-inline-start: 22px; color: var(--muted); font-size: 16px; }
.update li { margin: 4px 0; }
details.older { margin-top: 6px; }
details.older summary { cursor: pointer; color: var(--gold); font-weight: 700; padding: 12px 0; list-style: none; display: inline-flex; align-items: center; gap: 10px; }
details.older summary::before { content: "▸"; transition: transform .2s; display: inline-block; }
[dir="rtl"] details.older summary::before { content: "◂"; }
details.older[open] summary::before { transform: rotate(90deg); }
details.older > .updates { margin-top: 12px; padding-inline-start: 0; } details.older > .updates::before, details.older > .updates .update::before { display: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: #050a0c; padding: 40px 0 46px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
footer a { color: var(--sand); text-decoration: none; margin-inline-end: 18px; }
footer a:hover { color: var(--gold-hot); }
footer .brand { font-size: 1em; }

/* ---------- Inner pages: banner + shared bits ---------- */
.page-hero { position: relative; padding: 140px 0 56px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; opacity: .6; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(7,13,16,.75), rgba(7,13,16,.55) 50%, var(--bg) 100%), radial-gradient(80% 90% at 80% 0, rgba(242,163,60,.22), transparent 60%); }
.page-hero h1 { margin: 6px 0 12px; font: 700 clamp(40px, 7vw, 76px)/1.1 var(--display); background: linear-gradient(180deg, #fff3c4, var(--gold-hot) 35%, var(--gold) 70%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(242,160,50,.3)); }
html[lang="en"] .page-hero h1 { text-transform: uppercase; letter-spacing: .02em; }
.page-hero .lead { color: var(--sand); margin-bottom: 0; }
.crumb { display: inline-block; margin-bottom: 4px; font-size: 14px; color: var(--sand); text-decoration: none; opacity: .85; }
.crumb:hover { color: var(--gold-hot); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .classes { grid-template-columns: 1fr; }
  .class-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .class-tab { flex: none; padding: 10px 14px; }
  .class-tab small { display: none; }
  .class-tab:hover { transform: none; }
  .class-panel { min-height: 420px; padding: 26px; }
  .map-wrap { grid-template-columns: 1fr; }
  .t-4, .t-6, .t-8, .t-3 { grid-column: span 6; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .boss-feature { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  nav.links { position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 20px; background: rgba(7,13,16,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease; margin: 0; max-height: calc(100svh - 60px); overflow-y: auto; }
  header.open nav.links { transform: none; }
  nav.links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
  nav.links a::after { display: none; }
  .menu-btn { display: block; }
  .lang { margin-inline-start: auto; }
  .help { grid-template-columns: 1fr; }
  .live-band { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .hero .wrap { padding-top: 96px; padding-bottom: 96px; }
  .t-4, .t-6, .t-8, .t-3 { grid-column: span 12; }
  .tile { min-height: 190px; }
  .btn { width: 100%; justify-content: center; }
  .downloads { flex-direction: column; align-items: stretch; }
  .btn.big { padding: 16px 24px; font-size: 19px; }
  .class-panel .emblem { width: 56%; opacity: .5; inset-block-start: 10px; }
  .scroll-hint { display: none; }
  .gallery { columns: 2 150px; column-gap: 10px; }
  .gallery figure { margin-bottom: 10px; }
  .gallery figcaption { opacity: 1; transform: none; font-size: 13px; padding: 24px 10px 8px; }
  .boss-feature .cap { inset-inline-start: 16px; bottom: 14px; }
  a.boss { width: 190px; }
  .guide-band { padding: 22px; }
}

.slogan { margin: 18px 0 0; font: 700 clamp(22px, 3.4vw, 34px)/1.2 var(--display); color: var(--text); letter-spacing: .02em; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
html[lang="en"] .slogan { text-transform: uppercase; letter-spacing: .18em; font-size: clamp(18px, 2.6vw, 26px); }
.slogan::after { content: ""; display: block; width: 90px; height: 3px; margin-top: 14px; background: linear-gradient(90deg, var(--gold), transparent); }
[dir="rtl"] .slogan::after { background: linear-gradient(270deg, var(--gold), transparent); }

html[lang="en"] .update h3 { font-family: var(--font-en); font-weight: 700; font-size: 20px; }

.beta-line { margin: 16px 0 0; font-size: 14px; color: #ffcf9e; max-width: 560px; }
.beta-line a { color: var(--gold-hot); }

/* ---------- Latest-update ribbon ---------- */
.latest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: center; padding: 14px 22px; text-decoration: none; color: var(--text);
  background: linear-gradient(90deg, rgba(242,193,78,.12), rgba(42,143,153,.14), rgba(242,193,78,.12)); border-bottom: 1px solid var(--line); transition: background .25s; }
.latest:hover { background: linear-gradient(90deg, rgba(242,193,78,.2), rgba(42,143,153,.22), rgba(242,193,78,.2)); }
.latest .new { font: 700 12px var(--font-en); letter-spacing: 2px; color: #fff; background: var(--red); padding: 2px 10px; border-radius: 4px; }
.latest .when { color: var(--muted); font-size: 14px; }
.latest .ttl { font-weight: 700; color: var(--gold-soft); }
.latest .go { color: var(--gold-hot); font-size: 14px; }

/* ---------- Trailer ---------- */
.trailer { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 90px -20px rgba(0,0,0,.8), 0 0 80px rgba(242,193,78,.08); }
.trailer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trailer .play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font: 700 20px var(--font-ar);
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.05), rgba(7,13,16,.55)); transition: background .3s; }
html[lang="en"] .trailer .play { font-family: var(--font-en); }
.trailer .play:hover { background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0), rgba(7,13,16,.35)); }
.trailer .play svg { width: 84px; height: 84px; padding: 22px 20px 22px 26px; border-radius: 50%; color: #1d1405; background: linear-gradient(135deg, var(--gold-hot), var(--gold)); box-shadow: 0 0 0 10px rgba(242,193,78,.2), 0 10px 40px rgba(242,160,50,.5); transition: transform .25s; }
.trailer .play:hover svg { transform: scale(1.1); }
.trailer.playing .play { display: none; }

/* ---------- Skills tables and tags (guide.html and classes.html) ---------- */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tw table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 15px; }
.tw th, .tw td { padding: 10px 12px; border-bottom: 1px solid rgba(242,193,78,.12); text-align: start; vertical-align: top; }
.tw th { color: var(--sand); font-weight: 700; background: rgba(0,0,0,.2); white-space: nowrap; }
.tw td { color: var(--muted); }
.tw td b { color: var(--gold-soft); display: block; }
.tw td small { color: var(--muted); opacity: .7; font-size: 12px; }
html[lang="en"] .tw td small { display: none; }
.tw td.k { font: 800 18px var(--font-en); color: var(--gold); width: 48px; text-align: center; }
.tw td.cd { white-space: nowrap; }
.tw tr.elite td { background: rgba(183,124,255,.08); }
.tw tr.elite td.k { color: #c79bff; }
.tag { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 13px; background: rgba(255,255,255,.08); color: var(--sand); white-space: nowrap; }
.tag.elite { background: rgba(183,124,255,.25); color: #e2ccff; }
.tag.heal, .tag.field { background: rgba(42,143,153,.3); color: #bdeef2; }
.tag.def { background: rgba(120,160,255,.2); color: #cddcff; }
.tag.dmg, .tag.aoe { background: rgba(179,38,30,.3); color: #ffd0cc; }

/* ---------- Characters: the Arab warrior against Hormuz ---------- */
.duel { display: grid; grid-template-columns: 1fr auto 1.35fr; gap: 20px; align-items: stretch; }
.hero-card, .boss-card { position: relative; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; padding: 22px 24px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; isolation: isolate; }
.hero-card { background: radial-gradient(80% 70% at 50% 25%, rgba(238,138,60,.28), transparent 65%), linear-gradient(160deg, #10242b, #091216); }
.hero-card .portrait { position: absolute; inset: 0 0 auto 0; height: 66%; display: grid; place-items: center; z-index: -1; }
.hero-card .portrait img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.boss-card img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s; }
.boss-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,13,16,.05), rgba(7,13,16,.9)); }
.boss-card:hover img:first-child { transform: scale(1.06); }
.boss-card:hover { border-color: var(--gold); }
.boss-card .lvl { position: absolute; top: 16px; inset-inline-start: 16px; }
.duel h3 { margin: 0 0 4px; font: 700 28px var(--display); color: var(--gold-soft); }
html[lang="en"] .duel h3 { text-transform: uppercase; letter-spacing: .03em; }
.duel p { margin: 0; color: #dfe3da; font-size: 16px; }
.vs { align-self: center; font: 700 38px var(--font-en-display); color: var(--red); text-shadow: 0 0 30px rgba(229,72,60,.7); letter-spacing: 2px; }
.looks-title { margin: 44px 0 14px; font: 700 24px var(--display); }
.looks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.looks figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0e1c23; transition: transform .25s, border-color .25s; }
.looks figure:hover { transform: translateY(-4px); border-color: var(--gold); }
.looks img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.looks figcaption { padding: 8px 10px 10px; font-size: 14px; color: var(--sand); text-align: center; }
@media (max-width: 860px) { .duel { grid-template-columns: 1fr; } .vs { justify-self: center; } .looks { grid-template-columns: repeat(3, 1fr); } .hero-card, .boss-card { min-height: 340px; } }
@media (max-width: 520px) { .looks { grid-template-columns: repeat(2, 1fr); } }
