/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  background: #1a1d24;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========== VARIABLES ========== */
:root {
  --bg:      #1a1d24;
  --bg2:     #252830;
  --bg3:     #2e3240;
  --green:   #3ecb5f;
  --green-h: #32b04f;
  --red:     #e63131;
  --text:    #fff;
  --text2:   #9aa0b0;
  --border:  #363d50;
  --r:       8px;
}

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: background .2s, border-color .2s, transform .1s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn--green { background: var(--green); color: #fff; border-color: var(--green); }
.btn--green:hover { background: var(--green-h); border-color: var(--green-h); }
.btn--outline { background: transparent; color: #fff; border-color: var(--border); }
.btn--outline:hover { border-color: #fff; }

/* ========== SIDEBAR OVERLAY ========== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: #111318;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform .35s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.sidebar.open { transform: translateX(0); }
.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar__logo svg { height: 22px; width: auto; }
.sidebar__close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .2s;
}
.sidebar__close:hover { color: #fff; }
.sidebar__nav { padding: 8px 0; flex: 1; }
.sidebar__divider { height: 1px; background: var(--border); margin: 6px 0; }
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text2);
  transition: color .2s, background .2s;
}
.sidebar__link:hover { color: #fff; background: var(--bg2); }
.sidebar__link--active { color: #fff; background: var(--bg2); }
.sidebar__link--top { color: var(--text2); }
.sidebar__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ========== SIDEBAR BUTTON ========== */
.sidebar-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 2px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background .2s;
}
.sidebar-btn:hover span { background: var(--green); }

/* ========== PAGE WRAPPER ========== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.header {
  background: #111318;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 10px;
}
.header__left { display: flex; align-items: center; gap: 10px; }
.logo svg { height: 26px; width: auto; display: block; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__cta { display: none; padding: 8px 18px; font-size: 14px; }
@media (min-width: 480px) { .header__cta { display: inline-flex; } }

/* ========== BURGER ========== */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== NAV ========== */
.nav {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #111318;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.nav.open { max-height: 360px; padding: 12px 16px 16px; }
.nav__list { display: flex; flex-direction: column; gap: 2px; }
.nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r);
  color: var(--text2);
  font-size: 15px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: #fff; background: var(--bg2); }

/* ========== CAROUSEL ========== */
.carousel {
  position: relative;
  overflow: hidden;
  background: #111318;
}
.carousel__track {
  display: flex;
  transition: transform .5s ease;
}
.carousel__slide {
  min-width: 100%;
  position: relative;
  isolation: isolate;
  padding: 48px 0;
}
.carousel__slide-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--slide-bg);
  background-size: cover;
  background-position: center;
}
.carousel__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,.75);
}
.carousel__content {
  position: relative;
  text-align: center;
}
.carousel__badge {
  display: inline-block;
  background: rgba(62,203,95,.15);
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.carousel__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}
.carousel__title span { color: var(--red); }
.carousel__text {
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.carousel__arrow:hover { background: rgba(255,255,255,.2); }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
}
.carousel__dot.active { background: var(--green); width: 20px; border-radius: 4px; }

/* ========== HERO ========== */
.hero { padding: 40px 0 32px; text-align: center; }
.hero h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--green); }
.hero__text { color: var(--text2); font-size: 15px; max-width: 600px; margin: 0 auto 22px; }
.hero__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__badge {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  background: var(--bg2);
  border-radius: 40px;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text2);
  border: 1px solid var(--border);
}
.hero__badge span { white-space: nowrap; }
.hero__badge strong { color: var(--red); white-space: nowrap; }

/* ========== SECTIONS ========== */
.section { padding: 36px 0; }
.section--alt { background: var(--bg2); }
.section__title { font-size: 20px; font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.section__text { color: var(--text2); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.section__text:last-child { margin-bottom: 0; }

/* ========== WINNERS ========== */
.winners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 10px;
  margin-top: 18px;
}
.winner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  transition: border-color .2s;
}
.winner-card:hover { border-color: var(--green); }
.winner-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg2);
}
.winner-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.winner-card__game { font-weight: 700; font-size: 13px; }
.winner-card__user { color: var(--text2); font-size: 12px; margin: 2px 0; }
.winner-card__sum { color: var(--green); font-weight: 700; font-size: 14px; }

