/* ===================================================
   ThamesBridgeHouse — Complete Stylesheet
   Color Palette:
     Navy Deep:    #0D1B2A
     Navy Mid:     #1A2332
     Navy Light:   #243447
     Gold Primary: #C8A96E
     Gold Light:   #E8C98E
     Gold Dark:    #A8894E
     Sage Green:   #8BA888
     Sage Dark:    #5A7A58
     Stone:        #F5F0E8
     Stone Mid:    #E8E0D0
     Charcoal:     #2C3E50
     White:        #FFFFFF
     Error:        #C0392B
     Success:      #27AE60
=================================================== */

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

:root {
  --navy-deep:    #0D1B2A;
  --navy-mid:     #1A2332;
  --navy-light:   #243447;
  --gold:         #C8A96E;
  --gold-light:   #E8C98E;
  --gold-dark:    #A8894E;
  --sage:         #8BA888;
  --sage-dark:    #5A7A58;
  --stone:        #F5F0E8;
  --stone-mid:    #E8E0D0;
  --charcoal:     #2C3E50;
  --white:        #FFFFFF;
  --error:        #C0392B;
  --success:      #27AE60;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.12);
  --shadow-md:    0 8px 32px rgba(0,0,0,.20);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.30);
  --transition:   .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--stone);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

.hidden { display: none !important; }

/* ===================================================
   AGE GATE
=================================================== */
.age-gate-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,42,.97);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.age-gate-card {
  background: var(--navy-mid);
  border: 1px solid rgba(200,169,110,.25);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.age-gate-crest { margin-bottom: 20px; }

.age-gate-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.age-gate-subtitle {
  color: rgba(245,240,232,.7);
  font-size: .95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.age-gate-check-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.age-gate-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.age-gate-checkbox-input { display: none; }

.age-gate-checkbox-custom {
  width: 22px; height: 22px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}

.age-gate-checkbox-input:checked + .age-gate-checkbox-custom {
  background: var(--gold);
}

.age-gate-checkbox-input:checked + .age-gate-checkbox-custom::after {
  content: '';
  display: block;
  width: 6px; height: 10px;
  border: 2px solid var(--navy-deep);
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}

.age-gate-check-text {
  color: var(--stone);
  font-size: .9rem;
  text-align: left;
}

.age-gate-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 16px;
}

.age-gate-btn:disabled {
  background: rgba(200,169,110,.3);
  color: rgba(245,240,232,.4);
  cursor: not-allowed;
}

.age-gate-btn:not(:disabled):hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.age-gate-disclaimer {
  font-size: .78rem;
  color: rgba(245,240,232,.45);
  line-height: 1.5;
}

.age-gate-disclaimer a {
  color: var(--gold);
  text-decoration: underline;
}

/* ===================================================
   COOKIE BANNER
=================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(200,169,110,.2);
  z-index: 8888;
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform .4s ease;
}

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

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

.cookie-banner-text {
  flex: 1;
  font-size: .875rem;
  color: rgba(245,240,232,.8);
  min-width: 200px;
}

.cookie-banner-text strong { color: var(--gold); }
.cookie-banner-text a { color: var(--gold); text-decoration: underline; }

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

.cookie-btn-decline {
  padding: 8px 20px;
  border: 1px solid rgba(200,169,110,.4);
  color: rgba(245,240,232,.7);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  transition: all var(--transition);
}

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

.cookie-btn-accept {
  padding: 8px 20px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: background var(--transition);
}

.cookie-btn-accept:hover { background: var(--gold-light); }

/* ===================================================
   AUTH MODAL
=================================================== */
.auth-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,42,.85);
  display: none;
  align-items: center; justify-content: center;
  z-index: 7777;
  backdrop-filter: blur(4px);
}

.auth-modal-overlay.open { display: flex; }

.auth-modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp .3s ease;
}

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

.auth-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.5rem;
  color: #999;
  line-height: 1;
  transition: color var(--transition);
}

.auth-modal-close:hover { color: var(--charcoal); }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--stone);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 500;
  color: #888;
  transition: all var(--transition);
}

.auth-tab.active {
  background: var(--navy-mid);
  color: var(--gold);
}

