/* =========================================================
   TALENTIME 41 — registrations, payments, staff tools, live screens
   Builds on the tokens in styles.css
   ========================================================= */

/* ---------- shared bits ---------- */
.btn--sm { padding: 8px 12px; font-size: 0.8rem; border-radius: 8px; }
.btn--xs { padding: 4px 8px; font-size: 0.75rem; border-radius: 6px; }
.btn--approve { color: #03170f; background: linear-gradient(135deg, #34d399, #22d3ee); box-shadow: 0 0 20px rgba(52, 211, 153, 0.35); }
.btn--approve:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(52, 211, 153, 0.6); }
.btn--danger { color: #fecdd3; background: rgba(225, 29, 72, 0.12); border-color: rgba(251, 113, 133, 0.5); }
.btn--danger:hover { background: rgba(225, 29, 72, 0.25); }

code { font-family: 'Share Tech Mono', ui-monospace, monospace; font-size: 0.95em; color: var(--cyan); }

.status {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--head);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid;
}
.status--approved { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.5); background: rgba(16, 185, 129, 0.12); }
.status--pending { color: var(--orange); border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.1); }
.status--rejected { color: #fda4af; border-color: rgba(253, 164, 175, 0.5); background: rgba(225, 29, 72, 0.12); }
.status--awaiting, .status--awaiting-payment, .status--muted { color: var(--text-dim); border-color: var(--line); background: rgba(255, 255, 255, 0.04); }

/* ---------- form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field__label { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--text-dim); }
.field__label em { text-transform: none; letter-spacing: 0; font-style: normal; color: var(--text-faint); }
.field__hint { font-size: 0.8rem; color: var(--text-faint); }
.field__hint.is-ok { color: #6ee7b7; }
.field__hint.is-bad { color: #fda4af; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.portal input:not([type=checkbox]):not([type=file]), .portal select, .portal textarea,
.staff-body input:not([type=checkbox]):not([type=file]), .staff-body select, .staff-body textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(10, 1, 24, 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.portal input:focus, .portal select:focus, .portal textarea:focus,
.staff-body input:focus, .staff-body select:focus, .staff-body textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.staff-body select option, .portal select option { background: var(--panel-solid); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text-dim); margin: 6px 0 12px; }
.switch input { width: 18px; height: 18px; accent-color: var(--pink); }

.form-alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid; }
.form-alert ul { margin: 6px 0 0; padding-left: 20px; }
.form-alert p { margin: 4px 0; }
.form-alert__title { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.form-alert--error { background: rgba(225, 29, 72, 0.1); border-color: rgba(251, 113, 133, 0.45); color: #fecdd3; }
.form-alert--ok { background: rgba(16, 185, 129, 0.1); border-color: rgba(110, 231, 183, 0.45); color: #d1fae5; }

/* ---------- participant portal ---------- */
.portal { padding: 28px 0 72px; min-height: 70vh; }
.portal__wrap { max-width: 1040px; }
.portal__wrap--narrow { max-width: 640px; }
.portal__back { display: flex; width: fit-content; align-items: center; gap: 6px; color: var(--cyan); font-size: 0.9rem; margin-bottom: 18px; }
.portal__title { font-family: var(--display); font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; margin: 0 0 20px; }
.portal__lead { color: var(--text-dim); line-height: 1.6; margin: -6px 0 22px; }
.portal__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.portal__side { position: sticky; top: 104px; }

.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.steps__item {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-faint); font-family: var(--head); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.72rem;
}
.steps__item span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); font-size: 0.75rem; }
.steps__item.is-current { color: var(--text); border-color: var(--pink); box-shadow: 0 0 16px rgba(217, 70, 239, 0.25); }
.steps__item.is-current span { background: var(--pink); color: #11001f; }
.steps__item.is-done { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.4); }
.steps__item.is-done span { background: rgba(16, 185, 129, 0.25); }
@media (max-width: 640px) {
  .steps {
    flex-wrap: nowrap; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; margin-bottom: 18px;
  }
  .steps__item { flex: none; gap: 4px; padding: 4px 7px 4px 4px; font-size: 0.5rem; letter-spacing: 0.02em; white-space: nowrap; }
  .steps__item span { width: 16px; height: 16px; font-size: 0.55rem; }
}

.pform__group { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 8px; margin: 0 0 18px; background: var(--panel); }
.pform__group legend { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--pink); padding: 0 8px; }
.pform__hint { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 14px; }
.pform__submit { width: 100%; justify-content: center; }
.pform__fine { color: var(--text-faint); font-size: 0.82rem; margin: 12px 0 0; line-height: 1.5; }
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.email-warn {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 4px 0 14px;
  border-radius: 10px; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.45); color: #fde68a;
}
.email-warn i { font-size: 1.4rem; flex: none; }
.email-warn p { margin: 0; font-size: 0.9rem; line-height: 1.5; }

.pcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--panel); }
.pcard--muted { text-align: center; }
.pcard__eyebrow { margin: 0 0 4px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--text-faint); }
.pcard__title { font-family: var(--head); font-size: 1.3rem; margin: 0 0 12px; display: flex; gap: 8px; align-items: center; justify-content: inherit; }
.pcard__fine { color: var(--text-faint); font-size: 0.8rem; margin: 12px 0 0; line-height: 1.5; }

.kv { margin: 0; display: grid; gap: 10px; }
.kv > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; }
.kv dt { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; color: var(--text-faint); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.kv dd small { color: var(--text-dim); }
.kv__big { font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.kv--wide > div { grid-template-columns: 150px 1fr; }

.support-note { margin: 22px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-bright); color: var(--text-dim); font-size: 0.9rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.support-note a { color: var(--cyan); }
.support-note i { color: var(--cyan); font-size: 1.2rem; }

.bookmark-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin: 0 0 22px; border-radius: 10px; background: rgba(34, 211, 238, 0.07); border: 1px solid var(--line-bright); color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }
.bookmark-note i { color: var(--cyan); font-size: 1.2rem; }

.paybox { margin-bottom: 18px; }
.paywiz__dots { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0 0 16px; }
.paywiz__dots li { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); transition: all 0.2s ease; }
.paywiz__dots li.is-active { width: 22px; border-radius: 4px; background: var(--pink); box-shadow: 0 0 8px rgba(217, 70, 239, 0.6); }
.paywiz__nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.paywiz__nav:has(button:only-child) { justify-content: flex-end; }
@media (max-width: 480px) {
  .paywiz__nav { flex-direction: column-reverse; align-items: stretch; }
  .paywiz__nav > .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}
