/* ===================================================
   JoyCasino Top — Modern Apple-level Design System
   Mobile-First, SEO-Optimized, High-Conversion
   =================================================== */

/* ---- CSS VARIABLES ---- */
:root {
  --c-primary: #FF6B35;
  --c-primary-dark: #E55A25;
  --c-accent: #FFD700;
  --c-bg: #0A0D14;
  --c-bg2: #111520;
  --c-bg3: #161B27;
  --c-surface: #1A2035;
  --c-surface2: #222840;
  --c-border: rgba(255,255,255,0.08);
  --c-text: #F0F2F8;
  --c-text-muted: #8892A4;
  --c-text-dim: #5A6478;
  --c-green: #22C55E;
  --c-gold: #F59E0B;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 40px rgba(255,107,53,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.6);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px);
  box-sizing: border-box;
}

/* ---- SECTION SPACING ---- */
.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-bottom: 12px;
}
.section-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #FF9040 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
  white-space: normal;
  word-break: break-word;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 100%;
  box-sizing: border-box;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, #E07030 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,107,53,0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background: transparent;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-ghost-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background: transparent;
  color: var(--c-green);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--c-green);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost-green:hover { background: rgba(34,197,94,0.12); }

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #FF9040 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 30px rgba(255,107,53,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,107,53,0.65); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }

.btn-large { min-height: 60px; padding: 16px 40px; font-size: 18px; }
.btn-full { width: 100%; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 30px rgba(255,107,53,0.5); }
  50% { box-shadow: 0 8px 50px rgba(255,107,53,0.85), 0 0 0 8px rgba(255,107,53,0.15); }
}
.btn-pulse { animation: pulse-glow 2.5s ease-in-out infinite; }

/* ============================================
   HEADER
   ============================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(10,13,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: rgba(10,13,20,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.header-logo img { height: 36px; width: auto; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { color: var(--c-text); background: rgba(255,255,255,0.06); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
}
.mob-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-bottom: 1px solid var(--c-border);
}
.mob-nav-link:last-of-type { border-bottom: none; }
.mob-nav-link:hover { color: var(--c-text); background: rgba(255,255,255,0.06); }
.mob-cta { margin-top: 20px; text-align: center; }

@media (max-width: 900px) {
  /* Хедер — только лого + бургер */
  .header-nav { display: none; }
  .header-actions { display: none; }
  .header-inner { gap: 0; justify-content: space-between; }
  .burger { display: flex; }

  /* Мобильное меню — слайд сверху, поверх всего */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--c-bg2);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 24px 24px;
    z-index: 998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
  }
  .mobile-menu.open {
    max-height: 500px;
    padding-top: 16px;
    padding-bottom: 24px;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  width: 100%;
}
.hero-bg a { display: block; width: 100%; height: 100%; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,13,20,0.85) 0%, rgba(10,13,20,0.5) 50%, rgba(10,13,20,0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 680px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero-sub strong { color: var(--c-accent); }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.trust-icon { color: var(--c-green); font-style: normal; font-size: 16px; }

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 72px;
  }
  /* Почти непрозрачный оверлей — чистый тёмный фон */
  .hero::after {
    background: linear-gradient(180deg,
      rgba(10,13,20,0.96) 0%,
      rgba(10,13,20,0.88) 50%,
      rgba(10,13,20,0.97) 100%);
  }
  .hero-img { opacity: 0.18; }
  .hero-content {
    padding: 44px 0 56px;
    max-width: 100%;
  }
  .hero-badge {
    font-size: 13px;
    padding: 6px 16px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 36px !important;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.08;
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
  }
  .btn-hero {
    width: 100%;
    font-size: 17px;
    min-height: 58px;
    padding: 0 24px;
    letter-spacing: 0.03em;
    justify-content: center;
  }
  .btn-hero-ghost {
    width: 100%;
    font-size: 16px;
    min-height: 52px;
    padding: 0 24px;
    justify-content: center;
  }
  /* Trust — просто 2 колонки, без боксов */
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
  }
  .trust-item {
    font-size: 14px;
    background: none;
    border: none;
    border-radius: 0;
    padding: 4px 0;
    gap: 6px;
    justify-content: flex-start;
    white-space: nowrap;
    color: rgba(255,255,255,0.75);
  }
  .trust-icon { font-size: 14px; }
}

