:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #111214;
  --panel-2: #181a1f;
  --paper: #f8f4ea;
  --ink: #151515;
  --muted: #a8adb5;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d4af37;
  --red: #b82c34;
  --green: #27704f;
  --blue: #244d68;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(17, 18, 20, 0.76)),
    url("../images/cc-banner.webp") center / cover fixed,
    var(--black);
}

body,
button,
input,
select,
textarea {
  font: 500 1rem/1.45 var(--font-body, Inter, ui-sans-serif, system-ui);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page {
  width: min(100% - 28px, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 128px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.brand span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheet-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 8px;
  color: #f6e6a5;
  background: rgba(0, 0, 0, 0.34);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(18px, 4vw, 54px);
  align-items: start;
  margin-top: 12px;
}

.intro {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.eyebrow {
  color: #f2d56b;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 680px;
  font-size: clamp(2.7rem, 8vw, 6.7rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
}

.intro p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  font-size: 1.2rem;
  line-height: 1.1;
}

.panel-header p {
  color: var(--muted);
  font-size: 0.92rem;
}

.form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.check-label,
.station-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.checkbox input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--gold);
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.btn.gold {
  background: var(--gold);
  color: #17130a;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.66;
}

.status {
  min-height: 44px;
  display: none;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.status.is-visible {
  display: flex;
}

.status.is-good {
  background: rgba(39, 112, 79, 0.24);
  color: #d4f7e7;
}

.status.is-bad {
  background: rgba(184, 44, 52, 0.24);
  color: #ffd9dd;
}

.pass-card {
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.pass-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pass-card header img {
  width: 118px;
}

.pass-card h1 {
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.guest-name {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #fff;
}

.guest-name span {
  color: #777;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guest-name strong {
  font-size: 1.15rem;
}

.qr-frame {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  background: #fff;
}

.qr-frame img {
  width: min(72vw, 256px);
  aspect-ratio: 1;
}

.guest-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.checklist {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(0, 0, 0, 0.32);
  border-radius: 50%;
  flex: 0 0 auto;
}

.checklist li.is-complete {
  background: rgba(39, 112, 79, 0.14);
  color: #1f5f46;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.checklist li.is-complete::before {
  content: "\2713";
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.scanner-shell {
  display: grid;
  gap: 16px;
}

.station-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.56);
}

.station-card h1 {
  font-size: clamp(1.8rem, 7vw, 4.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.station-card p {
  color: rgba(255, 255, 255, 0.72);
}

.reader {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #070707;
}

.reader.is-scanned {
  border-color: rgba(86, 225, 157, 0.9);
  box-shadow: inset 0 0 0 3px rgba(86, 225, 157, 0.24), 0 0 34px rgba(39, 112, 79, 0.38);
}

.reader video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.reader-placeholder {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.scan-feedback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(15, 92, 59, 0.9);
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.scan-feedback strong {
  font-size: clamp(2rem, 8vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.scan-feedback span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.92rem, 3vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.scan-feedback .scan-another {
  min-width: 180px;
  margin-top: 12px;
  justify-self: center;
  background: #fff;
  color: #0f5c3b;
  pointer-events: auto;
}

.camera-toggle {
  width: 100%;
}

.scan-result {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

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

.segmented button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  cursor: pointer;
}

.segmented button.is-active {
  border-color: rgba(212, 175, 55, 0.72);
  background: rgba(212, 175, 55, 0.18);
  color: #f8e28b;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.station-grid a {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.station-grid strong {
  color: #fff;
  font-size: 0.88rem;
}

.station-grid span {
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-page {
  width: min(100% - 28px, 1180px);
}

.staff-hero {
  padding: 4px 0 2px;
}

.staff-hero .intro {
  max-width: 760px;
  padding-top: 0;
}

.staff-hero .intro h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
}

.staff-home-cta {
  width: fit-content;
}

.staff-section {
  display: grid;
  gap: 14px;
}

.section-heading {
  display: grid;
  gap: 4px;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.staff-tile {
  min-height: 112px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.48);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.staff-tile:hover {
  border-color: rgba(212, 175, 55, 0.62);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.5);
}

.staff-tile strong {
  min-height: 0;
  display: flex;
  align-items: flex-end;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.staff-tile.lul {
  border-color: rgba(184, 44, 52, 0.42);
}

.staff-tile.purchase {
  border-color: rgba(212, 175, 55, 0.36);
}

.staff-tile.member {
  border-color: rgba(39, 112, 79, 0.5);
}

.hide {
  display: none !important;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .topbar-actions {
    display: grid;
    gap: 8px;
  }

  .sheet-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .grid-2,
  .station-grid {
    grid-template-columns: 1fr;
  }

  .staff-page {
    width: min(100% - 24px, 1180px);
    padding: 14px 0;
    gap: 12px;
  }

  .staff-hero {
    padding: 0;
  }

  .staff-hero .intro h1 {
    font-size: clamp(2.4rem, 13vw, 4.1rem);
  }

  .staff-hero .intro p:last-child {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .staff-section {
    gap: 8px;
  }

  .section-heading {
    gap: 2px;
  }

  .section-heading h2 {
    font-size: clamp(1.18rem, 7vw, 1.6rem);
  }

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

  .staff-tile {
    min-height: 74px;
    gap: 0;
    padding: 10px;
  }

  .staff-tile strong {
    min-height: 0;
    font-size: clamp(0.98rem, 5vw, 1.2rem);
    line-height: 1.02;
  }

  .intro h1 {
    max-width: 420px;
  }
}

select { color: #f8f9fb; }

select option {
  color: #111318;
  background: #ffffff;
}
