:root {
  --primary: #06b6d4;
  --primary-glow: rgba(6, 182, 212, 0.5);
  --secondary: #0891b2;
  --accent: #67e8f9;
  --accent-glow: rgba(103, 232, 249, 0.3);
  --bg-from: #042f2e;
  --bg-via: #134e4a;
  --bg-to: #021716;
  --card-bg: rgba(19, 78, 74, 0.6);
  --card-border: rgba(6, 182, 212, 0.25);
  --text-light: #f0fdfa;
  --text-gray: #ccfbf1;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans Pro', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 50%, var(--bg-to) 100%);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

a:hover {
  color: var(--primary);
  transform: scale(1.01);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 47, 46, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--primary);
  font-weight: 600;
  text-shadow: 3px 3px 0 var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo:hover {
  transform: scale(1.01);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--text-light);
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

nav a:hover {
  background: var(--card-bg);
  color: var(--accent);
  transform: scale(1.01);
}

.age-badge {
  background: #dc2626;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 3px 3px 0 rgba(185, 28, 28, 0.5);
}

.age-badge-large {
  background: #dc2626;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 24px;
  box-shadow: 5px 5px 0 rgba(185, 28, 28, 0.5);
  display: inline-block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  background: linear-gradient(135deg, rgba(4, 47, 46, 0.9) 0%, rgba(19, 78, 74, 0.8) 50%, rgba(2, 23, 22, 0.9) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><text x="10" y="50" font-size="40" fill="rgba(6,182,212,0.05)">♠</text><text x="60" y="50" font-size="40" fill="rgba(6,182,212,0.05)">♥</text><text x="10" y="90" font-size="40" fill="rgba(6,182,212,0.05)">♦</text><text x="60" y="90" font-size="40" fill="rgba(6,182,212,0.05)">♣</text></svg>') repeat;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  font-size: 72px;
  margin-bottom: 20px;
  color: var(--primary);
  text-shadow: 5px 5px 0 var(--secondary);
  animation: fadeInUp 0.8s ease-in-out;
}

.hero p {
  font-size: 24px;
  margin-bottom: 40px;
  color: var(--text-gray);
  animation: fadeInUp 1s ease-in-out;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease-in-out;
}

.btn {
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-from);
  box-shadow: 5px 5px 0 var(--secondary);
}

.btn-primary:hover {
  transform: translate(2px, 2px) scale(1.01);
  box-shadow: 3px 3px 0 var(--secondary);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 5px 5px 0 var(--accent-glow);
}

.btn-secondary:hover {
  background: var(--card-bg);
  transform: translate(2px, 2px) scale(1.01);
  box-shadow: 3px 3px 0 var(--accent-glow);
}

.hero-disclaimer {
  margin-top: 30px;
  font-size: 14px;
  color: var(--text-gray);
  opacity: 0.8;
}

section {
  padding: 100px 20px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 48px;
  color: var(--primary);
  text-shadow: 4px 4px 0 var(--secondary);
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.section-header p {
  font-size: 20px;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  box-shadow: 5px 5px 0 var(--secondary);
  cursor: pointer;
}

.game-card:hover {
  transform: translate(2px, 2px) scale(1.01);
  box-shadow: 3px 3px 0 var(--secondary);
  border-color: var(--primary);
}

.game-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-via), var(--bg-to));
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.2s ease-in-out;
}

.game-card:hover .game-image {
  transform: scale(1.01);
}

.game-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-via), var(--bg-to));
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(4, 47, 46, 0.5);
}

.game-category {
  background: var(--primary);
  color: var(--bg-from);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.game-info .age-badge {
  padding: 4px 10px;
  font-size: 12px;
}

.game-title {
  padding: 16px;
  font-size: 20px;
  color: var(--text-light);
  min-height: 60px;
  display: flex;
  align-items: center;
}

.play-demo-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--bg-from);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: var(--font-body);
  box-shadow: inset 0 -3px 0 var(--secondary);
}

.play-demo-btn:hover {
  background: var(--accent);
  transform: scale(1.01);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  box-shadow: 5px 5px 0 var(--secondary);
}

.feature-card:hover {
  transform: translate(2px, 2px) scale(1.01);
  box-shadow: 3px 3px 0 var(--secondary);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-gray);
  font-size: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--secondary);
  transition: all 0.2s ease-in-out;
}

.step-card:hover {
  transform: translate(2px, 2px) scale(1.01);
  box-shadow: 3px 3px 0 var(--secondary);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--bg-from);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 3px 3px 0 var(--secondary);
}

.step-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent);
}

.step-card p {
  color: var(--text-gray);
}

