/* ═══════════════════════════════════════════════════════
   MAHJONG DUBAI — Launch Site
   Palette: Deep obsidian + warm gold + green felt
═══════════════════════════════════════════════════════ */

:root {
  --gold: #c9962a;
  --gold-light: #e4b84a;
  --gold-dim: #a07820;
  --gold-glow: rgba(201,150,42,0.18);
  --green-felt: #1a3a2a;
  --green-dark: #0f2218;
  --obsidian: #0a0906;
  --surface: #111009;
  --surface-2: #181610;
  --surface-3: #201e14;
  --border: rgba(201,150,42,0.15);
  --border-light: rgba(201,150,42,0.25);
  --text: #e8dfc8;
  --text-muted: #8a7e65;
  --text-faint: #4a4535;
  --white: #f5f0e8;

  --font-display: 'Clash Display', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16,1,0.3,1);
  --shadow-gold: 0 0 40px rgba(201,150,42,0.12);
  --shadow-deep: 0 16px 48px rgba(0,0,0,0.6);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--obsidian);
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; }
p { max-width: 68ch; text-wrap: pretty; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gold);
  color: #0a0906;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,150,42,0.3); }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gold);
  color: #0a0906;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,150,42,0.35); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), background var(--transition);
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.btn-ghost:hover { color: var(--gold); background: var(--gold-glow); }

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  margin-top: auto;
  padding-top: var(--space-4);
}
.btn-card:hover { color: var(--gold-light); border-color: var(--gold-light); }

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition);
  margin-top: var(--space-10);
}
.btn-light:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }

.btn-large { font-size: var(--text-base); padding: 1rem 2.5rem; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,9,6,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav--scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--space-3) clamp(var(--space-5), 5vw, var(--space-16));
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-wordmark strong { color: var(--gold); font-weight: 700; }
.nav-links {
  display: flex;
  gap: var(--space-8);
  flex: 1;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: var(--space-2);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) clamp(var(--space-5), 5vw, var(--space-16));
  border-top: 1px solid var(--border);
  background: rgba(10,9,6,0.95);
}
.nav-mobile-menu a {
  padding: var(--space-3) 0;
  color: var(--text-muted);
  font-size: var(--text-base);
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu a:last-child { border: none; margin-top: var(--space-3); }
.nav-mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-primary { display: none; }
}

/* ══════════════════════════════════════
   SECTION LABELS & TITLES
══════════════════════════════════════ */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
}
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.section-label--light { color: rgba(255,255,255,0.7); }
.section-title {
  font-size: var(--text-2xl);
  color: var(--white);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}
.section-title--light { color: #fff; }
.section-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: var(--space-12);
  line-height: 1.7;
}
.section-sub--light { color: rgba(255,255,255,0.75); }

/* ══════════════════════════════════════
   SCREENSHOT FRAMES
══════════════════════════════════════ */
.screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow: var(--shadow-deep), var(--shadow-gold);
}
.desktop-frame .frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}
.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}
.desktop-frame .frame-bar .frame-dot:nth-child(1) { background: #ff5f57; }
.desktop-frame .frame-bar .frame-dot:nth-child(2) { background: #febc2e; }
.desktop-frame .frame-bar .frame-dot:nth-child(3) { background: #28c840; }
.desktop-frame img { display: block; width: 100%; }

.mobile-frame {
  width: 220px;
  border-radius: 24px;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-deep);
}
.mobile-frame img { border-radius: 22px; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: var(--space-24);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.35) saturate(1.2);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,150,42,0.06) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(10,9,6,0.2) 0%, rgba(10,9,6,0.6) 70%, rgba(10,9,6,1) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: 760px;
  padding-inline: var(--space-6);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(201,150,42,0.12);
  border: 1px solid rgba(201,150,42,0.3);
  color: var(--gold-light);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-size: var(--text-3xl);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: var(--text-lg);
  color: rgba(232,223,200,0.8);
  max-width: 52ch;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-8);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  animation: bounce-down 2s infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════
   MULTIPLAYER
══════════════════════════════════════ */
.multiplayer { background: var(--surface); }

