/* ===================================================
   British Legacy Club — Global Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:        #0d1b35;
  --navy-mid:    #152a50;
  --navy-light:  #1e3a6e;
  --gold:        #c9a84c;
  --gold-light:  #e2c574;
  --gold-dark:   #a07c28;
  --crimson:     #8b1a2a;
  --crimson-light: #b02335;
  --cream:       #f8f4eb;
  --cream-dark:  #ede8dc;
  --cream-mid:   #f2edd8;
  --charcoal:    #1c1c1c;
  --text:        #2c2c2c;
  --text-light:  #5a5a5a;
  --text-muted:  #8a8a8a;
  --white:       #ffffff;
  --border:      rgba(201,168,76,0.25);
  --shadow:      0 4px 24px rgba(13,27,53,0.15);
  --shadow-lg:   0 12px 48px rgba(13,27,53,0.25);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { line-height: 1.75; }

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-light);
}

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 56px;
}

/* --- Ornamental Divider --- */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(to left, transparent, var(--gold)); }
.ornament-icon { color: var(--gold); font-size: 1rem; }

/* ===================================================
   HEADER / NAVIGATION
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.transparent { background: transparent; }

.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-crest {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 12px rgba(201,168,76,0.35);
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.logo-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.4); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* Balance display */
.nav-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}
.nav-balance .balance-icon { font-size: 1rem; }

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-disclaimer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0 0;
}

.footer-disclaimer h5 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-disclaimer .help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.footer-disclaimer .help-links a {
  font-size: 0.78rem;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.age-badge {
  background: var(--crimson);
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ===================================================
   AGE GATE MODAL
   =================================================== */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,12,25,0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.age-gate-overlay.hidden { display: none; }

.age-gate-modal {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.4s ease;
}

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

.age-gate-crest {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  box-shadow: 0 4px 24px rgba(201,168,76,0.3);
}

.age-gate-modal h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 8px;
}

.age-gate-modal .subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}

.age-gate-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.age-gate-modal p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
}

.age-gate-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.age-gate-checkbox:has(input:checked) { border-color: var(--gold); }

.age-gate-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.age-gate-checkbox label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  line-height: 1.5;
}

.age-gate-checkbox label strong { color: var(--gold); }

.btn-age-confirm {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  opacity: 0.4;
  pointer-events: none;
}

.btn-age-confirm.active {
  opacity: 1;
  pointer-events: all;
}
.btn-age-confirm.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
}

.age-gate-note {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.35) !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* ===================================================
   COOKIE CONSENT
   =================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }
.cookie-banner.hidden { display: none; }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.75);
}

.cookie-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.35); }

.btn-cookie-decline {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-cookie-decline:hover { border-color: rgba(255,255,255,0.5); color: white; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.45); }

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: rgba(201,168,76,0.1); transform: translateY(-2px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }

