:root {
  --bg-900: #0b0b12;
  --bg-800: #151520;
  --bg-700: #1f1f2e;
  --text-100: #f6f7fb;
  --text-200: #e4e6ed;
  --muted-400: #a6adbb;
  --muted-500: #8891a3;
  --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;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-900);
  color: var(--text-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

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

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

.frame-kiwiplaygame-nz[data-gated="true"] #main-content {
  display: none;
}

.sticky-header {
  position: sticky;
  top: 0;
  background: rgba(11, 11, 18, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  padding: 1rem 0;
}

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

.logo-text {
  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;
}

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

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

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

.hero-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(236, 72, 153, 0.15));
}

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

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

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

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
}

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

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

.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:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

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

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

.about-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.credits-section {
  padding: 2rem 0;
  background: var(--bg-700);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-shared {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

.btn-reset-credits {
  padding: 0.5rem 1rem;
  background: var(--bg-800);
  border: 1px solid var(--muted-500);
  color: var(--text-100);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn-reset-credits:hover {
  background: var(--bg-900);
  border-color: var(--accent-1);
}

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

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

.games-intro {
  text-align: center;
  color: var(--muted-400);
  margin-bottom: 3rem;
}

.deck-game-trio {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .deck-game-trio {
    grid-template-columns: 1fr;
  }
}

.tile-gamelet {
  background: var(--bg-800);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--card-glow);
  transition: transform 0.2s ease;
}

.tile-gamelet:hover {
  transform: translateY(-4px);
}

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

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

.game-container {
  background: var(--bg-700);
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 300px;
}

.game-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.game-btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

.game-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.game-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.game-info {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-800);
  border-radius: 6px;
  text-align: center;
}

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

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

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

.slab-disclosure-nz {
  padding: 3rem 0;
  background: var(--pastel);
  color: #1f1f2e;
}

.slab-disclosure-nz h2 {
  color: #1f1f2e;
  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 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

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

#main-footer {
  background: var(--bg-800);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-inner {
  text-align: center;
}

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

.footer-info p {
  color: var(--muted-400);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-800);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.age-gate-content p {
  text-align: center;
  color: var(--text-200);
  margin-bottom: 1.5rem;
}

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

.age-gate-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-400);
  margin-bottom: 0;
}

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

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

.drawer-content h2 {
  margin-bottom: 1rem;
}

.cookie-options {
  margin: 1.5rem 0;
}

.cookie-option {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-700);
  border-radius: 6px;
}

.cookie-option label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.cookie-option input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.cookie-desc {
  margin-top: 0.5rem;
  margin-left: 2rem;
  font-size: 0.875rem;
  color: var(--muted-400);
  margin-bottom: 0;
}

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

.legal-page {
  padding: 3rem 0;
}

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

.last-updated {
  color: var(--muted-400);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

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

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.legal-page h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--accent-1);
}

.legal-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

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

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

.contact-wrapper {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 2fr 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

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

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

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

.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.success-message {
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--success);
  border-radius: 8px;
  color: var(--success);
  text-align: center;
}

.contact-info-section {
  background: var(--bg-800);
  padding: 2rem;
  border-radius: 12px;
  height: fit-content;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--accent-1);
}

.contact-detail p {
  color: var(--text-200);
  line-height: 1.6;
  margin-bottom: 0;
}

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

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

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

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
  justify-items: center;
}

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

.blackjack-table {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hand-display {
  padding: 1rem;
  background: var(--bg-800);
  border-radius: 6px;
}

.hand-display h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

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

.card {
  padding: 0.5rem 0.75rem;
  background: white;
  color: #1f1f2e;
  border-radius: 4px;
  font-weight: 700;
  border: 2px solid #ddd;
}

.card.red {
  color: #dc2626;
}

.roulette-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.betting-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.bet-btn {
  padding: 0.75rem;
  background: var(--bg-800);
  border: 2px solid var(--muted-500);
  color: var(--text-100);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bet-btn:hover:not(:disabled) {
  background: var(--bg-700);
  border-color: var(--accent-1);
}

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

.bet-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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