/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0e1e3a;
  --bg-secondary: #122748;
  --bg-card: #163052;
  --bg-card-hover: #1b3a62;
  --accent-orange: #ff6b00;
  --accent-orange-hover: #ff8c33;
  --text-primary: #ffffff;
  --text-secondary: #a0b8d0;
  --text-muted: #6b8aaa;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(180deg, #091629 0%, var(--bg-primary) 100%);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__nav-link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.header__nav-link--accent {
  color: var(--accent-orange);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--large {
  padding: 16px 48px;
  font-size: 18px;
  border-radius: 50px;
}

/* ========== HERO / BANNER ========== */
.hero {
  padding: 32px 0 24px;
}

.hero__banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.hero__banner:hover {
  transform: scale(1.005);
}

.hero__banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== SECTION HEADINGS ========== */
.section {
  padding: 24px 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section__title {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__title-icon {
  font-size: 24px;
}

.section__see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  transition: var(--transition);
  text-transform: uppercase;
}

.section__see-all:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* ========== GAME GRID ========== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 4/3;
  background: var(--bg-card);
  display: block;
  color: inherit;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.game-card:hover .game-card__overlay {
  opacity: 1;
}

.game-card__name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ========== PROMO GRID ========== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: block;
  color: inherit;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.promo-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== BONUS SECTION ========== */
.bonus-section {
  padding: 32px 0;
}

.bonus-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}

.bonus-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.1);
}

.bonus-card__content {
  flex: 1;
}

.bonus-card__tag {
  display: inline-block;
  background: var(--accent-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.bonus-card__title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 12px;
}

.bonus-card__desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.bonus-card__image {
  flex-shrink: 0;
  max-width: 320px;
}

.bonus-card__image img {
  border-radius: var(--radius-md);
}

/* ========== SEO TEXT ========== */
.seo-section {
  padding: 40px 0;
}

.seo-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
}

.seo-content h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.3;
}

.seo-content__date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.seo-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.seo-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--text-primary);
}

.seo-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.seo-content .highlight {
  color: var(--accent-orange);
  font-weight: 700;
}

/* SEO Table */
.seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.seo-content thead th {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--accent-orange);
}

.seo-content tbody td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.seo-content tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.seo-content tbody td:first-child {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  width: 220px;
}

/* SEO Ordered List */
.seo-content ol {
  margin: 12px 0 20px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.seo-content ol li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.seo-content ol li::marker {
  color: var(--accent-orange);
  font-weight: 700;
}

/* SEO 2-Column Content + Image */
.seo-content__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin: 16px 0 24px;
}

.seo-content__row--reverse {
  grid-template-columns: 1fr 1fr;
}

.seo-content__row--reverse .seo-content__image {
  order: -1;
}

.seo-content__row--reverse .seo-content__text {
  order: 1;
}

.seo-content__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.seo-content__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.seo-content__text p,
.seo-content__text h2,
.seo-content__text h3 {
  /* inherit parent styles */
}

@media (max-width: 768px) {
  .seo-content__row,
  .seo-content__row--reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .seo-content__row--reverse .seo-content__image,
  .seo-content__row--reverse .seo-content__text {
    order: unset;
  }

  .seo-content__image {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .seo-content tbody td:first-child {
    white-space: normal;
    width: auto;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #081425 100%);
  padding: 40px 0 24px;
  border-top: 1px solid var(--border-color);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__logo img {
  height: 36px;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer__nav-link:hover {
  color: var(--text-primary);
}

.footer__age {
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  font-size: 14px;
  font-weight: 800;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer__payment-icon {
  height: 28px;
  width: auto;
  opacity: 0.8;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.footer__payment-icon:hover {
  opacity: 1;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__apps {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__apps-label {
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 4px;
}

.footer__apps-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.7;
}

.footer__apps-icon:hover {
  opacity: 1;
}

.footer__apps-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
  transition: var(--transition);
}

.footer__apps-icon:hover svg {
  fill: var(--text-primary);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bonus-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .bonus-card__image {
    max-width: 260px;
  }
}

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

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__nav {
    gap: 12px;
  }

  .footer__payments {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .section__title {
    font-size: 16px;
  }

  .bonus-card__title {
    font-size: 22px;
  }

  .btn--large {
    padding: 14px 32px;
    font-size: 16px;
  }
}

/* ── Banner Footer ── */
  @import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&display=swap');
 
  .tg-banner-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: 'Unbounded', sans-serif;
    -webkit-font-smoothing: antialiased;
  }
 
  .tg-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f0f12 0%, #1a1a2e 40%, #16213e 100%);
    border-top: 2px solid;
    border-image: linear-gradient(90deg, #00d2ff, #7b2ff7, #ff0080) 1;
    box-shadow: 0 -4px 30px rgba(123, 47, 247, 0.3), 0 -1px 10px rgba(0, 210, 255, 0.15);
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
 
  .tg-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: tg-shimmer 3s ease-in-out infinite;
  }
 
  @keyframes tg-shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
  }
 
  .tg-banner:hover {
    background: linear-gradient(135deg, #12121a 0%, #1e1e36 40%, #1a2744 100%);
  }
 
  .tg-banner:active {
    transform: scale(0.98);
  }
 
  /* Telegram Icon */
  .tg-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2AABEE, #1d8fcc);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(42, 171, 238, 0.4);
    animation: tg-pulse 2.5s ease-in-out infinite;
  }
 
  @keyframes tg-pulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(42, 171, 238, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(42, 171, 238, 0.7); }
  }
 
  .tg-banner-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
  }
 
  /* Text */
  .tg-banner-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
  }
 
  .tg-banner-title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #fff, #c8d6e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
  }
 
  .tg-banner-sub {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-top: 3px;
    letter-spacing: 0.5px;
  }
 
  .tg-banner-handle {
    color: #2AABEE;
    -webkit-text-fill-color: #2AABEE;
    font-weight: 700;
  }
 
  /* Arrow */
  .tg-banner-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }
 
  .tg-banner:hover .tg-banner-arrow {
    background: rgba(42, 171, 238, 0.2);
    transform: translateX(2px);
  }
 
  .tg-banner-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #2AABEE;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
 
  /* Close */
  .tg-banner-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    padding: 0;
  }
 
  .tg-banner-close:hover {
    background: rgba(255,255,255,0.15);
  }
 
  .tg-banner-close svg {
    width: 10px;
    height: 10px;
    stroke: rgba(255,255,255,0.4);
    stroke-width: 2;
    stroke-linecap: round;
  }
 
  /* Desktop hide (only mobile) */
  @media (min-width: 769px) {
    .tg-banner-overlay {
      display: none;
    }
  }
 
  /* Safe area for iPhones */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tg-banner {
      padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
  }