/* ========== FEATURES LIST ========== */
.features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg3);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}
.features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========== METHOD CARDS ========== */
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 20px; }
.method-card {
  background: var(--bg3);
  border-radius: var(--r);
  padding: 20px;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.method-card:hover { border-color: var(--green); }
.method-card__icon { width: 36px; height: 36px; margin-bottom: 10px; }
.method-card__title { font-weight: 700; font-size: 15px; margin-bottom: 7px; }
.method-card__text { color: var(--text2); font-size: 14px; line-height: 1.6; }

/* ========== STEPS ========== */
.steps { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__num {
  background: var(--green);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.step__body { padding-top: 4px; }
.step__title { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.step__text { color: var(--text2); font-size: 14px; line-height: 1.5; }

/* ========== GAME CARDS ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
  gap: 10px;
  margin-top: 20px;
}
.game-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
  display: block;
}
.game-card:hover { border-color: var(--green); transform: translateY(-2px); }
.game-card__thumb {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, var(--c1, #252830), var(--c2, #2e3240));
  overflow: hidden;
  position: relative;
}
.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Hide broken img, show gradient fallback */
  color: transparent;
}
.game-card__info { padding: 8px 10px 10px; }
.game-card__name {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card__provider { color: var(--text2); font-size: 11px; margin-top: 2px; }
.game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.game-card:hover .game-card__overlay { opacity: 1; pointer-events: all; }
.game-card__overlay span {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--r);
}

/* ========== TABLE ========== */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 18px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  background: var(--bg3);
  white-space: nowrap;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .6px;
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(255,255,255,.02); }
.table td:first-child { font-weight: 600; white-space: nowrap; }
.table__accent { color: var(--green); font-weight: 700; }

/* ========== FAQ ========== */
.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.faq__item {
  background: var(--bg3);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .2s;
}
.faq__item.open { border-color: var(--green); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  gap: 12px;
  user-select: none;
  line-height: 1.4;
}
.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green);
  transition: transform .35s;
  display: flex;
}
.faq__icon svg { width: 20px; height: 20px; display: block; }
.faq__item.open .faq__icon { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
  transition: max-height .35s ease, padding .35s ease;
}
.faq__item.open .faq__a { max-height: 400px; padding: 0 18px 15px; }

/* ========== CTA SECTION ========== */
.cta-section { padding: 48px 0; text-align: center; }
.cta-section__title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.cta-section__text { color: var(--text2); font-size: 15px; max-width: 500px; margin: 0 auto 22px; }

/* ========== FOOTER ========== */
.footer { background: #111318; border-top: 1px solid var(--border); padding: 24px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer__copy { color: var(--text2); font-size: 13px; }
.footer__disclaimer { color: #555; font-size: 12px; max-width: 500px; line-height: 1.6; }

/* ========== TABLET 768px ========== */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .burger { display: none; }
  .nav {
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    transition: none;
  }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__link { font-size: 13px; padding: 6px 10px; }
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 52px 0; }
  .section__title { font-size: 26px; }
  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
  .game-card__thumb { height: 160px; }
  .carousel__title { font-size: 38px; }
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; flex-wrap: wrap; }
}

/* ========== DESKTOP 1200px ========== */
@media (min-width: 1200px) {
  .hero { padding: 64px 0 52px; }
  .hero h1 { font-size: 44px; }
  .section { padding: 64px 0; }
  .section__title { font-size: 30px; }
  .nav__link { font-size: 14px; padding: 7px 12px; }
  .carousel__title { font-size: 48px; }
  .carousel__slide { padding: 72px 0; }
  .game-card__thumb { height: 180px; }
  .sidebar { transform: none; transition: none; height: 100vh; overflow-y: auto; }
  .sidebar-btn { display: none; }
  .sidebar-overlay { display: none !important; }
  .sidebar__header { display: none; }
  .page { margin-left: 240px; }
}
