/* Space Grotesk, self-hosted (SIL OFL 1.1, see ../fonts/OFL.txt) so no visitor IP goes to Google. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.dea099b7d5a5.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.25ea4a783c12.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #fa2a55;
  --dark: #121212;
  --white: #ffffff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .78);
  --glass: rgba(255, 255, 255, .12);
  --glass-strong: rgba(255, 255, 255, .2);
  --glass-border: rgba(255, 255, 255, .28);
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #d11a1a;
  --radius: 20px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--primary);
  color: var(--text);
  line-height: 1.55;
}

/* Soft blurred light blobs behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .28), transparent 32%),
    radial-gradient(circle at 92% 30%, rgba(255, 255, 255, .18), transparent 30%),
    radial-gradient(circle at 30% 85%, rgba(255, 255, 255, .16), transparent 34%),
    radial-gradient(circle at 80% 95%, rgba(255, 255, 255, .14), transparent 28%);
}

a { color: inherit; }

.site-header {
  display: flex;
  /* The logo never shrinks, so on narrow phones the staff nav moves below it. */
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px;
}
/* Logo top left, as on peterslavik.sk (.logo-top-left there): monogram, name, role —
   two lines, never wrapped. */
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 15px;
  color: var(--white);
  text-decoration: none;
}
.brand__symbol svg { display: block; width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; white-space: nowrap; }
.brand__name {
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.brand__role {
  margin-top: 5px;
  font-size: .53rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3em;
  opacity: .8;
}
@media (max-width: 480px) {
  .brand__name { font-size: 1.25rem; }
  .brand__role { font-size: .48rem; letter-spacing: .25em; }
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: flex-end; }
/* The logout form/button sits on the same line as the links (no extra baseline offset). */
.site-header nav form.inline { display: flex; }
.site-header nav a, .site-header nav button.link { display: block; line-height: 1.5; }
.site-header nav a, .site-header button.link {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  text-decoration: none;
  color: var(--white);
}

.container { max-width: 640px; margin: 0 auto; padding: 8px 16px 48px; }

h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  font-weight: 900;
  font-style: italic;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.05em;
}
h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.muted { color: var(--muted); }
.lead {
  margin: 0 0 24px;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
}

