:root {
  /* Tweak these variables to quickly restyle the site */
  --bg: #ffffff;             /* base background */
  --text: #111316;           /* near-black for readability */
  --muted: #6b7b88;          /* steel gray (muted text) */
  --border: #e1e6ea;         /* cool light border */
  --bone: #f3efe9;           /* bone tint from skull */
  --steel: #556c7a;          /* steel blue-gray from plates */
  --graphite: #1f2329;       /* graphite charcoal from background */
  --surface: var(--bone);    /* alt sections use the bone tint */
  --accent: #ff4f1f;         /* vivid Kill Team orange */
  --accent-700: #c33a13;     /* deeper orange for hover/press */
  --accent-rgb: 255, 79, 31; /* for translucent accent backgrounds */
  --radius: 10px;
}

.map-card .map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.map-card .map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f2329;         /* graphite */
    --text: #e5e7eb;       /* light text */
    --muted: #9aa6b2;      /* cool gray */
    --border: #2b323a;     /* dark border */
    --surface: #252b32;    /* raised surfaces */
    --accent: #ff6a2b;     /* brighter orange for dark bg */
    --accent-700: #ff4f1f; /* pressed state */
    --accent-rgb: 255, 106, 43;
  }
}

/* Base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.5rem, 4vw + 1rem, 4rem);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 84px; /* prevent sticky header from overlapping anchor targets */
}

.section.alt {
  background: var(--surface);
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  margin-top: 6px;
}

p { margin-top: 0.75rem; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.1) blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}

.nav {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
}

.nav a:hover {
  background: var(--surface);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 150ms, border-color 150ms, color 150ms, transform 150ms;
}

.btn:hover { background: var(--surface); }

.btn:active { transform: translateY(1px); }

.btn.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.btn.btn-accent:hover { background: var(--accent-700); border-color: var(--accent-700); }

.btn-lg { padding: 0.8rem 1.1rem; font-weight: 600; }

/* Button with small inline logo */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-with-icon .btn-logo {
  width: 18px;
  height: 18px;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

/* Focus styles */
.btn:focus-visible,
.nav a:focus-visible,
.brand-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Hero */
.hero { text-align: center; background: var(--surface); position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 47%, var(--accent) 47% 52%, transparent 52%),
    linear-gradient(225deg, transparent 47%, var(--accent) 47% 52%, transparent 52%);
  opacity: 0.06; /* subtle, adjust if you want more punch */
  pointer-events: none;
  z-index: 1;
}

/* Subtle dark gradient for text legibility over images */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.5) 95%, rgba(0,0,0,0.35));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 1;
}

/* Background image layers for rotating hero */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 600ms ease;
  will-change: opacity;
  z-index: 0;
}

.hero-bg.show { opacity: 1; }

.hero .container { position: relative; z-index: 2; }

.lede { font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.25rem); color: var(--muted); max-width: 65ch; margin-inline: auto; }

.hero-cta { margin-top: 1rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Improve hero legibility on darkened background */
.hero h1 { color: #ffffff; }
.hero .lede { color: #e5e7eb; }
.hero .btn:not(.btn-accent) { border-color: rgba(255,255,255,0.5); color: #ffffff; }
.hero .btn:not(.btn-accent):hover { background: rgba(255,255,255,0.1); }

/* Black text shadow for better readability over imagery */
.hero h1,
.hero .lede {
  text-shadow: 0 4px 18px rgba(0,0,0,1), 0 2px 8px rgba(0,0,0,0.95), 0 0 3px rgba(0,0,0,0.9);
}

/* Pricing callout */
.pricing-callout {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.price-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.price-chip .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.price-chip .amount { font-weight: 800; color: var(--accent); }

/* Subtle highlight, not a solid button */
.price-chip.highlight {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0.06);
}

.price-chip.alt {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.price-chip.alt .label { color: rgba(255,255,255,.85); }
.price-chip.alt .amount { color: #fff; }

/* Accent inline links inside main content (exclude buttons) */
main a:not(.btn) { color: var(--accent); }
main a:not(.btn):hover { text-decoration: underline; }

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.checklist { list-style: none; display: grid; gap: 0.4rem; }
.checklist li::before { content: "✔"; color: var(--accent); margin-right: 0.5rem; }
.checklist li { display: flex; align-items: start; gap: 0.5rem; }

/* Gallery */
.gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery a { display: block; border-radius: var(--radius); }
.gallery a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Schedule */
.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.card ul { padding-left: 1rem; }
.card li { margin: 0.3rem 0; }

/* QR card */
.qr-card { display: grid; place-items: center; text-align: center; }
.qr {
  width: 240px;
  max-width: 100%;
  background: #ffffff; /* ensure strong contrast for scanners */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
}

/* Logo card */
.logo-card { display: grid; place-items: center; text-align: center; }
.nekt-logo {
  width: 240px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--bg);
}

/* Partners (registration) */
.partners {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.partner-logo {
  width: 160px;
  max-width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 6px;
}

/* Inline partner logo next to buttons */
.partner-inline { display: inline-flex; align-items: center; }
.partner-logo.sm { width: 110px; padding: 4px; border-radius: calc(var(--radius) - 2px); }

/* Register section CTA row: push partner logo to the right */
.cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap; /* stack on small screens */
}

.cta-row .partner { margin-left: auto; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.82);
  padding: 1rem;
  z-index: 1000;
}

.lightbox.open { display: grid; }

.lb-figure { margin: 0; max-width: min(1100px, 96vw); }
.lb-figure img {
  max-width: 96vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.lb-figure figcaption { margin-top: 0.5rem; text-align: center; color: #e5e7eb; }

.lightbox button {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(31,35,41,0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
}

.lightbox button:hover { background: rgba(31,35,41,0.85); }
.lightbox button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Footer */
.site-footer { text-align: center; padding: 2rem 0; }

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  width: auto;
  height: auto;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}
