:root {
  --bg: #15110e; --panel: #211a15; --panel-2: #2a221b; --line: #3a2f26;
  --text: #f3eadf; --muted: #b8a995; --accent: #e3a33c; --accent-ink: #1a1207;
  --good: #5fbf7a; --bad: #e0695c; --warn: #e6b45c;
  --radius: 14px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--font); }
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.wide { max-width: 1100px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.brand svg { width: 22px; height: 22px; }
h1 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 22px 0 10px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.meta { display: grid; gap: 6px; margin: 10px 0 14px; color: var(--muted); }
.meta div { display: flex; gap: 8px; align-items: flex-start; }
.meta svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.badge.kind-tickets { color: #f0c27a; } .badge.kind-seats { color: #9ad0ff; } .badge.kind-menu { color: #a7e3a1; }
.badge.good { color: var(--good); } .badge.bad { color: var(--bad); } .badge.warn { color: var(--warn); }
.badge svg { width: 14px; height: 14px; }
label { display: block; font-size: .9rem; color: var(--muted); margin: 12px 0 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=datetime-local], textarea, select {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 80px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
button, .btn { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; background: var(--panel-2); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--accent); color: var(--accent-ink); }
.ghost { background: transparent; border: 1px solid var(--line); }
.danger { background: #4a2a26; color: #ffd4cf; }
.btn-lg { width: 100%; justify-content: center; padding: 16px; font-size: 1.05rem; margin-top: 16px; }
button svg, .btn svg { width: 18px; height: 18px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 600; }
.item .desc { color: var(--muted); font-size: .9rem; }
.item .price { color: var(--accent); font-weight: 600; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { padding: 8px 14px; border-radius: 0; background: var(--panel-2); font-size: 1.1rem; line-height: 1; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 10px 0; border: 1px solid var(--line); background: var(--panel-2); }
.alert.bad { border-color: #6b3a35; color: #ffd4cf; } .alert.good { border-color: #335e40; color: #cdeed6; } .alert.warn { border-color: #6b5530; color: #f3dfb3; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.evcard { display: flex; flex-direction: column; gap: 8px; }
.evcard .title { font-size: 1.15rem; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.stat { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0; }
.stat div b { display: block; font-size: 1.4rem; }
.stat div span { color: var(--muted); font-size: .85rem; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; font-size: .9rem; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.linkbox button { padding: 8px 12px; }
.hidden { display: none !important; }
footer { color: var(--muted); font-size: .8rem; text-align: center; margin-top: 40px; }
.check { width: 20px; height: 20px; accent-color: var(--accent); }
.items-editor .irow { display: grid; grid-template-columns: 2fr 90px 2fr 70px 70px auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.items-editor #items-head { margin-bottom: 2px; }
.items-editor #items-head span { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) { .items-editor .irow { grid-template-columns: 1fr 1fr 1fr; } .items-editor #items-head { display: none; } }
.steps { display: flex; gap: 4px; flex-wrap: wrap; }
.steps button { padding: 6px 10px; font-size: .85rem; }
.steps button.on { background: var(--good); color: #0b2a14; }
.sold { font-size: 1.4rem; font-weight: 800; color: var(--bad); }
.fake-note { border: 1px dashed var(--warn); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-bottom: 14px; }

header.top#nav { flex-wrap: wrap; row-gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 12px; }
.tabs { display: flex; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tabs a svg { width: 16px; height: 16px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--panel-2); color: var(--accent); border: 1px solid var(--line); padding: 7px 13px; }
@media (max-width: 480px) { .tabs { width: 100%; gap: 2px; } .tabs a { flex: 1 1 auto; justify-content: center; padding: 9px 6px; font-size: .88rem; gap: 5px; } .tabs a.on { padding: 8px 5px; } }
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: 2.3rem; }
.hero p { font-size: 1.1rem; max-width: 560px; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.door-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none; color: inherit; transition: border-color .15s; }
.door-card:hover { border-color: var(--accent); }
.door-card .big { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.door-card .big svg { width: 24px; height: 24px; }
.door-card .title { font-size: 1.35rem; font-weight: 800; }
.door-card .go { margin-top: auto; color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.door-card .go svg { width: 18px; height: 18px; }
footer a { color: var(--muted); }

.brand-mascot { width: 36px; height: 36px; object-fit: contain; margin: -6px 0; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero-text { flex: 1; min-width: 0; }
.hero-mascot { width: clamp(120px, 24vw, 230px); height: auto; flex: none; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
@media (max-width: 560px) { .hero { align-items: flex-end; gap: 8px; padding-top: 10px; } .hero h1 { font-size: 1.9rem; } .hero p { font-size: 1rem; } .hero-mascot { width: 112px; margin-right: -6px; } }
.thanks-mascot { float: right; width: clamp(84px, 22vw, 140px); height: auto; margin: -6px 0 6px 12px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }

.opts { padding: 0 0 12px; display: grid; gap: 6px; }
.opts:empty { display: none; }
.optrow { display: flex; align-items: flex-end; gap: 6px 10px; flex-wrap: wrap; }
/* One question per group: its name sits above its choices, so "Yes / No" is never shown without the question. */
.optg { display: inline-flex; flex-direction: column; gap: 3px; max-width: 100%; min-width: 0; }
.optl { line-height: 1.2; }
.optn { min-width: 22px; padding-bottom: 8px; }
/* Tip picker: even-width buttons; the chosen one fills gold with dark text. */
.tips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.tipb { flex: 1 1 84px; justify-content: center; padding: 12px 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }
.tipb.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tipb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border-radius: 0; padding: 7px 12px; font-size: .9rem; background: transparent; color: var(--muted); white-space: nowrap; flex: 1 1 auto; justify-content: center; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.item + .opts { margin-top: -6px; }
.opts + .item { border-top: 1px solid var(--line); }
.ordernum { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.today { display: flex; gap: 18px; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.today div b { display: block; font-size: 1.15rem; }
.today div span { color: var(--muted); font-size: .78rem; }
.flash { animation: flash 1.2s ease-out 3; }
@keyframes flash { 0% { background: rgba(227,163,60,.35); } 100% { background: transparent; } }
.sitebits { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--muted); margin-top: 10px; }
.sitebits a { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.sitebits svg { width: 16px; height: 16px; }

.items-editor .irow .i-opts { grid-column: span 3; }
.items-editor .irow .i-start { grid-column: span 3; }
.items-editor #items .irow { padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); }

.items-editor .irow .i-avail { grid-column: span 3; }
/* Staff list on a phone: each paid row becomes a card with its labels down the left. */
@media (max-width: 720px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--panel-2); }
  table.stack td { border: 0; padding: 4px 0; text-align: left !important; display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: start; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 3px; }
  table.stack td:empty { display: none; }
  table.stack .steps button { padding: 9px 12px; }
  .wrap.wide { padding-left: 12px; padding-right: 12px; }
}

.tabs a.signin { margin-left: 6px; border: 1px solid var(--line); color: var(--text); }
.tabs a.signin:hover { border-color: var(--accent); }
@media (max-width: 480px) { .tabs a.signin { flex: 0 0 auto; padding: 9px 11px; margin-left: 2px; } .tabs a.signin span { display: none; } }
.login-card { max-width: 400px; margin: 30px auto; text-align: center; }
.login-card img { width: 120px; height: auto; }
.login-card input { text-align: center; font-size: 1.5rem; letter-spacing: .25em; padding: 14px; }
.who { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.who a, .who button { justify-content: center; padding: 14px; }

.auth-tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 12px 0 4px; }
.auth-tabs button { flex: 1; border-radius: 0; background: transparent; color: var(--muted); padding: 10px; }
.auth-tabs button.on { background: var(--panel-2); color: var(--accent); }
.login-card form { text-align: left; }
.login-card form input { text-align: left; font-size: 1rem; letter-spacing: 0; padding: 11px 12px; }
.login-card .pin input { text-align: center; font-size: 1.5rem; letter-spacing: .25em; padding: 14px; }
.crew { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.mycard { display: flex; flex-direction: column; gap: 6px; }
.mycard .title { font-size: 1.15rem; font-weight: 700; }
.mycard .when { color: var(--accent); font-weight: 600; }

.cancelbox { margin-top: 8px; }
.cancelbox .cancel-ask { padding: 8px 12px; font-size: .9rem; }
.cancel-sure { border: 1px solid #6b3a35; border-radius: 10px; padding: 4px 12px 12px; margin-top: 8px; }
.ticketqr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ticketqr img { width: 168px; height: 168px; border-radius: 10px; background: #fff; padding: 6px; }
.scanres { border-radius: 16px; padding: 22px; text-align: center; border: 2px solid var(--line); }
.scanres.ok { border-color: var(--good); background: rgba(95,191,122,.12); }
.scanres.already, .scanres.wrong_event { border-color: var(--warn); background: rgba(230,180,92,.12); }
.scanres.void, .scanres.unknown { border-color: var(--bad); background: rgba(224,105,92,.12); }
.scanres .big { font-size: 1.8rem; font-weight: 800; }
.scanres .who { font-size: 1.4rem; font-weight: 700; margin-top: 8px; display: block; }
.scanner { position: fixed; inset: 0; background: #000; z-index: 20; display: flex; flex-direction: column; }
.scanner video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.scanner .bar { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--bg); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.scanner .res { flex: 1; font-weight: 700; }
.prose h2 { margin-top: 26px; } .prose p, .prose li { color: var(--text); line-height: 1.55; } .prose ul { padding-left: 20px; }

header.top#snav { flex-wrap: wrap; row-gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 12px; }
#snav .tabs { flex-wrap: wrap; }
@media (max-width: 480px) { #snav .tabs a { flex: 0 0 auto; padding: 8px 10px; } #snav .tabs a.signin span { display: inline; } }
@media print { #snav { display: none !important; } }
.check-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.check-item:first-child { border-top: 0; }
.check-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.check-dot.ok { background: rgba(95,191,122,.18); color: var(--good); }
.check-dot.warn { background: rgba(230,180,92,.18); color: var(--warn); }
.check-dot.todo { background: rgba(224,105,92,.18); color: var(--bad); }
.check-dot svg { width: 16px; height: 16px; }
.check-item .t { font-weight: 700; }
.check-item .how { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: .92rem; }

#nav .tabs { flex-wrap: wrap; justify-content: flex-end; }
