:root {
  --bg-900: #ffffff;
  --text-100: #1a1a1a;
  --muted-400: #666666;
  --accent-1: #ffd700;
  --accent-2: #ffed4e;
  --accent-3: #ffc107;
  --focus-ring: #ffd700;
  --pastel: #fffef0;
  --pastel-border: #ffe082;
  --card-glow: 0 6px 30px rgba(255, 215, 0, 0.4);
  --warning-bg: #fffbea;
  --warning-border: #ffd700;
}

* {
  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(255, 255, 255, 0.98);
  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(255, 215, 0, 0.15), rgba(255, 237, 78, 0.15));
  border: 3px solid var(--accent-1);
  border-radius: 16px;
  padding: 3rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.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(255, 255, 255, 0.98);
  border-top: 3px solid var(--accent-1);
  padding: 2rem;
  z-index: 9000;
  transform: translateY(100%);
  transition: transform 0.3s;
  box-shadow: 0 -4px 24px rgba(255, 215, 0, 0.2);
}

.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(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(255, 215, 0, 0.5);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

.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(255, 215, 0, 0.15), 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(255, 215, 0, 0.2), rgba(255, 237, 78, 0.2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.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(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  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(255, 215, 0, 0.2);
  border: 2px 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(255, 193, 7, 0.2), rgba(255, 237, 78, 0.2));
  border-radius: 50%;
  width: 150px;
  height: 150px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 215, 0, 0.4);
}

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

.game-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  min-height: 50px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.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(255, 255, 255, 0.98);
  border-top: 3px solid rgba(255, 215, 0, 0.5);
  padding: 3rem 0 2rem;
  margin-top: 0;
  box-shadow: 0 -2px 8px rgba(255, 215, 0, 0.1);
}

.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%;
  }
}

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

.feature-block {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  transition: transform 0.2s;
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-glow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-block h3 {
  color: var(--accent-1);
  margin-bottom: 0.75rem;
}

.feature-block p {
  color: var(--muted-400);
  font-size: 0.95rem;
  line-height: 1.6;
}

.warning-section {
  background: var(--warning-bg);
  border: 4px solid var(--warning-border);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}

.warning-section h2 {
  color: var(--accent-1);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.warning-section ul {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.warning-section li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-100);
  font-size: 1rem;
  line-height: 1.7;
}

.warning-section li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-size: 1.2rem;
}

.warning-section .cta-link {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 600;
}

.warning-section .cta-link a {
  color: var(--accent-2);
  text-decoration: underline;
}

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

.page-content h1 {
  color: var(--accent-1);
  margin-bottom: 2rem;
}

.page-content h2 {
  color: var(--accent-2);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content p, .page-content li {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.page-content strong {
  color: var(--accent-1);
}

.page-content a {
  color: var(--accent-2);
  text-decoration: underline;
}

.contact-info {
  background: rgba(255, 215, 0, 0.1);
  border-left: 5px solid var(--accent-1);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.btn-exit {
  display: inline-block;
  background: #c00;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  border: none;
}

.btn-exit:hover {
  background: #a00;
  color: white;
}

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

  html {
    scroll-behavior: auto;
  }
}