.btn-lg { padding: 18px 42px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,26,42,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(201,168,76,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(21,42,80,0.8) 0%, transparent 70%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(201,168,76,0.04) 60px,
      rgba(201,168,76,0.04) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(201,168,76,0.04) 60px,
      rgba(201,168,76,0.04) 61px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-left { }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.hero-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero-right { position: relative; }

.hero-card-stack {
  position: relative;
  height: 480px;
}

.hero-card {
  position: absolute;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}

.hero-card:nth-child(1) {
  width: 260px;
  top: 40px;
  right: 0;
  transform: rotate(4deg);
}
.hero-card:nth-child(2) {
  width: 300px;
  top: 130px;
  left: 0;
  transform: rotate(-2deg);
}
.hero-card:nth-child(3) {
  width: 240px;
  bottom: 20px;
  right: 20px;
  transform: rotate(2deg);
}

.hero-card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.hero-card h4 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.hero-card p { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

.hero-card .card-glow {
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ===================================================
   GAMES SECTION
   =================================================== */
.games-section { background: var(--cream); }

.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(13,27,53,0.08);
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.game-card-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.game-card-thumb.slots-bg { background: linear-gradient(135deg, var(--navy), #1a3464); }
.game-card-thumb.roulette-bg { background: linear-gradient(135deg, #1a3a2a, #0d2a1a); }
.game-card-thumb.blackjack-bg { background: linear-gradient(135deg, #2a1a0d, #3a2010); }

.game-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201,168,76,0.15), transparent 70%);
}

.game-card-thumb .game-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  position: relative;
  z-index: 1;
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.game-card-body { padding: 24px; }
.game-card-body h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.3rem; }
.game-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.65; }

.game-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.game-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.game-meta-item strong { color: var(--navy); }

/* ===================================================
   FEATURES / BENEFITS SECTION
   =================================================== */
.features-section { background: var(--navy); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--crimson) 0%, #5a1020 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2, .cta-section p { position: relative; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; }

/* ===================================================
   INNER PAGES
   =================================================== */
.page-hero {
  background: var(--navy);
  padding: 120px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .subtitle { color: rgba(255,255,255,0.6); }

.page-content { padding: 80px 0; }

.page-content h2 { color: var(--navy); margin: 40px 0 16px; font-size: 1.6rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { color: var(--navy); margin: 28px 0 12px; font-size: 1.2rem; }
.page-content p { color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }
.page-content ul { margin: 0 0 20px 20px; list-style: disc; }
.page-content ul li { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; margin-bottom: 6px; }

.content-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 2px 16px rgba(13,27,53,0.06);
}

/* ===================================================
   GAME PAGES
   =================================================== */
.game-page {
  min-height: 100vh;
  background: var(--navy);
  padding-top: 80px;
}

.game-header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

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

.game-title { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.4rem; }
.game-subtitle { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.balance-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
}
.balance-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.balance-value { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.balance-unit { font-size: 0.75rem; color: var(--gold-dark); }

.game-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.game-message {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 1.1rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.game-message.win  { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.game-message.lose { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.game-message.neutral { background: rgba(201,168,76,0.1); color: var(--gold); border: 1px solid var(--border); }

.game-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.bet-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
}
.bet-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.bet-value { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold); min-width: 60px; text-align: center; }
.bet-btn {
  width: 32px;
  height: 32px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.bet-btn:hover { background: rgba(201,168,76,0.3); }

/* ===================================================
   SLOTS GAME
   =================================================== */
.slots-machine {
  background: linear-gradient(160deg, #1a2a4a, #0d1b35);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 0 60px rgba(201,168,76,0.1), inset 0 2px 0 rgba(201,168,76,0.2);
}

.slots-reels {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  background: rgba(0,0,0,0.35);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(201,168,76,0.15);
}

.reel-window {
  width: 110px;
  height: 130px;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  border: 2px solid rgba(201,168,76,0.3);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.5);
}
.reel-window::before,
.reel-window::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}
.reel-window::before { top: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent); }
.reel-window::after  { bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }

.reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reel-symbol {
  width: 110px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.slots-win-line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 0 12px rgba(201,168,76,0.8);
}
.slots-win-line.active { opacity: 1; }

/* ===================================================
   ROULETTE GAME
   =================================================== */
.roulette-table {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.roulette-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.roulette-wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
}

.roulette-wheel {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 6px solid var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.2), inset 0 0 30px rgba(0,0,0,0.3);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  position: relative;
  overflow: hidden;
}

.roulette-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 22px solid var(--gold);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.roulette-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #c9a84c, #8b5e1a);
  border-radius: 50%;
  border: 3px solid var(--gold-dark);
  box-shadow: 0 0 20px rgba(201,168,76,0.5);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.roulette-result-display {
  text-align: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 32px;
  min-width: 120px;
}
.roulette-result-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.roulette-result-number.red   { color: #ef4444; }
.roulette-result-number.black { color: rgba(255,255,255,0.9); }
.roulette-result-number.green { color: #22c55e; }
.roulette-result-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 4px; }

.betting-board {
  background: #0a4a1a;
  border: 2px solid rgba(201,168,76,0.4);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}

.betting-row {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
}
.betting-row.numbers-row { grid-template-columns: repeat(12, 1fr); }
.betting-row.outside-row { grid-template-columns: repeat(6, 1fr); }

.bet-cell {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 6px 2px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bet-cell:hover { background: rgba(201,168,76,0.25); border-color: var(--gold); }
.bet-cell.selected { background: rgba(201,168,76,0.4); border-color: var(--gold); color: var(--gold); }
.bet-cell.red  { background: rgba(180,20,20,0.6); }
.bet-cell.black { background: rgba(20,20,20,0.7); }
.bet-cell.zero { background: rgba(20,120,20,0.7); }
.bet-cell.red:hover  { background: rgba(220,60,60,0.8); }
.bet-cell.black:hover { background: rgba(60,60,60,0.8); }

/* ===================================================
   BLACKJACK GAME
   =================================================== */
.blackjack-table {
  background: linear-gradient(160deg, #0a3a1a, #072812);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 0 60px rgba(0,0,0,0.4);
}

.hand-area { margin-bottom: 20px; }
.hand-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.hand-score {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.cards-display {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 110px;
}

.playing-card {
  width: 72px;
  height: 100px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  animation: cardDeal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex-shrink: 0;
}

@keyframes cardDeal {
  from { transform: translateY(-40px) scale(0.8); opacity: 0; }
  to   { transform: translateY(0)     scale(1);   opacity: 1; }
}

.playing-card.red   { color: #dc2626; }
.playing-card.black { color: var(--charcoal); }
.playing-card.face-down {
  background: linear-gradient(135deg, #1a3060, #0d1b35);
  color: transparent;
}
.playing-card.face-down::after {
  content: '🔒';
  font-size: 1.5rem;
  color: rgba(201,168,76,0.4);
}

.card-rank {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: 0.85rem;
  line-height: 1;
}
.card-suit {
  font-size: 1.6rem;
}

.bj-divider {
  height: 1px;
  background: rgba(201,168,76,0.15);
  margin: 20px 0;
}

.bj-action-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.bj-btn {
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.bj-btn-deal   { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); }
.bj-btn-hit    { background: rgba(34,197,94,0.2);  border: 1px solid rgba(34,197,94,0.5); color: #4ade80; }
.bj-btn-stand  { background: rgba(239,68,68,0.2);  border: 1px solid rgba(239,68,68,0.5); color: #f87171; }
.bj-btn-double { background: rgba(201,168,76,0.2); border: 1px solid var(--border); color: var(--gold); }
.bj-btn:hover  { transform: translateY(-2px); filter: brightness(1.1); }
.bj-btn:disabled { opacity: 0.4; pointer-events: none; }

/* ===================================================
   COMMUNITY PAGE
   =================================================== */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard-table th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.leaderboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.82rem;
}
.rank-1 { background: var(--gold); color: var(--navy); }
.rank-2 { background: #a8a8a8; color: var(--navy); }
.rank-3 { background: #c87533; color: white; }
.rank-other { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .game-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .roulette-table { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; inset: 0; top: 72px; background: var(--navy); padding: 32px 24px; z-index: 999; gap: 16px; }
  .hamburger { display: flex; }
  .game-cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .slots-reels { gap: 8px; }
  .reel-window { width: 90px; }
  .reel-symbol { width: 90px; font-size: 2.4rem; }
  .betting-row.numbers-row { grid-template-columns: repeat(6, 1fr); }
  .roulette-wheel { width: 220px; height: 220px; }
  .roulette-wheel-container { width: 220px; height: 220px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .age-gate-modal { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===================================================
   ANIMATIONS / UTILITIES
   =================================================== */
.fade-in { animation: fadeIn 0.6s ease forwards; }
.slide-up { animation: slideUp 0.6s ease forwards; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { background-position: -200%; } 100% { background-position: 200%; } }

.gold-text { color: var(--gold); }
.white-text { color: var(--white); }
.text-sm { font-size: 0.85rem; }

/* Win celebration */
@keyframes winCelebrate {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.08); }
  50%  { transform: scale(1); }
  75%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.celebrating { animation: winCelebrate 0.6s ease; }
