/* ── TOKENS ─────────────────────────────────────────────────────────────────── */
:root {
  --bg-page:       #0D0F1A;
  --bg-surface-1:  #13152A;
  --bg-surface-2:  #1A1D3A;
  --bg-card:       #111328;
  --bg-header:     #10122A;
  --bg-sidebar:    #0A0C19;
  --gold:          #F5C518;
  --gold-d:        #D4A017;
  --amber:         #FFA800;
  --grad-cta:      linear-gradient(135deg, #F5C518 0%, #D4A017 100%);
  --text-primary:  #FFFFFF;
  --text-secondary: rgba(255,255,255,0.65);
  --text-muted:    rgba(255,255,255,0.35);
  --text-cta:      #0D0F1A;
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.14);
  --sidebar-w:     220px;
  --header-h:      56px;
  --radius:        10px;
  --radius-sm:     7px;
  --radius-xs:     5px;
}

/* ── RESET ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ── APP LAYOUT ──────────────────────────────────────────────────────────────── */
.app.Royalstiger { min-height: 100vh; }
.main-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

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

/* ── SIDEBAR — starts below full-width header ────────────────────────────────── */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 200; overflow-y: auto; overflow-x: hidden;
  transition: transform .28s ease;
}
.sidebar-nav { padding: 6px 0; flex: 1; }
.sidebar-nav-section { padding-top: 4px; }
.sidebar-nav-section + .sidebar-nav-section {
  border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: var(--radius-xs);
  margin: 1px 6px;
  color: var(--text-secondary); font-size: .8rem; font-weight: 500;
  transition: background .16s, color .16s;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,.05); color: var(--text-primary); }
.sidebar-nav-item.active { background: rgba(245,197,24,.12); color: var(--gold); }
.sidebar-nav-item svg, .sidebar-nav-item img { flex-shrink: 0; width: 18px; height: 18px; }
.sidebar-footer-nav {
  padding: 8px 0 16px;
  border-top: 1px solid var(--border); margin-top: 4px;
}

/* ── LAYOUT (pure CSS, no JS class) ─────────────────────────────────────────── */
@media (min-width: 769px) {
  .main-wrapper { margin-left: var(--sidebar-w); }
  .sidebar { transform: translateX(0); }
  .sidebar-overlay { display: none !important; }
  /* header-toggle always visible — collapses sidebar on desktop too */
}
@media (min-width: 769px) {
  .app.sidebar-collapsed .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .app.sidebar-collapsed .main-wrapper { margin-left: 0; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .header-tabs { display: none !important; }
  .btn-login { display: none !important; }
}

/* ── HEADER — full viewport width, above sidebar ─────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 300;
  display: flex; align-items: center; gap: 10px;
  height: var(--header-h); padding: 0 14px;
  background: var(--bg-header); border-bottom: 1px solid var(--border);
}
.header-toggle {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px;
  cursor: pointer; color: #fff; flex-shrink: 0;
}
.header-toggle:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.header-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }
.header-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.header-logo img { height: 28px; width: auto; flex-shrink: 0; }
.header-logo__text { font-size: .9rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 480px) { .header-logo__text { display: none; } }
.header-tabs {
  display: flex; gap: 2px; margin: 0 auto;
  background: rgba(255,255,255,.07); border-radius: 20px; padding: 3px;
}
.header-tab {
  padding: 5px 14px; border-radius: 17px;
  font-size: .8rem; font-weight: 600;
  color: var(--text-secondary); white-space: nowrap;
}
.header-tab.active { background: var(--grad-cta); color: var(--text-cta); }
.header-right { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border-radius: 20px; font-size: .875rem; font-weight: 700; white-space: nowrap; cursor: pointer; border: none; }
.btn-login { background: rgba(255,255,255,.08); color: var(--text-primary); }
.btn-login:hover { background: rgba(255,255,255,.13); }
.btn-signup { background: var(--grad-cta); color: var(--text-cta); }
.btn-signup:hover { opacity: .9; }

/* ── MAIN ────────────────────────────────────────────────────────────────────── */
.main { flex: 1; }

/* ── H1 ──────────────────────────────────────────────────────────────────────── */
.page-h1 { font-size: 1.25rem; font-weight: 700; padding: 12px 16px 0; color: var(--text-primary); }
@media (min-width: 769px) { .page-h1 { font-size: 1.5rem; padding: 16px 24px 0; } }

/* ── HERO BANNER ─────────────────────────────────────────────────────────────── */
.hero-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0D0F1A 0%, #1a0a2e 50%, #2a1a0a 100%);
  padding-top: 112.5%;
}
@media (min-width: 769px) { .hero-banner { padding-top: 42.22%; } }
.hero-banner__picture { position: absolute; inset: 0; display: block; }
.hero-banner__picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,15,26,.95) 0%, rgba(13,15,26,.7) 50%, rgba(13,15,26,.2) 100%);
}
.hero-banner__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 28px; max-width: 520px;
}
.hero-banner__label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.hero-banner__title {
  font-size: 2.2rem; font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 22px;
}
.hero-banner__title span { display: block; }
.hero-banner__title .title-gold { color: var(--gold); }
.btn-cta { background: var(--grad-cta); color: var(--text-cta); padding: 12px 32px; border-radius: 24px; font-size: 1rem; font-weight: 700; }
.btn-cta:hover { opacity: .9; }
@media (min-width: 769px) {
  .hero-banner__content { padding: 40px 48px; }
  .hero-banner__title { font-size: 3rem; }
}

