:root {
  color-scheme: dark;
  --ink: #f8efe1;
  --muted: #b4bbc3;
  --quiet: #7f9bab;
  --navy-0: #05080d;
  --navy-1: #0d131d;
  --navy-2: #151e29;
  --line: rgba(248, 239, 225, 0.18);
  --line-soft: rgba(248, 239, 225, 0.1);
  --amber: #ffd56b;
  --cyan: #61dcff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  --container: 1240px;
  font-size: 17px;
}

* { box-sizing: border-box; }

html { background: var(--navy-0); scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--navy-0);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}

img, video { display: block; max-inline-size: 100%; block-size: auto; }

a { color: var(--amber); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: #fff0b3; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }

h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -0.045em; }
h1 { max-inline-size: 15ch; font-size: clamp(3rem, 5.2vw, 5.6rem); font-weight: 700; }
h2 { max-inline-size: 14ch; font-size: clamp(2.6rem, 5vw, 5.4rem); font-weight: 700; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.35rem); }

.site-header, main > .section, .site-footer, .final-status {
  inline-size: min(var(--container), calc(100% - 3.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-block-size: 96px;
  padding-block: 1rem;
}

.header-logo { display: block; inline-size: 70px; block-size: 72px; }
.header-logo img { inline-size: 70px; block-size: auto; }

.header-nav, .language-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.45rem;
}

.header-nav { justify-content: end; font-size: 0.86rem; font-weight: 650; }
.header-nav > a { color: var(--muted); text-decoration: none; }
.header-nav > a:hover { color: var(--ink); }
.language-links { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--line); }
.language-links a { color: var(--ink); text-decoration: none; }
.language-links a[aria-current="page"] { color: var(--amber); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: 1fr auto;
  inline-size: min(1440px, calc(100% - 1.5rem));
  min-block-size: min(720px, calc(100svh - 96px));
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--navy-1);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(248, 239, 225, 0.07) 25%, transparent calc(25% + 1px));
  opacity: 0.32;
  content: "";
  pointer-events: none;
}

.hero-copy { align-self: center; z-index: 2; padding: clamp(2.2rem, 6vw, 6.4rem); padding-inline-end: clamp(1.75rem, 5vw, 5rem); }
.kicker, .pair-number, .visual-note, .caption-index {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.kicker { margin-block-end: 1.35rem; }
.hero-lede { max-inline-size: 31rem; margin-block-start: 1.6rem; color: #d7dbe0; font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 0.55rem; margin-block-start: 2rem; color: var(--amber); font-weight: 700; text-decoration: none; }
.text-link span { font-size: 1.25em; line-height: 1; }

.hero-visual { position: relative; min-block-size: 720px; overflow: hidden; }
.hero-field, .hero-field img, .hero-scrim { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.hero-field img { object-fit: cover; object-position: center; }
.hero-scrim { background: linear-gradient(90deg, rgba(5, 8, 13, 0.86) 0%, rgba(5, 8, 13, 0.35) 46%, rgba(5, 8, 13, 0.58) 100%), linear-gradient(180deg, rgba(5, 8, 13, 0.1), rgba(5, 8, 13, 0.74)); }
.hero-screen-wrap { position: absolute; inset-block: 0; inset-inline-end: clamp(3rem, 8vw, 7rem); display: flex; justify-content: center; align-items: center; }
.hero-screen { inline-size: clamp(210px, 24vw, 350px); block-size: auto; border: 1px solid rgba(248, 239, 225, 0.6); border-radius: 25px; box-shadow: 18px 24px 55px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(5, 8, 13, 0.18); }

.hero-status { grid-column: 1; display: flex; align-items: center; gap: 0.7rem; align-self: end; padding: 0 clamp(2.2rem, 6vw, 6.4rem) 2.2rem; color: var(--ink); font-size: 0.94rem; font-weight: 650; }
.status-mark { display: inline-block; inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 213, 107, 0.13); }

/* ── Store download buttons ── */
/* Official store badges. Both lockups are 732x214, so a shared block-size
   keeps them optically equal; the artwork carries its own padding and clear
   space, so no button chrome is drawn around them. */
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; }
.store-badge {
  display: inline-block; border-radius: 10px; line-height: 0;
  transition: transform 0.15s, opacity 0.15s;
}
.store-badge img { block-size: 52px; inline-size: auto; display: block; }
.store-badge:hover, .store-badge:focus-visible { transform: translateY(-1px); opacity: 0.88; }
.store-badge:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.section { padding-block: clamp(6.5rem, 12vw, 11rem); }
.section-intro { max-inline-size: 44rem; }
.section-intro h2 { margin-block-end: 1.45rem; }
.section-intro > p:last-child { max-inline-size: 38rem; color: var(--muted); font-size: 1.08rem; }
.section-intro-wide { max-inline-size: 52rem; }
.section-intro-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.58fr); gap: clamp(2rem, 7vw, 8rem); align-items: end; max-inline-size: none; }
.section-intro-split > p { padding-block-end: 0.35rem; }

