/* =========================================================
   Ken Htoo Shin (ကံထူးရှင်) - Official Game Download Page
   Theme inspired by logo.png: Obsidian, Metallic Gold,
   Lucky Emerald, and Royal Sapphire
   ========================================================= */

:root {
  --bg-deep: #05070c;
  --bg-surface: #0b101b;
  --bg-card: rgba(15, 22, 37, 0.82);
  --bg-card-hover: rgba(20, 30, 50, 0.94);

  --gold-light: #ffe699;
  --gold-main: #f5bf38;
  --gold-deep: #b87e0e;
  --gold-glow: rgba(245, 191, 56, 0.35);

  --emerald-light: #34d399;
  --emerald-main: #10b981;
  --emerald-deep: #047857;
  --emerald-glow: rgba(16, 185, 129, 0.32);

  --sapphire-light: #60a5fa;
  --sapphire-main: #2563eb;
  --sapphire-deep: #1e3a8a;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-gold: rgba(245, 191, 56, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.09);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 10px 30px rgba(245, 191, 56, 0.22);
  --shadow-emerald: 0 10px 30px rgba(16, 185, 129, 0.28);

  --font-mm: "Noto Sans Myanmar", "Padauk", "Myanmar Text", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Noto Sans Myanmar", system-ui, sans-serif;

  --container-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-mm);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(245, 191, 56, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 12% 35%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 88% 40%, rgba(37, 99, 235, 0.12) 0%, transparent 42%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   Ambient Background Orbs
   ========================================================= */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 191, 56, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 191, 56, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 25%, transparent 78%);
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 0 16px rgba(245, 191, 56, 0.25);
  background: #000;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--gold-light);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-main), var(--gold-deep));
  color: #0a0b0e !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 18px rgba(245, 191, 56, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 191, 56, 0.42);
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  padding: 40px 0 56px;
  position: relative;
  scroll-margin-top: 76px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px 28px 36px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 191, 56, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(13, 20, 34, 0.92) 0%, rgba(7, 10, 18, 0.96) 100%);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 230, 153, 0.2);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.34);
  color: var(--emerald-light);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* Logo Showcase - seamlessly blends logo.png black backdrop */
.hero-logo-wrap {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 191, 56, 0.34) 0%, rgba(16, 185, 129, 0.14) 50%, transparent 72%);
  filter: blur(12px);
  animation: floatGlow 4s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% {
    opacity: 0.8;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-logo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  padding: 5px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-deep) 45%, var(--emerald-main) 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 32px rgba(245, 191, 56, 0.25);
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: #000;
}

.hero-title {
  font-size: clamp(1.75rem, 4.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.gold-gradient-text {
  background: linear-gradient(180deg, #fff5cc 0%, #f7c744 52%, #c68612 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
}

/* Game Pill Chips */
.game-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.game-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 191, 56, 0.24);
  color: var(--gold-light);
}

/* =========================================================
   Download Buttons (Android APK & iOS Mobileconfig)
   ========================================================= */
.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 680px;
  margin: 0 auto 22px;
}

.dl-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.dl-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: left 0.55s ease;
}

.dl-btn:hover::after {
  left: 140%;
}

.dl-btn:hover {
  transform: translateY(-3px);
}

.dl-btn:active {
  transform: translateY(0);
}

.dl-btn--android {
  background: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%);
  border: 1px solid rgba(110, 231, 183, 0.55);
  box-shadow: var(--shadow-emerald);
  color: #ffffff;
}

.dl-btn--android:hover {
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.44);
}

.dl-btn--ios {
  background: linear-gradient(135deg, #f6c94c 0%, #d99714 55%, #a86b07 100%);
  border: 1px solid rgba(255, 240, 184, 0.65);
  box-shadow: var(--shadow-gold);
  color: #0b0e14;
}

.dl-btn--ios:hover {
  box-shadow: 0 14px 36px rgba(245, 191, 56, 0.45);
}

.dl-btn.is-recommended {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.dl-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
}

.dl-btn--ios .dl-icon {
  background: rgba(11, 14, 20, 0.14);
}

.dl-icon svg {
  width: 26px;
  height: 26px;
}

.dl-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dl-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.88;
}

