:root {
  --bg-900: #0b0b12;
  --bg-800: #151520;
  --bg-700: #1f1f2e;
  --text-100: #f6f7fb;
  --text-200: #e1e4eb;
  --muted-400: #a6adbb;
  --muted-500: #8b92a0;
  --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);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

a:hover {
  color: var(--accent-2);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

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

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--text-100);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-700);
  color: var(--text-100);
  border: 1px solid var(--muted-500);
}

.btn-secondary:hover {
  background: var(--bg-800);
  border-color: var(--accent-1);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

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

.age-gate-content {
  background: var(--bg-800);
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  text-align: center;
  border: 1px solid var(--accent-2);
  box-shadow: var(--card-glow);
}

.age-gate-content h2 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.age-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.age-gate-footer {
  font-size: 0.875rem;
  color: var(--muted-400);
  margin-top: 1rem;
}

.drawer-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-800);
  border-top: 2px solid var(--accent-2);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
  z-index: 9998;
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.drawer-content {
  max-width: 900px;
  margin: 0 auto;
}

.cookie-category {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-700);
  border-radius: 8px;
}

.cookie-category label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.cookie-category input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-category input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-400);
  margin-top: 0.25rem;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 11, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  z-index: 1000;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-list a {
  color: var(--text-200);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--accent-1);
}

.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-900) 0%, var(--bg-800) 100%);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-400);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-section {
  padding: 4rem 0;
  text-align: center;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-200);
}

.games-section {
  padding: 4rem 0;
  background: var(--bg-800);
}

.games-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.credits-shared {
  text-align: center;
  padding: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-700);
  border-radius: 12px;
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
}

.credits-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.credits-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-1);
}

.deck-game-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tile-gamelet {
  background: var(--bg-700);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: var(--card-glow);
  transition: transform 0.2s;
}

@media (prefers-reduced-motion: no-preference) {
  .tile-gamelet:hover {
    transform: translateY(-4px);
  }
}

.game-header h3 {
  margin-bottom: 0.5rem;
}

.game-desc {
  color: var(--muted-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.game-canvas {
  margin-top: 1rem;
}

.slots-reels {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reel {
  width: 80px;
  height: 80px;
  background: var(--bg-800);
  border: 2px solid var(--accent-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blackjack-table {
  margin-bottom: 1rem;
}

.dealer-area, .player-area {
  margin-bottom: 1rem;
}

.dealer-area h4, .player-area h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.card-hand {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 60px;
}

.card {
  width: 50px;
  height: 70px;
  background: var(--bg-900);
  border: 2px solid var(--accent-1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.card.red {
  color: var(--error);
}

.card.black {
  color: var(--text-100);
}

.card.hidden {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: transparent;
}

.roulette-wheel {
  text-align: center;
  margin-bottom: 1rem;
}

.roulette-number {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: var(--bg-800);
  border: 3px solid var(--accent-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.roulette-bets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bet-btn {
  padding: 0.5rem;
  background: var(--bg-800);
  color: var(--text-100);
  border: 1px solid var(--muted-500);
  border-radius: 6px;
  font-size: 0.875rem;
}

.bet-btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.bet-btn.selected {
  background: var(--accent-1);
  border-color: var(--accent-1);
}

.game-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.game-controls label {
  font-weight: 600;
}

.game-controls input[type="number"] {
  width: 80px;
  padding: 0.5rem;
  background: var(--bg-800);
  border: 1px solid var(--muted-500);
  border-radius: 6px;
  color: var(--text-100);
  font-size: 1rem;
}

.game-controls input[type="number"]:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.game-result {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.game-result.win {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
}

.game-result.lose {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
  border: 1px solid var(--error);
}

.game-result.info {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-1);
  border: 1px solid var(--accent-1);
}

.slab-disclosure-fi {
  padding: 3rem 0;
  background: var(--pastel);
  color: #2d1b4e;
}

.slab-disclosure-fi h2 {
  color: #2d1b4e;
  text-align: center;
  margin-bottom: 1.5rem;
}

.disclosure-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.disclosure-list li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: white;
  border-left: 4px solid var(--accent-2);
  border-radius: 4px;
  font-weight: 500;
}

.site-footer {
  background: var(--bg-900);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 3rem 0 1.5rem;
}

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

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--accent-1);
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-200);
  font-size: 0.9rem;
}

.footer-col p {
  color: var(--muted-400);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-700);
  color: var(--muted-400);
  font-size: 0.875rem;
}

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

.legal-page {
  padding: 4rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  margin-bottom: 1rem;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.contact-page {
  padding: 4rem 0;
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-page > .container > p {
  text-align: center;
  color: var(--muted-400);
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-method {
  margin-bottom: 2rem;
}

.contact-method h3 {
  color: var(--accent-1);
  margin-bottom: 0.5rem;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--muted-400);
  margin-top: 0.25rem;
}

.contact-form {
  background: var(--bg-800);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.required {
  color: var(--error);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-700);
  border: 1px solid var(--muted-500);
  border-radius: 6px;
  color: var(--text-100);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--accent-1);
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
}

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-list {
    gap: 0.75rem;
    font-size: 0.875rem;
  }

  .deck-game-trio {
    grid-template-columns: 1fr;
  }

  .drawer-actions {
    flex-direction: column;
  }

  .drawer-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .slots-reels {
    gap: 0.5rem;
  }

  .reel {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .age-gate-actions {
    flex-direction: column;
  }

  .age-gate-actions button {
    width: 100%;
  }
}