.trailer-section { padding-block-start: clamp(5rem, 10vw, 8.5rem); }
.video-stage { inline-size: min(100%, 420px); margin-block-start: 3.25rem; margin-inline: auto; padding: clamp(0.55rem, 1.2vw, 0.85rem); border: 1px solid var(--line); background: var(--navy-1); box-shadow: var(--shadow); }
.video-stage video { inline-size: 100%; aspect-ratio: 648 / 1080; background: var(--navy-1); }

.gallery-cluster { position: relative; margin-block-start: 4.5rem; }
.shot { margin: 0; }
.shot picture, .shot img { inline-size: 100%; }
.shot img { border: 1px solid rgba(248, 239, 225, 0.3); border-radius: 24px; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32); }
.shot figcaption { display: flex; align-items: baseline; gap: 0.65rem; margin-block-start: 0.85rem; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.shot figcaption .caption-index { flex: 0 0 auto; font-size: 0.63rem; }
.shot-world-gallery {}

.world-gallery { display: grid; grid-template-columns: 1.16fr 0.78fr 0.78fr; gap: clamp(1.2rem, 4vw, 4.2rem); align-items: start; min-block-size: 840px; }
.world-gallery.gallery-short, .collection-gallery.gallery-short { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.86fr); min-block-size: 720px; }
.gallery-short > :nth-child(2) { margin-block-start: 7rem; }
.shot-main { max-inline-size: 390px; margin-inline: auto; }
.shot-world { max-inline-size: 290px; margin-block-start: 5rem; }
.shot-worlds { max-inline-size: 290px; margin-block-start: 11rem; }
.shot-world img, .shot-worlds img { box-shadow: 0 18px 40px rgba(0,0,0,.28); }

.gameplay-section { max-inline-size: var(--container); }
.mechanic-pairs { display: grid; gap: clamp(7rem, 13vw, 13rem); margin-block-start: clamp(6rem, 11vw, 10rem); }
.mechanic-pair { display: grid; grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.mechanic-pair:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr); }
.pair-copy { position: sticky; inset-block-start: 2rem; padding-block-start: 2.5rem; }
.pair-number { display: block; margin-block-end: 1.35rem; }
.pair-copy h3 { margin-block-end: 1rem; }
.pair-copy p { max-inline-size: 18rem; color: var(--muted); }
.pair-shots { display: flex; align-items: flex-start; justify-content: center; gap: clamp(1.25rem, 4vw, 4rem); min-inline-size: 0; }
.pair-shots .shot { flex: 0 1 300px; min-inline-size: 0; }
.pair-shots .shot-large { flex-basis: 360px; }
.pair-shots .shot-small { flex-basis: 270px; margin-block-start: 5.2rem; }
.pair-shots.single-shot { justify-content: flex-start; }
.pair-shots.single-shot .shot { flex-basis: 360px; }
.pair-shots.gap-progression { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.5rem); }
.pair-shots.gap-progression .shot, .pair-shots.gap-progression .shot-small, .pair-shots.gap-progression .shot-large { inline-size: 100%; flex-basis: auto; margin-block-start: 0; }
.mechanic-pair:nth-child(even) .shot-large { margin-block-start: 4.1rem; }
.mechanic-pair:nth-child(even) .shot-small { margin-block-start: 0; }
.pair-shots figcaption { padding-inline: 0.2rem; }

