@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;600;700&display=swap');

:root {
  --color-cream: #FDF6EC;
  --color-warm-bg: #FAF0E4;
  --color-terracotta: #C4622D;
  --color-terracotta-dark: #A34E1F;
  --color-gold: #D4A843;
  --color-gold-light: #F0D78C;
  --color-olive: #6B7B3A;
  --color-olive-dark: #4A5A28;
  --color-navy: #2C3E50;
  --color-dark: #1E1E1E;
  --color-text: #3B3B3B;
  --color-text-light: #6D6D6D;
  --color-white: #FFFFFF;
  --color-border: #E8DDD0;
  --color-card-bg: #FFFFFF;
  --color-accent-soft: #F5E6D3;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--color-navy);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-terracotta-dark); }

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

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

/* =========== HEADER =========== */
.site-header {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-navy);
  cursor: pointer;
}

.age-badge {
  background: var(--color-terracotta);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* =========== HERO =========== */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, #3D5A80 50%, var(--color-terracotta-dark) 100%);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(212,168,67,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(196,98,45,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.2rem;
  margin-bottom: 16px;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 32px;
  opacity: 0.92;
  line-height: 1.8;
  position: relative;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  transition: all var(--transition);
  position: relative;
}

.hero-cta:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,67,0.4);
  color: var(--color-dark);
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  position: relative;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

/* =========== SECTIONS =========== */
.section {
  padding: 70px 0;
}

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

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

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold));
  margin: 12px auto 0;
  border-radius: 2px;
}

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

.game-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.game-card-img.slot-bg {
  background: linear-gradient(135deg, #6B3FA0, #9B59B6);
}

.game-card-img.roulette-bg {
  background: linear-gradient(135deg, #1A5C2D, #27AE60);
}

.game-card-img.cards-bg {
  background: linear-gradient(135deg, #1A3C6D, #3498DB);
}

.game-card-img.dice-bg {
  background: linear-gradient(135deg, var(--color-terracotta-dark), var(--color-terracotta));
}

.game-card-img.wheel-bg {
  background: linear-gradient(135deg, #8E5A2B, var(--color-gold));
}

.game-card-img.bingo-bg {
  background: linear-gradient(135deg, #C0392B, #E74C3C);
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.game-card-body p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.game-tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-terracotta);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 6px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 12px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-play:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-1px);
  color: var(--color-white);
}

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

.feature-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* =========== HOW IT WORKS =========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step-card {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-gold));
  color: var(--color-white);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* =========== FAQ =========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Lato', sans-serif;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-terracotta);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========== RESPONSIBLE PLAY =========== */
.responsible-banner {
  background: linear-gradient(135deg, var(--color-olive), var(--color-olive-dark));
  color: var(--color-white);
  padding: 48px 0;
  text-align: center;
}

.responsible-banner h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.responsible-banner p {
  max-width: 700px;
  margin: 0 auto 24px;
  opacity: 0.92;
}

.responsible-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.responsible-link {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.responsible-link:hover {
  background: rgba(255,255,255,0.25);
  color: var(--color-white);
}

/* =========== FOOTER =========== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.footer-bottom .age-notice {
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* =========== LEGAL / CONTENT PAGES =========== */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy), #3D5A80);
  color: var(--color-white);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.4rem;
}

.page-content {
  background: var(--color-white);
  max-width: 860px;
  margin: -24px auto 48px;
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
}

.page-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.page-content ul, .page-content ol {
  margin: 0 0 16px 24px;
  font-size: 0.95rem;
}

.page-content li { margin-bottom: 6px; }

/* =========== GAME PAGE =========== */
.game-page-hero {
  background: linear-gradient(135deg, var(--color-navy), var(--color-terracotta-dark));
  color: var(--color-white);
  padding: 40px 0;
  text-align: center;
}

.game-page-hero h1 { color: var(--color-white); font-size: 2.2rem; }

.game-container {
  max-width: 700px;
  margin: 32px auto;
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.game-canvas-wrap {
  width: 100%;
  min-height: 400px;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.game-canvas-wrap canvas {
  max-width: 100%;
}

.game-controls {
  padding: 20px;
  text-align: center;
  background: var(--color-warm-bg);
}

.game-info-section {
  max-width: 700px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

/* =========== BREADCRUMB =========== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.breadcrumb a { color: var(--color-terracotta); }
.breadcrumb span { margin: 0 6px; }

/* =========== MOBILE =========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 50px 0; }
  .section { padding: 48px 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 20px;
    border-bottom: 2px solid var(--color-border);
    gap: 16px;
  }

  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }

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

  .page-content {
    margin: -16px 12px 32px;
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-badges { gap: 10px; }
  .games-grid { grid-template-columns: 1fr; }
}
