/* ===== ROYAL CROWN PLAY HUB — GLOBAL STYLES ===== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color System */
  --gold-100: #fff8e1;
  --gold-200: #ffecb3;
  --gold-300: #ffe082;
  --gold-400: #ffd54f;
  --gold-500: #ffc107;
  --gold-600: #ffb300;
  --gold-700: #ff8f00;
  --gold-800: #e65100;

  --crimson-100: #fce4ec;
  --crimson-200: #f48fb1;
  --crimson-300: #e91e63;
  --crimson-400: #c2185b;
  --crimson-500: #880e4f;
  --crimson-600: #6a0036;

  --navy-50: #e8eaf6;
  --navy-100: #c5cae9;
  --navy-200: #9fa8da;
  --navy-300: #1a2a4a;
  --navy-400: #152238;
  --navy-500: #0f1b2d;
  --navy-600: #0a1220;
  --navy-700: #060d18;

  --accent-teal: #00bcd4;
  --accent-teal-light: #e0f7fa;
  --accent-amber: #ffa726;

  --success-500: #4caf50;
  --success-600: #388e3c;
  --warning-500: #ff9800;
  --warning-600: #f57c00;
  --error-500: #f44336;
  --error-600: #d32f2f;

  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #eeeeee;
  --neutral-300: #e0e0e0;
  --neutral-400: #bdbdbd;
  --neutral-500: #9e9e9e;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;

  --bg-primary: #0a1220;
  --bg-secondary: #0f1b2d;
  --bg-card: #152238;
  --bg-card-hover: #1a2a4a;

  --text-primary: #f5f0e8;
  --text-secondary: #c9b99a;
  --text-muted: #7a8ba0;

  /* Spacing — 8px system */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 56px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 24px rgba(255,193,7,0.3);
  --shadow-crimson: 0 0 24px rgba(233,30,99,0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-600); }
::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; }
.display-1 { font-size: clamp(2.5rem, 6vw, var(--text-6xl)); font-weight: 900; }
.display-2 { font-size: clamp(2rem, 4vw, var(--text-5xl)); font-weight: 700; }
.section-title { font-size: clamp(1.75rem, 3vw, var(--text-4xl)); font-weight: 700; }
.section-subtitle { font-size: var(--text-lg); color: var(--text-secondary); line-height: 1.7; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-3); }
.text-gold { color: var(--gold-500); }
.text-crimson { color: var(--crimson-300); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mb-3 { margin-bottom: var(--sp-3); }
.hidden { display: none !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--navy-700);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255,193,7,0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--gold-500);
  border: 2px solid var(--gold-600);
}
.btn-secondary:hover {
  background: rgba(255,193,7,0.1);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 44px; font-size: var(--text-lg); }
.btn-sm { padding: 10px 24px; font-size: var(--text-sm); }

/* ===== GOLD DIVIDER ===== */
.gold-divider {
  width: 72px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  margin: var(--sp-2) auto var(--sp-3);
}

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,193,7,0.12);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: all var(--transition-base);
}
.card:hover {
  border-color: rgba(255,193,7,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-gold { background: rgba(255,193,7,0.15); color: var(--gold-500); border: 1px solid rgba(255,193,7,0.3); }
.badge-crimson { background: rgba(233,30,99,0.15); color: var(--crimson-200); border: 1px solid rgba(233,30,99,0.3); }
.badge-teal { background: rgba(0,188,212,0.15); color: var(--accent-teal); border: 1px solid rgba(0,188,212,0.3); }

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--sp-2) 0;
  transition: all var(--transition-base);
}
.site-nav.scrolled {
  background: rgba(10,18,32,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,193,7,0.15);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .crown-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(255,193,7,0.6));
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.nav-links a:hover { color: var(--gold-400); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--sp-2); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,18,32,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.mobile-menu a:hover { color: var(--gold-400); }
.mobile-close {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  padding: var(--sp-1);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-700);
  border-top: 1px solid rgba(255,193,7,0.1);
  padding: var(--sp-10) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}
.footer-brand .nav-logo { margin-bottom: var(--sp-2); }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--gold-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--gold-400); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.disclaimer-box {
  background: rgba(255,193,7,0.05);
  border: 1px solid rgba(255,193,7,0.15);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
}
.disclaimer-box p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.disclaimer-box p:last-child { margin-bottom: 0; }
.disclaimer-box a {
  color: var(--gold-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.disclaimer-box a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ===== AGE MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,13,24,0.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,193,7,0.25);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  animation: modalIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-crown {
  font-size: 4rem;
  margin-bottom: var(--sp-2);
  filter: drop-shadow(0 0 16px rgba(255,193,7,0.5));
}
.modal-box h2 {
  font-size: var(--text-3xl);
  color: var(--gold-400);
  margin-bottom: var(--sp-1);
}
.modal-box p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}
.modal-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-1);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  margin-bottom: var(--sp-3);
  text-align: left;
  cursor: pointer;
}
.modal-checkbox-row input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--gold-500);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-checkbox-row label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.6;
}
.modal-btn-confirm {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
  color: var(--navy-700);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-gold);
  opacity: 0.45;
  cursor: not-allowed;
}
.modal-btn-confirm.active {
  opacity: 1;
  cursor: pointer;
}
.modal-btn-confirm.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255,193,7,0.5);
}
.modal-exit {
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8888;
  background: var(--navy-600);
  border-top: 1px solid rgba(255,193,7,0.2);
  padding: var(--sp-3) 0;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.cookie-inner p {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  min-width: 240px;
}
.cookie-inner p a {
  color: var(--gold-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions { display: flex; gap: var(--sp-1); flex-shrink: 0; }

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  padding: calc(80px + var(--sp-10)) 0 var(--sp-10);
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,193,7,0.08) 0%, transparent 70%);
  border-bottom: 1px solid rgba(255,193,7,0.08);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-2);
}
.page-hero p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECTION ===== */
.section { padding: var(--sp-12) 0; }
.section-header { text-align: center; margin-bottom: var(--sp-8); }
.section-header .section-title {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header .section-subtitle { max-width: 600px; margin: 0 auto; }

/* ===== GRID HELPERS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }

/* ===== CONTENT PROSE ===== */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 {
  font-size: var(--text-2xl);
  color: var(--gold-400);
  margin: var(--sp-5) 0 var(--sp-2);
}
.prose h3 {
  font-size: var(--text-xl);
  color: var(--gold-300);
  margin: var(--sp-3) 0 var(--sp-1);
}
.prose p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}
.prose ul {
  list-style: disc;
  padding-left: var(--sp-3);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}
.prose ul li { margin-bottom: 6px; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--gold-500); text-decoration: underline; text-underline-offset: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .modal-box { padding: var(--sp-4); }
  .btn-lg { padding: 14px 28px; font-size: var(--text-base); }
}