/* ============================================
   MIRROR BAR
   ============================================ */
.mirror-bar {
  background: linear-gradient(90deg, #0D1B35 0%, #0B2045 50%, #0D1B35 100%);
  border-top: 1px solid rgba(255,215,0,0.12);
  border-bottom: 1px solid rgba(255,215,0,0.12);
  padding: 14px 0;
  overflow: hidden;
}
.mirror-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Left side: pulse + text */
.mirror-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.mirror-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.mirror-label {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.mirror-date {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-accent);
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.65); }
}
.mirror-pulse {
  display: block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
  align-self: center;
}
.mirror-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 24px;
  background: var(--c-gold);
  color: #000;
  font-size: 13px;
  font-weight: 800;
  border-radius: 100px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.mirror-btn:hover { background: #FFD000; transform: scale(1.03); }
.mirror-gif { height: 34px; width: auto; border-radius: 6px; flex-shrink: 0; }

@media (max-width: 768px) {
  .mirror-bar { padding: 16px 0; }
  .mirror-inner { gap: 12px; }
  /* Левая часть: точка + колонка текст/дата */
  .mirror-left { gap: 10px; align-items: center; }
  .mirror-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .mirror-label {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
  .mirror-date { font-size: 16px; }
  .mirror-gif { display: none; }
  .mirror-btn {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 12px;
    flex-shrink: 0;
  }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs { padding: 20px 0 12px; }
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-dim);
}
.breadcrumb-list li:not(:last-child)::after { content: '›'; margin-left: 8px; }
.breadcrumb-list a { color: var(--c-text-muted); transition: color var(--transition); }
.breadcrumb-list a:hover { color: var(--c-primary); }
.breadcrumb-list li[aria-current] { color: var(--c-text-muted); }

/* ============================================
   INTRO / RATING
   ============================================ */
.intro { background: var(--c-bg); }
.intro > .container {
  background: var(--c-bg2);
  border-radius: 28px;
  padding: 56px clamp(28px, 4vw, 56px);
  border: 1px solid var(--c-border);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.intro-text h2 { color: var(--c-text); }
.intro-text p {
  font-size: 17px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.intro-cta { margin-top: 32px; }

/* Rating Card */
.rating-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 88px;
}
.rating-logo img { height: 36px; width: auto; margin-bottom: 20px; }
.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.star { font-size: 22px; color: var(--c-text-dim); }
.star.filled { color: var(--c-gold); }
.star.half { background: linear-gradient(90deg, var(--c-gold) 50%, var(--c-text-dim) 50%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rating-num { font-size: 22px; font-weight: 800; color: var(--c-text); margin-left: 8px; }
.rating-count { font-size: 13px; color: var(--c-text-dim); margin-bottom: 24px; }
.rating-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.rating-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--c-text-muted); }
.rating-row > span:first-child { width: 120px; flex-shrink: 0; font-size: 13px; }
.rating-row > span:last-child { width: 28px; font-weight: 700; color: var(--c-text); font-size: 13px; }
.rating-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%);
  border-radius: 3px;
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .rating-card { position: static; }
  .intro > .container { padding: 32px clamp(16px, 4vw, 40px); border-radius: 20px; }
}

/* ============================================
   BONUSES
   ============================================ */
.bonuses { background: var(--c-bg); }
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.bonus-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.bonus-card:hover {
  border-color: rgba(255,107,53,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.bonus-card--main {
  background: linear-gradient(145deg, rgba(255,107,53,0.12) 0%, var(--c-surface) 100%);
  border-color: rgba(255,107,53,0.25);
}
.bonus-tag {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(255,107,53,0.15);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.bonus-icon { font-size: 32px; }
.bonus-card h3 { font-size: 18px; font-weight: 700; color: var(--c-text); }
.bonus-amount { font-size: 24px; font-weight: 900; color: var(--c-accent); letter-spacing: -0.01em; }
.bonus-card p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; flex: 1; }

/* Bonus Table */
.bonus-table-wrap { margin-top: 0; }
.table-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 24px;
  text-align: center;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--c-border); }