.collection-gallery { display: grid; grid-template-columns: 1.12fr 0.74fr 0.74fr; gap: clamp(1.4rem, 4vw, 4.5rem); align-items: start; min-block-size: 850px; }
.shot-albums { max-inline-size: 400px; margin-inline: auto; }
.shot-win { max-inline-size: 285px; margin-block-start: 6.3rem; }
.shot-leaderboard { max-inline-size: 285px; margin-block-start: 12rem; }

.final-status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 0.46fr); gap: 3rem; align-items: end; padding-block: clamp(4rem, 8vw, 7rem); border-block-start: 1px solid var(--line); }
.final-status h2 { max-inline-size: 10ch; }
.final-meta { padding-block-end: 0.3rem; }
.final-meta > p:first-of-type { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; }
.final-meta .status-mark { margin-inline-end: 0.7rem; }
.quiet-note { margin-block-start: 0.8rem; color: var(--quiet); font-size: 0.86rem; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.6rem 2.8rem; border-block-start: 1px solid var(--line-soft); color: var(--quiet); font-size: 0.82rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.site-footer a { color: var(--muted); }

/* The legal pages share this stylesheet but keep their policy text unchanged. */
.legal-page { inline-size: min(860px, calc(100% - 3.5rem)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem) 6rem; }
.legal-header { padding-block-end: 2rem; border-block-end: 1px solid var(--line); }
.legal-header h1 { max-inline-size: none; font-size: clamp(2.4rem, 6vw, 4.8rem); }
.legal-meta { margin-block-start: 1.4rem; color: var(--muted); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-block-start: 1.4rem; font-weight: 700; }
.legal-content { padding-block-start: 2.2rem; }
.legal-content h2 { max-inline-size: none; margin-block: 2.8rem 0.85rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.legal-content h3 { margin-block: 1.7rem 0.5rem; font-size: 1.22rem; }
.legal-content p { margin-block-end: 1rem; color: #d3d6da; }
.legal-content ul { margin-block: 0 1.3rem; padding-inline-start: 1.5rem; }
.legal-content li { margin-block: 0.35rem; color: #d3d6da; }
.legal-content strong { color: var(--ink); }
.legal-content code { padding: 0.08em 0.28em; border-radius: 0.25em; background: rgba(255, 213, 107, 0.14); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; }
.legal-table-wrap { overflow-x: auto; margin-block: 1rem 1.5rem; }
.legal-content table { inline-size: 100%; min-inline-size: 600px; border-collapse: collapse; font-size: 0.94rem; }
.legal-content th, .legal-content td { padding: 0.7rem 0.8rem; border: 1px solid var(--line); vertical-align: top; text-align: start; }
.legal-content th { background: rgba(255, 213, 107, 0.16); color: var(--ink); font-weight: 800; }
.legal-content a[href*="partner-sites"] { overflow-wrap: anywhere; }

html[dir="rtl"] { font-size: 18px; }
html[dir="rtl"] body { line-height: 1.78; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; font-weight: 650; }
html[dir="rtl"] h1 { max-inline-size: 13ch; font-size: clamp(2.8rem, 5.1vw, 5rem); }
html[dir="rtl"] .kicker, html[dir="rtl"] .pair-number, html[dir="rtl"] .visual-note, html[dir="rtl"] .caption-index { letter-spacing: 0; }
html[dir="rtl"] .kicker, html[dir="rtl"] .pair-number, html[dir="rtl"] .visual-note, html[dir="rtl"] .caption-index { text-transform: none; }
html[dir="rtl"] .language-links { padding-inline-start: 0; padding-inline-end: 1.25rem; border-inline-start: 0; border-inline-end: 1px solid var(--line); }
html[dir="rtl"] .hero-copy { padding-inline-end: clamp(2.2rem, 6vw, 6.4rem); padding-inline-start: clamp(1.75rem, 5vw, 5rem); }
html[dir="rtl"] .hero-status { padding-inline: clamp(2.2rem, 6vw, 6.4rem); }
html[dir="rtl"] .hero-scrim { background: linear-gradient(270deg, rgba(5, 8, 13, 0.86) 0%, rgba(5, 8, 13, 0.35) 46%, rgba(5, 8, 13, 0.58) 100%), linear-gradient(180deg, rgba(5, 8, 13, 0.1), rgba(5, 8, 13, 0.74)); }
html[dir="rtl"] .legal-content ul { padding-inline-start: 0; padding-inline-end: 1.5rem; }
html[dir="rtl"] .legal-content table { direction: rtl; }
html[dir="rtl"] .legal-table-wrap { direction: ltr; }
html[dir="rtl"] .legal-content a { max-inline-size: 100%; overflow-wrap: anywhere; unicode-bidi: isolate; }
html[dir="rtl"] .legal-content code { unicode-bidi: isolate; }

@media (max-width: 850px) {
  .site-header, main > .section, .site-footer, .final-status { inline-size: min(100% - 2rem, 680px); }
  .site-header { align-items: flex-start; }
  .header-nav { justify-content: end; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; inline-size: calc(100% - 1rem); min-block-size: 0; }
  .hero-copy { padding: 3.5rem 1.75rem 2.25rem; }
  .hero-copy h1 { max-inline-size: 12ch; }
  .hero-visual { min-block-size: 620px; order: 2; }
  .hero-screen-wrap { inset-inline: 0; }
  .hero-screen { inline-size: clamp(230px, 56vw, 330px); }
  .hero-status { grid-column: auto; order: 3; padding: 1.45rem 1.75rem 2rem; }
  .section-intro-split, .mechanic-pair, .mechanic-pair:nth-child(even), .final-status { grid-template-columns: 1fr; }
  .section-intro-split { gap: 1.3rem; }
  .pair-copy { position: static; padding-block-start: 0; }
  .pair-copy p { max-inline-size: 28rem; }
  .pair-shots { justify-content: start; }
  .world-gallery, .collection-gallery { min-block-size: 0; }
}

@media (max-width: 600px) {
  .site-header { display: block; min-block-size: 0; padding-block: 0.8rem 1.2rem; }
  .header-nav { justify-content: start; margin-block-start: 1rem; gap: 0.65rem 1rem; }
  .language-links { inline-size: 100%; margin-block-start: 0.25rem; padding-block-start: 0.65rem; padding-inline: 0; border-block-start: 1px solid var(--line); border-inline: 0; }
  html[dir="rtl"] .language-links { padding-inline: 0; border-block-start: 1px solid var(--line); border-inline: 0; }
  .hero-copy { padding-block-start: 3rem; }
  .hero-copy h1 { max-inline-size: 13ch; font-size: clamp(2.35rem, 10vw, 3.85rem); }
  html[dir="rtl"] .hero-copy h1 { max-inline-size: 13ch; font-size: clamp(2.3rem, 9.3vw, 3.5rem); }
  h2 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero-visual { min-block-size: 580px; }
  .hero-screen { inline-size: min(78vw, 320px); }
  .section { padding-block: 5rem; }
  .gallery-cluster { margin-block-start: 3rem; }
  .world-gallery, .collection-gallery { display: flex; flex-direction: column; gap: 3.5rem; }
  .world-gallery .shot, .collection-gallery .shot { inline-size: min(88vw, 360px); margin-block-start: 0; }
  .world-gallery .shot:nth-child(odd), .collection-gallery .shot:nth-child(odd) { align-self: start; }
  .world-gallery .shot:nth-child(even), .collection-gallery .shot:nth-child(even) { align-self: end; }
  .mechanic-pairs { gap: 6rem; margin-block-start: 4.5rem; }
  .pair-shots { flex-direction: column; gap: 3.2rem; }
  .pair-shots.gap-progression { display: flex; }
  .pair-shots .shot, .pair-shots .shot-large, .pair-shots .shot-small { flex-basis: auto; inline-size: min(82vw, 360px); margin-block-start: 0; }
  .mechanic-pair:nth-child(odd) .pair-shots .shot:nth-child(odd), .mechanic-pair:nth-child(even) .pair-shots .shot:nth-child(even) { align-self: start; }
  .mechanic-pair:nth-child(odd) .pair-shots .shot:nth-child(even), .mechanic-pair:nth-child(even) .pair-shots .shot:nth-child(odd) { align-self: end; }
  .final-status { gap: 2.2rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .legal-page { inline-size: min(100% - 2rem, 680px); }
  html[dir="rtl"] .hero-copy { padding-inline: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
