/* Fonts */
@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: optional;
}

:root {
  --amber: #ffb54a;
  --amber-dark: #d4841c;
  --amber-light: #ffd08a;
  --bg: #0c1b17;
  --bg-mid: #101f1a;
  --bg-deep: #081410;
  --card: #142822;
  --card-hover: #1a332b;
  --border: #23443a;
  --border-soft: rgba(35, 68, 58, 0.65);
  --text: #e8f5f0;
  --text-secondary: #a9cbbf;
  --text-muted: #7a9a8e;
  --accent: #3d8a6e;
  --accent-bright: #4fa882;
}

* {
  font-family: "Raleway", system-ui, sans-serif;
}
.font-display {
  font-family: "Marcellus", Georgia, serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

section[id] {
  scroll-margin-top: 88px;
}

h1,
h2,
h3,
h4,
h5,
h6,
a {
  overflow-wrap: break-word;
  word-break: break-word;
}
[hidden] {
  display: none !important;
}
[x-cloak] {
  display: none !important;
}

/* age-gate only — never leave body locked after dismiss */
html.scroll-lock,
body.scroll-lock {
  overflow: hidden !important;
  height: 100%;
  touch-action: none;
}

body.has-cookie-bar {
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

.min-h-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.65rem 1rem;
  background: var(--amber);
  color: var(--bg-deep);
  font-weight: 700;
  border-radius: 0.5rem;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-desktop {
  display: none;
}
.nav-burger {
  display: block;
}
.nav-drop {
  display: flex;
}
@media (min-width: 1220px) {
  .nav-desktop {
    display: flex;
  }
  .nav-burger {
    display: none;
  }
  .nav-drop {
    display: none !important;
  }
}

a,
button,
input[type="button"] {
  -webkit-tap-highlight-color: transparent;
}
nav a,
footer a,
button {
  user-select: none;
  -webkit-user-select: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.gold-text {
  color: var(--amber);
}

.card-bg {
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.nav-bg {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.nav-drop {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(12, 27, 23, 0.98) !important;
}

.btn-gold {
  background: var(--amber);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}
.btn-gold:hover {
  background: var(--amber-light);
}

.pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 181, 74, 0.28);
  }
  50% {
    box-shadow:
      0 0 36px rgba(255, 181, 74, 0.5),
      0 0 48px rgba(61, 138, 110, 0.15);
  }
}

.float-anim {
  animation: floatAnim 4s ease-in-out infinite;
}
@keyframes floatAnim {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.spin-slot {
  animation: spinSlot 0.4s ease-in-out infinite alternate;
}
@keyframes spinSlot {
  0% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(4px);
  }
}

.reel-glow {
  /* kept for markup compat; no glow */
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--amber);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.divider-gold {
  height: 1px;
  background: var(--border);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse-glow,
  .float-anim,
  .spin-slot {
    animation: none;
  }
}

/* age-gate — dark emerald, matches site */
.ag-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 20, 16, 0.94);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ag-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color: var(--text);
}
.ag-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  font-weight: 700;
  font-size: 17px;
  color: var(--amber);
  margin: 0 0 16px;
}
.ag-q {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}
.ag-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 22px;
}
.ag-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-btn {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.ag-btn-yes {
  background: var(--amber);
  color: var(--bg-deep);
  border-color: var(--amber-dark);
}
.ag-btn-no {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.ag-btn-no:hover {
  background: rgba(35, 68, 58, 0.35);
}
.ag-legal {
  font-size: 12px;
  color: var(--text-muted);
  margin: 18px 0 0;
  line-height: 1.5;
}
.ag-legal a {
  color: var(--amber-light);
  text-decoration: underline;
}

/* compliance footer — same dark emerald palette */
.rg-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  color: var(--text-secondary);
  position: relative;
  z-index: 10;
}
.rg-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.rg-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--amber);
}
.rg-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.rg-body {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.rg-body strong {
  color: var(--text);
}
.rg-help {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.rg-help a {
  color: var(--amber-light);
  text-decoration: underline;
}
.rg-links {
  font-size: 13px;
  color: var(--text-muted);
}
.rg-links a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rg-links a:hover {
  color: var(--amber);
}
.rg-sep {
  color: var(--border);
  padding: 0 6px;
}
.rg-legal {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* age-restricted page */
.ar-page {
  background: var(--bg);
  padding: 56px 24px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.ar-box {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.ar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  color: var(--amber);
  margin: 0 0 20px;
}
.ar-h {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 12px;
}
.ar-p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.ar-p strong {
  color: var(--text);
}
.ar-parents {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}
.ar-links {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 0;
}
.ar-links a {
  color: var(--text-secondary);
  text-decoration: underline;
}
.ar-sep {
  color: var(--border);
  padding: 0 6px;
}
.ar-exit {
  display: inline-block;
  margin: 20px 0 0;
  padding: 11px 22px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
}

.legal-doc {
  font-size: 15px;
  line-height: 1.7;
}
.legal-doc h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--amber);
  margin: 1.75rem 0 0.5rem;
}
.legal-doc h2:first-child {
  margin-top: 0;
}
.legal-doc p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}
.legal-doc ul {
  margin: 0 0 0.75rem;
  padding-left: 1.35rem;
  color: var(--text-secondary);
}
.legal-doc li {
  margin: 0 0 0.35rem;
}
.legal-doc a {
  color: var(--amber-light);
  text-decoration: underline;
}
.legal-doc .legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.game-disclaimer-short {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--card);
}

.cookieBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-top: 1px solid var(--border);
}

.cookieBar a {
  color: var(--amber-light);
}

.cookieBar button.border {
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 576px) {
  #main-content {
    padding-top: 0;
  }
}
