/* ── VEGASINO TEMPLATE ── */

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

:root {
  --primary:        rgb(22, 118, 162);
  --primary-light:  rgb(32, 148, 198);
  --primary-dim:    rgba(22, 118, 162, 0.18);
  --accent:         rgb(255, 192, 0);
  --accent-dark:    rgb(210, 152, 0);
  --bg-body:        rgb(230, 210, 170);
  --bg-sidebar:     rgb(22, 118, 162);
  --bg-header:      rgb(16, 96, 136);
  --bg-card:        rgb(215, 195, 152);
  --bg-card2:       rgb(200, 178, 132);
  --text-primary:   rgb(22, 18, 8);
  --text-secondary: rgb(60, 48, 20);
  --text-muted:     rgb(110, 90, 48);
  --text-on-blue:   rgb(240, 245, 255);
  --border:         rgba(22, 118, 162, 0.22);
  --border-warm:    rgba(160, 130, 80, 0.4);
  --sidebar-w:      68px;
  --header-h:       56px;
  --thumb-radius:   8px;
  --font-main:      'Poppins', 'Arial', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SIDEBAR OVERLAY ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 150;
}
.sidebar-overlay.active { display: block; }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
  transition: width 0.22s ease;
}
.sidebar.open { width: 200px; }

.sidebar__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}
.sidebar__nav::-webkit-scrollbar { width: 3px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  padding-left: 22px;
  color: rgba(220,235,255,0.7);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.sidebar__item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar__item.active { color: var(--accent); }
.sidebar__item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.sidebar__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar__icon svg { width: 20px; height: 20px; }
.sidebar__label {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.18s, width 0.18s;
}
.sidebar.open .sidebar__label {
  opacity: 1;
  width: auto;
  overflow: visible;
}

.sidebar__divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 4px 14px;
  transition: margin 0.22s;
}
.sidebar:not(.open) .sidebar__divider {
  margin: 4px 8px;
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 10px;
  z-index: 300;
}

.header__burger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background 0.15s;
}
.header__burger:hover { background: rgba(255,255,255,0.08); }
.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-on-blue);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header__logo-img { height: 32px; width: auto; object-fit: contain; }
.header__logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header__search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 34px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  color: rgba(220,235,255,0.8);
  font-size: 0.8rem;
  transition: border-color 0.15s, background 0.15s;
}
.header__search:hover { border-color: var(--accent); background: rgba(255,255,255,0.15); }
.header__search svg { width: 15px; height: 15px; flex-shrink: 0; }

.header__spacer { flex: 1; }

.btn-login {
  padding: 0 16px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--text-on-blue);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }

.btn-signup {
  padding: 0 18px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(255,225,80) 0%, rgb(255,192,0) 45%, rgb(200,148,0) 100%);
  color: #1a0f00;
  font-size: 0.82rem;
  font-weight: 700;
  transition: opacity 0.15s;
}
.btn-signup:hover { opacity: 0.88; }

/* ── MAIN WRAP ── */
.main-wrap {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  transition: margin-left 0.22s ease;
}
.sidebar.open ~ .main-wrap { margin-left: 200px; }

/* ── MOBILE MENU ── */
.mob-menu {
  display: none;
  background: var(--bg-sidebar);
  border-bottom: 2px solid var(--accent);
  padding: 12px 16px;
}
.mob-menu__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.mob-menu__link {
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.78rem;
  color: rgba(220,235,255,0.85);
  transition: border-color 0.15s, color 0.15s;
}
.mob-menu__link:hover { border-color: var(--accent); color: var(--accent); }
.mob-menu__btns {
  display: flex;
  gap: 8px;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-card2);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.65;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--primary);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  width: fit-content;
}
.hero__h1 {
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}
.hero__amount {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.hero__spins {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.hero__btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  height: 42px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgb(255,225,80) 0%, rgb(255,192,0) 45%, rgb(200,148,0) 100%);
  color: #1a0f00;
  font-size: 0.9rem;
  font-weight: 700;
  width: fit-content;
  transition: opacity 0.15s;
}
.hero__btn:hover { opacity: 0.88; }

