/* =========================================
   Variables
   ========================================= */

:root {
  /* Colors */
  --color-background: #090611; /* matte obsidian black */
  --color-background-alt: #120c1f; /* deep velvet midnight-violet */
  --color-surface: #151024;
  --color-surface-elevated: #1d1730;
  --color-border-subtle: #2d263b;

  --color-text: #f5f1ff;
  --color-text-muted: #b5adc9;
  --color-text-soft: #9992b0;

  --color-primary: #8b5cf6; /* vibrant amethyst violet */
  --color-primary-soft: #a78bfa;
  --color-primary-deep: #5b21b6;

  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-danger: #ef4444;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --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.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px converted to rem with 16px base) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

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

  /* Shadows (subtle, soft for dark UI) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-border-glow: 0 0 0 1px rgba(139, 92, 246, 0.5);

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


/* =========================================
   Reset / Normalize
   ========================================= */

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

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
main {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

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

button {
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* =========================================
   Base Styles
   ========================================= */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top left, #1d1433 0, #090611 55%, #05010c 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-text);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: clamp(2.25rem, 3vw, 3.25rem);
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

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

a {
  color: var(--color-primary-soft);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.55);
}

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

strong,
b {
  font-weight: 600;
  color: var(--color-text);
}

code,
pre {
  font-family: var(--font-mono);
}

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

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: var(--color-text);
}


/* =========================================
   Accessibility & Motion
   ========================================= */

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

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


/* =========================================
   Layout & Utilities
   ========================================= */

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1240px;
  }
}

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

.section--tight {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* Flex utilities */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

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

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

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

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

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

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

/* Grid utilities */

.grid {
  display: grid;
}

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

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

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

/* Spacing helpers */

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }

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

.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

/* Visually hidden (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;
}


/* =========================================
   Hero Layout Helpers (Static, No Sliders)
   ========================================= */

.hero {
  position: relative;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  color: var(--color-text);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); /* ~60/40 asymmetric grid */
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
}

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

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

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 30rem;
}

.hero__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero__meta-pill {
  border-radius: var(--radius-full);
  border: 1px solid rgba(189, 181, 221, 0.18);
  padding: 0.45rem 0.9rem;
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.16), rgba(9, 6, 17, 0.96));
}

.hero__image-shell {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), rgba(9, 6, 17, 0.98));
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
}

.hero__image-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.3), transparent 55%),
              radial-gradient(circle at 80% 120%, rgba(20, 184, 166, 0.25), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08) brightness(0.9);
}

.hero__badge {
  position: absolute;
  left: 1.3rem;
  bottom: 1.3rem;
  z-index: 2;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(248, 250, 252, 0.12);
  background: linear-gradient(120deg, rgba(9, 6, 17, 0.94), rgba(18, 12, 31, 0.96));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e 0, #15803d 60%, transparent 70%);
}

.hero__lounge-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.hero__lounge-link a {
  color: var(--color-primary-soft);
}

.hero__lounge-link a:hover {
  color: var(--color-primary);
}


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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-border-glow);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-deep));
  color: var(--color-text);
  border-color: rgba(165, 180, 252, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-primary));
}

.btn-outline {
  background: rgba(9, 6, 17, 0.7);
  color: var(--color-text-muted);
  border-color: rgba(189, 181, 221, 0.3);
}

.btn-outline:hover:not(:disabled) {
  color: var(--color-text);
  border-color: rgba(139, 92, 246, 0.9);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-soft);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(39, 24, 75, 0.9);
  color: var(--color-text);
}


/* Form Elements */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 38, 59, 0.95);
  background-color: rgba(13, 10, 24, 0.96);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  outline: none;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

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

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: rgba(139, 92, 246, 0.85);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.55);
  background-color: rgba(9, 6, 17, 0.98);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

label {
  display: block;
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--color-text-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row + .form-row {
  margin-top: var(--space-4);
}

.form-helper {
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

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


/* Card Component */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), rgba(9, 6, 17, 0.98));
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: var(--space-6);
  color: var(--color-text);
}

.card--subtle {
  background: linear-gradient(150deg, rgba(12, 10, 24, 0.96), rgba(5, 2, 15, 0.98));
  border: 1px solid rgba(40, 32, 64, 0.9);
}

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

.card__meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
}


/* Navigation Skeleton */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(9, 6, 17, 0.95), rgba(9, 6, 17, 0.86) 60%, transparent 100%);
  border-bottom: 1px solid rgba(45, 38, 59, 0.95);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-logo span {
  color: var(--color-primary-soft);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text);
  border-color: rgba(139, 92, 246, 0.9);
}

.nav-link--active {
  color: var(--color-text);
  border-color: rgba(139, 92, 246, 0.9);
}

.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}


/* Status & Accent Tags */

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--color-text-soft);
}

.tag--outline-primary {
  border-color: rgba(139, 92, 246, 0.9);
  color: var(--color-primary-soft);
}

.tag--success {
  border-color: rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}


/* Tables (for menu / tournaments) */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table thead {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

.table th,
.table td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(45, 38, 59, 0.95);
}

.table tbody tr:hover {
  background: rgba(18, 12, 31, 0.9);
}


/* =========================================
   Global List & Nav Toggle Overrides
   (Per instructions)
   ========================================= */

ul {
  list-style: none !important;
}

.nav-toggle {
  flex-direction: column;
}