.dl-label {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.dl-file {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.86;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Subtle Safari notice for iOS users */
.ios-safari-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: rgba(245, 191, 56, 0.08);
  border: 1px solid rgba(245, 191, 56, 0.22);
  color: var(--gold-light);
  font-size: 0.84rem;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   Section Headings
   ========================================================= */
.section {
  padding: 46px 0;
  scroll-margin-top: 76px;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 32px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.35;
  text-wrap: balance;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* =========================================================
   Featured Games Grid (Slot, Buffalo, Cashin, Fishing)
   ========================================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.85;
}

.game-card--slot::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.game-card--buffalo::before {
  background: linear-gradient(90deg, #f5bf38, #d97706);
}

.game-card--cashin::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.game-card--fishing::before {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.game-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.game-card--slot .game-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(245, 158, 11, 0.22));
  color: #fbbf24;
}

.game-card--buffalo .game-icon {
  background: linear-gradient(135deg, rgba(245, 191, 56, 0.25), rgba(180, 83, 9, 0.25));
  color: #fde047;
}

.game-card--cashin .game-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(5, 150, 105, 0.24));
  color: #34d399;
}

.game-card--fishing .game-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(37, 99, 235, 0.24));
  color: #60a5fa;
}

.game-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(245, 191, 56, 0.14);
  color: var(--gold-light);
  border: 1px solid rgba(245, 191, 56, 0.28);
}

.game-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.game-en {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 10px;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* Extra Games Strip */
.extra-games-bar {
  margin-top: 20px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(245, 191, 56, 0.08), rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.extra-games-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.extra-games-tags span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================
   Why Choose Us / Features Grid
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px 18px;
  border-radius: var(--radius-md);
  background: rgba(11, 16, 27, 0.75);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-gold);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(245, 191, 56, 0.12);
  color: var(--gold-light);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* =========================================================
   Installation Guide (Tabs for Android & iOS)
   ========================================================= */
.guide-box {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.guide-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.guide-tab svg {
  width: 18px;
  height: 18px;
}

.guide-tab.is-active[data-tab="android"] {
  background: linear-gradient(135deg, var(--emerald-main), var(--emerald-deep));
  border-color: var(--emerald-light);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.guide-tab.is-active[data-tab="ios"] {
  background: linear-gradient(135deg, var(--gold-main), var(--gold-deep));
  border-color: var(--gold-light);
  color: #0b0e14;
  box-shadow: 0 6px 20px rgba(245, 191, 56, 0.3);
}

.guide-panel {
  display: none;
}

.guide-panel.is-active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
  color: #0b0e14;
  margin-bottom: 12px;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-desc strong {
  color: var(--gold-light);
}

.guide-download-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.guide-file-info {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.guide-file-info code {
  font-family: var(--font-display);
  color: var(--gold-light);
  background: rgba(245, 191, 56, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.guide-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.guide-quick-btn:hover {
  transform: translateY(-2px);
}

.guide-quick-btn--android {
  background: linear-gradient(135deg, var(--emerald-main), var(--emerald-deep));
  color: #fff;
}

.guide-quick-btn--ios {
  background: linear-gradient(135deg, var(--gold-main), var(--gold-deep));
  color: #0b0e14;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: 32px;
  padding: 36px 0 96px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 6, 10, 0.85);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  background: #000;
}

.footer-note {
  max-width: 560px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: #64748b;
}

/* =========================================================
   Mobile Sticky Bottom Download Bar
   ========================================================= */
.mobile-sticky-bar {
  display: none;
}

/* =========================================================
   Toast Notification
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  max-width: min(92vw, 460px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 980px) {
  .games-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 22px 0 36px;
  }

  .hero-card {
    padding: 28px 18px 26px;
  }

  .hero-logo-wrap {
    width: 158px;
    height: 158px;
    margin-bottom: 18px;
  }

  .download-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dl-btn {
    padding: 15px 18px;
  }

  .steps-grid,
  .steps-grid--4 {
    grid-template-columns: 1fr;
  }

  .guide-box {
    padding: 22px 16px;
  }

  .mobile-sticky-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 7, 12, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-gold);
  }

  .sticky-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .sticky-dl svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .sticky-dl--android {
    background: linear-gradient(135deg, var(--emerald-main), var(--emerald-deep));
    color: #fff;
  }

  .sticky-dl--ios {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-deep));
    color: #0b0e14;
  }

  .toast {
    bottom: 84px;
  }
}

@media (max-width: 480px) {
  .games-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 8px;
  }

  .stat-value {
    font-size: 1.05rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }
}