/* Invitation on the registration page */
.invite__eyebrow {
  margin: 0 0 10px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.invite__text { margin: 0 0 16px; font-size: 1.05rem; }
.nowrap { white-space: nowrap; }
.invite__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.invite__highlights li {
  padding: 6px 14px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}
.invite__signature {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 20px 40px rgba(120, 0, 30, .18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.field { margin-bottom: 16px; }
label, .label {
  display: block;
  margin-bottom: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
}
input[type=text], input[type=email], input[type=tel], input[type=password], select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--white);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
input::placeholder { color: var(--muted); }
input:focus, select:focus { outline: 2px solid var(--white); outline-offset: 1px; }
select option { color: var(--dark); }
.help { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.errorlist {
  margin: 6px 0;
  padding: 8px 12px;
  list-style: none;
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--dark);
  border-radius: 10px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .15em;
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn--block { display: block; width: 100%; }
.btn--danger { color: var(--white); background: var(--dark); border-color: var(--dark); }
.btn--ghost { color: var(--white); background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.mt { margin-top: 12px; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
form.inline { display: inline; margin: 0; }

.station { margin-bottom: 20px; }
.station:last-child { margin-bottom: 0; }
.station p { margin: 0 0 8px; font-size: .9rem; }
.station h2 { margin-bottom: 2px; }
.station .station__date {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
}
.pickup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
}
.pickup { transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.pickup:hover:not(.pickup--full):not(:has(input:checked)) { background: var(--glass-strong); }
/* Custom round checkbox in place of the native radio. */
.pickup input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: inherit;
}
.pickup input::before {
  content: "✓";
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  transform: scale(0);
  transition: transform .15s ease;
}
.pickup input:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
/* Selected: inverted white row, like the site's white buttons. */
.pickup:has(input:checked) {
  color: var(--dark);
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(120, 0, 30, .3);
}
.pickup:has(input:checked) input { background: var(--primary); border-color: var(--primary); }
.pickup:has(input:checked) input::before { transform: scale(1); }
.pickup:has(input:checked) .pickup__seats { color: var(--primary); }
/* Full pickups are inert: no hover, no click, no focus styling. */
.pickup--full { opacity: .45; pointer-events: none; user-select: none; }
.pickup__time { flex: 1; font-weight: 700; }
.pickup__seats {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  border-radius: 999px;
}
.badge--valid { color: var(--dark); background: var(--white); }
.badge--valid::before { content: "● "; color: var(--ok); }
.badge--used { color: var(--white); background: var(--glass-strong); }
.badge--cancelled { color: var(--white); background: var(--dark); }

.ticket-name { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.qr { background: var(--white); padding: 14px; border-radius: 16px; max-width: 320px; margin: 20px auto; }
.qr svg { display: block; width: 100%; height: auto; }

.alert { padding: 14px 16px; margin-bottom: 16px; font-weight: 700; border-radius: 14px; }
.alert--ok { color: var(--white); background: var(--ok); }
.alert--warning { color: var(--dark); background: var(--warn); }
.alert--error { color: var(--white); background: var(--dark); }

/* Consents */
.consents { margin: 4px 0 20px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  font-size: .95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.consent a { font-weight: 700; }
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 2px solid var(--white);
  border-radius: 6px;
  cursor: pointer;
}
.consent input::before {
  content: "✓";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  transform: scale(0);
  transition: transform .15s ease;
}
.consent input:checked { background: var(--white); }
.consent input:checked::before { transform: scale(1); }
.consent input:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.consents .errorlist { margin: -4px 0 12px 34px; }

/* Legal pages */
.legal h2 { margin-top: 24px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal code { font-size: .9em; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 32px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--white); }

/* Scanner */
#reader {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  /* Space below the camera whether or not the camera error message is shown. */
  margin-bottom: 16px;
}
#camera-error { margin-top: 0; }
/* html5-qrcode sizes its video inline; make it fill the square. */
#reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.counter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.counter-row .counter { flex: 1; }
.counter-link, .pickup-link { text-decoration: none; }
.counter-link {
  flex: none;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.counter-link[hidden] { display: none; }

/* People on a pickup (read-only list for staff) */
.person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}
.person:last-child { border-bottom: 0; }
.person__main { display: flex; flex-direction: column; min-width: 0; }
.person__name { font-weight: 700; }
.person__phone { font-size: .9rem; color: var(--muted); text-decoration: none; }
.person__status {
  flex: none;
  padding: 4px 12px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: 999px;
  color: var(--dark);
  background: var(--white);
}
.person--boarded .person__status { color: var(--white); background: var(--ok); }
.person--boarded .person__name { opacity: .75; }

.counter {
  margin: 12px 0;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.scan-result {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.scan-result[hidden] { display: none; }
.scan-result--ok { background: var(--ok); }
.scan-result--warning { color: var(--dark); background: var(--warn); }
.scan-result--error { background: var(--err); }
.scan-result__icon { font-size: 5rem; line-height: 1; margin-bottom: 12px; }
.scan-result { cursor: pointer; }
.scan-result__name { margin-top: 8px; font-size: 1.2rem; font-weight: 700; }
.scan-result__name[hidden], .scan-result__force[hidden] { display: none; }
.scan-result__force {
  margin-top: 40px;
  min-width: 220px;
  padding: 18px 32px;
  font-size: 1rem;
}
.scan-result__force:not([hidden]) + .scan-result__close { margin-top: 12px; }
.scan-result__close {
  margin-top: 40px;
  min-width: 220px;
  padding: 18px 32px;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  border-color: var(--white);
}