.responsible-gaming {
  background: var(--card-bg);
  border: 3px solid #dc2626;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 6px 6px 0 rgba(185, 28, 28, 0.5);
}

.responsible-gaming h2 {
  color: #dc2626;
  margin-bottom: 30px;
  text-shadow: 3px 3px 0 rgba(185, 28, 28, 0.5);
}

.responsible-gaming p {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.responsible-gaming ul {
  list-style: none;
  margin: 30px 0;
  text-align: left;
  max-width: 600px;
  margin: 30px auto;
}

.responsible-gaming li {
  padding: 12px 0;
  color: var(--text-gray);
  font-size: 16px;
  border-bottom: 1px solid var(--card-border);
}

.responsible-gaming li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--secondary);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: all 0.2s ease-in-out;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-gray);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-question::after {
  content: '▼';
  font-size: 14px;
  transition: transform 0.2s ease-in-out;
  color: var(--primary);
}

footer {
  background: rgba(4, 47, 46, 0.95);
  border-top: 2px solid var(--card-border);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

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

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 22px;
}

.footer-section p, .footer-section a {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 2;
  display: block;
}

.footer-section a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-disclaimer {
  background: var(--card-bg);
  border: 2px solid #dc2626;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(185, 28, 28, 0.5);
}

.footer-disclaimer p {
  color: var(--text-gray);
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
  color: var(--text-gray);
  font-size: 14px;
}

.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-from);
  border: 3px solid var(--primary);
  border-radius: 16px;
  width: 100%;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px var(--primary-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 2px solid var(--card-border);
  gap: 15px;
}

.modal-header h2 {
  color: var(--primary);
  font-size: 24px;
  flex: 1;
}

.close-btn {
  background: #dc2626;
  border: none;
  color: white;
  font-size: 32px;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  box-shadow: 3px 3px 0 rgba(185, 28, 28, 0.5);
  line-height: 1;
}

.close-btn:hover {
  transform: translate(1px, 1px) scale(1.01);
  box-shadow: 2px 2px 0 rgba(185, 28, 28, 0.5);
}

#game-iframe {
  flex: 1;
  border: none;
  width: 100%;
  background: black;
}

.demo-unavailable {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  color: var(--text-gray);
  font-size: 24px;
}

.age-verification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-verification-modal.active {
  display: flex;
}

.age-verification-content {
  background: var(--bg-from);
  border: 3px solid #dc2626;
  border-radius: 16px;
  padding: 60px 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 60px rgba(220, 38, 38, 0.6);
}

.age-verification-content .age-badge-large {
  margin-bottom: 30px;
}

.age-verification-content h2 {
  color: #dc2626;
  font-size: 36px;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 rgba(185, 28, 28, 0.5);
}

.age-verification-content p {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.7;
}

.age-verification-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-verification-buttons .btn {
  min-width: 150px;
}

.btn-danger {
  background: #dc2626;
  color: white;
  box-shadow: 5px 5px 0 rgba(185, 28, 28, 0.5);
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translate(2px, 2px) scale(1.01);
  box-shadow: 3px 3px 0 rgba(185, 28, 28, 0.5);
}

.category-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 12px 30px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text-light);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  font-family: var(--font-body);
  box-shadow: 3px 3px 0 var(--secondary);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--bg-from);
  border-color: var(--primary);
  transform: translate(1px, 1px) scale(1.01);
  box-shadow: 2px 2px 0 var(--secondary);
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px;
}

.page-content h1 {
  font-size: 48px;
  color: var(--primary);
  text-shadow: 4px 4px 0 var(--secondary);
  margin-bottom: 40px;
  text-align: center;
}

.page-content h2 {
  font-size: 32px;
  color: var(--accent);
  margin-top: 50px;
  margin-bottom: 20px;
}

.page-content h3 {
  font-size: 24px;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-content p {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 16px;
}

.page-content ul, .page-content ol {
  margin: 20px 0 20px 30px;
  color: var(--text-gray);
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.page-content strong {
  color: var(--text-light);
  font-weight: 600;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 56px;
  }
  .hero p {
    font-size: 20px;
  }
  .section-header h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4, 47, 46, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    border-bottom: 2px solid var(--card-border);
  }
  nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  nav a {
    width: 100%;
    text-align: center;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 18px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .section-header h2 {
    font-size: 32px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .modal-content {
    height: 95vh;
  }
  .modal-header {
    padding: 15px 20px;
  }
  .modal-header h2 {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }
  .btn {
    padding: 14px 30px;
    font-size: 16px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .page-content h1 {
    font-size: 36px;
  }
}