/* BUNKER LINE · MS Studio Games — site styles
   Dark brass-and-olive theme taken from the game. Logical properties throughout so the
   Arabic pages (dir="rtl") mirror without separate rules. */

:root {
  --bg: #0e120b;
  --bg-2: #141a10;
  --surface: #1a2115;
  --surface-2: #212a1b;
  --line: #2e3826;
  --line-2: #3b4731;
  --text: #f1ead6;
  --muted: #bdb59d;
  --dim: #8f8a74;
  --gold: #f2c14e;
  --gold-2: #d9a42b;
  --amber: #ff8a2a;
  --teal: #4fd6b8;
  --red: #c8483a;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1200px;
  --read: 720px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
:lang(ar) {
  --f-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body, body:lang(ar) { font-size: 18px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd677; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(242, 193, 78, .35); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.read { width: min(var(--read), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1a1406; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.35; letter-spacing: 0; font-weight: 800; }
p { margin: 0 0 1.1em; }
.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 .78rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
:lang(ar) .kicker { letter-spacing: 0; font-size: .9rem; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.lead { font-size: 1.22rem; color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font: 700 .98rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #f7cf63, #e3a82e); color: #1b1404; box-shadow: 0 8px 24px rgba(227, 168, 46, .28), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-gold:hover { color: #1b1404; background: linear-gradient(180deg, #ffd977, #ebb43a); }
.btn-ghost { background: rgba(14, 18, 11, .45); color: var(--text); border-color: rgba(241, 234, 214, .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .45em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
[dir="rtl"] .link-arrow::after { content: "←"; }
.link-arrow:hover::after { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-3px); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 15, 9, .82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(241, 234, 214, .08);
}
.head-in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand img { height: 42px; width: auto; }
.brand span { font: 700 .82rem/1.15 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-inline-start: 1px solid var(--line-2); padding-inline-start: 12px; }
:lang(ar) .brand span { letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(241, 234, 214, .06); color: var(--text); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .lang { border: 1px solid var(--line-2); margin-inline-start: 6px; }
.nav .btn { min-height: 42px; padding: 0 16px; margin-inline-start: 8px; font-size: .9rem; }
.nav .lang:lang(en) { font-family: "IBM Plex Sans Arabic", sans-serif; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: 68px 0 auto 0; max-height: calc(100vh - 68px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px; background: rgba(12, 15, 9, .98); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .lang { margin: 12px 0 0; border-radius: 10px; text-align: center; }
  .nav .btn { margin: 12px 0 0; }
  .brand span { display: none; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; animation: drift 24s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,18,11,.15) 0%, rgba(14,18,11,.05) 35%, rgba(14,18,11,.78) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,18,11,.42) 0%, rgba(14,18,11,0) 50%); }
[dir="rtl"] .hero::after { background:
    linear-gradient(180deg, rgba(14,18,11,.15) 0%, rgba(14,18,11,.05) 35%, rgba(14,18,11,.78) 72%, var(--bg) 100%),
    linear-gradient(270deg, rgba(14,18,11,.42) 0%, rgba(14,18,11,0) 50%); }
.hero-in { padding: 160px 0 60px; }
.hero-logo { width: min(380px, 72vw); filter: drop-shadow(0 14px 30px rgba(0,0,0,.55)); margin: 0 0 18px; }
.hero-tag { font: 600 clamp(1.15rem, 2.1vw, 1.45rem)/1.45 var(--f-body); max-width: 34em; margin: 0 0 26px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-tag strong { color: var(--gold); font-weight: 700; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: rgba(14, 18, 11, .72); border: 1px solid rgba(79, 214, 184, .45); color: var(--text);
  padding: 8px 14px 8px 8px; border-radius: 999px; font-weight: 600; font-size: .92rem; margin-bottom: 22px; backdrop-filter: blur(6px);
}
[dir="rtl"] .pill { padding: 8px 8px 8px 14px; }
.pill b { background: var(--teal); color: #062018; font-size: .72rem; letter-spacing: .1em; padding: 5px 9px; border-radius: 999px; text-transform: uppercase; }
:lang(ar) .pill b { letter-spacing: 0; font-size: .8rem; }
.pill:hover { color: var(--text); border-color: var(--teal); }
/* mobile hero focus */
@media (max-width: 700px) { .hero-bg img { object-position: 24% 30%; } .hero-in { padding-top: 260px; } }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } html { scroll-behavior: auto; } }

/* ---------- stats band ---------- */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 30px 18px 26px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat .num { font: 700 clamp(2.4rem, 4.4vw, 3.4rem)/1 var(--f-display); color: var(--gold); letter-spacing: .01em; display: block; }
:lang(ar) .stat .num { font-family: "Barlow Condensed", var(--f-display); }
.stat .lbl { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.stats-src { padding: 12px 0 18px; color: var(--dim); font-size: .8rem; border-top: 1px solid var(--line); }
@media (max-width: 920px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat { border-inline-start: 0; border-top: 1px solid var(--line); } .stat:nth-child(even) { border-inline-start: 1px solid var(--line); } .stat:first-child, .stat:nth-child(2) { border-top: 0; } .stat:last-child { grid-column: 1 / -1; border-inline-start: 0; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 70px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature figure { margin: 0; aspect-ratio: 4 / 4.2; overflow: hidden; background: #0b0e08; }
.feature figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.feature .body { padding: 20px 22px 24px; }
.feature h3 { font-size: 1.5rem; margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* DEAD TIDE band */
.tide { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, rgba(79, 214, 184, .16), transparent 55%), linear-gradient(180deg, #0f1613, #0c110e); border-block: 1px solid #1f3029; }
.tide-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.tide .kicker { color: var(--teal); }
.tide-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tide-shots img { border-radius: var(--radius); border: 1px solid #27403a; box-shadow: var(--shadow); }
.tide-shots img:nth-child(2) { margin-top: 48px; }
@media (max-width: 900px) { .tide-in { grid-template-columns: 1fr; } }

/* news cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.card:hover { color: var(--text); border-color: var(--gold-2); transform: translateY(-3px); }
.card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0e08; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover figure img { transform: scale(1.03); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .meta { font-size: .8rem; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card .meta .tag { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
:lang(ar) .card .meta .tag { letter-spacing: 0; font-size: .82rem; }
.card h3 { font-size: 1.4rem; margin: 0; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.cards.list { grid-template-columns: 1fr; gap: 20px; }
.cards.list .card { flex-direction: row; }
.cards.list .card figure { flex: 0 0 42%; aspect-ratio: auto; min-height: 230px; }
.cards.list .card .body { justify-content: center; padding: 26px 30px; }
.cards.list .card h3 { font-size: 1.75rem; }
.cards.list .card.featured h3 { font-size: 2.1rem; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .cards, .cards.list { grid-template-columns: 1fr; } .cards.list .card { flex-direction: column; } .cards.list .card figure { aspect-ratio: 16/9; min-height: 0; } }

/* studio teaser */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* press teaser */
.press-cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: 20px; padding: 40px 44px; }
.press-cta p { color: var(--muted); margin: 0; max-width: 46em; }
@media (max-width: 800px) { .press-cta { grid-template-columns: 1fr; padding: 30px 24px; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(90% 120% at 15% 0%, rgba(242, 193, 78, .08), transparent 60%); }
[dir="rtl"] .page-head { background: radial-gradient(90% 120% at 85% 0%, rgba(242, 193, 78, .08), transparent 60%); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { max-width: 46em; margin: 0; }

/* ---------- article ---------- */
.article-head { padding: 64px 0 34px; }
.article-head .wrap { width: min(880px, 100% - 40px); }
.article-head h1 { font-size: clamp(2rem, 4.1vw, 3.2rem); }
.article-head .dek { font-size: 1.24rem; color: var(--muted); max-width: 46em; line-height: 1.55; margin: 14px 0 22px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--dim); font-size: .9rem; }
.byline .who { display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 600; }
.byline .who img { width: 32px; height: 32px; border-radius: 8px; }
.article-hero { margin: 0 auto 8px; width: min(1200px, 100% - 40px); }
.article-hero img { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-hero figcaption { color: var(--dim); font-size: .82rem; margin-top: 10px; text-align: center; }
.prose { padding: 40px 0 30px; font-size: 1.1rem; }
:lang(ar) .prose { font-size: 1.14rem; }
.prose h2 { font-size: 1.95rem; margin: 1.7em 0 .55em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: #e7e0cb; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); }
.dateline strong { color: var(--gold); letter-spacing: .02em; }
.prose blockquote {
  margin: 1.8em 0; padding: 6px 0 6px 26px; border-inline-start: 3px solid var(--gold);
  font: 500 1.3rem/1.55 var(--f-body); color: var(--text);
}
[dir="rtl"] .prose blockquote { padding: 6px 26px 6px 0; }
.prose blockquote cite { display: block; margin-top: 12px; font: 600 .92rem/1.4 var(--f-body); color: var(--gold); font-style: normal; }
.note { background: rgba(242, 193, 78, .07); border: 1px solid rgba(242, 193, 78, .25); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; color: var(--muted); margin: 1.4em 0; }
.factbox { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px 26px; margin: 1.8em 0; }
.factbox h3 { margin-top: 0 !important; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-family: var(--f-body); }
:lang(ar) .factbox h3 { letter-spacing: 0; }
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0; }
.factbox dt { color: var(--dim); font-size: .92rem; }
.factbox dd { margin: 0; font-weight: 600; font-size: .98rem; }
.ranks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 1.4em 0 1.8em; padding: 0; list-style: none; }
.ranks li { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text) !important; }
.ranks li b { font: 700 1.6rem/1 "Barlow Condensed", var(--f-display); color: var(--gold); }
.ranks li.hl { border-color: var(--gold-2); background: linear-gradient(180deg, rgba(242,193,78,.12), var(--surface)); }
.event-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: linear-gradient(135deg, rgba(79, 214, 184, .12), rgba(255, 138, 42, .08)); border: 1px solid rgba(79, 214, 184, .35); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 1.6em; }
.event-box .cal { text-align: center; background: #0d1512; border: 1px solid rgba(79, 214, 184, .4); border-radius: 12px; padding: 10px 16px; min-width: 112px; }
.event-box .cal b { display: block; font: 700 1.9rem/1 "Barlow Condensed", var(--f-display); color: var(--teal); }
.event-box .cal span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
:lang(ar) .event-box .cal span { letter-spacing: 0; }
.event-box p { margin: 0; color: var(--text); }
.event-box p + p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
@media (max-width: 560px) { .event-box { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0 !important; margin: 1.6em 0 2em; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 9px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { position: relative; padding-inline-start: 42px; margin-bottom: 26px !important; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
.timeline time { display: block; font: 700 .8rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
:lang(ar) .timeline time { letter-spacing: 0; font-size: .9rem; }
.timeline h3 { margin: 0 0 4px !important; font-size: 1.3rem; }
.timeline p { margin: 0; color: var(--muted) !important; }
.sources { font-size: .9rem; color: var(--dim); }
.nw { white-space: nowrap; }
@media (max-width: 480px) { .ranks { grid-template-columns: 1fr; } }
.sources li { color: var(--dim) !important; }
.boiler { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 1.6em 0; }
.boiler h3 { margin-top: 0 !important; }
.boiler p:last-child { margin-bottom: 0; }
.art-foot { border-top: 1px solid var(--line); padding: 34px 0 10px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.share { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: .9rem; }
.share a, .share button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); background: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--gold); color: var(--gold); }
.share svg { width: 18px; height: 18px; }

/* galleries */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 1.4em 0 2em; }
.gallery.g6 { grid-template-columns: repeat(6, 1fr); }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0b0e08; transition: border-color .2s ease, transform .2s ease; }
.gallery a:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.gallery img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 900px) { .gallery, .gallery.g6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery, .gallery.g6 { grid-template-columns: repeat(2, 1fr); } }
.prose .gallery { width: min(1000px, 100vw - 40px); margin-inline: calc((min(var(--read), 100vw - 40px) - min(1000px, 100vw - 40px)) / 2); }
.wide-img { width: min(1000px, 100vw - 40px); margin: 1.8em calc((min(var(--read), 100vw - 40px) - min(1000px, 100vw - 40px)) / 2); }
.wide-img img { border-radius: 14px; border: 1px solid var(--line); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 7, 4, .94); display: none; place-items: center; padding: 24px; }
.lb.open { display: grid; }
.lb img { max-width: min(92vw, 1100px); max-height: 84vh; width: auto; border-radius: 12px; box-shadow: var(--shadow); }
.lb-bar { position: absolute; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; gap: 10px; }
.lb-bar a, .lb-bar button { background: rgba(26, 33, 21, .9); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; font: 600 .9rem/1 var(--f-body); cursor: pointer; text-decoration: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(26, 33, 21, .9); color: var(--text); border: 1px solid var(--line-2); width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb-prev { inset-inline-start: 14px; } .lb-next { inset-inline-end: 14px; }

/* ---------- press kit ---------- */
.press-layout { display: grid; grid-template-columns: 330px 1fr; gap: 56px; padding: 56px 0 90px; align-items: start; }
.factsheet { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; }
.factsheet h2 { font-size: 1.4rem; margin-bottom: 18px; }
.factsheet dl { margin: 0; display: grid; gap: 14px; }
.factsheet dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
:lang(ar) .factsheet dt { letter-spacing: 0; font-size: .85rem; }
.factsheet dd { margin: 3px 0 0; font-weight: 600; font-size: .96rem; line-height: 1.45; }
.factsheet .btn { width: 100%; margin-top: 22px; }
.press-main section { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.press-main section:last-child { border-bottom: 0; }
.press-main h2 { font-size: 2rem; }
.press-main p, .press-main li { color: #e7e0cb; }
.press-main ul { padding-inline-start: 1.2em; }
.press-main li { margin-bottom: .5em; }
.press-main li::marker { color: var(--gold); }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dl { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.dl:hover { border-color: var(--gold); color: var(--text); }
.dl small { color: var(--dim); font-weight: 500; }
.dl svg { width: 18px; height: 18px; color: var(--gold); }
.keyart { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.logos { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 14px; }
.logos > div { border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; padding: 26px; min-height: 200px; }
.logos .on-dark { background: #0b0e08; }
.logos .on-light { background: #efe7d2; }
.logos .on-icon { background: var(--surface); }
.logos img { max-height: 150px; width: auto; }
.logos .on-icon img { border-radius: 22%; max-height: 140px; }
.cmdrs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cmdrs figure { margin: 0; background: radial-gradient(80% 70% at 50% 30%, rgba(242, 193, 78, .14), transparent 70%), var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px 12px; text-align: center; }
.cmdrs img { height: 230px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.cmdrs figcaption { font: 700 1.15rem/1 "Barlow Condensed", var(--f-display); letter-spacing: .06em; }
.copy-box { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.copy-box p { margin: 0; }
.copy-btn { margin-top: 12px; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 8px 12px; font: 600 .85rem/1 var(--f-body); cursor: pointer; }
.copy-btn:hover { border-color: var(--gold); }
.chart-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.chart-table th, .chart-table td { text-align: start; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.chart-table th { color: var(--dim); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
:lang(ar) .chart-table th { letter-spacing: 0; font-size: .88rem; }
.chart-table td.n { font: 700 1.3rem/1 "Barlow Condensed", var(--f-display); color: var(--gold); width: 90px; }
.chart-table td.x { color: var(--dim); font-size: .85rem; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.numbers div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.numbers b { display: block; font: 700 2.2rem/1 "Barlow Condensed", var(--f-display); color: var(--gold); }
.numbers span { display: block; color: var(--muted); font-size: .88rem; margin-top: 8px; line-height: 1.4; }
.numbers small { display: block; color: var(--dim); font-size: .74rem; margin-top: 6px; }
@media (max-width: 1000px) { .press-layout { grid-template-columns: 1fr; } .factsheet { position: static; } }
@media (max-width: 700px) { .logos, .cmdrs, .numbers { grid-template-columns: 1fr 1fr; } .logos .on-icon { grid-column: 1 / -1; } }

/* ---------- studio ---------- */
.studio-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.studio-hero img { width: 100%; max-height: 620px; object-fit: cover; object-position: 50% 30%; }
.studio-hero .over { position: absolute; inset: auto 0 0 0; padding: 120px 0 40px; background: linear-gradient(180deg, transparent, rgba(14,18,11,.85) 55%, var(--bg)); }
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.founder-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; }
.founder-card .mono { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #f7cf63, #c98f1d); color: #1b1404; font: 800 2rem/1 "Barlow Condensed", var(--f-display); margin-bottom: 16px; }
.founder-card h3 { margin-bottom: 4px; }
.founder-card p { color: var(--muted); margin: 0 0 4px; font-size: .95rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.values h3 { font-size: 1.3rem; }
.values p { color: var(--muted); margin: 0; font-size: .98rem; }
.games { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.game-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.game-card .body { padding: 22px 24px 26px; }
.game-card .badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(79, 214, 184, .15); color: var(--teal); margin-bottom: 10px; }
:lang(ar) .game-card .badge { letter-spacing: 0; font-size: .82rem; }
.game-card.soon { display: grid; place-items: center; text-align: center; padding: 40px 30px; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 14px, var(--surface-2) 14px, var(--surface-2) 28px); }
.game-card.soon b { display: block; font: 700 4.4rem/1 "Barlow Condensed", var(--f-display); color: var(--gold); }
@media (max-width: 900px) { .founder, .games, .values { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #0a0d08; padding: 56px 0 30px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
:lang(ar) .foot-grid h4 { letter-spacing: 0; font-size: .88rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--text); text-decoration: none; font-size: .95rem; }
.foot-grid a:hover { color: var(--gold); }
.foot-brand img { height: 54px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 30em; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