/* ── SECTIONS ────────────────────────────────────────────────────────────────── */
.section { padding: 24px 16px; }
@media (min-width: 769px) { .section { padding: 32px 24px; } }
.section__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section__title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
@media (min-width: 769px) { .section__title { font-size: 1.3rem; } }
.section__link { font-size: .8rem; font-weight: 600; color: var(--gold); }
.section__link:hover { text-decoration: underline; }

/* ── FILTER TABS ─────────────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
}
.filter-tab {
  padding: 6px 14px; border-radius: 20px;
  font-size: .78rem; font-weight: 600;
  background: var(--bg-surface-1); color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: background .16s, color .16s, border-color .16s;
}
.filter-tab.active, .filter-tab:hover {
  background: rgba(245,197,24,.12); color: var(--gold);
  border-color: rgba(245,197,24,.3);
}

/* ── GAMES GRID ──────────────────────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
@media (min-width: 480px) { .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
@media (min-width: 769px) { .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; } }
.game-card {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-card);
}
.game-card .img-wrap { aspect-ratio: 160/267; overflow: hidden; }
.game-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-card:hover .img-wrap img { transform: scale(1.04); }
.game-card__info {
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.game-card__title { font-size: .78rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card__provider { font-size: .7rem; color: var(--text-muted); }
.game-card__hover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: rgba(13,15,26,.82);
  opacity: 0; transition: opacity .2s;
}
.game-card:hover .game-card__hover { opacity: 1; }
.btn-play {
  background: var(--grad-cta); color: var(--text-cta);
  padding: 8px 24px; border-radius: 20px; font-size: .8rem; font-weight: 700;
}
.btn-demo {
  background: rgba(255,255,255,.12); color: var(--text-primary);
  padding: 7px 20px; border-radius: 20px; font-size: .78rem; font-weight: 600;
  border: 1px solid var(--border-bright);
}

/* ── VIP / CASHBACK SECTION ──────────────────────────────────────────────────── */
.vip-section {
  margin: 0 16px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1A1200 0%, #2A1F00 50%, #1A0A0A 100%);
  border: 1px solid rgba(245,197,24,.2);
  display: flex; align-items: stretch;
  overflow: hidden; min-height: 260px;
}
@media (min-width: 769px) { .vip-section { margin: 0 24px 32px; } }
.vip-section__content {
  flex: 1; padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px;
}
.vip-section__title {
  font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: #fff;
}
@media (min-width: 769px) { .vip-section__title { font-size: 1.6rem; } }
.vip-section__desc {
  font-size: .875rem; color: var(--text-secondary); line-height: 1.55;
  max-width: 380px;
}
.vip-section__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(245,197,24,.12); border: 1px solid rgba(245,197,24,.3);
  border-radius: var(--radius-sm); padding: 8px 14px;
  width: fit-content;
}
.vip-badge__pct { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.vip-badge__label { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.vip-section__content .btn-cta { align-self: flex-start; }
.vip-section__image {
  flex-shrink: 0; width: 260px;
  display: none; position: relative;
}
@media (min-width: 600px) { .vip-section__image { display: block; } }
@media (min-width: 769px) { .vip-section__image { width: 320px; } }
.vip-section__image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ── PAYMENTS ────────────────────────────────────────────────────────────────── */
.payments-section { padding: 24px 16px; text-align: center; }
@media (min-width: 769px) { .payments-section { padding: 32px 24px; } }
.payments-section__title {
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: 16px;
}
.payments-list {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 16px 24px;
}
.payments-list img { height: 28px; width: auto; opacity: .75; filter: brightness(1.1); }
.payments-list img:hover { opacity: 1; }

/* ── SEO SECTION ─────────────────────────────────────────────────────────────── */
.seo-section {
  padding: 24px 16px; border-top: 1px solid var(--border);
  color: var(--text-secondary); font-size: .875rem; line-height: 1.7;
}
@media (min-width: 769px) { .seo-section { padding: 32px 24px; } }
.seo-content h1, .seo-content h2, .seo-content h3,
.seo-content h4, .seo-content h5, .seo-content h6 {
  color: var(--text-primary); margin: 1.2em 0 .5em;
}
.seo-content h1 { font-size: 1.25rem; }
.seo-content h2 { font-size: 1.1rem; }
.seo-content h3 { font-size: 1rem; }
.seo-content h4 { font-size: .95rem; }
.seo-content h5 { font-size: .9rem; }
.seo-content h6 { font-size: .85rem; color: var(--text-secondary); }
.seo-content p { margin-bottom: .75em; }
.seo-content a { color: var(--gold); }
.seo-content a:hover { text-decoration: underline; }
.seo-content strong, .seo-content b { color: var(--text-primary); font-weight: 700; }
.seo-content em, .seo-content i { font-style: italic; }
.seo-content ul, .seo-content ol { margin: .75em 0 .75em 1.4em; }
.seo-content ul { list-style: disc; }
.seo-content ol { list-style: decimal; }
.seo-content li { margin-bottom: .4em; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .85rem; }
.seo-content th, .seo-content td { padding: 8px 12px; border: 1px solid var(--border-bright); text-align: left; }
.seo-content th { background: var(--bg-surface-2); color: var(--text-primary); font-weight: 600; }
.seo-content tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.seo-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 7px 16px;
  border-radius: 20px; background: var(--bg-surface-1);
  border: 1px solid var(--border-bright);
  font-size: .8rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer;
}
.seo-toggle:hover { color: var(--text-primary); }

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface-1); border-top: 1px solid var(--border);
  padding: 28px 16px 16px;
}
@media (min-width: 769px) { .footer { padding: 36px 24px 20px; } }
.footer__top {
  display: flex; flex-direction: column; gap: 24px; margin-bottom: 20px;
}
@media (min-width: 640px) { .footer__top { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.footer__brand { max-width: 320px; }
.footer__logo img { height: 28px; width: auto; margin-bottom: 14px; }
.footer__disclaimer { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.5; }
.footer__age { font-size: .75rem; color: var(--text-muted); margin-bottom: 12px; }
.footer__ssl { margin-top: 8px; }
.footer__ssl img { height: 28px; width: auto; opacity: .6; }
.footer__nav {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  max-width: 460px;
}
.footer__nav a { font-size: .78rem; color: var(--text-muted); }
.footer__nav a:hover { color: var(--text-secondary); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 14px;
  display: flex; justify-content: center;
}
.footer__copy { font-size: .72rem; color: var(--text-muted); }