.auth-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.auth-welcome-note {
  font-size: .875rem;
  color: var(--sage-dark);
  margin-bottom: 20px;
}

.auth-welcome-note strong { color: var(--navy-deep); }

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--charcoal);
  transition: border-color var(--transition);
  background: var(--white);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--gold);
}

.auth-error {
  font-size: .82rem;
  color: var(--error);
  margin-bottom: 12px;
  min-height: 18px;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--navy-mid);
  color: var(--gold);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  margin-top: 4px;
}

.auth-submit-btn:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

/* ===================================================
   SITE HEADER
=================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 6666;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  color: rgba(245,240,232,.8);
  font-size: .9rem;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--gold-light);
  background: rgba(200,169,110,.1);
}

.nav-link-contact {
  background: rgba(200,169,110,.15);
  color: var(--gold);
  font-weight: 500;
}

.nav-link-contact:hover {
  background: rgba(200,169,110,.25);
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-coin-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,169,110,.15);
  border: 1px solid rgba(200,169,110,.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
}

.header-username {
  color: var(--stone);
  font-size: .875rem;
}

.btn-header-signin {
  padding: 7px 18px;
  border: 1px solid rgba(200,169,110,.5);
  color: var(--gold);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-header-signin:hover {
  border-color: var(--gold);
  background: rgba(200,169,110,.1);
}

.btn-header-register {
  padding: 7px 18px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  transition: background var(--transition);
}

.btn-header-register:hover { background: var(--gold-light); }

.btn-header-logout {
  padding: 7px 18px;
  border: 1px solid rgba(200,169,110,.4);
  color: rgba(245,240,232,.6);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  transition: all var(--transition);
}

.btn-header-logout:hover {
  border-color: var(--error);
  color: var(--error);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 8px;
}

.hamburger-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('images/herobg.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 28, 0.75);
  pointer-events: none;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: .6; }
  80%  { opacity: .3; }
  100% { opacity: 0; transform: translateY(-80px) scale(.5); }
}

.hero-bridge-silhouette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 160' preserveAspectRatio='none'%3E%3Cpath d='M0 160 L0 100 L100 100 L100 60 L120 60 L120 40 L140 40 L140 60 L160 60 L200 100 L400 100 Q600 30 800 100 L1000 100 L1040 60 L1060 60 L1060 40 L1080 40 L1080 60 L1100 60 L1100 100 L1200 100 L1200 160 Z' fill='rgba(13,27,42,0.6)'/%3E%3Cpath d='M180 100 L200 60 L210 60 L210 30 L220 30 L220 60 L230 60 L230 100' fill='rgba(13,27,42,0.5)' stroke='rgba(200,169,110,0.2)' stroke-width='1'/%3E%3Cpath d='M970 100 L990 60 L1000 60 L1000 30 L1010 30 L1010 60 L1020 60 L1020 100' fill='rgba(13,27,42,0.5)' stroke='rgba(200,169,110,0.2)' stroke-width='1'/%3E%3C/svg%3E") no-repeat bottom center / cover;
  opacity: .5;
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(200,169,110,.4);
  border-radius: 20px;
  font-size: .8rem;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(200,169,110,.06);
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--stone);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subheading {
  font-size: 1.05rem;
  color: rgba(245,240,232,.72);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-hero-primary {
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(200,169,110,.35);
}

.btn-hero-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,110,.45);
}

.btn-hero-secondary {
  padding: 14px 32px;
  border: 1px solid rgba(200,169,110,.45);
  color: var(--gold);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(200,169,110,.1);
  border-color: var(--gold);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}

.hero-trust-label {
  font-size: .78rem;
  color: rgba(245,240,232,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(200,169,110,.25);
}

/* ===================================================
   SECTION COMMON
=================================================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy-deep);
  margin-bottom: 14px;
}

.section-subheading {
  font-size: 1rem;
  color: #666;
  max-width: 580px;
  line-height: 1.7;
}

/* ===================================================
   GAMES SECTION
=================================================== */
.games-section {
  padding: 96px 0;
  background: var(--stone);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  border: 1px solid var(--stone-mid);
}

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

.game-card-featured {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(200,169,110,.2);
}

.game-featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  z-index: 3;
}

