:root {
  --bg-900: #0b0b12;
  --bg-800: #141420;
  --text-100: #f6f7fb;
  --text-200: #e5e7eb;
  --muted-400: #a6adbb;
  --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;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-900);
  color: var(--text-100);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

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

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

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

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-200);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

nav a:hover {
  color: var(--text-100);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 6rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
}

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

.hero p {
  font-size: 1.25rem;
  color: var(--muted-400);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-primary, .btn-secondary {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-100);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-200);
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1rem;
}

.credits-shared {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.credits-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.credits-icon {
  color: var(--accent-2);
}

.credits-reset {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.credits-reset:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

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

.games-container {
  max-width: 1280px;
  margin: 0 auto;
}

.game-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.game-header {
  margin-bottom: 1.5rem;
}

.game-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.game-desc {
  color: var(--muted-400);
  font-size: 0.95rem;
}

.bet-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bet-label {
  font-weight: 600;
  min-width: 60px;
}

.bet-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-100);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bet-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.bet-input {
  width: 100px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-100);
  font-size: 1rem;
  text-align: center;
}

.bet-input:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.game-btn-primary, .game-btn-secondary, .game-btn-tertiary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.game-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.game-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-100);
}

.game-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.game-btn-tertiary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted-400);
}

.game-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.game-result-push {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

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

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

.slots-reel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slots-reel.spinning {
  animation: spin 0.1s linear infinite;
}

.slots-symbol {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

@keyframes spin {
  from { filter: blur(4px); }
  to { filter: blur(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .slots-reel.spinning {
    animation: none;
    opacity: 0.6;
  }
}

.slots-controls, .blackjack-controls, .roulette-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.blackjack-table {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.blackjack-dealer, .blackjack-player {
  text-align: center;
}

.hand-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hand {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 120px;
}

.card {
  width: 70px;
  height: 100px;
  background: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-red {
  color: #ef4444;
}

.card-black {
  color: #1f2937;
}

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

.card-rank {
  font-size: 1.5rem;
}

.card-suit {
  font-size: 1.25rem;
}

.hand-score {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted-400);
}

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

.roulette-wheel {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.roulette-display {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 4px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.roulette-display.spinning {
  animation: rotate 0.5s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .roulette-display.spinning {
    animation: none;
  }
}

.roulette-number {
  font-size: 3rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-number-red {
  background: #ef4444;
  color: white;
}

.roulette-number-black {
  background: #1f2937;
  color: white;
}

.roulette-number-green {
  background: #10b981;
  color: white;
}

.roulette-board {
  margin: 2rem 0;
}

.roulette-bet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.rlt-bet-btn {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-100);
  font-weight: 600;
  transition: all 0.2s;
}

.rlt-bet-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.rlt-bet-red {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.rlt-bet-red:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
}

.rlt-bet-black {
  background: rgba(31, 41, 55, 0.3);
  border-color: #4b5563;
}

.rlt-bet-black:hover:not(:disabled) {
  background: rgba(31, 41, 55, 0.5);
}

.roulette-active-bets {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  min-height: 60px;
}

.active-bets-header {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--muted-400);
}

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

.active-bet-item {
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--accent-2);
  border-radius: 6px;
  font-size: 0.875rem;
}

.disclosure-section {
  background: var(--pastel);
  color: #1f2937;
  padding: 3rem 1.5rem;
  margin: 4rem 0;
}

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

.disclosure-content h2 {
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

.disclosure-content ul {
  list-style: none;
  padding: 0;
}

.disclosure-content li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

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

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

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-100);
}

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

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

.footer-section a {
  color: var(--muted-400);
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--text-100);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--muted-400);
  font-size: 0.875rem;
}

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

.age-gate-content {
  background: var(--bg-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--card-glow);
}

.age-gate-icon {
  color: var(--accent-2);
  margin-bottom: 1.5rem;
}

.age-gate-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.age-gate-desc {
  color: var(--text-200);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.age-gate-legal {
  color: var(--muted-400);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.age-gate-link {
  color: var(--accent-1);
  text-decoration: underline;
}

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

.btn-age-confirm, .btn-age-decline {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
}

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

.btn-age-confirm:hover {
  transform: translateY(-2px);
}

.btn-age-decline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-200);
}

.btn-age-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.cookie-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-800);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

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

.cookie-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cookie-title {
  font-size: 1.5rem;
}

.cookie-close {
  background: transparent;
  border: none;
  color: var(--text-200);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-close:hover {
  color: var(--text-100);
}

.cookie-drawer-body {
  margin-bottom: 2rem;
}

.cookie-intro {
  color: var(--text-200);
  margin-bottom: 1.5rem;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.cookie-category-header {
  margin-bottom: 0.5rem;
}

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

.cookie-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-checkbox:disabled {
  cursor: not-allowed;
}

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

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

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

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

.btn-cookie-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-100);
}

.btn-cookie-tertiary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted-400);
}

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

.page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.page-content {
  color: var(--text-200);
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-100);
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-100);
}

.page-content p {
  margin-bottom: 1rem;
}

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

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

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

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

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

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-100);
  font-family: inherit;
  font-size: 1rem;
}

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

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

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

.form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
}

.contact-info {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted-400);
}

@media (max-width: 768px) {
  nav ul {
    gap: 0.75rem;
  }

  nav a {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .slots-reels {
    flex-wrap: wrap;
  }

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

  .card {
    width: 60px;
    height: 85px;
    font-size: 1.25rem;
  }

  .roulette-display {
    width: 150px;
    height: 150px;
  }

  .roulette-number {
    font-size: 2rem;
    width: 90px;
    height: 90px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
