:root {
  --bg: #0a0a0b;
  --surface: #111214;
  --surface-2: #17191d;
  --surface-3: #22252a;
  --border: #1c1e22;
  --border-light: #2a2d34;
  --text: #ffffff;
  --text-muted: #a0a4ab;
  --accent: #1a73e8;
  --accent-hover: #1662c5;
  --accent-glow: rgba(26, 115, 232, 0.25);
  --login-fill: #202124;
  --login-hover: #2c2e33;
  --radius: 8px;
  --header-h: 64px;
  --container: 1120px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 64px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background-color: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 32px;
  width: auto;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.header-nav {
  display: none;
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
  }
  .nav-link:hover, .nav-link.active {
    color: #ffffff;
  }
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-secondary {
  background-color: var(--login-fill);
  color: #ffffff;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background-color: var(--login-hover);
  border-color: var(--border-light);
}

.btn-lg {
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

/* Hamburger toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Drawer Nav */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  z-index: 99;
}
.mobile-nav-drawer.open {
  display: block;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.mobile-nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* Mobile Sticky Bottom Action Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 95;
}
.mobile-sticky-bar .btn {
  flex: 1;
  height: 42px;
}

@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Hero Section with Official Banner Background */
.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.78) 0%, rgba(10, 10, 11, 0.95) 100%),
              url('/media/banner.webp') center 25% / cover no-repeat;
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .hero {
    min-height: 340px;
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 15px;
  }
}

/* Lobby continuous flow */
.lobby-body {
  padding-top: 36px;
  padding-bottom: 60px;
}

.lobby-topic {
  margin-bottom: 36px;
}

.topic-header {
  margin-bottom: 18px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 18px;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.65;
}

/* Games Tabs */
.games-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.games-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-light);
}
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Game Tiles with Real Artwork Thumbs */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1100px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.game-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  text-decoration: none;
}

.game-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.game-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-2);
  overflow: hidden;
}

.game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-tile:hover .game-thumb-img {
  transform: scale(1.06);
}

.game-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-tile:hover .game-play-overlay {
  opacity: 1;
}

.game-play-btn {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.game-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--surface);
}

.game-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-provider {
  font-size: 11px;
  color: var(--text-muted);
}

.catalog-link-wrap {
  margin-top: 18px;
  text-align: right;
}
.catalog-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.catalog-link:hover {
  text-decoration: underline;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 12px;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-2);
  color: #ffffff;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

td {
  color: var(--text-muted);
}

td strong {
  color: #ffffff;
}

.td-payment-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-payment-icon {
  height: 20px;
  width: auto;
  max-width: 32px;
  object-fit: contain;
}

/* Provider Strip with Logos */
.providers-grid-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .providers-grid-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 900px) {
  .providers-grid-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

.provider-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  transition: all 0.15s ease;
}
.provider-box:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
}

.provider-logo-img {
  max-height: 26px;
  max-width: 85%;
  object-fit: contain;
  filter: brightness(0) invert(0.9);
  opacity: 0.85;
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.provider-box:hover .provider-logo-img {
  opacity: 1;
  filter: none;
}

/* Payment Methods Grid Strip */
.payments-grid-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.payment-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: #e0e2e6;
}

.payment-logo-img {
  height: 22px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
}

/* Numbered How-to */
ol.steps-list {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}

ol.steps-list li {
  position: relative;
  padding-left: 40px;
  color: var(--text-muted);
  line-height: 1.5;
}

ol.steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Homepage article container */
.homepage-article {
  margin-bottom: 36px;
}

.homepage-article section {
  margin-bottom: 24px;
}

/* Bonus Cards for /bonuses/ */
.bonuses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .bonuses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bonus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bonus-card-banner {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background-color: var(--surface-2);
}

.bonus-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.bonus-card h3 {
  margin-top: 0;
  font-size: 19px;
  color: #ffffff;
}

.bonus-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin: 6px 0 12px 0;
}

.bonus-terms {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 600px;
  margin-top: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* App Mobile Showcase */
.app-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .app-showcase-grid {
    grid-template-columns: 320px 1fr;
  }
}
.app-screen-img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 30px 0;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-nav a:hover {
  color: #ffffff;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-badge-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}
.trust-badge-link:hover {
  opacity: 1;
}

.trust-badge-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-disclaimer {
  font-size: 13px;
  color: #72767e;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  color: #555960;
}

/* Promo code badges */
.promo-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 115, 232, 0.15);
  border: 1px dashed var(--accent);
  color: #60a5fa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.game-multiplier-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 10, 11, 0.85);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.gamification-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .gamification-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gamification-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gamification-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.gamification-card h3 {
  margin-top: 0;
  font-size: 17px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gamification-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* 404 Page */
.page-404 {
  padding: 80px 0;
  text-align: center;
}
.code-404 {
  font-size: 72px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

