/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Colors - dark premium palette */
  --color-bg: #050608;
  --color-bg-elevated: #0b0d12;
  --color-bg-soft: #11141b;
  --color-bg-overlay: rgba(6, 7, 10, 0.92);

  --color-text: #f5f5f7;
  --color-text-soft: #c0c3cc;
  --color-text-muted: #8b8fa1;

  --color-primary: #f4c66a; /* warm gold */
  --color-primary-soft: rgba(244, 198, 106, 0.15);
  --color-primary-strong: #ffda84;

  --color-success: #47c28c;
  --color-warning: #ffb24d;
  --color-danger: #ff5c6c;

  --color-neutral-50: #f8fafc;
  --color-neutral-100: #e5e7eb;
  --color-neutral-200: #d1d5db;
  --color-neutral-300: #9ca3af;
  --color-neutral-400: #6b7280;
  --color-neutral-500: #4b5563;
  --color-neutral-600: #374151;
  --color-neutral-700: #1f2933;
  --color-neutral-800: #121721;
  --color-neutral-900: #050608;

  /* Cinematic glows & borders */
  --color-glow-gold: rgba(244, 198, 106, 0.45);
  --color-glow-amber: rgba(255, 170, 92, 0.4);
  --color-border-subtle: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow-gold: 0 0 18px var(--color-glow-gold);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease;

  /* Layout */
  --layout-max-width: 1120px;
  --layout-gutter: 24px;
}

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

/* ========================================================================
   Reset & Normalize
   ======================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

button {
  border: none;
  padding: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #111522 0, #050608 52%, #020308 100%);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(var(--font-size-3xl), 3vw + 1.4rem, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 2.4vw + 1.1rem, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-soft);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--transition-base),
    opacity var(--transition-fast),
    text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 4px var(--color-glow-gold);
}

a:active {
  opacity: 0.85;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-6) 0;
}

/* ========================================================================
   Accessibility & Focus
   ======================================================================== */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* ========================================================================
   Utilities
   ======================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--layout-max-width) + var(--layout-gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--layout-gutter);
}

.section {
  padding-block: var(--space-16);
}

.section--alt {
  background: radial-gradient(circle at center, #11141b 0, #050608 70%);
}

.section__heading {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.section__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.pt-8 {
  padding-top: var(--space-8);
}

.pb-8 {
  padding-bottom: var(--space-8);
}

/* Screen-reader only */
.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;
}

/* Cinematic background helpers */
.bg-panel {
  background: linear-gradient(145deg, #050608 0%, #0d1018 52%, #050608 100%);
}

.bg-glass-dark {
  background: linear-gradient(130deg, rgba(11, 13, 18, 0.96), rgba(6, 8, 14, 0.96));
  backdrop-filter: blur(16px);
}

.border-subtle {
  border: 1px solid var(--color-border-subtle);
}

/* ========================================================================
   Components
   ======================================================================== */

/* Buttons */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-strong);
  --btn-color: #111111;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.3) 0, transparent 42%),
    linear-gradient(120deg, var(--btn-bg) 0%, #f3b74c 40%, #f5d176 100%);
  color: var(--btn-color) !important;
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-subtle), var(--shadow-glow-gold);
  transition:
    background var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    opacity var(--transition-fast);
}

.btn:hover {
  background: radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.32) 0, transparent 42%),
    linear-gradient(120deg, var(--btn-bg-hover) 0%, #ffd27d 45%, #ffe7a9 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft), var(--shadow-glow-gold);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
  opacity: 0.95;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(244, 198, 106, 0.06);
  --btn-color: var(--color-text);
  --btn-border: rgba(244, 198, 106, 0.6);

  background: radial-gradient(circle at top left, rgba(244, 198, 106, 0.16) 0, transparent 42%),
    rgba(6, 7, 12, 0.9);
  box-shadow: 0 0 0 1px rgba(244, 198, 106, 0.4);
}

.btn--ghost:hover {
  background: radial-gradient(circle at top left, rgba(244, 198, 106, 0.22) 0, transparent 46%),
    rgba(5, 6, 10, 0.98);
}

/* Form controls */
.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: linear-gradient(130deg, rgba(6, 8, 13, 0.96), rgba(9, 11, 17, 0.96));
  color: var(--color-text);
  font-size: var(--font-size-sm);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 1px rgba(244, 198, 106, 0.8),
    0 0 0 10px rgba(244, 198, 106, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-helper {
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card component */
.card {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top, rgba(244, 198, 106, 0.14) 0, transparent 55%),
    linear-gradient(145deg, rgba(5, 6, 10, 0.98), rgba(14, 16, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(244, 198, 106, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 198, 106, 0.55);
  box-shadow: var(--shadow-soft), var(--shadow-glow-gold);
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.card__meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.card--accent {
  border-color: rgba(244, 198, 106, 0.6);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(244, 198, 106, 0.45);
}

/* Navigation bar (basic shell) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.86));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.navbar__brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.navbar__logo-text-main {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar__logo-text-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar__link {
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
  padding-block: 0.25rem;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4c66a, #ffb24d);
  transition: width var(--transition-base);
}

.navbar__link:hover {
  color: var(--color-primary-strong);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__link--active {
  color: var(--color-primary-strong);
}

@media (max-width: 960px) {
  .navbar__nav {
    display: none; /* can be replaced with a mobile nav implementation */
  }
}

/* Hero shell (event / cinematic) */
.hero {
  padding-block: var(--space-20) var(--space-16);
  background:
    radial-gradient(circle at top left, rgba(244, 198, 106, 0.16) 0, transparent 50%),
    radial-gradient(circle at top right, rgba(67, 99, 206, 0.3) 0, transparent 55%),
    linear-gradient(160deg, #050608 0%, #050608 35%, #050608 60%, #020308 100%);
}

.hero__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.hero__title {
  max-width: 620px;
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  max-width: 540px;
  font-size: var(--font-size-lg);
  color: var(--color-text-soft);
  margin-bottom: var(--space-6);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero__safety-note {
  margin-top: var(--space-4);
  max-width: 540px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .hero {
    padding-block: var(--space-16) var(--space-12);
  }
}

/* FAQ basic shell */
.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: linear-gradient(145deg, rgba(5, 7, 12, 0.96), rgba(9, 11, 17, 0.96));
  padding: var(--space-4) var(--space-5);
}

.faq-item + .faq-item {
  margin-top: var(--space-3);
}

.faq-item__question {
  font-size: var(--font-size-lg);
  cursor: pointer;
}

.faq-item__answer {
  margin-top: var(--space-3);
  color: var(--color-text-soft);
}

/* Notice banner - offline entertainment & informational only */
.notice-offline {
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 198, 106, 0.65);
  background:
    linear-gradient(135deg, rgba(244, 198, 106, 0.09), rgba(0, 0, 0, 0)),
    rgba(6, 7, 12, 0.98);
  box-shadow: 0 0 0 1px rgba(244, 198, 106, 0.35);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.notice-offline strong {
  color: var(--color-primary-strong);
}
