/* Shared design tokens, fonts and base styles for every page (gate + game): Halloween night sky, gold frames,
   green call-to-action buttons, Lilita One (display) + Open Sans (text). */

@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  /* single weight; the range keeps bolder declarations from being synthesised */
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/fonts/lilita-one-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/open-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/open-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/open-sans-latin-800-normal.woff2') format('woff2');
}

:root {
  /* Halloween night: dark top and bottom, glowing violet middle (slot-promo layout) */
  --night-950: #0b0216;
  --night-900: #14052a;
  --night-800: #240a4a;
  --violet-700: #3a1270;
  --violet-600: #5a1fa8;
  --violet-500: #7a35d0;
  --violet-400: #a46cf0;
  --magenta-glow: #ff8a2a;
  --sky-gradient: linear-gradient(180deg, #0b0216 1.16%, #4c1597 37.38%, #34107a 62.37%, #0d0419 104.88%);

  /* gold */
  --gold-100: #fff4cc;
  --gold-200: #ffe8a3;
  --gold-300: #ffd86b;
  --gold-400: #f6c143;
  --gold-500: #e9a623;
  --gold-600: #c47f12;
  --gold-700: #8f5508;
  --gold-gradient: linear-gradient(180deg, var(--gold-100) 0%, var(--gold-300) 30%, var(--gold-500) 55%, var(--gold-700) 100%);
  --gold-frame: linear-gradient(180deg, #fff1a8 0%, #f7c93e 22%, #e19a12 50%, #ffd65a 74%, #a86a05 100%);

  /* call to action (SPIN!, Enter, Claim) */
  --cta-green-hi: #3ee070;
  --cta-green: #12a43f;
  --cta-green-lo: #06702a;
  --cta-ink: #003317;

  /* accents */
  --pumpkin-400: #ffa23a;
  --pumpkin-500: #ff7f11;
  --pumpkin-700: #c24e00;
  --jackpot-grand: #c8282d;
  --jackpot-major: #7b2fbf;
  --jackpot-minor: #2a63c9;
  --jackpot-mini: #2f9e44;
  --spin-green: #12a43f;

  /* text */
  --text: #ffffff;
  --text-muted: #e6d6ff;
  --text-dim: #bfa9e6;
  --danger: #ff8a8a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-deep: 0 18px 50px rgb(5 0 15 / 0.6);
  --focus-ring: 0 0 0 3px var(--night-900), 0 0 0 6px var(--gold-300);

  --font-display: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --font-spooky: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--night-900);
  background-image: var(--sky-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--gold-300);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gold-200);
}

:focus-visible {
  /* Transparent outline stays invisible normally but becomes visible in forced-colors mode. */
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

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

/* Green call-to-action button with a gold rim (Enter, Claim bonus, Back to start; SPIN! reuses the look) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0.55em 2.2em;
  border: 4px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.28) 0%, rgb(255 255 255 / 0) 48%) padding-box,
    linear-gradient(180deg, var(--cta-green-hi) 0%, var(--cta-green) 52%, var(--cta-green-lo) 100%) padding-box,
    var(--gold-frame) border-box;
  box-shadow: 0 0 0 2px #6b3a00, inset 0 -4px 0 rgb(0 40 10 / 0.35), 0 8px 22px rgb(10 0 25 / 0.5);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow:
    0 -2px 0 var(--cta-ink), 2px 0 0 var(--cta-ink), 0 2px 0 var(--cta-ink), -2px 0 0 var(--cta-ink),
    1.5px 1.5px 0 var(--cta-ink), -1.5px 1.5px 0 var(--cta-ink), 1.5px -1.5px 0 var(--cta-ink), -1.5px -1.5px 0 var(--cta-ink),
    0 3px 2px rgb(0 0 0 / 0.4);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-cta:hover {
  filter: brightness(1.08) saturate(1.05);
}

.btn-cta:focus-visible {
  border-radius: 14px;
  box-shadow: var(--focus-ring), 0 8px 22px rgb(10 0 25 / 0.5);
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight;
  }
}

.btn-cta:active {
  transform: translateY(2px) scale(0.99);
}

.btn-cta:disabled {
  filter: grayscale(0.6) brightness(0.7);
  cursor: not-allowed;
}

/* Responsible gambling footer */
.site-footer {
  margin-top: auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  color: var(--text-dim);
  font-size: 0.8125rem;
  text-align: center;
}

.site-footer__rg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin: 0;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.5em;
  height: 2.5em;
  padding: 0 0.4em;
  border: 2px solid var(--danger);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