.game-card-art {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-art-poker { background: linear-gradient(135deg, #1A2332 0%, #243447 100%); }
.game-art-slots { background: linear-gradient(135deg, #1E2D1A 0%, #2A3D25 100%); }
.game-art-blackjack { background: linear-gradient(135deg, #1A1F2E 0%, #252C3D 100%); }

.game-art-inner { position: relative; z-index: 2; }

.game-art-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(200,169,110,.15), transparent 70%);
  pointer-events: none;
}

/* Poker card fan */
.playing-card-fan { display: flex; gap: -4px; position: relative; }
.mini-card {
  width: 48px; height: 66px;
  background: var(--white);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: transform var(--transition);
}
.card-spade   { color: #1a1a1a; transform: rotate(-10deg) translate(-6px, 4px); }
.card-heart   { color: #C0392B; z-index: 1; }
.card-diamond { color: #C0392B; transform: rotate(10deg) translate(6px, 4px); }

.game-card:hover .card-spade   { transform: rotate(-18deg) translate(-12px, 6px); }
.game-card:hover .card-heart   { transform: translateY(-8px); }
.game-card:hover .card-diamond { transform: rotate(18deg) translate(12px, 6px); }

/* Slots preview */
.slots-reel-preview {
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,.3);
  border: 2px solid rgba(200,169,110,.4);
  border-radius: 8px;
  padding: 12px 16px;
}
.reel-symbol {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  transition: transform .4s ease;
}
.game-card:hover .reel-symbol {
  animation: reelSpin .6s ease;
}
@keyframes reelSpin {
  0%   { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Blackjack preview */
.blackjack-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: -8px;
}
.bj-card {
  width: 52px; height: 72px;
  background: var(--white);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.bj-card-overlap { margin-left: -16px; color: #C0392B; }
.bj-total {
  margin-left: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
}

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

.game-tag {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sage-dark);
  background: rgba(139,168,136,.12);
  border: 1px solid rgba(139,168,136,.3);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

.game-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.game-desc {
  font-size: .88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.game-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: .8rem;
}

.game-players-online {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #777;
}

.online-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.game-difficulty {
  color: var(--gold-dark);
  font-weight: 500;
}

.btn-play-game {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--navy-mid);
  color: var(--gold);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-play-game:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

/* ===================================================
   BENEFITS SECTION
=================================================== */
.benefits-section {
  padding: 96px 0;
  background: var(--navy-deep);
}

.benefits-section .section-heading { color: var(--stone); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,169,110,.15);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.benefit-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(200,169,110,.35);
  transform: translateY(-4px);
}

.benefit-icon {
  margin-bottom: 16px;
}

.benefit-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.benefit-text {
  font-size: .875rem;
  color: rgba(245,240,232,.6);
  line-height: 1.7;
}

/* ===================================================
   CTA SECTION
=================================================== */
.cta-section {
  padding: 96px 24px;
  background: linear-gradient(135deg, #1A3248 0%, #243447 100%);
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--stone);
  margin-bottom: 16px;
}

.cta-sub {
  color: rgba(245,240,232,.7);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.btn-cta-main {
  padding: 16px 40px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 24px rgba(200,169,110,.4);
  margin-bottom: 16px;
  display: inline-block;
}

.btn-cta-main:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(200,169,110,.5);
}

.cta-small {
  font-size: .78rem;
  color: rgba(245,240,232,.4);
  margin-top: 8px;
}

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(200,169,110,.12);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--gold-light);
}

.footer-brand-desc {
  font-size: .85rem;
  color: rgba(245,240,232,.5);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-age-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(200,169,110,.35);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
}

.footer-col-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-link-list li + li { margin-top: 10px; }

.footer-link-list a {
  font-size: .875rem;
  color: rgba(245,240,232,.55);
  transition: color var(--transition);
}

.footer-link-list a:hover { color: var(--gold-light); }

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: rgba(245,240,232,.55);
  line-height: 1.6;
}

.footer-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-col-title + .footer-contact-info {
  margin-top: 16px;
}

.footer-disclaimer-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(200,169,110,.06);
  border: 1px solid rgba(200,169,110,.15);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.footer-disclaimer-box p {
  font-size: .8rem;
  color: rgba(245,240,232,.5);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-disclaimer-box strong { color: rgba(245,240,232,.75); }

.footer-help-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-help-links a {
  font-size: .8rem;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(200,169,110,.4);
  transition: text-decoration-color var(--transition);
}

.footer-help-links a:hover { text-decoration-color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(200,169,110,.1);
  padding: 20px 24px;
  text-align: center;
}

.footer-copyright {
  font-size: .8rem;
  color: rgba(245,240,232,.35);
}

/* ===================================================
   INNER PAGE LAYOUT (shared)
=================================================== */
.inner-page-hero {
  padding: 120px 24px 64px;
  background: linear-gradient(160deg, var(--navy-deep) 0%, #1A3248 100%);
  text-align: center;
}

.inner-page-hero .hero-badge { margin-bottom: 16px; }

.inner-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--stone);
  margin-bottom: 12px;
}

.inner-page-subtitle {
  font-size: 1rem;
  color: rgba(245,240,232,.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.inner-page-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px;
}

.content-section + .content-section { margin-top: 48px; }

.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy-deep);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stone-mid);
}

.content-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
  margin-top: 20px;
}

.content-section p {
  font-size: .95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-section ul li {
  font-size: .95rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ===================================================
   GAME PAGE SHARED
=================================================== */
.game-page-body {
  background: var(--navy-deep);
  min-height: 100vh;
  padding-top: 72px;
}

.game-arena {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.game-arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.game-arena-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
}

.game-coins-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,169,110,.1);
  border: 1px solid rgba(200,169,110,.3);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: .9rem;
  color: var(--gold);
  font-weight: 600;
}

.game-back-link {
  color: rgba(245,240,232,.5);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.game-back-link:hover { color: var(--gold); }

.game-table {
  background: linear-gradient(160deg, #0D2D1A 0%, #0A2015 100%);
  border: 2px solid rgba(200,169,110,.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(200,169,110,.1);
  min-height: 340px;
}

.game-controls {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-game-action {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-game-action:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-game-action:disabled {
  background: rgba(200,169,110,.25);
  color: rgba(245,240,232,.3);
  cursor: not-allowed;
}

.btn-game-secondary {
  padding: 10px 24px;
  border: 1px solid rgba(200,169,110,.4);
  color: var(--gold);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  transition: all var(--transition);
}
.btn-game-secondary:hover:not(:disabled) {
  background: rgba(200,169,110,.1);
  border-color: var(--gold);
}
.btn-game-secondary:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.game-message {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  min-height: 36px;
  margin: 16px 0;
}

.game-bet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.game-bet-label {
  color: rgba(245,240,232,.6);
  font-size: .875rem;
}

.game-bet-input {
  width: 100px;
  padding: 8px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,169,110,.35);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}
.game-bet-input:focus { outline: none; border-color: var(--gold); }

.bet-quick-btn {
  padding: 6px 12px;
  border: 1px solid rgba(200,169,110,.3);
  color: rgba(200,169,110,.7);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  transition: all var(--transition);
}
.bet-quick-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,169,110,.08);
}

/* ===================================================
   COMMUNITY PAGE
=================================================== */
.community-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.stat-card-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy-deep);
  display: block;
}

.stat-card-label {
  font-size: .8rem;
  color: #888;
  margin-top: 4px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  border-bottom: 1px solid var(--stone-mid);
}

.leaderboard-table td {
  padding: 12px 16px;
  font-size: .9rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--stone);
}

.leaderboard-table tr:last-child td { border-bottom: none; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
}

.rank-1 { background: var(--gold); color: var(--navy-deep); }
.rank-2 { background: #BCC6CC; color: #444; }
.rank-3 { background: #CD7F32; color: var(--white); }
.rank-other { background: var(--stone-mid); color: #888; font-weight: 400; }

/* ===================================================
   CONTACT FORM
=================================================== */
.contact-form-wrapper {
  max-width: 600px;
}

.contact-form-field {
  margin-bottom: 20px;
}

.contact-form-field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--charcoal);
  font-family: inherit;
  background: var(--white);
  transition: border-color var(--transition);
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form-field textarea { resize: vertical; min-height: 120px; }

.btn-contact-submit {
  padding: 12px 32px;
  background: var(--navy-mid);
  color: var(--gold);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.btn-contact-submit:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.contact-success-msg {
  display: none;
  padding: 16px 20px;
  background: rgba(39,174,96,.1);
  border: 1px solid rgba(39,174,96,.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: .9rem;
  margin-top: 16px;
}

.contact-success-msg.visible { display: block; }

.contact-info-card {
  background: var(--navy-mid);
  border: 1px solid rgba(200,169,110,.25);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.contact-info-card-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px 0;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200,169,110,.15);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-label {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(200,169,110,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: .9rem;
  color: rgba(245,240,232,.8);
  line-height: 1.5;
}

/* ===================================================
   HOW IT WORKS
=================================================== */
.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.how-step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-md);
}

.how-step-num {
  width: 48px; height: 48px;
  background: var(--navy-mid);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.how-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.how-step-text {
  font-size: .875rem;
  color: #666;
  line-height: 1.7;
}

/* ===================================================
   FAQ
=================================================== */
.faq-item {
  border-bottom: 1px solid var(--stone-mid);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  gap: 12px;
}

.faq-question .faq-arrow {
  width: 20px; height: 20px;
  border: 1px solid rgba(200,169,110,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: .7rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

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

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding-bottom: 16px;
  font-size: .9rem;
  color: #666;
  line-height: 1.75;
}

/* ===================================================
   RESPONSIBLE GAMING
=================================================== */
.rg-callout {
  background: rgba(200,169,110,.08);
  border: 1px solid rgba(200,169,110,.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.rg-callout p {
  font-size: .9rem;
  color: var(--charcoal) !important;
  margin-bottom: 0 !important;
}

.rg-orgs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.rg-org-card {
  background: var(--white);
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rg-org-name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy-deep);
}

.rg-org-desc {
  font-size: .8rem;
  color: #777;
}

.rg-org-link {
  font-size: .82rem;
  color: var(--sage-dark);
  text-decoration: underline;
  margin-top: 4px;
  display: inline-block;
}

/* ===================================================
   HELP CENTER
=================================================== */
.help-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.help-cat-card {
  background: var(--white);
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.help-cat-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(200,169,110,.15);
  transform: translateY(-3px);
}

.help-cat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.help-cat-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.help-cat-count {
  font-size: .78rem;
  color: #aaa;
}

/* ===================================================
   GUIDELINES
=================================================== */
.guideline-rule {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.guideline-rule-num {
  width: 32px; height: 32px;
  background: var(--navy-mid);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.guideline-rule-body h4 {
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
  font-size: .95rem;
}

.guideline-rule-body p {
  font-size: .875rem;
  color: #666;
  line-height: 1.65;
  margin: 0 !important;
}

/* ===================================================
   TOAST NOTIFICATION
=================================================== */
.toast-notification {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--navy-mid);
  border: 1px solid rgba(200,169,110,.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--gold-light);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 9000;
  transform: translateX(120%);
  transition: transform .35s ease;
  max-width: 320px;
}

.toast-notification.show { transform: translateX(0); }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .how-steps-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .community-stats-row { grid-template-columns: repeat(2, 1fr); }
  .help-categories { grid-template-columns: repeat(2, 1fr); }
  .rg-orgs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(200,169,110,.15);
    gap: 4px;
  }
  .header-nav.mobile-open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .hamburger-btn { display: flex; }
  .header-actions { gap: 6px; }
  .btn-header-signin { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .hero-trust-row { gap: 16px; flex-wrap: wrap; }
  .footer-help-links { gap: 12px; }
  .community-stats-row { grid-template-columns: repeat(2, 1fr); }
  .help-categories { grid-template-columns: 1fr; }
  .game-table { padding: 20px; }
  .game-controls { gap: 8px; }
  .btn-game-action, .btn-game-secondary { padding: 9px 16px; font-size: .85rem; }
}

@media (max-width: 480px) {
  .header-actions .btn-header-register { padding: 7px 12px; font-size: .8rem; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 300px; }
  .age-gate-card { padding: 32px 20px; }
  .auth-modal-card { padding: 28px 20px; }
  .community-stats-row { grid-template-columns: 1fr; }
}
