:root {
  --bg-900: #0b0b12;
  --text-100: #f6f7fb;
  --muted-400: #a6adbb;
  --accent-1: #14b8a6;
  --accent-2: #3b82f6;
  --accent-3: #8b5cf6;
  --focus-ring: #22d3ee;
  --pastel: #e0f2fe;
  --pastel-border: #bae6fd;
  --card-glow: 0 6px 30px rgba(56, 189, 248, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

h1, h2, h3 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}

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

.btn-secondary {
  background: var(--muted-400);
  color: var(--bg-900);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: var(--text-100);
}

.btn-outline {
  background: transparent;
  color: var(--text-100);
  border: 2px solid var(--accent-1);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.btn-outline:hover {
  background: var(--accent-1);
  color: white;
}

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

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

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

.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

html:not([data-gated="true"]) .age-gate-overlay {
  display: none;
}

.age-gate-content {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(59, 130, 246, 0.1));
  border: 2px solid var(--accent-1);
  border-radius: 16px;
  padding: 3rem;
  max-width: 500px;
  text-align: center;
}

.age-gate-content h2 {
  margin-bottom: 1.5rem;
}

.age-gate-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

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

.cookie-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 11, 18, 0.98);
  border-top: 2px solid var(--accent-1);
  padding: 2rem;
  z-index: 9000;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.cookie-drawer.active {
  transform: translateY(0);
}

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

.cookie-prefs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.cookie-pref-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.cookie-pref-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-drawer-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 11, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.2);
  z-index: 1000;
  padding: 1rem 0;
}

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

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

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  color: var(--text-100);
  font-weight: 500;
}

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

.hero-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.05), transparent);
}

.hero-subhead {
  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;
  max-width: 800px;
  margin: 0 auto;
}

.about-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted-400);
}

.games-section {
  padding: 4rem 0;
}

.credits-shared {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.credits-label {
  font-size: 1.25rem;
  font-weight: 600;
}

#credits-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-1);
}

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

.tile-gamelet {
  background: rgba(20, 184, 166, 0.05);
  border: 2px solid rgba(20, 184, 166, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-glow);
}

.tile-gamelet h3 {
  color: var(--accent-1);
}

.tile-gamelet p {
  color: var(--muted-400);
  margin-bottom: 1.5rem;
}

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

.slots-controls,
.blackjack-controls,
.roulette-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.slots-controls label,
.blackjack-controls label,
.roulette-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slots-controls input,
.blackjack-controls input,
.roulette-controls input {
  width: 80px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--accent-1);
  border-radius: 4px;
  color: var(--text-100);
  font-size: 1rem;
}

.slots-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.slot-reel {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--accent-1);
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 2rem;
}

.blackjack-hand {
  margin: 1rem 0;
}

.blackjack-hand h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-2);
}

.blackjack-hand .cards {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 80px;
}

.card {
  background: white;
  color: #000;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 1rem 0.75rem;
  min-width: 60px;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.card.red {
  color: #c00;
}

.hand-value {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent-1);
}

.roulette-bets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.roulette-bet-btn {
  padding: 0.5rem 1rem;
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid var(--accent-1);
  color: var(--text-100);
  border-radius: 4px;
  font-size: 0.875rem;
}

.roulette-bet-btn.active {
  background: var(--accent-1);
  color: white;
}

.roulette-wheel {
  margin: 1.5rem 0;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 50%;
  width: 150px;
  height: 150px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-1);
}

.game-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  min-height: 50px;
}

.slab-disclosure-nz {
  background: var(--pastel);
  color: var(--bg-900);
  padding: 3rem 0;
  margin: 4rem 0 0;
}

.slab-disclosure-nz h2 {
  color: var(--bg-900);
  text-align: center;
  margin-bottom: 1.5rem;
}

.slab-disclosure-nz ul {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.slab-disclosure-nz li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.slab-disclosure-nz li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: 700;
}

.site-footer {
  background: rgba(11, 11, 18, 0.98);
  border-top: 2px solid rgba(20, 184, 166, 0.2);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

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

.footer-legal {
  text-align: center;
  color: var(--muted-400);
  font-size: 0.875rem;
}

.footer-legal p {
  margin: 0.25rem 0;
}

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

  h2 {
    font-size: 1.5rem;
  }

  .site-header nav ul {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .hero-section {
    padding: 4rem 0;
  }

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

  .age-gate-content {
    padding: 2rem;
    margin: 1rem;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
