/* ==========================================================================
   Raven Illusion – site styles
   1. Tokens & base   2. Components   3. Header/footer   4. Home
   5. Games           6. Studios/about 7. News/post       8. Motion & a11y
   ========================================================================== */

/* ------------------------------------------------------------ 1. tokens & base */
:root {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --surface: #14141b;
  --surface-2: #1b1b25;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.22);
  --text: #f3f3f6;
  --muted: #a5a5b3;
  --dim: #767688;
  --brand: #d7162f;
  --brand-hi: #ff2f4b;
  --accent: var(--brand);
  --hub: #37f57f;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Barlow Condensed', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
main { display: block; padding-top: var(--header-h); }
.page-home main,
.page-game main { padding-top: 0; }
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.container.narrow, .narrow { max-width: 860px; }
.container.narrow { width: min(100% - 2 * var(--gutter), 860px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: #fff; color: #000; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- 2. components */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 14px; color: var(--accent);
  font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.24em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(1.65rem, 4.4vw, 3.6rem); margin-bottom: 0.35em; }
.section-text, .lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.lead { color: #d9d9e2; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section--dark { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--tight { padding: clamp(36px, 5vw, 72px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-text { margin-inline: auto; }
.section-head .section-text { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.5em; border: 1px solid transparent; border-radius: 4px;
  font: 700 1.05rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 28px -10px rgba(215, 22, 47, 0.8); }
.btn--primary:hover { background: var(--brand-hi); box-shadow: 0 12px 34px -8px rgba(255, 47, 75, 0.7); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.btn--light { background: #fff; color: #0a0a0d; }
.btn--light:hover { background: #e9e9ef; }
.btn--hub { border-color: var(--hub); color: var(--hub); background: rgba(55, 245, 127, 0.06); }
.btn--hub:hover { background: var(--hub); color: #04120a; }
.btn--sm { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.95rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(8, 8, 11, 0.5); color: #fff; backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: #fff; color: #000; border-color: #fff; }
.icon-btn--text { font: 700 1.15rem/1 var(--font-body); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font: 700 1rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.link-arrow .icon { transition: transform 0.25s var(--ease); color: var(--brand-hi); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(5px); }

.badge { display: inline-block; padding: 5px 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); font: 700 0.75rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.badge--live { background: var(--brand); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); font: 600 0.78rem/1 var(--font-body); color: var(--muted); transition: 0.2s; }
.chip:hover { color: #fff; border-color: #fff; }
.chip--lg { padding: 10px 16px; font-size: 0.9rem; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip span { opacity: 0.6; font-size: 0.8em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.pills li { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge img { height: 48px; width: auto; border-radius: 8px; transition: transform 0.25s var(--ease); }
.store-badge:hover img { transform: translateY(-3px); }
.stores--sm .store-badge img { height: 40px; }
.stores--hero .store-badge img { height: 52px; }

/* forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font: 600 0.9rem/1 var(--font-body); color: var(--muted); }
input[type='text'], input[type='email'], input[type='search'], input[type='password'], input[type='datetime-local'], select, textarea {
  width: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; color: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-hi); box-shadow: 0 0 0 3px rgba(255, 47, 75, 0.25); }
::placeholder { color: var(--dim); }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.95rem; color: var(--muted); }
.form-status.is-ok { color: #6ee7a0; }
.form-status.is-error { color: #ff8a9a; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; max-width: 520px; }
.newsletter .form-status { grid-column: 1 / -1; }
.newsletter--compact { grid-template-columns: 1fr; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; inset: 7px 0 auto; height: 2px; background: var(--brand-hi); transition: transform 0.25s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__body { padding: 0 22px 20px; color: var(--muted); }
.faq__body p { margin: 0; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials--center { justify-content: center; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: 0.25s var(--ease); }
.socials a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.socials .icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------- 3. header/footer */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s, transform 0.35s var(--ease); border-bottom: 1px solid transparent; }
.site-header[data-mode='solid'], .site-header.is-scrolled, body.menu-open .site-header { background: rgba(8, 8, 11, 0.88); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
/* no-repeat + border-box: otherwise the gradient tiles into the 1px border and draws a dark line under the header */
.site-header[data-mode='overlay']:not(.is-scrolled) { background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent) no-repeat border-box; border-bottom-color: transparent; }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand img { height: 46px; width: auto; }
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(4px, 1.4vw, 22px); }
.nav__item { position: relative; }
.nav__link { position: relative; display: flex; align-items: center; gap: 4px; padding: 26px 10px; font: 600 1.05rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #dcdce4; transition: color 0.2s; }
.nav__link::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 18px; height: 2px; background: var(--brand-hi); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after, .has-mega:focus-within > .nav__link::after { transform: scaleX(1); }
.nav__caret { width: 0.9em; height: 0.9em; opacity: 0.7; transition: transform 0.25s; }
.has-mega:hover .nav__caret, .has-mega:focus-within .nav__caret { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; }
.burger .icon { width: 24px; height: 24px; }

.mega { position: absolute; top: 100%; left: 50%; padding-top: 4px; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s; z-index: 5; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(5, 150px); gap: 14px; padding: 16px; background: rgba(13, 13, 18, 0.97); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 80px -20px #000; }
.mega--studios .mega__grid { grid-template-columns: repeat(3, 200px); }
.mega__card { display: grid; gap: 4px; padding: 8px; border-radius: 10px; transition: background 0.2s; }
.mega__card:hover, .mega__card:focus-visible { background: rgba(255, 255, 255, 0.07); }
.mega__thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; border-bottom: 2px solid var(--accent); background: var(--surface-2); }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.mega__card:hover .mega__thumb img { transform: scale(1.08); }
.mega__title { font: 700 1.15rem/1.1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.mega__sub { font-size: 0.78rem; color: var(--muted); }
.mega__card--studio { padding: 16px; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, 0.03); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0; background: var(--bg); overflow-y: auto; z-index: 99; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { padding: 24px var(--gutter) 60px; display: grid; gap: 28px; }
.mobile-menu__list > li > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 1.9rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.mobile-menu__list > li > a.is-active { color: var(--brand-hi); }
.mobile-menu__list ul { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 0 6px; }
.mobile-menu__list ul a { color: var(--muted); font-size: 1rem; }
.mobile-menu .btn { justify-self: start; }

.site-footer { background: #050507; border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 0.7fr 0.7fr 0.8fr 1.5fr; gap: 40px; padding-bottom: 56px; }
.footer__brand img { height: 56px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 34ch; }
.footer__col h2 { font-size: 1rem; letter-spacing: 0.2em; color: var(--dim); margin-bottom: 18px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { color: #d5d5de; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__news p { color: var(--muted); font-size: 0.95rem; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.88rem; }
.footer__legal p { margin: 0; }
.footer__legal ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a { display: inline-flex; align-items: center; gap: 6px; }
.footer__legal a:hover { color: #fff; }

/* --------------------------------------------------------------------- 4. home */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1080px; overflow: hidden; background: #000; isolation: isolate; }
.hero__slides, .hero__slide, .hero__media { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__poster, .hero__video, .game-hero__img, .game-hero__video, .page-hero__img, .page-hero__video, .mission__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .hero__poster { animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
/* some source clips have black letterbox bars baked in; scale them out */
video.is-letterboxed { transform: scale(1.3); }
.hero__slide.is-dim .hero__video { filter: brightness(2.1) saturate(1.2); }
video[data-src] { opacity: 0; transition: opacity 0.9s; }
video.is-ready { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 4, 7, 0.8) 0%, rgba(4, 4, 7, 0.32) 55%, rgba(4, 4, 7, 0.08) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 11, 0) 34%); }
.hero__content { position: absolute; inset: auto 0 0; left: 50%; transform: translateX(-50%); padding-bottom: 150px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; color: #fff; font: 700 1rem/1 var(--font-display); letter-spacing: 0.3em; text-transform: uppercase; }
.hero__eyebrow::before { content: ''; width: 36px; height: 3px; background: var(--accent); }
.hero__title { max-width: 15ch; margin-bottom: 20px; font-size: clamp(2.05rem, 8vw, 7rem); line-height: 0.92; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5); }
.hero__text { max-width: 54ch; margin-bottom: 30px; color: rgba(255, 255, 255, 0.86); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__slide.is-active .hero__eyebrow, .hero__slide.is-active .hero__title, .hero__slide.is-active .hero__text, .hero__slide.is-active .hero__actions { animation: rise 0.9s var(--ease) both; }
.hero__slide.is-active .hero__title { animation-delay: 0.1s; }
.hero__slide.is-active .hero__text { animation-delay: 0.22s; }
.hero__slide.is-active .hero__actions { animation-delay: 0.34s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero__ui { position: absolute; z-index: 5; inset: auto 0 34px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero__dots { display: flex; gap: clamp(8px, 1.6vw, 22px); }
.hero__dot { display: grid; gap: 8px; width: clamp(38px, 8vw, 96px); padding: 8px 0; background: none; border: 0; text-align: left; color: var(--dim); }
.hero__dot-label { font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.2em; }
.hero__dot-bar { display: block; height: 3px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.hero__dot-bar i { display: block; height: 100%; width: 0; background: #fff; }
.hero__dot.is-active { color: #fff; }
.hero__dot.is-active .hero__dot-bar i { animation: fill var(--hero-interval, 8s) linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__dot-bar i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.hero__controls { display: flex; gap: 10px; }

.ticker { display: block; background: var(--surface); border-block: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 20px; padding-block: 16px; min-width: 0; }
.ticker__label { flex: none; padding: 5px 10px; background: var(--brand); border-radius: 3px; font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.ticker__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ticker__date { flex: none; color: var(--dim); font-size: 0.88rem; }
.ticker__go { color: var(--brand-hi); transition: transform 0.25s; }
.ticker:hover .ticker__go { transform: translateX(6px); }
.ticker:hover .ticker__title { text-decoration: underline; text-underline-offset: 4px; }

.intro__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; padding: 28px 0; border-block: 1px solid var(--line); }
.stats dt { font: 800 clamp(2.6rem, 5vw, 4.4rem)/1 var(--font-display); color: #fff; }
.stats dd { margin: 6px 0 0; color: var(--muted); font: 600 0.85rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; }
.stats--stack { grid-template-columns: 1fr; margin: 0; padding: 0; border: 0; }
.stats--stack > div { padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; }
.intro__photo { position: relative; margin: 0; }
.intro__photo::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; border: 2px solid var(--brand); border-radius: var(--radius); opacity: 0.7; }
.intro__photo img { position: relative; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); }

.game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.game-grid--4 { grid-template-columns: repeat(4, 1fr); }
.game-grid--3 { grid-template-columns: repeat(3, 1fr); }
.game-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; isolation: isolate; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 24px 60px -18px color-mix(in srgb, var(--accent) 60%, transparent); }
.game-card__media, .game-card__media img, .game-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card__media img { transition: transform 0.8s var(--ease); }
.game-card:hover .game-card__media img { transform: scale(1.07); }
.game-card__video { z-index: 1; }
.game-card__media::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(4, 4, 7, 0.98) 0%, rgba(4, 4, 7, 0.9) 26%, rgba(4, 4, 7, 0.4) 48%, transparent 66%); }
.game-card__body { position: absolute; inset: auto 0 0; z-index: 3; padding: 22px; }
.game-card__badge { position: absolute; top: 16px; left: 16px; z-index: 3; }
.game-card__title { margin: 0 0 6px; font-size: 1.6rem; }
.game-card__meta { margin: 0 0 12px; color: #c9c9d4; font-size: 0.88rem; }
.game-card__platforms { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 0.78rem; }
.game-card__platforms span { display: inline-flex; align-items: center; gap: 6px; }
.game-card__platforms .icon { width: 14px; height: 14px; }

.mission { position: relative; padding: clamp(80px, 11vw, 160px) 0; overflow: hidden; isolation: isolate; background: #05070b; }
.mission__video { z-index: -2; }
.mission__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 8, 0.92), rgba(5, 5, 8, 0.55)); }
.mission__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.mission__card { padding: clamp(24px, 3vw, 40px); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); border-radius: var(--radius); backdrop-filter: blur(18px); }
.mission__card h3 { font-size: 1.6rem; color: var(--brand-hi); }
.mission__card p { margin: 0; color: #e0e0e8; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.3s; }
.news-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.news-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__placeholder { display: grid; place-items: center; height: 100%; background: radial-gradient(circle at 30% 20%, rgba(215, 22, 47, 0.35), transparent 60%), var(--surface-2); }
.news-card__placeholder img { width: 46%; height: auto; opacity: 0.85; object-fit: contain; }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.news-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--dim); font-size: 0.82rem; }
.news-card__title { font-size: 1.55rem; line-height: 1.06; }
.news-card__title a:hover { color: var(--brand-hi); }
.news-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 0.95rem; }
.news-card .link-arrow { margin-top: auto; padding-top: 6px; }
.news-grid--2 { grid-template-columns: repeat(2, 1fr); }
.news-card--large { display: grid; grid-template-columns: 1.35fr 1fr; }
.news-card--large .news-card__media { aspect-ratio: auto; min-height: 340px; }
.news-card--large .news-card__body { padding: clamp(24px, 4vw, 48px); justify-content: center; }
.news-card--large .news-card__title { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.news-card--large .news-card__excerpt { -webkit-line-clamp: 5; font-size: 1.05rem; }
.news-card--large .link-arrow { margin-top: 12px; }

.studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.studio-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.studio-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--accent) 70%, transparent); }
.studio-card__logo { display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), #0a0a0f; }
.studio-card__logo img { width: 52%; max-height: 82%; object-fit: contain; mix-blend-mode: screen; transition: transform 0.6s var(--ease); }
.studio-card:hover .studio-card__logo img { transform: scale(1.06); }
.studio-card__body { padding: 22px 24px 26px; }
.studio-card__region { margin: 0 0 6px; color: var(--accent); font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; }
.studio-card__name { font-size: 1.7rem; margin-bottom: 12px; }
.studio-card__place, .studio-card__time { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--muted); font-size: 0.92rem; }
.studio-card__time span { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.studio-card__go { position: absolute; right: 20px; bottom: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); transition: 0.3s var(--ease); }
.studio-card:hover .studio-card__go { background: var(--brand); transform: translateX(4px); }

.community { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.community__card { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; position: relative; transition: transform 0.35s var(--ease), border-color 0.3s; }
.community__card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.community__card h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0; }
.community__card p { margin: 0; color: var(--muted); }
.community__card--discord { background: linear-gradient(140deg, #3b46b8 0%, #151a45 70%); }
.community__card--discord p { color: #d3d7ff; }
.community__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); }
.community__icon .icon { width: 30px; height: 30px; }
.community__card--hub { background: #000; justify-content: space-between; }
.community__card--hub img { width: calc(100% + 2 * clamp(28px, 4vw, 52px)); max-width: none; margin: calc(-1 * clamp(28px, 4vw, 52px)) calc(-1 * clamp(28px, 4vw, 52px)) 8px; }
.community__card--hub .eyebrow { color: var(--hub); }

.partners { padding: clamp(40px, 6vw, 72px) 0; border-block: 1px solid var(--line); }
.partners__label { display: flex; justify-content: center; margin-bottom: 30px; color: var(--dim); }
.partners__label::before { display: none; }
.partners__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partners__list li { display: grid; place-items: center; width: 190px; height: 92px; padding: 14px 22px; border-radius: 12px; background: #fff; opacity: 0.92; transition: opacity 0.25s, transform 0.3s var(--ease); }
.partners__list li:hover { opacity: 1; transform: translateY(-3px); }
.partners__list img { max-height: 62px; width: auto; max-width: 100%; object-fit: contain; }
.partners__list li.is-dark { background: #0b0b0b; border: 1px solid var(--line-2); }
.partners--page { border-bottom: 0; }

.cta-band { padding: clamp(56px, 8vw, 104px) 0; background: radial-gradient(900px 300px at 85% 20%, rgba(215, 22, 47, 0.5), transparent 70%), linear-gradient(120deg, #1a0509 0%, #08080b 70%); border-block: 1px solid var(--line); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__inner .section-text { margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.newsletter-block { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(28px, 4vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.newsletter-block .section-title { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.newsletter-block .section-text { margin: 8px 0 0; }
.newsletter-block .newsletter { flex: 1 1 380px; }

/* --------------------------------------------------------------------- 5. games */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 52vh, 560px); overflow: hidden; isolation: isolate; background: radial-gradient(800px 320px at 15% 0%, rgba(215, 22, 47, 0.28), transparent 70%), radial-gradient(700px 300px at 100% 100%, rgba(90, 120, 255, 0.12), transparent 70%), var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero__img, .page-hero__video { z-index: -2; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 11, 0.62) 45%, rgba(8, 8, 11, 0.7) 100%); }
.page-hero__content { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.page-hero__content { padding-block: clamp(48px, 8vw, 96px) clamp(36px, 5vw, 64px); }
.page-hero__title { max-width: 18ch; margin-bottom: 14px; font-size: clamp(2.05rem, 7vw, 5.6rem); line-height: 0.95; }
.page-hero__text { max-width: 60ch; color: #d3d3dd; font-size: clamp(1.02rem, 1.5vw, 1.25rem); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.page-hero--news { min-height: clamp(260px, 36vh, 380px); }
.not-found { display: grid; min-height: 70vh; align-items: center; background: radial-gradient(700px 400px at 50% 30%, rgba(215, 22, 47, 0.25), transparent 70%); }

.feature-rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-row--flip .feature-row__media { order: 2; }
.feature-row__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--accent) 60%, #000); }
.feature-row__media img, .feature-row__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature-row__media:hover img { transform: scale(1.05); }
.feature-row__play { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease); }
.feature-row__media:hover .feature-row__play { transform: scale(1.12); }
.feature-row__play .icon { width: 22px; height: 22px; margin-left: 2px; }
.feature-row__title { font-size: clamp(2.2rem, 4.5vw, 3.8rem); margin: 14px 0 4px; }
.feature-row__tagline { color: var(--accent); font: 700 1.3rem/1.2 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.feature-row__body > p { color: var(--muted); }
.feature-row__studio { font-size: 0.92rem; }
.feature-row__studio a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); }
.feature-row__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }

.game-hero { position: relative; display: flex; align-items: flex-end; min-height: min(92svh, 900px); overflow: hidden; isolation: isolate; background: #000; }
.game-hero__img, .game-hero__video { z-index: -3; }
.game-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 4, 7, 0.88) 0%, rgba(4, 4, 7, 0.35) 65%, rgba(4, 4, 7, 0.2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 42%); }
.game-hero__content { padding-block: calc(var(--header-h) + 60px) clamp(48px, 7vw, 96px); }
.game-hero__logo { width: min(460px, 78%); height: auto; margin: 0 0 20px; filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.6)); }
.game-hero__title { max-width: 14ch; font-size: clamp(2.4rem, 9vw, 7.4rem); line-height: 0.9; text-shadow: 0 6px 50px rgba(0, 0, 0, 0.55); }
.game-hero__tagline { max-width: 40ch; margin-bottom: 30px; color: rgba(255, 255, 255, 0.9); font-size: clamp(1.1rem, 2vw, 1.5rem); }
.game-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 0.88rem; }
.breadcrumb a:hover { color: #fff; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split p { color: var(--muted); }
.split .lead { color: #e0e0e8; }
.fact-sheet { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.fact-sheet__logo { height: 84px; width: auto; margin-bottom: 16px; }
.fact-sheet dl { margin: 0 0 20px; }
.fact-sheet dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-sheet dt { color: var(--dim); font: 700 0.85rem/1.4 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.fact-sheet dd { margin: 0; text-align: right; font-weight: 500; }
.fact-sheet a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); }
.fact-sheet__links { display: flex; flex-wrap: wrap; gap: 10px; }
.fact-sheet .stores { margin-top: 4px; }

.feature-grid, .values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card, .value-card { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.3s, transform 0.35s var(--ease); }
.feature-card:hover, .value-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feature-card__num { display: block; margin-bottom: 18px; color: var(--accent); font: 800 2.6rem/1 var(--font-display); opacity: 0.9; }
.feature-card h3, .value-card h3 { font-size: 1.55rem; }
.feature-card p, .value-card p { margin: 0; color: var(--muted); }
.values-grid--2 { grid-template-columns: repeat(2, 1fr); }
.value-card--big { padding: clamp(28px, 4vw, 52px); }
.value-card--big p:last-child { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.55; color: #e8e8ef; }

.characters { display: flex; justify-content: center; gap: clamp(16px, 4vw, 56px); align-items: flex-end; }
.characters img { max-height: 460px; width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { position: relative; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.3s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.25s; border-radius: inherit; }
.gallery__item:hover::after, .gallery__item:focus-visible::after { box-shadow: inset 0 0 0 2px var(--brand-hi); }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-card { display: grid; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.video-card:hover .video-card__thumb img { transform: scale(1.06); }
.video-card__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.25); transition: background 0.25s; }
.video-card__play .icon { width: 46px; height: 46px; padding: 13px 10px 13px 15px; border-radius: 50%; background: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease); }
.video-card:hover .video-card__play { background: rgba(0, 0, 0, 0.1); }
.video-card:hover .video-card__play .icon { transform: scale(1.12); }
.video-card__title { color: #e6e6ee; font-size: 0.92rem; line-height: 1.35; }
.video-card:hover .video-card__title { color: #fff; }
.video-modal__frame { width: min(94vw, 1200px); aspect-ratio: 16 / 9; max-height: 86vh; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; box-shadow: 0 30px 100px #000; }
.extra-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.extra-videos video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; border: 1px solid var(--line); }
.extra-videos figcaption { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }

.lightbox, .video-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(2, 2, 4, 0.94); backdrop-filter: blur(6px); animation: fade 0.25s both; }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: min(94vw, 1500px); max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 100px #000; }
.video-modal video { width: min(94vw, 1200px); max-height: 86vh; background: #000; border-radius: 10px; box-shadow: 0 30px 100px #000; }
.lightbox__close, .lightbox__nav { position: absolute; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; }
.lightbox__nav--next { right: 20px; top: 50%; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.9rem; }

/* ---------------------------------------------------------- 6. studios / about */
.arabic { margin: -6px 0 16px; color: var(--accent); font-size: 1.6rem; font-weight: 600; }
.timeline { position: relative; display: grid; gap: 34px; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), transparent); }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -34px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--brand); }
.timeline time { display: block; margin-bottom: 4px; color: var(--brand-hi); font: 700 1rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; }
.timeline h3 { font-size: 1.7rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin-bottom: 28px; }
.contact-list li { display: grid; gap: 4px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.contact-list span { color: var(--dim); font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; }
.contact-list a, .contact-list p { display: flex; align-items: center; gap: 10px; margin: 0; word-break: break-word; }
.contact-list a:hover { color: var(--brand-hi); }
.contact-list .icon { color: var(--brand-hi); }

/* -------------------------------------------------------------------- 7. news */
.news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.search { position: relative; flex: 0 1 300px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search input { padding-left: 42px; border-radius: 99px; }
.filter-note { margin: -12px 0 24px; color: var(--muted); }
.filter-note a { text-decoration: underline; }
.empty { padding: 72px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty p { color: var(--muted); }
.tag-cloud { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.tag-cloud > span { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.page-link { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; justify-content: center; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 600; transition: 0.2s; }
.page-link:hover { border-color: #fff; }
.page-link.is-current { background: var(--brand); border-color: var(--brand); }
.page-gap { color: var(--dim); }

.preview-banner { position: sticky; top: var(--header-h); z-index: 50; padding: 12px var(--gutter); background: #ffcf40; color: #1a1300; text-align: center; font-size: 0.92rem; }
.preview-banner a { text-decoration: underline; font-weight: 700; }
.post-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); background: radial-gradient(700px 300px at 10% 0%, rgba(215, 22, 47, 0.22), transparent 70%); }
.post-head__title { max-width: 20ch; font-size: clamp(1.9rem, 6vw, 4.8rem); line-height: 0.96; margin-bottom: 18px; }
.post-head__excerpt { max-width: 62ch; color: #cfcfda; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.post-head__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 22px 0 0; color: var(--muted); font-size: 0.92rem; }
.post-head__meta span { display: inline-flex; align-items: center; gap: 8px; }
.post-cover { margin-block: 0 clamp(32px, 5vw, 56px); }
.post-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.post-layout { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); justify-content: center; }
.post-aside { position: relative; }
.post-aside > * { position: sticky; top: calc(var(--header-h) + 28px); }
.post-aside .toc { top: calc(var(--header-h) + 130px); position: relative; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share__label { flex-basis: 100%; margin: 0 0 6px; color: var(--dim); font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; }
.toc { margin-top: 32px; }
.toc ol { display: grid; gap: 8px; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding-left: 14px; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.toc a:hover { color: #fff; }
.toc__sub a { padding-left: 28px; font-size: 0.82rem; }

.prose { font-size: 1.1rem; line-height: 1.85; color: #dcdce5; min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose pre, .prose .embed, .prose .table-wrap { margin: 0 0 1.5em; }
.prose h2 { margin: 2em 0 0.5em; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.prose h3 { margin: 1.8em 0 0.4em; font-size: 1.7rem; }
.prose h4 { margin: 1.6em 0 0.4em; font-size: 1.3rem; color: var(--muted); }
.prose a { color: #fff; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--brand-hi); }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--brand-hi); }
.prose blockquote { padding: 6px 0 6px 24px; border-left: 4px solid var(--brand); color: #fff; font-size: 1.25rem; font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line-2); }
.prose code { padding: 2px 6px; border-radius: 4px; background: var(--surface-2); font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre { padding: 18px 20px; overflow-x: auto; background: #0b0b10; border: 1px solid var(--line); border-radius: 10px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; font-size: 0.92rem; }
.prose img, .prose video { width: 100%; height: auto; border-radius: 10px; }
.post-figure img { border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; color: var(--dim); font-size: 0.9rem; text-align: center; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; }
.prose .embed iframe, .prose .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; }
.prose figure.embed { aspect-ratio: auto; }
.prose figure.embed video { position: static; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line-2); text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.post-foot { max-width: 1000px; margin-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-nav__link { display: grid; gap: 6px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: 0.3s var(--ease); }
.post-nav__link:hover { border-color: var(--brand); transform: translateY(-3px); }
.post-nav__link span { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-hi); font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.post-nav__link strong { font: 700 1.3rem/1.15 var(--font-display); text-transform: uppercase; }
.post-nav__link--next { text-align: right; }
.post-nav__link--next span { justify-content: flex-end; }

/* -------------------------------------------------------------- 8. responsive */
@media (max-width: 1180px) {
  .nav__list { gap: 0; }
  .nav__link { padding-inline: 8px; font-size: 1rem; }
  .mega__grid { grid-template-columns: repeat(5, 128px); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .nav, .header__actions .btn--hub { display: none; }
  .burger { display: grid; }
  .header__bar { justify-content: space-between; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: 1 / -1; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .game-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .news-grid, .studio-grid, .feature-grid, .values-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .post-aside { order: 2; }
  .post-aside > *, .post-aside .toc { position: static; }
  .news-card--large { grid-template-columns: 1fr; }
  .news-card--large .news-card__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .intro__grid, .mission__grid, .split, .contact-grid, .community, .feature-row { grid-template-columns: 1fr; }
  .feature-row--flip .feature-row__media { order: 0; }
  .intro__photo { max-width: 460px; }
  .values-grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__content { padding-bottom: 130px; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; --gutter: 18px; }
  html { font-size: 15px; }
  .brand img { height: 34px; }
  .burger { width: 40px; height: 40px; }
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }
  .section-head { margin-bottom: 24px; gap: 12px; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 10px; }
  .eyebrow::before { width: 20px; }
  .lead { font-size: 1rem; line-height: 1.6; }
  .section-text { font-size: 1rem; }
  .btn { min-height: 42px; padding: 0.55em 1.1em; font-size: 0.92rem; }
  .btn--sm { min-height: 36px; }
  .store-badge img, .stores--hero .store-badge img { height: 40px; }
  .hero { min-height: 560px; }
  .hero__content { padding-bottom: 96px; }
  .hero__eyebrow { margin-bottom: 12px; font-size: 0.8rem; letter-spacing: 0.2em; }
  .hero__eyebrow::before { width: 24px; }
  .hero__title { margin-bottom: 12px; }
  .hero__text { margin-bottom: 20px; font-size: 0.95rem; }
  .hero__actions { gap: 10px; }
  .hero__ui { inset: auto 0 20px; left: 50%; }
  .hero__dot { padding: 6px 0; gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .page-hero { min-height: 280px; }
  .page-hero__content { padding-block: 40px 28px; }
  .page-hero__text { font-size: 0.98rem; }
  .game-hero { min-height: 520px; }
  .game-hero__content { padding-block: calc(var(--header-h) + 36px) 36px; }
  .game-hero__logo { width: min(280px, 76%); margin-bottom: 14px; }
  .game-hero__tagline { font-size: 1rem; margin-bottom: 20px; }
  .game-card__title { font-size: 1.5rem; }
  .game-card__body { padding: 16px; }
  .news-card__body { padding: 18px; }
  .news-card__title { font-size: 1.35rem; }
  .news-card--large .news-card__title { font-size: 1.7rem; }
  .studio-card__name { font-size: 1.45rem; }
  .studio-card__body { padding: 18px; }
  .feature-card, .value-card { padding: 22px; }
  .feature-card h3, .value-card h3 { font-size: 1.3rem; }
  .feature-card__num { font-size: 2rem; margin-bottom: 10px; }
  .feature-row__title { font-size: 1.9rem; }
  .feature-row__tagline { font-size: 1.1rem; }
  .fact-sheet { padding: 20px; }
  .stats dt { font-size: 2.2rem; }
  .mission { padding: 56px 0; }
  .community__card { padding: 24px; }
  .cta-band, .partners { padding: 40px 0; }
  .newsletter-block { padding: 24px; }
  .mobile-menu__list > li > a { font-size: 1.55rem; padding: 10px 0; }
  .footer__brand img { height: 44px; }
  .prose { font-size: 1rem; line-height: 1.75; }
  .prose h2 { font-size: 1.6rem; }
  .prose h3 { font-size: 1.3rem; }
  .prose blockquote { font-size: 1.1rem; }
  .post-head { padding: 28px 0 20px; }
  .post-head__excerpt { font-size: 1rem; }
  .timeline h3 { font-size: 1.4rem; }
  .arabic { font-size: 1.3rem; }
  .news-grid, .studio-grid, .feature-grid, .values-grid, .video-grid { grid-template-columns: 1fr; }
  .game-grid, .game-grid--3, .game-grid--4 { display: flex; overflow-x: auto; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 22px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .game-grid::-webkit-scrollbar { display: none; }
  .game-card { flex: 0 0 64vw; max-width: 280px; scroll-snap-align: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__controls .icon-btn:not([data-hero-toggle]) { display: none; }
  .hero__dot { width: 34px; }
  .stats { gap: 8px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
  .newsletter { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .ticker__date, .ticker__go { display: none; }
  .partners__list li { width: calc(50% - 8px); }
  .cta-band__inner { align-items: flex-start; }
  .btn { white-space: normal; }
}

/* ------------------------------------------------------------- motion & a11y */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .game-card.reveal.is-visible:hover, .news-card.reveal.is-visible:hover, .studio-card.reveal.is-visible:hover { transition-duration: 0.35s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media (forced-colors: active) {
  .btn, .chip, .icon-btn { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .site-footer, .hero__ui, .newsletter-block, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; }
}