.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.mp-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.mp-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-gold);
}
.mp-card-img-wrap {
  height: 260px;
  overflow: hidden;
}
.mp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mp-card:hover .mp-card-img-wrap img { transform: scale(1.03); }
.mp-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  flex: 1;
}
.mp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(201,150,42,0.1);
  border: 1px solid rgba(201,150,42,0.2);
  border-radius: var(--radius-md);
  color: var(--gold);
}
.mp-icon--gold { background: rgba(201,150,42,0.15); border-color: rgba(201,150,42,0.3); }
.mp-card-body h3 {
  font-size: var(--text-lg);
  color: var(--white);
  font-weight: 600;
}
.mp-card-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.mp-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.mp-features li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.mp-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.lobby-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-6);
  position: relative;
}
.lobby-preview-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.lobby-screenshot {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════
   GAMEPLAY
══════════════════════════════════════ */
.gameplay { background: var(--obsidian); }

.gameplay-showcase {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-12);
}
.gameplay-main-screenshot {
  position: relative;
}
.gameplay-main-screenshot .desktop-frame {
  width: 100%;
}
.gameplay-main-screenshot .mobile-frame {
  position: absolute;
  bottom: -var(--space-8);
  right: -var(--space-6);
  z-index: 2;
}
.gameplay-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.gf-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.gf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(201,150,42,0.08);
  border: 1px solid rgba(201,150,42,0.2);
  border-radius: var(--radius-md);
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.gf-item h4 {
  font-size: var(--text-base);
  color: var(--white);
  margin-bottom: var(--space-1);
  font-weight: 600;
}
.gf-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.ceremony-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.ceremony-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.ceremony-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.ceremony-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════
   AI OPPONENTS
