:root {
  --bg-900: #0b0b12;
  --text-100: #f6f7fb;
  --muted-400: #a6adbb;
  --accent-1: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --focus-ring: #22d3ee;
  --pastel: #f3e8ff;
  --pastel-border: #e9d5ff;
  --card-glow: 0 6px 30px rgba(139, 92, 246, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

html[data-gated="true"] main {
  display: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-900);
  color: var(--text-100);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: var(--accent-2);
  outline: none;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-3) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-glow);
}

.btn-secondary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-1);
  border: 1px solid var(--accent-1);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-100);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.link-button {
  background: none;
  border: none;
  color: var(--accent-1);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}

.link-button:hover {
  color: var(--accent-2);
}

.modal-age-gate {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.modal-age-gate[hidden] {
  display: none;
}

.modal-age-gate__content {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 2px solid var(--accent-2);
  border-radius: 16px;
  padding: 48px;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--card-glow);
}

.modal-age-gate__content h2 {
  margin-bottom: 16px;
}

.modal-age-gate__content p {
  margin-bottom: 32px;
  color: var(--muted-400);
}

.modal-age-gate__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.header-main {
  position: sticky;
  top: 0;
  background: rgba(11, 11, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  z-index: 100;
}

.header-main__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-100);
}

.brand-wordmark:hover {
  color: var(--text-100);
}

.nav-main ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-main a {
  color: var(--muted-400);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-main a:hover {
  color: var(--text-100);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  color: white !important;
  padding: 8px 20px;
  border-radius: 6px;
}

.hero-section {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.hero-section__title {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero-section__subtitle {
  font-size: 1.25rem;
  color: var(--muted-400);
  margin-bottom: 48px;
}

.hero-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-section {
  padding: 80px 0;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.about-section__content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted-400);
}

.about-section__content p {
  margin-bottom: 16px;
}

.games-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
}

.games-section h2 {
  margin-bottom: 24px;
}

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

.credits-display-main {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 8px;
}

.game-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
  padding-bottom: 8px;
}

.game-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--muted-400);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  position: relative;
}

.game-tab:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-100);
}

.game-tab.active {
  background: rgba(59, 130, 246, 0.2);
  color: var(--text-100);
}

.game-tab.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
}

.game-container-inline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 32px;
  min-height: 500px;
}

.game-inline {
  display: none;
}

.game-inline.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slab-disclosure-fi {
  padding: 80px 0;
  background: var(--pastel);
}

.slab-disclosure-fi h2 {
  text-align: center;
  margin-bottom: 32px;
  color: var(--bg-900);
}

.slab-disclosure-fi__content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--bg-900);
}

.slab-disclosure-fi__content p {
  margin-bottom: 16px;
}

.footer-main {
  background: rgba(0, 0, 0, 0.3);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-main__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-main__col h3 {
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.footer-main__col ul {
  list-style: none;
}

.footer-main__col ul li {
  margin-bottom: 8px;
}

.footer-main__col a {
  color: var(--muted-400);
}

.footer-main__col a:hover {
  color: var(--text-100);
}

.footer-main__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  color: var(--muted-400);
  font-size: 14px;
}

.drawer-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 11, 18, 0.95);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--accent-1);
  padding: 32px;
  z-index: 9999;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.drawer-consent[hidden] {
  display: none;
}

.drawer-consent__content {
  max-width: 800px;
  margin: 0 auto;
}

.drawer-consent h2 {
  margin-bottom: 16px;
}

.drawer-consent__options {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  margin-top: 4px;
}

.cookie-option strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-option p {
  color: var(--muted-400);
  font-size: 14px;
  margin: 0;
}

.drawer-consent__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.game-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.game-result {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
}

.game-result.win {
  border: 2px solid #10b981;
  color: #10b981;
}

.game-result.lose {
  border: 2px solid #ef4444;
  color: #ef4444;
}

@media (max-width: 768px) {
  .hero-section__title {
    font-size: 2rem;
  }

  .nav-main ul {
    gap: 16px;
    font-size: 14px;
  }

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

  .game-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .game-tab {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .game-container-inline {
    padding: 16px;
    min-height: 400px;
  }

  .modal-age-gate__content {
    padding: 32px;
    margin: 16px;
  }

  .slots-reels {
    gap: 8px;
  }

  .slot-reel {
    font-size: 32px;
    padding: 20px 8px;
  }

  .bet-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.slots-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.slot-reel {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--accent-1);
  border-radius: 8px;
  padding: 32px 16px;
  font-size: 48px;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-reel.spinning {
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-10px); }
  75% { transform: translateY(10px); }
}

.bet-selector {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.bet-selector label {
  font-weight: 600;
}

.bet-selector input {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--accent-1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-100);
  width: 80px;
}

.blackjack-table {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hand {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--accent-1);
  border-radius: 12px;
  padding: 24px;
}

.hand h3 {
  margin-bottom: 16px;
}

.cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.card {
  background: white;
  color: black;
  border-radius: 8px;
  padding: 16px 12px;
  font-weight: 700;
  font-size: 24px;
  min-width: 60px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card.red {
  color: #ef4444;
}

.roulette-wheel {
  width: 300px;
  height: 300px;
  margin: 32px auto;
  border-radius: 50%;
  border: 4px solid var(--accent-1);
  background: conic-gradient(
    #ef4444 0deg 45deg,
    #000 45deg 90deg,
    #ef4444 90deg 135deg,
    #000 135deg 180deg,
    #ef4444 180deg 225deg,
    #000 225deg 270deg,
    #ef4444 270deg 315deg,
    #000 315deg 360deg
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-wheel.spinning {
  animation: rotate 2s linear;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(1440deg); }
}

.roulette-ball {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 20px;
}

.bet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.bet-option {
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--accent-1);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.bet-option:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

.bet-option.selected {
  background: rgba(59, 130, 246, 0.3);
  border-color: var(--accent-2);
}

.content-page {
  padding: 80px 0;
  min-height: calc(100vh - 200px);
}

.content-page h1 {
  margin-bottom: 32px;
}

.content-page h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.content-page p {
  margin-bottom: 16px;
  color: var(--muted-400);
}

.content-page ul, .content-page ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--muted-400);
}

.content-page li {
  margin-bottom: 8px;
}

.contact-form {
  max-width: 600px;
  margin: 32px auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--accent-1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-100);
  font-family: inherit;
}

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

.form-success {
  padding: 16px;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10b981;
  border-radius: 8px;
  text-align: center;
  color: #10b981;
  margin-top: 24px;
}