.paystep .howto, .paystep .coupon-box:last-child { margin-bottom: 0; }
.paybox__amount { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin: 0 0 14px; color: var(--orange); }
.paybox__qr-wrap { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 4px; }
.paybox__qr { text-align: center; }
.paybox__qr img { display: block; background: #fff; border-radius: 12px; padding: 6px; width: 220px; height: 220px; }
.paybox__qr p { margin: 8px 0 0; font-size: 0.8rem; color: var(--text-faint); }
.paybox__payee { margin: 8px 0 14px; font-size: 0.85rem; color: var(--text-faint); }
.paybox__app { display: none; }
.paypick { display: none; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
@media (hover: none) and (pointer: coarse) {
  .paypick { display: flex; }
  .paybox__qr-wrap { display: none; }
  .paybox.is-qr-shown .paypick { display: none; }
  .paybox.is-qr-shown .paybox__qr-wrap { display: grid; }
}
.copyline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copyline code { font-size: 1.15rem; padding: 6px 10px; border-radius: 8px; background: rgba(10, 1, 24, 0.7); border: 1px solid var(--line); }

.howto { margin: 0 0 20px; padding-left: 22px; color: var(--text-dim); line-height: 1.6; }
.howto li { margin-bottom: 6px; }
.howto strong { color: var(--text); }

.dropzone {
  display: block; position: relative; cursor: pointer; margin-bottom: 14px; border-radius: 12px;
  border: 2px dashed var(--line-bright); background: rgba(34, 211, 238, 0.04); min-height: 140px; overflow: hidden;
}
.dropzone:hover { background: rgba(34, 211, 238, 0.08); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 140px; text-align: center; padding: 16px; color: var(--text-dim); }
.dropzone__empty i { font-size: 2rem; color: var(--cyan); }
.dropzone__empty em { font-style: normal; font-size: 0.8rem; color: var(--text-faint); }
.dropzone__preview { display: block; max-height: 320px; margin: 0 auto; }

.state-card { display: flex; gap: 18px; align-items: flex-start; }
.state-card p { color: var(--text-dim); line-height: 1.6; margin: 0 0 8px; }
.state-card__icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; }
.state-card__icon--pending { color: var(--orange); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.4); animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow { 50% { box-shadow: 0 0 22px rgba(251, 191, 36, 0.45); } }

.pass { border-radius: 18px; overflow: hidden; background: #fff; color: #0a0118; box-shadow: 0 0 40px rgba(217, 70, 239, 0.35); }
.pass__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; background: linear-gradient(90deg, var(--pink), var(--purple)); color: #fff; font-family: var(--head); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }
.pass__body { display: flex; gap: 20px; align-items: center; padding: 20px; flex-wrap: wrap; }
.pass__qr { width: 240px; height: 240px; }
.pass__info .pcard__eyebrow { color: #6b6485; }
.pass__no { font-family: 'Share Tech Mono', monospace; font-size: 1.8rem; margin: 0 0 12px; letter-spacing: 0.04em; }
.pass__name { font-family: var(--head); font-size: 1.3rem; font-weight: 600; margin: 0; }
.pass__team { margin: 2px 0 0; color: #4b4566; }
.pass__hint { margin: 14px 0 0; color: #4b4566; font-size: 0.88rem; }
.pass__checked { margin: 14px 0 0; color: #047857; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.pass__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.ev-rail__closed { margin: -8px 0 16px; font-size: 0.85rem; color: var(--text-faint); }
.ev-rail__links { display: grid; gap: 8px; margin: -4px 0 20px; }
.ev-rail__links a { display: inline-flex; gap: 8px; align-items: center; color: var(--cyan); font-size: 0.9rem; }

/* ---------- leaderboard (public page + projector) ---------- */
.lb { display: grid; gap: 10px; }
.lb__empty { text-align: center; color: var(--text-faint); padding: 40px 12px; border: 1px dashed var(--line); border-radius: var(--radius); font-family: 'Share Tech Mono', monospace; }
.lb__row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
}
.lb__row.is-top { border-color: rgba(251, 191, 36, 0.6); background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), var(--panel)); box-shadow: 0 0 22px rgba(251, 191, 36, 0.18); }
.lb__row.is-out { opacity: 0.5; }
.lb__rank { font-family: var(--display); font-size: 1.8rem; color: var(--text-faint); text-align: center; }
.lb__row.is-top .lb__rank { color: var(--orange); }
.lb__who { display: flex; flex-direction: column; min-width: 0; }
.lb__name { font-family: var(--head); font-size: 1.15rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__sub { font-size: 0.8rem; color: var(--text-faint); }
.lb__score { font-family: 'Share Tech Mono', monospace; font-size: 1.4rem; color: var(--cyan); }
.lb__status { font-family: var(--head); font-size: 0.68rem; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 6px; border: 1px solid; }
.lb__status--active { color: var(--orange); border-color: rgba(251, 191, 36, 0.5); }
.lb__status--qualified { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.5); }
.lb__status--eliminated { color: #fda4af; border-color: rgba(253, 164, 175, 0.5); }
.lb-round { font-family: var(--display); font-size: 1.6rem; color: var(--pink); margin: -8px 0 18px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- staff shell ---------- */
.staff-body { min-height: 100vh; background: var(--bg); }
.staff-body .scanlines { display: none; }
.staff-bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: rgba(10, 1, 24, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.staff-bar__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.2rem; }
.staff-bar__brand img { border-radius: 50%; object-fit: cover; }
.staff-bar__brand em { font-style: normal; color: var(--pink); font-family: var(--head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
.staff-bar__nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.staff-bar__nav a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--text-dim); font-size: 0.88rem; }
.staff-bar__nav a:hover { background: rgba(124, 58, 237, 0.18); color: var(--text); }
.staff-bar__out { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--text-faint); font-size: 0.85rem; }
.staff-main { padding: 24px 20px 60px; }
.staff-wrap { max-width: 1180px; margin: 0 auto; }
.staff-wrap--narrow { max-width: 560px; }
.staff-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.staff-h1 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.staff-h2 { font-family: var(--head); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 30px 0 12px; }
.staff-h3 { font-family: var(--head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin: 20px 0 10px; }
.staff-lead { color: var(--text-dim); line-height: 1.6; margin: 0 0 20px; max-width: 760px; }
.count { font-family: var(--head); font-size: 1rem; padding: 2px 12px; border-radius: 999px; background: rgba(217, 70, 239, 0.18); color: var(--pink-soft); }

.flash { max-width: 1180px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 10px; border: 1px solid; display: flex; gap: 10px; align-items: center; }
.staff-wrap .flash { margin: 0 0 16px; }
.flash--ok { background: rgba(16, 185, 129, 0.12); border-color: rgba(110, 231, 183, 0.45); color: #d1fae5; }
.flash--err { background: rgba(225, 29, 72, 0.12); border-color: rgba(251, 113, 133, 0.45); color: #fecdd3; }
.flash--warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 24px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transition: border-color 0.15s ease; }
a.tile:hover { border-color: var(--cyan); }
.tile--hot { border-color: rgba(251, 191, 36, 0.55); box-shadow: 0 0 20px rgba(251, 191, 36, 0.12); }
.tile__n { font-family: var(--display); font-size: 2rem; line-height: 1; }
.tile--hot .tile__n { color: var(--orange); }
.tile__l { color: var(--text-dim); font-size: 0.85rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--text-faint); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid rgba(124, 58, 237, 0.14); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table small { color: var(--text-faint); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions a { color: var(--cyan); }
.table a { color: var(--text); }
.rowlink { cursor: pointer; }
.rowlink:hover td { background: rgba(124, 58, 237, 0.1); }
.empty { text-align: center; color: var(--text-faint); padding: 40px 12px; }
div.empty { border: 1px dashed var(--line); border-radius: 12px; font-size: 1.05rem; }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto !important; min-width: 90px; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr auto; gap: 10px; margin-bottom: 16px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; color: var(--text-faint); }

/* review queue */
.review { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 16px; margin-bottom: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.review__shot { display: block; border-radius: 10px; overflow: hidden; background: #000; max-height: 420px; }
.review__shot img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.review__event { margin: 0; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--pink); }
.review__name { margin: 2px 0 12px; font-family: var(--head); font-size: 1.35rem; }
.review__name small { color: var(--text-dim); font-size: 0.9rem; }
.review__kv { margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; }
.review__kv dt { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; color: var(--text-faint); }
.review__kv dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.review__amt { font-family: var(--display); font-size: 1.6rem; color: var(--orange); }
.review__utr { font-size: 1.2rem; letter-spacing: 0.04em; }
.review__actions { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.reject summary { list-style: none; }
.reject summary::-webkit-details-marker { display: none; }
.reject[open] summary { margin-bottom: 10px; }
.reject__form { display: grid; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid rgba(251, 113, 133, 0.4); background: rgba(225, 29, 72, 0.06); min-width: min(360px, 80vw); }
.reject__form .field { margin: 0; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.detail__main .kv { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 16px; }
.detail__shot { display: block; position: sticky; top: 80px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.detail__shot img { display: block; width: 100%; }

.evset { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.evset__card { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 80px; }
.evset__card--link:hover { border-color: var(--cyan); }
.evset__card h2 { font-family: var(--head); font-size: 1.1rem; margin: 0; }
.evset__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.evset__why { margin: 0 0 6px; font-size: 0.8rem; color: var(--text-faint); }
.evset__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.evset__foot { font-size: 0.8rem; color: var(--text-faint); margin: 4px 0 12px; }

.pwbox { padding: 20px; border-radius: 12px; border: 1px solid var(--pink); background: var(--panel); margin: 16px 0; }
.pwbox__v { font-family: 'Share Tech Mono', monospace; font-size: 1.5rem; margin: 0 0 12px; user-select: all; }
.pwbox__v--pw { color: var(--orange); font-size: 2rem; letter-spacing: 0.06em; }

.login { max-width: 400px; margin: 8vh auto 0; text-align: center; }
.login__logo { border-radius: 50%; object-fit: cover; box-shadow: 0 0 30px rgba(251, 191, 36, 0.35); }
.login__title { font-family: var(--display); font-size: 2.2rem; margin: 14px 0 4px; }
.login__sub { color: var(--text-faint); margin: 0 0 24px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.login .pform { text-align: left; }

/* ---------- desk ---------- */
.desk__stats { margin: 0; font-family: 'Share Tech Mono', monospace; font-size: 1.2rem; color: var(--cyan); }
.desk__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.desk__cam { display: grid; gap: 12px; justify-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; }
.desk__reader { width: 100%; max-width: 440px; border-radius: 10px; overflow: hidden; }
.desk__reader video { border-radius: 10px; }
.desk__manual { display: flex; gap: 8px; }
.desk__search { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.desk__search summary { cursor: pointer; color: var(--cyan); display: flex; gap: 8px; align-items: center; }
.desk__search input { margin-top: 12px; }
.desk__results { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.desk__results li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; background: rgba(10, 1, 24, 0.5); }
.desk__results li div { display: flex; flex-direction: column; min-width: 0; }
.desk__results li span { font-size: 0.8rem; color: var(--text-faint); }
.desk__none { color: var(--text-faint); }

.verdict { padding: 22px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel); text-align: center; transition: background 0.2s ease, border-color 0.2s ease; }
.verdict__icon { font-size: 4rem; line-height: 1; }
.verdict__title { font-family: var(--display); font-size: 2.2rem; margin: 8px 0 4px; letter-spacing: 0.03em; }
.verdict__msg { color: var(--text-dim); margin: 0 0 12px; }
.verdict .kv { text-align: left; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.verdict__actions { margin-top: 16px; }
.verdict--idle .verdict__icon { color: var(--text-faint); }
.verdict--ok { border-color: #34d399; background: rgba(16, 185, 129, 0.14); }
.verdict--ok .verdict__icon, .verdict--ok .verdict__title { color: #6ee7b7; }
.verdict--bad { border-color: #fb7185; background: rgba(225, 29, 72, 0.16); }
.verdict--bad .verdict__icon, .verdict--bad .verdict__title { color: #fda4af; }
.verdict--warn { border-color: var(--orange); background: rgba(251, 191, 36, 0.12); }
.verdict--warn .verdict__icon, .verdict--warn .verdict__title { color: var(--orange); }

/* ---------- event head console ---------- */
.console__screens { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 0.85rem; color: var(--text-faint); }
.console__screens a { display: inline-flex; gap: 5px; align-items: center; color: var(--cyan); }
.console__err { padding: 10px 14px; border-radius: 10px; background: rgba(225, 29, 72, 0.14); border: 1px solid rgba(251, 113, 133, 0.45); color: #fecdd3; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 16px 0 20px; overflow-x: auto; }
.tabs__btn { display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-dim); padding: 10px 14px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.tabs__btn.is-active { color: var(--text); border-bottom-color: var(--pink); }
.panel { padding: 4px 0; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.timer-preview { font-family: 'Share Tech Mono', monospace; font-size: clamp(3.5rem, 12vw, 6rem); line-height: 1; color: var(--text-faint); }
.timer-preview.is-running { color: var(--text); text-shadow: 0 0 20px rgba(34, 211, 238, 0.45); }
.timer-preview.is-expired { color: #fb7185; animation: blink 1s steps(2) infinite; }
.timer-status { margin: 4px 0 8px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); font-size: 0.8rem; }
@keyframes blink { 50% { opacity: 0.3; } }
.lot-preview { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 8px; }
.lot-preview__title { margin: 0; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--pink); }
.lot-preview__name { margin: 6px 0; font-family: var(--display); font-size: 2rem; }
.lot-preview__meta { margin: 0; font-size: 0.85rem; color: var(--text-faint); }
.console__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.console__cols--tight { align-items: center; margin-bottom: 12px; }
.console textarea { font-family: 'Share Tech Mono', monospace; resize: vertical; }
.pchips { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pchip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(217, 70, 239, 0.14); border: 1px solid rgba(217, 70, 239, 0.4); font-size: 0.85rem; }
.pchip--muted { background: none; border-style: dashed; border-color: var(--line); color: var(--text-faint); padding-right: 12px; }
.pchip__x { border: 0; background: rgba(255, 255, 255, 0.1); color: var(--text); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; }
.lb-add { display: grid; grid-template-columns: 2fr 2fr 100px 140px auto; gap: 8px; margin-bottom: 6px; }
.lb-edit input, .lb-edit select { padding: 7px 9px !important; font-size: 0.9rem !important; }
.lb-edit td.num input { max-width: 90px; text-align: right; }
.lb-edit tr.is-out td { opacity: 0.55; }
.lb-edit td.actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ---------- projector screens ---------- */
.display-body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); overflow: hidden; }
.screen { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 3vh 4vw; }
.screen__bg { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(ellipse at 20% 0%, rgba(217, 70, 239, 0.28), transparent 55%),
  radial-gradient(ellipse at 80% 100%, rgba(34, 211, 238, 0.22), transparent 55%),
  linear-gradient(180deg, var(--bg-2), var(--bg)); }
.screen__bg::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); }
.screen__head { display: flex; align-items: center; gap: 16px; }
.screen__head img { border-radius: 50%; object-fit: cover; }
.screen__kicker { margin: 0; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.2em; font-size: clamp(0.9rem, 1.6vw, 1.3rem); color: var(--cyan); }
.screen__codename { margin: 2px 0 0; font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 2rem); }
.screen__fs { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text-faint); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; opacity: 0.5; }
.screen__fs:hover { opacity: 1; }
.screen__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.bigtimer { padding: 5vh 6vw; border: 3px solid var(--line); border-radius: 24px; background: rgba(10, 1, 24, 0.55); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.bigtimer__label { margin: 0; font-family: 'Share Tech Mono', monospace; color: var(--cyan); letter-spacing: 0.3em; font-size: clamp(1rem, 2vw, 1.6rem); }
.bigtimer__time { margin: 0; font-family: 'Share Tech Mono', monospace; font-size: clamp(6rem, 22vw, 20rem); line-height: 1; font-variant-numeric: tabular-nums; }
.bigtimer__status { margin: 1vh 0 0; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.4em; color: var(--text-faint); font-size: clamp(0.9rem, 1.6vw, 1.3rem); }
.bigtimer.is-idle .bigtimer__time { color: var(--text-faint); }
.bigtimer.is-running { border-color: var(--cyan); box-shadow: 0 0 60px rgba(34, 211, 238, 0.3); }
.bigtimer.is-running .bigtimer__time { text-shadow: 0 0 30px rgba(34, 211, 238, 0.5); }
.bigtimer.is-final { border-color: var(--orange); box-shadow: 0 0 60px rgba(251, 191, 36, 0.4); }
.bigtimer.is-final .bigtimer__time { color: var(--orange); }
.bigtimer.is-paused { border-color: rgba(251, 191, 36, 0.4); }
.bigtimer.is-paused .bigtimer__time { opacity: 0.75; }
.bigtimer.is-expired { border-color: #fb7185; box-shadow: 0 0 90px rgba(251, 113, 133, 0.6); animation: expiredPulse 1s ease-in-out infinite; }
.bigtimer.is-expired .bigtimer__time, .bigtimer.is-expired .bigtimer__status { color: #fb7185; }
@keyframes expiredPulse { 50% { box-shadow: 0 0 30px rgba(251, 113, 133, 0.2); } }

.biglot__title { margin: 0 0 3vh; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.4em; color: var(--pink); font-size: clamp(1.2rem, 2.6vw, 2.2rem); }
.biglot { min-width: min(80vw, 1100px); padding: 6vh 4vw; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); background: rgba(10, 1, 24, 0.5); }
.biglot__name { margin: 0; font-family: var(--display); font-size: clamp(3rem, 10vw, 9rem); line-height: 1.05; color: var(--text-faint); overflow-wrap: anywhere; }
.biglot__status { margin: 2vh 0 0; font-family: 'Share Tech Mono', monospace; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-faint); font-size: clamp(0.9rem, 1.6vw, 1.3rem); }
.biglot.is-rolling { border-color: var(--cyan); }
.biglot.is-rolling .biglot__name { color: var(--text); filter: blur(1.5px); transform: skewX(-6deg); }
.biglot.is-winner { border-color: var(--orange); box-shadow: 0 0 80px rgba(251, 191, 36, 0.25); }
.biglot.is-winner .biglot__name { color: var(--orange); text-shadow: 0 0 40px rgba(251, 191, 36, 0.6); animation: winnerIn 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes winnerIn { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.biglot__past { list-style: none; padding: 0; margin: 4vh 0 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 80vw; }
.biglot__past li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); font-family: var(--head); font-size: clamp(0.8rem, 1.3vw, 1.1rem); }

.screen__board { flex: 1; width: 100%; max-width: 1400px; margin: 3vh auto 0; }
.lb-round--big { font-size: clamp(2rem, 5vw, 4.5rem); text-align: center; margin: 0 0 3vh; }
.lb--big .lb__row { padding: 1.6vh 2vw; grid-template-columns: 5vw minmax(0, 1fr) auto auto; }
.lb--big .lb__rank { font-size: clamp(1.8rem, 3.4vw, 3.2rem); }
.lb--big .lb__name { font-size: clamp(1.3rem, 2.6vw, 2.4rem); }
.lb--big .lb__sub { font-size: clamp(0.8rem, 1.2vw, 1.1rem); }
.lb--big .lb__score { font-size: clamp(1.5rem, 3vw, 2.8rem); }
.lb--big .lb__status { font-size: clamp(0.7rem, 1vw, 1rem); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .portal__grid, .detail, .desk__grid, .console__cols { grid-template-columns: 1fr; }
  .portal__side, .detail__shot { position: static; }
  .review { grid-template-columns: 1fr; }
  .review__shot, .review__shot img { max-height: 360px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1 / -1; }
  .lb-add { grid-template-columns: 1fr 1fr; }
  .lb-add input[name=name] { grid-column: 1 / -1; }
  .staff-bar__nav a span { display: none; }
  .staff-bar__nav a i { font-size: 1.2rem; }
}
@media (max-width: 640px) {
  .field-row, .members { grid-template-columns: 1fr; }
  .paybox__qr-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .paypick { justify-content: center; }
  .copyline { justify-content: center; }
  .paybox__app { display: inline-flex; }
  .kv--wide > div { grid-template-columns: 1fr; gap: 2px; }
  .lb__row { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 12px; }
  .lb__status { grid-column: 2 / -1; justify-self: start; }
  .pass__body { justify-content: center; text-align: center; }
  .staff-main { padding: 16px 12px 48px; }
  .staff-bar { padding: 8px 12px; }
  .staff-bar__out span { display: none; }
  .verdict__title { font-size: 1.7rem; }
}
@media (hover: none) and (pointer: coarse) {
  .paybox__app { display: inline-flex; }
}

/* entry pass prints cleanly */
@media print {
  .navbar, .footer, .sponsor-marquee, .scanlines, .steps, .bookmark-note, .portal__side, .pass__actions, .support-note, .section__eyebrow { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .portal { padding: 0; }
  .portal__grid { display: block; }
  .pass { box-shadow: none; border: 1px solid #000; }
}

/* ---------- GTA touches ---------- */
/* Staff + desk pages share the site's Vice City sunset backdrop */
.staff-body {
  background:
    radial-gradient(ellipse at 15% -10%, rgba(217, 70, 239, 0.22), transparent 50%),
    radial-gradient(ellipse at 95% 110%, rgba(34, 211, 238, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  background-attachment: fixed;
}
.login__eyebrow { justify-content: center; font-family: 'Share Tech Mono', monospace; color: var(--cyan); }

/* "Mission passed" banner in the classic gold-on-black GTA style */
.mission-banner { display: flex; flex-direction: column; align-items: center; margin: 0 0 18px; text-align: center; animation: missionIn 0.9s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.mission-banner__title {
  font-family: var(--display); font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: 1; text-transform: uppercase;
  color: var(--orange); letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 30px rgba(251, 191, 36, 0.45);
}
.mission-banner__sub { margin-top: 6px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.85rem; color: var(--text); text-shadow: 1px 1px 0 #000; }
@keyframes missionIn { from { opacity: 0; transform: scale(1.4); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Desk verdict headline reads like the in-game WASTED / BUSTED cards */
.verdict__title { text-transform: uppercase; text-shadow: 2px 2px 0 #000; }
.verdict--ok .verdict__title { color: var(--orange); }
.verdict--bad .verdict__title, .verdict--warn .verdict__title { font-size: 3rem; letter-spacing: 0.06em; }
.verdict--bad .verdict__title { color: #ef4444; }
.verdict--warn .verdict__title { color: #60a5fa; }
.verdict--warn { border-color: #60a5fa; background: rgba(59, 130, 246, 0.14); }
.verdict--warn .verdict__icon { color: #60a5fa; }
.verdict__msg { font-weight: 600; color: var(--text); }

/* Projector timer: heist-terminal look to match the home countdown */
.bigtimer { font-family: 'Share Tech Mono', monospace; }
.bigtimer__label::after { content: '_'; animation: blink 1s steps(2) infinite; }

/* ---------- sponsor banners (image only) ---------- */
.adslot { position: relative; margin: 24px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); }
.adslot__tag {
  position: absolute; top: 6px; left: 6px; z-index: 2; padding: 2px 7px; border-radius: 4px;
  font-family: var(--head); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); background: rgba(10, 1, 24, 0.72); border: 1px solid rgba(255, 255, 255, 0.12);
}
.adslot__link { display: block; }
.adslot__img { display: block; width: 100%; object-fit: cover; }
.adslot--wide .adslot__img { aspect-ratio: 6 / 1; }
.adslot--box .adslot__img { aspect-ratio: 6 / 5; }
.adslot--box { margin: 18px 0 0; }
.adslot__link:hover .adslot__img { filter: brightness(1.08); }
.adslot-row .adslot { margin: 8px 0 0; }
.adslot-row--bottom .adslot { margin: 40px 0 0; }
.portal__side .adslot { margin-top: 16px; }

/* home slideshow: one thin strip, slides crossfade */
.adshow-wrap { padding: 8px 0 28px; }
.adshow { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); box-shadow: 0 0 24px rgba(124, 58, 237, 0.18); }
.adshow__track { position: relative; aspect-ratio: 6 / 1; }
.adshow__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.adshow__slide.is-active { opacity: 1; visibility: visible; }
.adshow__slide .adslot__img { width: 100%; height: 100%; }
.adshow__dots { position: absolute; bottom: 6px; right: 8px; display: flex; gap: 5px; z-index: 2; }
.adshow__dot { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; }
.adshow__dot.is-active { background: var(--pink); width: 18px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .adshow__slide { transition: none; } }

/* projector sponsor strip */
.screen__ads { position: relative; margin: 2vh auto 0; width: min(100%, 1400px); display: grid; place-items: center; }
.screen__ads .adslot__tag { top: -12px; left: 50%; transform: translateX(-50%); }
.screen__ad { grid-area: 1 / 1; width: 100%; max-height: 14vh; aspect-ratio: 1920 / 180; object-fit: contain; border-radius: 10px; opacity: 0; transition: opacity 0.8s ease; }
.screen__ad.is-active { opacity: 1; }

/* discount code on the pay page */
.paybox__discount { margin: -8px 0 14px; font-size: 0.85rem; color: #6ee7b7; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.paybox__discount s { color: var(--text-faint); }
.coupon-box { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(110, 231, 183, 0.45); background: rgba(16, 185, 129, 0.06); }
.coupon-box summary { cursor: pointer; color: #6ee7b7; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.coupon-box__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.coupon-box__row input { flex: 1; min-width: 160px; text-transform: uppercase; }
.coupon-box__row span { flex: 1; color: #d1fae5; }
.coupon-box__err { margin: 0 0 6px; color: #fda4af; display: flex; gap: 6px; align-items: center; }
.review__coupon { display: block; color: #6ee7b7; font-size: 0.78rem; }
.review__shot--free { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 180px; color: #6ee7b7; text-align: center; background: rgba(16, 185, 129, 0.08); }
.review__shot--free i { font-size: 2.4rem; }

/* admin: toggles, ads, coupons */
.toggle { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text-faint); cursor: pointer; font-family: var(--head); font-size: 0.72rem; letter-spacing: 0.1em; }
.toggle__knob { width: 20px; height: 20px; border-radius: 50%; background: var(--text-faint); transition: background 0.15s ease; }
.toggle.is-on { border-color: rgba(110, 231, 183, 0.55); background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.toggle.is-on .toggle__knob { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, 0.6); }
.adgroup { margin-bottom: 18px; }
.adgroup .staff-h3 small { text-transform: none; letter-spacing: 0; color: var(--text-faint); font-family: var(--body); }
.adlist { display: grid; gap: 12px; }
.adcard { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.adcard.is-off { opacity: 0.6; }
.adcard__img { width: 100%; aspect-ratio: 6 / 1; object-fit: cover; border-radius: 8px; background: #000; }
.adcard__top { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.adcard__meta, .adcard__stats { margin: 6px 0 0; font-size: 0.82rem; color: var(--text-faint); overflow-wrap: anywhere; }
.adcard__stats { color: var(--text-dim); }
.adcard__actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.adform__thumb { display: block; width: 100%; aspect-ratio: 6 / 1; object-fit: cover; border-radius: 8px; margin: 4px 0 8px; }
.adform__thumb--box { width: 240px; aspect-ratio: 6 / 5; }
.coupon-code { font-size: 1.05rem; letter-spacing: 0.06em; color: var(--orange); }
.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.checkgrid .switch { margin: 4px 0; font-size: 0.85rem; }
@media (max-width: 900px) {
  .adcard { grid-template-columns: 1fr; }
  .checkgrid { grid-template-columns: 1fr; }
}

/* Keep banners small: wide strips top out at 840×140 and sit centred */
.adslot--wide, .adshow { max-width: 840px; margin-left: auto; margin-right: auto; }
.adshow__dots { padding: 4px 6px; border-radius: 999px; background: rgba(10, 1, 24, 0.6); }
.adshow__dot { background: rgba(255, 255, 255, 0.5); }
.adshow__dot.is-active { background: var(--cyan); }

/* Inputs under 16px make iOS Safari zoom in on focus */
@media (max-width: 900px) {
  .newsletter input, input, select, textarea { font-size: max(16px, 1em); }
}

/* The HTML "hidden" attribute must always win, even over components that set display (e.g. .btn). */
[hidden] { display: none !important; }

/* Flash messages: icon + one flowing line of text (bold words must not become flex columns). */
.flash { display: block; line-height: 1.5; }
.flash > i { margin-right: 6px; vertical-align: -2px; }

/* Staff bar on phones: brand + sign-out on top, menu as one swipeable row underneath.
   Labels stay available to screen readers even when only icons show. */
@media (max-width: 900px) {
  .staff-bar__nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 640px) {
  .staff-bar__nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: space-between; -webkit-overflow-scrolling: touch; }
  .staff-bar__nav a { padding: 9px 10px; }
}

/* Show every sponsor creative whole: off-size images get thin dark bars instead of being cropped. */
.adslot__img, .adshow__slide .adslot__img { object-fit: contain; background: #07010f; }
.adslot--side { margin: 18px 0 0; }
.adslot--side.adslot--wide { max-width: none; }

/* "Sponsor" label sits in its own thin bar above the creative, never on top of the sponsor's logo. */
.adslot, .adshow { display: flex; flex-direction: column; }
.adslot .adslot__tag, .adshow .adslot__tag {
  position: static; display: block; align-self: stretch; transform: none;
  padding: 3px 9px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: rgba(10, 1, 24, 0.85); color: var(--text-faint); font-size: 0.58rem; line-height: 1.4;
}
.adshow__dots { bottom: 8px; }

/* Admin remarks on the approve form, review cards and the registration page */
.approve { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 4px 0 10px; }
.approve__remarks { flex: 1 1 320px; margin: 0; }
.approve textarea, .reject__form textarea, .remarks-form textarea { resize: vertical; min-height: 44px; }
.remarks-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 211, 238, 0.07); border: 1px dashed var(--line-bright); color: var(--text-dim); font-size: 0.88rem; white-space: pre-line; }
.remarks-note i { color: var(--cyan); margin-top: 2px; }
.remarks-note small { color: var(--text-faint); }
.remarks-form { display: grid; gap: 8px; justify-items: start; margin-bottom: 8px; }
.muted-note { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: var(--text-faint); font-weight: 400; }

/* Long unbroken text (emails, UTRs) must wrap inside cards instead of pushing them off-screen on phones. */
.form-alert, .state-card, .pcard, .bookmark-note, .remarks-note { overflow-wrap: anywhere; }
.state-card > div, .pcard__title, .bookmark-note > span { min-width: 0; }

/* Event-head contact lines (long emails) wrap inside the card instead of running off its edge. */
.crew-card__contact, .crew-card__name { overflow-wrap: anywhere; }

/* ---------- live board: one page, three tabs (Leaderboard · Timer · Lot picker) ---------- */
.livetabs {
  display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 22px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--line-bright); background: rgba(10, 1, 24, 0.7);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}
.livetabs__tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto;
  padding: 9px 16px; border: 0; border-radius: 999px; background: none; color: var(--text-dim); cursor: pointer;
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.livetabs__tab:hover { color: var(--text); }
.livetabs__tab[aria-selected="true"] { color: #0a0118; background: linear-gradient(135deg, var(--cyan), var(--pink)); box-shadow: 0 0 18px rgba(217, 70, 239, 0.45); }
.livetabs__tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.livetabs__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: liveDot 1.2s ease-in-out infinite; }
.livetabs__tab[aria-selected="true"] .livetabs__dot { background: #0a0118; box-shadow: none; }
@keyframes liveDot { 50% { opacity: 0.35; } }
.livepanes { width: 100%; }
.livepane { width: 100%; }

/* public page: the big timer / draw components scaled down to fit a normal page */
.live--public .livepane { display: flex; flex-direction: column; align-items: center; }
.live--public .lb, .live--public .lb-round { width: 100%; }
.live--public .bigtimer { width: 100%; padding: 26px 16px; border-radius: 18px; text-align: center; }
.live--public .bigtimer__time { font-size: clamp(3.4rem, 17vw, 7rem); }
.live--public .bigtimer__label { font-size: 0.85rem; }
.live--public .bigtimer__status { font-size: 0.75rem; letter-spacing: 0.3em; }
.live--public .biglot__title { margin: 0 0 14px; font-size: 0.9rem; letter-spacing: 0.3em; text-align: center; }
.live--public .biglot { min-width: 0; width: 100%; padding: 30px 14px; text-align: center; }
.live--public .biglot__name { font-size: clamp(1.9rem, 9vw, 3.6rem); }
.live--public .biglot__status { font-size: 0.75rem; }
.live--public .biglot__past { max-width: 100%; margin-top: 18px; }
.live--public .biglot__past li { font-size: 0.8rem; }

/* projector: tabs centred under the header, active pane fills the screen */
.live--screen .livetabs { margin: 2vh auto; }
.live--screen .livetabs__tab { font-size: clamp(0.8rem, 1.3vw, 1.2rem); padding: 0.7vw 1.8vw; }
.live--screen .livepanes { flex: 1; display: flex; align-items: center; justify-content: center; }
.live--screen .livepane { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.live--screen .livepane[data-live-pane="leaderboard"] { max-width: 1400px; align-self: flex-start; }
.live--screen .lb { gap: 10px; }
.live--screen .lb__row { padding: 1.6vh 2vw; grid-template-columns: 5vw minmax(0, 1fr) auto auto; text-align: left; }
.live--screen .lb__rank { font-size: clamp(1.8rem, 3.4vw, 3.2rem); }
.live--screen .lb__name { font-size: clamp(1.3rem, 2.6vw, 2.4rem); }
.live--screen .lb__sub { font-size: clamp(0.8rem, 1.2vw, 1.1rem); }
.live--screen .lb__score { font-size: clamp(1.5rem, 3vw, 2.8rem); }
.live--screen .lb__status { font-size: clamp(0.7rem, 1vw, 1rem); }
.live--screen .lb-round { font-size: clamp(2rem, 5vw, 4.5rem); text-align: center; margin: 0 0 3vh; }
.live--screen .live__updated { display: none; }

@media (max-width: 520px) {
  .livetabs { width: 100%; }
  .livetabs__tab { padding: 10px 8px; font-size: 0.74rem; gap: 5px; }
}

/* projector leaderboard: use the whole screen width (rows must stretch, not shrink to their text) */
.live--screen .livepane[data-live-pane="leaderboard"] { align-items: stretch; align-self: center; width: 100%; }
.live--screen .livepane[data-live-pane="leaderboard"] .lb { width: 100%; }

/* Banners are always centred: these row rules used to override the auto side margins. */
.adslot-row .adslot { margin: 8px auto 0; }
.adslot-row--bottom .adslot { margin: 40px auto 0; }
.adslot--wide, .adshow { margin-left: auto; margin-right: auto; }
.adslot--side { margin: 18px 0 22px; max-width: none; }

/* Phones: sponsor banner goes edge-to-edge, no box around it, just a small tag above it.
   Uses .container's fixed 22px padding (not 100vw, which mismatches the real viewport
   width across browsers whenever a scrollbar is involved) so the breakout is exact. */
@media (max-width: 640px) {
  .adslot--wide:not(.adslot--side),
  .adshow {
    width: auto; margin-left: -22px; margin-right: -22px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: none;
  }
  .adslot--wide:not(.adslot--side) .adslot__img,
  .adshow__track { aspect-ratio: 6 / 1; }
  .adslot--wide:not(.adslot--side) .adslot__tag,
  .adshow .adslot__tag {
    position: static; display: inline-block; align-self: flex-start;
    margin: 0 0 0 16px; padding: 3px 9px; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px 4px 0 0; border-bottom: 0; background: rgba(10, 1, 24, 0.85);
  }
  .adshow__dots { right: 16px; }
}

/* ---------- event-head console: rounds, instructions, stealth strip ---------- */
.stack-form { display: grid; gap: 8px; justify-items: start; }
.stack-form input { max-width: 340px; }
.nextround { margin: 6px 0 18px; padding: 4px 16px 14px; border-radius: 12px; border: 1px dashed rgba(110, 231, 183, 0.4); background: rgba(16, 185, 129, 0.05); }
.nextround .switch { margin: 2px 0; }

/* Invisible strip: looks like empty space, faintly reddens on hover (same as TTBM) */
.rig { margin-top: 20px; }
.rig__toggle { display: block; width: 100%; height: 32px; padding: 0; border: 0; border-radius: 6px; background: #ef4444; opacity: 0; cursor: default; transition: opacity 0.2s ease; }
.rig__toggle:hover { opacity: 0.1; }
.rig__panel { margin-top: 8px; padding: 12px; border-radius: 10px; border: 1px solid rgba(127, 29, 29, 0.6); background: rgba(127, 29, 29, 0.12); }
.rig__panel select { border-color: #7f1d1d !important; color: #fee2e2 !important; font-family: 'Share Tech Mono', monospace; }
.rig__note { margin: 8px 0 0; font-size: 0.7rem; color: var(--text-faint); }

.howto-panel { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.howto-panel .staff-h2 { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.howto { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.howto summary { cursor: pointer; padding: 13px 16px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: '+'; font-size: 1.3rem; color: var(--cyan); }
.howto[open] summary::after { content: '−'; }
.howto ol, .howto ul { margin: 0; padding: 4px 18px 16px 38px; color: var(--text-dim); line-height: 1.65; font-size: 0.93rem; }
.howto li { margin-bottom: 8px; }
.howto strong { color: var(--text); }
.howto em { font-style: normal; color: var(--cyan); }
.howto kbd { font-family: 'Share Tech Mono', monospace; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-bright); background: rgba(10, 1, 24, 0.7); font-size: 0.85em; }

/* ---------- "Live board" buttons on the event page ---------- */
.ev-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn--live { border-color: rgba(52, 211, 153, 0.6); color: #6ee7b7; background: rgba(16, 185, 129, 0.1); }
.btn--live:hover { background: rgba(16, 185, 129, 0.2); box-shadow: 0 0 24px rgba(52, 211, 153, 0.35); }
.livepulse { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.ev-rail__live { width: 100%; justify-content: center; margin: 0 0 6px; }
.ev-rail__livehint { margin: 0 0 14px; text-align: center; font-size: 0.8rem; color: var(--text-faint); }
.btn--icononly { padding-left: 14px; padding-right: 14px; }
@media (prefers-reduced-motion: reduce) { .livepulse { animation: none; } }

/* ---------- share card in the event-head console ---------- */
.sharecard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 14px 0 6px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-bright); background: var(--panel); }
.sharecard__hint { margin: 0 0 12px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.sharecard__label { display: block; margin: 12px 0 5px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: var(--text-faint); }
.sharecard__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sharecard__row input { flex: 1 1 260px; min-width: 0; font-family: 'Share Tech Mono', monospace; font-size: 0.9rem !important; }
.sharecard__qr { text-align: center; color: var(--text-faint); font-size: 0.75rem; }
.sharecard__qr img { display: block; width: 132px; height: 132px; border-radius: 10px; background: #fff; padding: 5px; margin: 0 auto 6px; }
@media (max-width: 700px) { .sharecard { grid-template-columns: 1fr; } .sharecard__qr { display: none; } }

/* projector: scan-to-follow code in the corner */
.screen__qr { display: flex; align-items: center; gap: 12px; margin-left: auto; margin-right: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-bright); background: rgba(10, 1, 24, 0.6); color: var(--text-dim); font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(0.6rem, 0.9vw, 0.85rem); line-height: 1.4; }
.screen__qr img { width: clamp(64px, 7vw, 110px); height: auto; border-radius: 6px; background: #fff; padding: 3px; }
.screen__head .screen__fs { margin-left: 0; }
@media (max-width: 720px) { .screen__qr { display: none; } .screen__head .screen__fs { margin-left: auto; } }

/* Phone bottom bar: every button is a comfortable 44px tap target */
.ev-mobilebar .btn { min-height: 44px; }

/* Staff pages: whatever gets scrolled to (focus, anchors, "jump to") lands below the sticky menu bar,
   and scrolling is instant so a click never lands mid-animation on the bar. */
html:has(body.staff-body) { scroll-behavior: auto; scroll-padding-top: 84px; }
@media (max-width: 640px) { html:has(body.staff-body) { scroll-padding-top: 118px; } }

/* Event stat cards: keep the icon level with the label, not centred against a wrapped value. */
.ev-stat { align-items: flex-start !important; }

@media (max-width: 640px) {
  .ev-banner__actions { flex-wrap: nowrap; }
  .ev-banner__actions .btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
  .ev-banner__actions .btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Fest-wide "registrations open" switch on the admin dashboard */
.sitegate {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(110, 231, 183, 0.4);
  background: rgba(16, 185, 129, 0.07);
}
.sitegate.is-closed { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.08); }
.sitegate__label { margin: 0 0 4px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; display: flex; gap: 8px; align-items: center; }
.sitegate__hint { margin: 0; max-width: 640px; color: var(--text-dim); font-size: 0.86rem; line-height: 1.5; }
.toggle--lg { padding: 6px 16px 6px 6px; font-size: 0.82rem; }
.toggle--lg .toggle__knob { width: 26px; height: 26px; }
