:root {
  --bg-900: #0b0b12;
  --bg-800: #151520;
  --bg-700: #1f1f2e;
  --text-100: #f6f7fb;
  --text-200: #e4e6ef;
  --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);
  --spacing-unit: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--spacing-unit);
}

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;
  border-radius: 4px;
}

button, input, textarea, select {
  font-family: inherit;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 3);
}

.frame-flipsanity-no {
  background: var(--bg-800);
  border-bottom: 1px solid var(--bg-700);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-100);
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--text-100);
}

.logo svg {
  color: var(--accent-2);
}

.logo-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
  gap: calc(var(--spacing-unit) * 3);
}

nav a {
  color: var(--muted-400);
  font-weight: 500;
  transition: color 0.2s ease;
  padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1);
  border-radius: 4px;
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--text-100);
  background: var(--bg-700);
}

.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.3), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(236, 72, 153, 0.3), transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: calc(var(--spacing-unit) * 4);
}

.hero-title {
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: calc(var(--spacing-unit) * 4);
  color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-2);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.about-section {
  padding: calc(var(--spacing-unit) * 8) 0;
  background: var(--bg-800);
}

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

.credits-section {
  padding: calc(var(--spacing-unit) * 4) 0;
  background: var(--bg-900);
}

.credits-shared {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 2);
  background: var(--bg-700);
  border-radius: 12px;
  max-width: 400px;
  margin: 0 auto;
}

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

.credits-value {
  font-size: 2rem;
  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;
}

.btn-reset {
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
  background: var(--bg-900);
  color: var(--text-100);
  border: 1px solid var(--muted-500);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.games-section {
  padding: calc(var(--spacing-unit) * 8) 0;
  background: var(--bg-900);
}

.games-section h2 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.deck-game-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.tile-gamelet {
  background: var(--bg-800);
  border: 1px solid var(--bg-700);
  border-radius: 16px;
  padding: calc(var(--spacing-unit) * 3);
  box-shadow: var(--card-glow);
  transition: transform 0.2s ease;
}

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

.tile-gamelet h3 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.tile-gamelet > p {
  text-align: center;
  color: var(--muted-400);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.game-container {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

.slots-reels {
  display: flex;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 3);
  background: var(--bg-700);
  border-radius: 12px;
}

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

.symbol {
  font-size: 3rem;
}

.blackjack-table {
  background: var(--bg-700);
  border-radius: 12px;
  padding: calc(var(--spacing-unit) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.hand {
  text-align: center;
}

.hand h4 {
  margin-bottom: calc(var(--spacing-unit) * 1);
  color: var(--muted-400);
}

.cards {
  display: flex;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 1);
  flex-wrap: wrap;
  min-height: 60px;
}

.card {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 1.5);
  background: #fff;
  color: #000;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-hidden {
  background: var(--bg-900);
  color: var(--muted-400);
}

.hand-total {
  margin-top: calc(var(--spacing-unit) * 1);
  font-weight: 600;
  color: var(--text-200);
}

.roulette-wheel {
  background: var(--bg-700);
  border-radius: 12px;
  padding: calc(var(--spacing-unit) * 4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.wheel-result {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.roulette-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacing-unit) * 1);
}

.game-controls {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  flex-wrap: wrap;
  justify-content: center;
}

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

.game-controls input[type="number"] {
  padding: calc(var(--spacing-unit) * 1);
  background: var(--bg-700);
  border: 1px solid var(--muted-500);
  border-radius: 6px;
  color: var(--text-100);
  width: 80px;
  text-align: center;
}

.btn-game {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5);
  background: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-game:hover:not(:disabled) {
  background: var(--accent-3);
  transform: scale(1.05);
}

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

.btn-bet {
  width: 100%;
  padding: calc(var(--spacing-unit) * 1.5);
}

.game-result {
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
  min-height: 30px;
  color: var(--accent-1);
}

.slab-disclosure-no {
  background: var(--pastel);
  color: #1f2937;
  padding: calc(var(--spacing-unit) * 6) 0;
}

.slab-disclosure-no h2 {
  color: #1f2937;
}

.slab-disclosure-no ul {
  list-style: none;
  max-width: 800px;
}

.slab-disclosure-no li {
  padding: calc(var(--spacing-unit) * 1) 0;
  padding-left: calc(var(--spacing-unit) * 3);
  position: relative;
}

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

footer {
  padding: calc(var(--spacing-unit) * 4) 0;
  background: var(--bg-800);
  border-top: 1px solid var(--bg-700);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a, .link-button {
  color: var(--muted-400);
  transition: color 0.2s ease;
}

.link-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
}

.footer-links a:hover, .link-button:hover {
  color: var(--text-100);
}

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

.footer-info p {
  margin: calc(var(--spacing-unit) * 0.5) 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: calc(var(--spacing-unit) * 2);
}

.modal-content {
  background: var(--bg-800);
  border-radius: 16px;
  padding: calc(var(--spacing-unit) * 4);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--bg-700);
}

.modal-content h2 {
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-align: center;
}

.modal-content p {
  margin-bottom: calc(var(--spacing-unit) * 3);
  text-align: center;
  color: var(--text-200);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  justify-content: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.modal-footer-text {
  font-size: 0.875rem;
  color: var(--muted-400);
  margin-bottom: 0 !important;
}

.drawer-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-800);
  border-top: 1px solid var(--bg-700);
  padding: calc(var(--spacing-unit) * 3);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

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

.drawer-content h2 {
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-align: center;
}

.drawer-content > p {
  margin-bottom: calc(var(--spacing-unit) * 3);
  text-align: center;
  color: var(--text-200);
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.cookie-option label {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
  cursor: pointer;
}

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

.drawer-actions {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  justify-content: center;
  flex-wrap: wrap;
}

.page-content {
  min-height: calc(100vh - 300px);
  padding: calc(var(--spacing-unit) * 8) 0;
}

.page-content h1 {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.page-content section {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.page-content p {
  margin-bottom: calc(var(--spacing-unit) * 2);
  line-height: 1.7;
  color: var(--text-200);
}

.page-content ul {
  margin-left: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.page-content li {
  margin-bottom: calc(var(--spacing-unit) * 1);
  line-height: 1.7;
  color: var(--text-200);
}

.contact-info {
  background: var(--bg-800);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: 12px;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.contact-form {
  background: var(--bg-800);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: 12px;
}

.form-group {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-group label {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 1);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: calc(var(--spacing-unit) * 1.5);
  background: var(--bg-700);
  border: 1px solid var(--muted-500);
  border-radius: 8px;
  color: var(--text-100);
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.form-success {
  background: var(--bg-800);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: 12px;
  border: 2px solid var(--accent-1);
  text-align: center;
}

@media (max-width: 768px) {
  nav ul {
    gap: calc(var(--spacing-unit) * 1.5);
  }

  nav a {
    font-size: 0.875rem;
  }

  .hero-cta {
    flex-direction: column;
  }

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

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

  .btn {
    width: 100%;
  }

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

  .footer-links {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
  }
}

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

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
  }

  .roulette-options {
    grid-template-columns: 1fr;
  }
}