.bonus-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bonus-table thead { background: var(--c-surface2); }
.bonus-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.bonus-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-muted);
}
.bonus-table tbody tr:last-child td { border-bottom: none; }
.bonus-table tbody tr { transition: background var(--transition); }
.bonus-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.highlight-row td { color: var(--c-text) !important; }
.level {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}
.level-1 { background: rgba(90,100,120,0.3); color: #8892A4; }
.level-2 { background: rgba(192,192,192,0.15); color: #C0C0C0; }
.level-3 { background: rgba(245,158,11,0.15); color: var(--c-gold); }
.level-4 { background: linear-gradient(135deg, rgba(255,107,53,0.2) 0%, rgba(255,215,0,0.2) 100%); color: var(--c-accent); border: 1px solid rgba(255,215,0,0.3); }

@media (max-width: 900px) {
  .bonus-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .bonus-cards { grid-template-columns: 1fr; }
  .bonus-table-wrap { overflow: hidden; }
  .table-scroll { border-radius: 12px; }
  .bonus-table th, .bonus-table td { padding: 12px 12px; font-size: 13px; }
}

/* ============================================
   WHY US
   ============================================ */
.why-us { background: var(--c-bg2); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
}
.why-card:hover {
  border-color: rgba(255,107,53,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.why-icon { font-size: 40px; margin-bottom: 16px; }
.why-card h3 { font-size: 19px; font-weight: 700; color: var(--c-text); margin-bottom: 12px; }
.why-card p { font-size: 15px; color: var(--c-text-muted); line-height: 1.65; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================
   GAMES
   ============================================ */
.games { background: var(--c-bg); }
.games-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 32px;
  background: var(--c-surface);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}
.games-tab {
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.games-tab:hover { color: var(--c-text); background: rgba(255,255,255,0.06); }
.games-tab.active { background: var(--c-primary); color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,0.35); }
@media (max-width: 480px) {
  .games-tabs { grid-template-columns: repeat(2, 1fr); }
  .games-tab { font-size: 13px; padding: 10px 6px; }
}
.games-content { display: none; }
.games-content.active { display: block; }
.games-text {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.games-text p { font-size: 16px; color: var(--c-text-muted); line-height: 1.7; margin-bottom: 24px; }
.games-categories { display: flex; flex-wrap: wrap; gap: 10px; }
.game-tag {
  display: inline-flex;
  padding: 8px 18px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--c-text-muted);
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}
.game-tag:hover { border-color: var(--c-primary); color: var(--c-primary); }
.games-cta { text-align: center; margin-top: 40px; }

@media (max-width: 600px) {
  .games-text { padding: 20px; }
  .games-cta .btn-primary { width: 100%; }
}

/* ============================================
   HOW TO START
   ============================================ */
.how-to { background: var(--c-bg2); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  counter-reset: step;
}
.step-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.step-card:hover {
  border-color: rgba(255,107,53,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.step-num {
  font-size: 56px;
  font-weight: 900;
  color: rgba(255,107,53,0.12);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
  user-select: none;
}
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--c-text); margin-bottom: 12px; position: relative; z-index: 1; }
.step-card p { font-size: 15px; color: var(--c-text-muted); line-height: 1.65; position: relative; z-index: 1; }
.how-cta { text-align: center; }

@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.content-section { background: var(--c-bg); }
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
.content-main h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--c-text);
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
}
.content-main h2:first-child { margin-top: 0; border-top: none; }
.content-main p {
  font-size: 16px;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.content-ol, .content-ul {
  margin: 0 0 20px 0;
  padding: 0;
  counter-reset: ol-counter;
}
.content-ol li, .content-ul li {
  font-size: 16px;
  color: var(--c-text-muted);
  line-height: 1.65;
  padding: 10px 0 10px 36px;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.content-ol li:last-child, .content-ul li:last-child { border-bottom: none; }
.content-ol { list-style: none; }
.content-ol li { counter-increment: ol-counter; }
.content-ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: var(--c-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}

/* Aside */
.content-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.aside-mirror {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.aside-mirror-title { font-size: 14px; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.aside-date { font-size: 22px; font-weight: 800; color: var(--c-accent); margin-bottom: 16px; }
.aside-gif { width: 100%; border-radius: var(--radius-sm); margin-bottom: 16px; }
.aside-quick-links {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.aside-quick-links h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-muted); margin-bottom: 16px; }
.aside-quick-links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0; }
.aside-quick-links li a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
  transition: var(--transition);
}
.aside-quick-links li:last-child a { border-bottom: none; }
.aside-quick-links li a:hover { color: var(--c-primary); padding-left: 4px; }

@media (max-width: 900px) {
  .content-two-col { grid-template-columns: 1fr; gap: 32px; }
  .content-aside { position: static; }
  .aside-quick-links { display: none; }
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { background: var(--c-bg2); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.review-card:hover { border-color: rgba(255,107,53,0.2); box-shadow: var(--shadow-card); }
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-name { font-size: 15px; font-weight: 700; color: var(--c-text); }
.review-stars { font-size: 14px; color: var(--c-gold); letter-spacing: 1px; margin-top: 2px; }
.review-date { font-size: 12px; color: var(--c-text-dim); white-space: nowrap; }
.review-text { font-size: 15px; color: var(--c-text-muted); line-height: 1.7; font-style: italic; }

@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ============================================
   FAQ
   ============================================ */
.faq { background: var(--c-bg); }
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active { border-color: rgba(255,107,53,0.3); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  min-height: 64px;
}
.faq-q:hover { color: var(--c-primary); }
.faq-item.active .faq-q { color: var(--c-primary); }
.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--c-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-a { max-height: 400px; }
.faq-a p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: linear-gradient(135deg, #0D1A2E 0%, #1A0D2E 50%, #0D1A2E 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.final-cta p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .final-cta { padding: 64px 0; }
  .final-cta h2 { font-size: 26px; }
  .final-cta p { font-size: 14px; margin-bottom: 28px; }
  .final-cta .btn-hero {
    width: 100%;
    font-size: 15px;
    padding: 16px 20px;
    letter-spacing: 0.02em;
  }
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col {}
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-desc { font-size: 13px; color: var(--c-text-dim); line-height: 1.65; max-width: 280px; }
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links li a {
  font-size: 14px;
  color: var(--c-text-dim);
  transition: var(--transition);
}
.footer-links li a:hover { color: var(--c-primary); }
.footer-gif { width: 100%; max-width: 160px; border-radius: 8px; margin-bottom: 12px; }
.footer-img { max-width: 120px; opacity: 0.6; }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--c-text-dim);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  .footer-col--last { display: none; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: var(--c-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,107,53,0.5);
  transition: var(--transition);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(255,107,53,0.7); }

/* ============================================
   UTILITY
   ============================================ */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  h1 { font-size: 32px !important; }
  /* All CTA buttons full width */
  .btn-large,
  .how-cta .btn-primary,
  .games-cta .btn-primary,
  .intro-cta .btn-primary { width: 100%; text-align: center; box-sizing: border-box; }
  .how-cta, .games-cta, .intro-cta { text-align: center; }
  /* Steps grid 1 col */
  .steps-grid { grid-template-columns: 1fr; }
  /* Why grid 1 col */
  .why-grid { grid-template-columns: 1fr; }
}

/* Lazy loaded images placeholder */
img[loading="lazy"] { background: var(--c-surface); }

/* Selection color */
::selection { background: rgba(255,107,53,0.3); color: #fff; }
::-moz-selection { background: rgba(255,107,53,0.3); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-surface2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-dim); }
