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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-nav: #0d0d14;
  --gold: #ffd700;
  --gold-dark: #b8960f;
  --gold-light: #ffe44d;
  --red: #c0392b;
  --red-dark: #8b0000;
  --green: #2ecc71;
  --green-dark: #1a8c4e;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --border: #2a2a3e;
  --shadow: rgba(0, 0, 0, 0.4);
  --glow-gold: rgba(255, 215, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

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

ul {
  list-style: none;
}

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

/* ===== AGE VERIFICATION MODAL ===== */
.age-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

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

.age-modal-content {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 40px var(--glow-gold);
  animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.age-modal-content .age-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
}

.age-modal-content h2 {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.age-modal-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}

.age-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-age-yes {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-age-yes:hover {
  background: var(--gold-light);
  transform: scale(1.03);
}

.btn-age-no {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-age-no:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ===== HEADER / NAVIGATION ===== */
header {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--text-primary);
  font-weight: 300;
}

.logo .star {
  color: var(--gold);
  font-size: 28px;
}

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

nav a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

nav a.age-badge {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
}

nav a.age-badge:hover {
  background: #e74c3c;
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a0a 40%, #0d0d20 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(192, 57, 43, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text h1 .highlight {
  color: var(--gold);
}

.hero-text p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border: none;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25);
  color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-small {
  padding: 10px 24px;
  font-size: 14px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.1);
}

/* ===== RESPONSIBLE GAMBLING BANNER ===== */
.responsible-banner {
  background: linear-gradient(135deg, var(--green-dark), #0d3b1e);
  padding: 16px 0;
  text-align: center;
}

.responsible-banner p {
  font-size: 14px;
  color: #a0d8b0;
}

.responsible-banner a {
  color: var(--gold);
  font-weight: 600;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.section-title .highlight {
  color: var(--gold);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ===== GAME CARDS ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.1);
}

.game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #1a1a2e;
}

.game-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold);
}

.game-card-body p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.game-card-body .btn-primary {
  align-self: flex-start;
}

.age-warning-small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.age-warning-small .badge {
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
}

/* ===== GAME DETAIL PAGE ===== */
.game-detail {
  padding: 40px 0 60px;
}

.game-detail-header {
  text-align: center;
  margin-bottom: 32px;
}

.game-detail-header h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.game-detail-header h1 .highlight {
  color: var(--gold);
}

.game-detail-header .age-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
  margin-top: 8px;
}

.game-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  margin-bottom: 40px;
}

.game-iframe-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-description {
  max-width: 800px;
  margin: 0 auto 40px;
}

.game-description h2 {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 16px;
}

.game-description p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.game-description ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.game-description ul li {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
  list-style: disc;
}

.game-disclaimer {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}

.game-disclaimer p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 0;
}

.game-disclaimer strong {
  color: var(--gold);
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a0a 50%, #0d0d20 100%);
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 12px;
}

.page-header h1 .highlight {
  color: var(--gold);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CONTENT PAGES ===== */
.content-page {
  padding: 60px 0;
}

.content-page h2 {
  font-size: 28px;
  color: var(--gold);
  margin: 40px 0 16px;
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

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

.content-page ul,
.content-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-page ul li,
.content-page ol li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.content-page ul li {
  list-style: disc;
}

.content-page ol li {
  list-style: decimal;
}

.content-page .highlight-box {
  background: rgba(255, 215, 0, 0.05);
  border-left: 4px solid var(--gold);
  padding: 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.content-page .highlight-box p {
  margin-bottom: 0;
}

.content-page .highlight-box strong {
  color: var(--gold);
}

.responsible-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.responsible-card h3 {
  color: var(--green);
  margin-top: 0;
}

.responsible-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

/* ===== AGE PAGE ===== */
.age-page-hero {
  text-align: center;
  padding: 60px 0;
}

.age-page-hero .age-icon-big {
  font-size: 100px;
  display: block;
  margin-bottom: 24px;
}

.age-page-hero h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
}

.age-page-hero h1 .highlight {
  color: var(--gold);
}

.age-page-hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CONTACT PAGE ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.contact-card .icon {
  font-size: 36px;
  display: block;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--gold);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-col .logo {
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-bottom .gamble-aware {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-bottom .gamble-aware img {
  height: 40px;
}

.age-restricted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.3);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

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

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 16px;
    width: 100%;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .game-detail-header h1 {
    font-size: 28px;
  }

  .age-modal-content {
    padding: 28px;
  }

  .age-modal-content h2 {
    font-size: 22px;
  }

  .age-buttons {
    flex-direction: column;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 24px;
    font-size: 14px;
  }

  .header-inner {
    height: 60px;
  }

  .logo {
    font-size: 20px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .game-detail-header h1 {
    font-size: 24px;
  }
}
