/* Platform pages + premium homepage (World 22). */

.platform-page h1, .platform-page h2 { color: var(--ink); }
.platform-page h1 span, .platform-page h2 span { color: var(--accent); }

/* ── World 22 wordmark (v2 gold + orange) ───────────────── */

.brand-w22 { text-decoration: none; }
.brand-w22 .w22-wordmark {
  font: 400 clamp(26px, 3.2vw, 36px)/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(165deg, #fff4d6 0%, #f0c060 35%, #c87818 70%, #8a4a08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 140, 40, 0.35));
}
.brand-w22 .w22-num {
  background: linear-gradient(165deg, #ffb347 0%, #ff7a1a 50%, #c44e00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 0.08em;
}

.platform-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-nav nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: clamp(10px, 2vw, 24px); }
.platform-nav .nav-platforms { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.platform-nav .nav-platforms a { font-size: 13px; letter-spacing: 0.14em; transition: color 0.15s; }
.platform-nav .nav-platforms a:hover { color: var(--ink); }
.platform-nav .nav-platforms a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); padding-bottom: 4px; }

/* ── Cinematic homepage hero ─────────────────────────────── */

.cinema-hero {
  position: relative; display: flex; align-items: flex-end; justify-content: center; text-align: center;
  min-height: clamp(440px, 78vh, 760px); margin-top: 0; overflow: hidden;
  background: var(--bg);
}
.cinema-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%; transform: scale(1.02);
}
.cinema-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 15%, rgba(255, 122, 26, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(120, 80, 255, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.15) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.94) 78%, var(--bg) 100%);
}
.cinema-hero-content {
  position: relative; z-index: 2; width: 100%; max-width: 980px;
  padding: clamp(108px, 11vw, 148px) var(--pad) clamp(44px, 5vw, 64px);
}
.cinema-hero h1 { font-size: clamp(54px, 7.5vw, 112px); line-height: 0.92; }
.cinema-hero h1 span { display: block; }
.cinema-hero .lede { margin: 18px auto 0; max-width: 640px; font-size: clamp(18px, 1.55vw, 22px); font-weight: 500; color: #ebe4d6; }
.cinema-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.cinema-hero .btn-play { min-height: 62px; padding: 0 40px; font-size: 21px; }
.cinema-hero .live-total { justify-content: center; margin-top: 18px; }

/* ── Platform heroes (GTA / MC / Rust / Roblox) ──────────── */

.platform-hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(380px, 58vh, 580px); margin-top: 52px; padding: clamp(28px, 4vw, 48px) var(--pad) clamp(36px, 4vw, 56px);
  background: #0a0a0c; overflow: hidden;
}
.platform-hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center; opacity: 0.55; transform: scale(1.03);
}
.platform-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 122, 26, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.25) 0%, rgba(10, 10, 12, 0.88) 70%, var(--bg) 100%);
}
.platform-hero-inner { position: relative; z-index: 2; max-width: 920px; }
.platform-hero .logo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.platform-hero .logo-row img {
  width: 72px; height: 72px; object-fit: contain; border-radius: 16px;
  background: rgba(0, 0, 0, 0.4); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.platform-hero h1 { font-size: clamp(48px, 6vw, 88px); line-height: 0.94; }
.platform-hero .lede { margin-top: 14px; max-width: 660px; font-size: clamp(18px, 1.55vw, 21px); font-weight: 500; color: #e8e1d3; }
.platform-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.platform-hero-actions .btn-store { min-height: 58px; padding: 0 36px; font-size: 20px; }

.platform-section {
  max-width: 1100px; margin: 0 auto; padding: clamp(36px, 4vw, 56px) var(--pad);
  border-top: 1px solid var(--line);
}
.platform-section h2 { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: 14px; }
.platform-section .copy { color: var(--soft); max-width: 720px; }
.platform-section .copy p + p { margin-top: 12px; }

.join-box {
  margin-top: 20px; padding: 20px 22px; background: #131316; border: 1px solid var(--line);
  display: grid; gap: 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.join-box:hover { border-color: rgba(255, 122, 26, 0.25); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.join-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.join-row code {
  flex: 1 1 200px; min-width: 0; padding: 12px 14px; font: 600 15px/1.4 ui-monospace, monospace;
  color: var(--ink); background: #0a0a0c; border: 1px solid var(--line); word-break: break-all;
}
.join-row .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.join-note { font-size: 14px; color: var(--soft); }

.feature-list { margin-top: 18px; display: grid; gap: 12px; list-style: none; }
.feature-list li {
  padding-left: 18px; position: relative; color: var(--soft); font-size: 16px; line-height: 1.45;
}
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--accent); }

.store-band {
  max-width: 1100px; margin: 0 auto; padding: clamp(32px, 4vw, 48px) var(--pad) clamp(56px, 6vw, 80px);
  text-align: center;
}
.store-band .btn-store { min-height: 66px; padding: 0 48px; font-size: 22px; width: min(100%, 420px); }
.store-band p { margin-top: 14px; color: var(--soft); font-size: 15px; max-width: 520px; margin-inline: auto; }

.platform-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.platform-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.platform-links a:hover { text-decoration: underline; }

/* ── Platform cards (homepage) ───────────────────────────── */

.platform-grid {
  max-width: 1320px; margin: 0 auto; padding: clamp(28px, 3vw, 44px) var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px);
}
.platform-card {
  display: flex; flex-direction: column; min-height: 100%;
  background: linear-gradient(165deg, #16161a 0%, #101012 100%);
  border: 1px solid var(--line); text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.25s;
}
.platform-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 26, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 122, 26, 0.12);
}
.platform-card-art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1b1b1f;
}
.platform-card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 12, 0.85) 100%);
  opacity: 0.7; transition: opacity 0.25s;
}
.platform-card:hover .platform-card-art::after { opacity: 0.5; }
.platform-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.platform-card:hover .platform-card-art img { transform: scale(1.06); }
.platform-card-body {
  display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; min-height: 148px;
}
.platform-card h2 { font-size: clamp(24px, 2vw, 30px); }
.platform-card p { margin-top: 8px; color: var(--soft); font-size: 14.5px; line-height: 1.45; flex: 1; }
.platform-card .card-cta { margin-top: 14px; font: 700 14px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.platform-card.is-primary {
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 0 40px rgba(255, 122, 26, 0.08);
}

.section-head {
  max-width: 1320px; margin: 0 auto; padding: clamp(32px, 3.5vw, 48px) var(--pad) 8px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
}
.section-head h2 { font-size: clamp(34px, 3.5vw, 52px); }
.section-head a {
  font: 700 14px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; padding: 8px 0;
}
.section-head a:hover { text-decoration: underline; }

/* ── Premium game grid (3 cols + featured Mega) ──────────── */

.roblox-strip { padding-bottom: clamp(40px, 5vw, 72px); }

.game-grid-premium {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px); max-width: 1320px; margin: 0 auto; padding: 0 var(--pad);
}
.game-grid-premium .game {
  display: flex; flex-direction: column; min-height: 100%;
  background: linear-gradient(180deg, #151518 0%, #111114 100%);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.25s;
}
.game-grid-premium .game:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 122, 26, 0.06);
}
.game-grid-premium .game-art {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1f;
}
.game-grid-premium .game-art::before {
  content: ""; position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 80%, rgba(255, 122, 26, 0.35), transparent 55%);
  transition: opacity 0.35s;
}
.game-grid-premium .game:hover .game-art::before { opacity: 1; }
.game-grid-premium .game-art img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease;
}
.game-grid-premium a.game-art:hover img { transform: scale(1.05); }
.game-grid-premium .game-body {
  display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px;
}
.game-grid-premium .game-id { display: flex; gap: 12px; align-items: flex-start; flex: 1; }
.game-grid-premium .game h2 { font-size: clamp(24px, 2vw, 30px); }
.game-grid-premium .game-id p { margin-top: 6px; color: var(--soft); font-size: 15px; line-height: 1.4; }
.game-grid-premium .game-live {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-top: auto; padding-top: 14px; min-height: 52px;
}
.game-grid-premium .game-live b { font: 400 clamp(40px, 3.2vw, 52px)/1 var(--display); color: var(--ok); }
.game-grid-premium .game-live span { font: 700 14px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.game-grid-premium .game-icon { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #1b1b1f; }
.game-grid-premium .game .btn-play { width: 100%; margin-top: 4px; }

.game-grid-premium .game-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr; border-color: rgba(255, 122, 26, 0.35);
  box-shadow: 0 0 60px rgba(255, 122, 26, 0.07);
}
.game-grid-premium .game-featured .game-art { aspect-ratio: 21 / 9; max-height: 320px; }
.game-grid-premium .game-featured .game-body {
  display: grid; gap: 12px;
}
@media (min-width: 900px) {
  .game-grid-premium .game-featured {
    grid-template-columns: 1.25fr 1fr;
  }
  .game-grid-premium .game-featured .game-art { aspect-ratio: auto; max-height: none; min-height: 260px; }
  .game-grid-premium .game-featured .game-body { padding: 24px 28px; align-content: center; }
  .game-grid-premium .game-featured h2 { font-size: clamp(30px, 2.8vw, 40px); }
}

.in-game-note {
  max-width: 720px; margin: 0 auto; padding: 16px 20px; background: #131316; border: 1px solid var(--line);
  color: var(--soft); font-size: 15px; text-align: center;
}

.footer-byline { font-size: 13px; color: var(--soft); margin-top: 4px; }

@media (max-width: 1100px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid-premium { grid-template-columns: repeat(2, 1fr); }
  .game-grid-premium .game-featured { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .platform-nav .nav-platforms { display: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .game-grid-premium { grid-template-columns: 1fr; }
  .platform-hero { min-height: 320px; margin-top: 48px; }
  .cinema-hero { min-height: 380px; }
  .cinema-hero h1 { font-size: clamp(44px, 11vw, 56px); }
  .join-row { flex-direction: column; align-items: stretch; }
  .join-row .btn { width: 100%; }
}