══════════════════════════════════════ */
.ai-opponents {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-20), 10vw, var(--space-24));
}
.ai-opponents-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ai-opponents-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.25) saturate(0.8);
}
.ai-opponents-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,9,6,0.7) 0%, rgba(15,20,30,0.5) 100%),
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(80,130,200,0.08) 0%, transparent 60%);
}
.ai-opponents-content {
  position: relative;
  z-index: 1;
}
.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.diff-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--transition), background var(--transition);
}
.diff-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); }
.diff-card--featured {
  background: rgba(201,150,42,0.08);
  border-color: rgba(201,150,42,0.3);
  box-shadow: 0 0 32px rgba(201,150,42,0.1);
}
.diff-card--featured:hover { background: rgba(201,150,42,0.12); border-color: rgba(201,150,42,0.5); }
.diff-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.diff-easy { background: rgba(74,222,128,0.15); color: #4ade80; }
.diff-medium { background: rgba(251,191,36,0.15); color: #fbbf24; }
.diff-hard { background: rgba(248,113,113,0.15); color: #f87171; }
.diff-card h4 {
  font-size: var(--text-base);
  color: #fff;
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.diff-card p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ══════════════════════════════════════
   AI COACH
══════════════════════════════════════ */
.ai-coach { background: var(--surface); }

.coach-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-12);
}
.coach-ss--main .desktop-frame { width: 100%; }
.coach-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.coach-metric {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}
.coach-metric:hover { border-color: var(--border-light); }
.metric-icon {
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.metric-offense { background: rgba(248,113,113,0.1); }
.metric-defense { background: rgba(96,165,250,0.1); }
.metric-efficiency { background: rgba(251,191,36,0.1); }
.metric-key { background: rgba(201,150,42,0.1); }
.metric-ai { background: rgba(167,139,250,0.1); }
.coach-metric h4 {
  font-size: var(--text-sm);
  color: var(--white);
  margin-bottom: var(--space-1);
  font-weight: 600;
}
.coach-metric p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.coach-grade-demo {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  flex-wrap: wrap;
  position: relative;
}
.grade-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}
.grade-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-dim);
  border-radius: 50%;
  background: rgba(201,150,42,0.08);
}
.grade-score {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--gold);
  font-weight: 700;
}
.grade-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.grade-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 200px;
}
.grade-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.gb-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  width: 60px;
  flex-shrink: 0;
}
.gb-track {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.gb-fill {
  height: 100%;
  border-radius: 3px;
}
.gb-optimal { background: #4ade80; }
.gb-good { background: var(--gold); }
.gb-mistake { background: #fbbf24; }
.gb-blunder { background: #f87171; }
.gb-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  width: 20px;
  text-align: right;
}
.grade-caption {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.stats-section { background: var(--obsidian); }
.stats-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
}
.stats-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.stats-list li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.stats-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.stats-screenshot .desktop-frame { width: 100%; }

/* ══════════════════════════════════════
   HOW TO PLAY
══════════════════════════════════════ */
.how-to-play { background: var(--surface); }

.htp-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.htp-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.htp-step:last-child { border-bottom: none; }
.htp-step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-faint);
  line-height: 1;
  padding-top: 4px;
  letter-spacing: -0.03em;
}
.htp-step-content h3 {
  font-size: var(--text-lg);
  color: var(--white);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.htp-step-content p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 60ch;
}
.htp-step-content p strong { color: var(--gold-light); }

.tile-types {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.tile-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.tile-sample {
  width: 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #f0ead8;
  color: #1a0a0a;
  border-radius: var(--radius-sm);
  border: 1px solid #d4c9a0;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
}
.tile-bamboo { color: #1a5a1a; }
.tile-circles { color: #1a1a5a; }
.tile-chars { color: #8b1a1a; }
.tile-winds { color: #1a1a1a; }
.tile-dragons { color: #cc2222; }
.tile-flowers { color: #228833; }
.tile-type span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
}

.set-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.set-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.set-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.set-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.set-example {
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.call-priority {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.call-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  font-size: var(--text-sm);
}
.call-item strong { color: var(--white); min-width: 140px; flex-shrink: 0; }
.call-item span { color: var(--text-muted); }
.call-mahjong { background: rgba(201,150,42,0.08); border-color: var(--gold); }
.call-gong { background: rgba(248,113,113,0.06); border-color: #f87171; }
.call-pong { background: rgba(96,165,250,0.06); border-color: #60a5fa; }
.call-sheung { background: rgba(74,222,128,0.06); border-color: #4ade80; }

.scoring-examples {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  max-width: 400px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.score-pattern { font-size: var(--text-sm); color: var(--text); }
.score-tai {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 700;
}

.ceremony-preview {
  margin-top: var(--space-4);
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ceremony-preview img { width: 100%; }

.htp-step--cta .htp-step-content p {
  margin-bottom: var(--space-6);
}

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-block: clamp(var(--space-20), 10vw, var(--space-24));
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.25) saturate(1.4);
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,150,42,0.08) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(10,9,6,0.5) 0%, rgba(10,9,6,0.8) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
}
.cta-sub {
  font-size: var(--text-lg);
  color: rgba(232,223,200,0.75);
  max-width: 48ch;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  justify-content: center;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  padding-block: var(--space-12);
  align-items: start;
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  max-width: 30ch;
}
.footer-links {
  display: flex;
  gap: var(--space-12);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-1);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-5) clamp(var(--space-5), 5vw, var(--space-16));
  text-align: center;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-faint);
  max-width: 100%;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--gold); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .gameplay-showcase {
    grid-template-columns: 1fr;
  }
  .gameplay-main-screenshot .mobile-frame { display: none; }
  .coach-showcase { grid-template-columns: 1fr; }
  .stats-split { grid-template-columns: 1fr; }
  .stats-screenshot { display: none; }
}

@media (max-width: 768px) {
  .mp-grid { grid-template-columns: 1fr; }
  .difficulty-grid { grid-template-columns: 1fr; }
  .ceremony-row { grid-template-columns: 1fr; }
  .set-types { grid-template-columns: 1fr; }
  .htp-step { grid-template-columns: 48px 1fr; gap: var(--space-4); }
  .htp-step-num { font-size: 2rem; }
  .hero-stats { gap: var(--space-4); padding: var(--space-4) var(--space-5); }
  .hero-divider { height: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-links { gap: var(--space-8); }
  .call-item { flex-wrap: wrap; gap: var(--space-2); }
  .call-item strong { min-width: unset; }
  .coach-grade-demo { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { justify-content: center; }
  .tile-types { gap: var(--space-2); }
  .tile-sample { width: 40px; height: 52px; font-size: 1.1rem; }
  .grade-breakdown { min-width: unset; width: 100%; }
}

/* ══════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   ADDITIONS — R7 multiplayer hero, coach secondary, trophy
   ========================================================= */

/* Multiplayer Dubai hero image */
.mp-hero-image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-10);
  aspect-ratio: 16 / 7;
  border: 1px solid var(--border);
}

.mp-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.mp-hero-image:hover img {
  transform: scale(1.02);
}

.mp-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(to top, rgba(10,9,6,0.85) 0%, transparent 100%);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  text-transform: uppercase;
}

/* Coach secondary screenshot strip */
.coach-ss--secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.coach-ss--secondary img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Stats trophy image */
.stats-trophy {
  margin-top: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stats-trophy img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

@media (max-width: 767px) {
  .mp-hero-image {
    aspect-ratio: 4/3;
    margin-bottom: var(--space-6);
  }

  .coach-ss--secondary {
    grid-template-columns: 1fr;
  }
}