/* ── PROMO STRIP ── */
.promo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--bg-body);
}
.promo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.promo-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(24,80,158,0.25); }
.promo-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.promo-card__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(200,178,132,0.92) 30%, rgba(200,178,132,0.1) 100%);
}
.promo-card__tag {
  position: relative;
  z-index: 2;
  margin: 0 12px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--primary);
  border-radius: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  width: fit-content;
}
.promo-card__title {
  position: relative;
  z-index: 2;
  padding: 4px 12px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}
.promo-card__sub {
  position: relative;
  z-index: 2;
  padding: 2px 12px 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.promo-card__btn {
  position: relative;
  z-index: 2;
  margin: 10px 12px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 32px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255,225,80) 0%, rgb(255,192,0) 45%, rgb(200,148,0) 100%);
  color: #1a0f00;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  transition: opacity 0.15s;
}
.promo-card__btn:hover { opacity: 0.88; }

/* ── CONTENT WRAP ── */
.content-wrap {
  padding: 8px 16px 0;
  flex: 1;
}

/* ── SECTION HEADER ── */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 0;
  padding: 8px 14px;
  background: var(--primary);
  border-radius: 8px 8px 0 0;
}
.section-hd__title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}
.section-hd__link {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s;
}
.section-hd__link:hover { color: var(--accent); }

/* ── GAME GRID ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-warm);
  border-top: none;
}

/* ── GAME THUMB ── */
.game-thumb {
  position: relative;
  display: block;
  border-radius: var(--thumb-radius);
  overflow: hidden;
  background: var(--bg-card2);
  border: 2px solid transparent;
  transition: border-color 0.18s, transform 0.18s;
}
.game-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-thumb img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.game-thumb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s;
}
.game-thumb:hover .game-thumb__overlay { opacity: 1; }
.game-thumb__play {
  padding: 7px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255,225,80) 0%, rgb(255,192,0) 45%, rgb(200,148,0) 100%);
  color: #1a0f00;
  font-size: 0.75rem;
  font-weight: 700;
}
.game-thumb__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-hot     { background: rgb(220,40,40);  color: #fff; }
.badge-new     { background: rgb(24,80,158);  color: #fff; }
.badge-jackpot { background: var(--accent);   color: #1a0f00; }

/* ── SEO CONTENT ── */
.seo-wrap {
  padding: 24px 16px 16px;
}
.seo-content {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 900px;
}
.seo-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.seo-content h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  margin: 14px 0 6px;
  cursor: pointer;
  user-select: none;
}
.seo-content h3::after { content: ' ▸'; font-size: 0.7rem; opacity: 0.6; }
.seo-content h3.faq-open::after { content: ' ▾'; }
.seo-content h3 + p { display: none; }
.seo-content h3.faq-open + p { display: block; }
.seo-content p { margin-bottom: 10px; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-header);
  border-top: 2px solid var(--accent);
  padding: 32px 20px 20px;
  margin-top: 20px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.footer__logo-wrap { margin-bottom: 12px; }
.footer__logo-img { height: 36px; width: auto; object-fit: contain; }
.footer__desc {
  font-size: 0.75rem;
  color: rgba(220,235,255,0.65);
  line-height: 1.5;
}
.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__links a {
  font-size: 0.78rem;
  color: rgba(220,235,255,0.65);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--accent); }
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 14px;
}
.footer__copy {
  font-size: 0.75rem;
  color: rgba(220,235,255,0.5);
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .sidebar.open {
    display: flex;
    width: 220px;
    z-index: 400;
  }
  .main-wrap { margin-left: 0 !important; }
  .mob-menu { display: block; }
  .header__search span { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
  .promo-strip { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__content { padding: 20px 14px; }
}
