:root {
  --black: #0A0A0F; --void: #12121A; --card: #1C1C28; --border: #2A2A3A; --border2: #3B3B50;
  --violet: #7B2FFF; --violet2: #9B5FFF; --gold: #FFD700; --white: #F0F0FF; --gray: #A9A9C6;
  --green: #36D399; --red: #FF6B6B; --amber: #FFB938;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--black); color: var(--white); font: 400 16px/1.55 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--gold); }
h1, h2, h3, .display { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-weight: 400; letter-spacing: .03em; line-height: 1.02; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) 14px calc(20px + env(safe-area-inset-left)); border-bottom: 1px solid var(--border); background: rgba(10,10,15,.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.logo img { display: block; height: 42px; width: auto; max-width: 56vw; object-fit: contain; object-position: left; }
.logo-tag { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.05rem; letter-spacing: .1em; color: var(--gray); white-space: nowrap; }
.toplink { flex: none; }
.legal { text-align: center; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); color: var(--gray); font-size: .78rem; border-top: 1px solid var(--border); }
.toplink { font-size: .85rem; color: var(--gray); text-decoration: none; }
.toplink:hover { color: var(--white); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.eyebrow { color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--gray); }
.small { font-size: .85rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 5px; border: 1px solid transparent; background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--violet2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--border2); color: var(--white); }
.btn.ghost:hover { border-color: var(--violet2); background: transparent; }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: rgba(255,107,107,.1); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.btn.block { width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: .8rem; font-weight: 500; color: var(--gray); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--black); border: 1px solid var(--border2); border-radius: 5px; font-size: 16px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet2); }

.notice { padding: 12px 14px; border-radius: 5px; font-size: .9rem; margin: 14px 0; border: 1px solid var(--border2); background: var(--void); }
.notice.err { border-color: rgba(255,107,107,.5); color: #FFB3B3; background: rgba(255,107,107,.07); }
.notice.ok { border-color: rgba(54,211,153,.45); color: #A6EDD1; background: rgba(54,211,153,.07); }
.notice.warn { border-color: rgba(255,185,56,.5); color: #FFD98F; background: rgba(255,185,56,.07); }

/* storefront */
.hero { padding: 44px 0 26px; }
.hero h1 { font-size: clamp(2.8rem, 11vw, 4.6rem); margin: 10px 0 8px; }
.hero .meta { color: var(--gold); font-weight: 500; }
.hero .blurb { color: var(--gray); margin-top: 10px; max-width: 60ch; }
.op { background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; display: grid; grid-template-columns: 170px 1fr; }
.op-img { background: var(--void); min-height: 170px; position: relative; }
.op-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.op-img .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 3.6rem; color: var(--border2); background: linear-gradient(150deg, #241640, #12121A 70%); }
.op-body { padding: 18px 20px; min-width: 0; }
.op-body h2 { font-size: 1.9rem; }
.op-body .sub { color: var(--gold); font-size: .9rem; margin-top: 2px; }
.op-body .desc { color: var(--gray); font-size: .9rem; margin-top: 8px; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.op-body .lines { margin-top: 12px; }
.line .what { min-width: 0; }
.line .name { font-weight: 500; }
.line .price { color: var(--gray); font-size: .88rem; }
.line.addon { padding-left: 14px; border-top: 1px dashed var(--border); }
.line.addon .name { font-size: .92rem; }
.left { color: var(--amber); font-size: .78rem; font-weight: 600; margin-left: 6px; }
.soldout { color: var(--red); font-size: .85rem; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--border2); border-radius: 5px; }
.stepper button { width: 42px; height: 42px; background: transparent; border: 0; font-size: 1.25rem; color: var(--white); }
.stepper button:disabled { color: var(--border2); cursor: not-allowed; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cartbar { position: sticky; bottom: 0; z-index: 15; background: rgba(18,18,26,.97); border-top: 1px solid var(--border2); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.cartbar .inner { max-width: 848px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cartbar .total { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.8rem; line-height: 1; }
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--void); border: 1px solid var(--border2); border-radius: 12px 12px 0 0; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet h2 { font-size: 2rem; margin-bottom: 12px; }
@media (min-width: 640px) { .sheet-back { align-items: center; } .sheet { border-radius: 12px; } }
.sum { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding: 6px 0; }
.sum.total { border-top: 1px solid var(--border2); margin-top: 6px; padding-top: 11px; font-weight: 700; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.foot { padding: 30px 0 40px; color: var(--gray); font-size: .85rem; }
@media (max-width: 560px) {
  .op { grid-template-columns: 1fr; }
  .op-img { min-height: 0; aspect-ratio: 16/9; }
}

/* my tickets */
.stub { display: grid; grid-template-columns: 1fr 150px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; position: relative; }
.stub .info { padding: 18px 20px; min-width: 0; }
.stub h3 { font-size: 1.7rem; }
.stub .day { color: var(--gold); font-weight: 500; margin-top: 2px; }
.stub .code { font: 700 1.02rem ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .06em; margin-top: 12px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: .73rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--border2); color: var(--gray); }
.chip.gold { border-color: rgba(255,215,0,.5); color: var(--gold); }
.chip.green { border-color: rgba(54,211,153,.5); color: var(--green); }
.chip.red { border-color: rgba(255,107,107,.5); color: var(--red); }
.stub .qr { padding: 12px; border-left: 2px dashed var(--border2); display: flex; align-items: center; justify-content: center; background: none; border-top: 0; border-right: 0; border-bottom: 0; }
.stub .qr svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.stub.dead { opacity: .55; }
.stub.dead .qr svg { filter: grayscale(1); opacity: .25; }
@media (max-width: 520px) {
  .stub { grid-template-columns: 1fr; }
  .stub .qr { border-left: 0; border-top: 2px dashed var(--border2); padding: 16px 44px; }
}
.bigqr { position: fixed; inset: 0; z-index: 40; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #000; border: 0; width: 100%; }
.bigqr svg { width: min(86vw, 70vh); height: auto; }
.bigqr b { font: 700 1.3rem ui-monospace, Menlo, monospace; margin-top: 14px; }

/* check-in */
.login-card { max-width: 400px; margin: 8vh auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 26px 22px; }
.login-card h1 { font-size: 2.2rem; margin-bottom: 16px; }
.cam { position: relative; background: #000; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; margin: 14px 0; max-height: 46vh; width: 100%; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam .frame { position: absolute; inset: 14% 24%; border: 3px solid rgba(255,215,0,.85); border-radius: 10px; pointer-events: none; }
.cam .idle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.verdict { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; color: #06060a; border: 0; width: 100%; }
.verdict.ok { background: var(--green); }
.verdict.already { background: var(--amber); }
.verdict.bad { background: var(--red); }
.verdict .big { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: clamp(3.4rem, 17vw, 6.4rem); line-height: 1; }
.verdict .who { font-size: 1.5rem; font-weight: 700; margin-top: 12px; }
.verdict .what { font-size: 1.1rem; margin-top: 4px; }
.verdict .tags { font-size: 1.1rem; font-weight: 700; margin-top: 12px; }
.verdict .hint { margin-top: 28px; font-size: .9rem; opacity: .75; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.bar { padding: 9px 12px; border-radius: 5px; font-size: .85rem; font-weight: 600; margin-top: 12px; }
.bar.off { background: rgba(255,185,56,.14); color: var(--amber); }
.bar.on { background: rgba(54,211,153,.1); color: var(--green); }
.pick { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }

/* admin */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin: 14px 0 20px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 14px; color: var(--gray); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.tab[aria-selected=true] { color: var(--white); border-color: var(--gold); }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin-bottom: 14px; }
.panel h2 { font-size: 1.6rem; margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 13px 14px; }
.stat .n { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: .75rem; color: var(--gray); margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; color: var(--gray); font-weight: 500; font-size: .76rem; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--border2); white-space: nowrap; }
td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; }
tfoot td { font-weight: 700; border-bottom: 0; }
.meter { height: 5px; background: var(--border); border-radius: 3px; margin-top: 5px; min-width: 60px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--violet2); }
.order { border-top: 1px solid var(--border); padding: 13px 0; }
.order:first-child { border-top: 0; padding-top: 0; }
.order .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: .88rem; }
.tk .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.type-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.type-row input { min-height: 42px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .type-row { grid-template-columns: 1fr 1fr; } .type-row .tn { grid-column: 1 / -1; } }
.topbar .btn { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .logo-tag { display: none; } }

/* homepage: every show on sale */
.home-hero { padding-bottom: 20px; }
.shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-bottom: 8px; }
.show { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.show:hover, .show:focus-visible { border-color: var(--violet2); transform: translateY(-2px); outline: none; }
.show-art { aspect-ratio: 16 / 7; position: relative; background: linear-gradient(135deg, #2A1650 0%, #12121A 62%), var(--void); border-bottom: 1px solid var(--border); }
.show-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show-mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: clamp(3rem, 12vw, 4.6rem); letter-spacing: .12em; color: rgba(255,215,0,.85); }
.show-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.show-body h2 { font-size: 2rem; margin-top: 8px; }
.show-when { color: var(--gold); font-weight: 500; }
.show-facts { color: var(--gray); font-size: .88rem; margin-top: 6px; }
.show-go { align-self: flex-start; margin-top: 14px; pointer-events: none; }
.back-link { display: inline-block; margin-top: 18px; color: var(--gray); font-size: .88rem; text-decoration: none; }
.back-link:hover { color: var(--white); }
@media (prefers-reduced-motion: reduce) { .show { transition: none; } .show:hover { transform: none; } }

/* photo op schedule */
.sched { margin: 30px 0 6px; padding-top: 22px; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.sched h2 { font-size: 2.2rem; margin-bottom: 8px; }
.sched-note { color: var(--gray); margin-bottom: 14px; max-width: 65ch; }
.sched-day { margin-top: 16px; }
.sched-day h3 { font-family: 'Inter', system-ui, sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.sched-list { list-style: none; }
.sched-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.sched-time { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched-end { display: block; color: var(--gray); font-weight: 400; font-size: .82rem; }
.sched-what { min-width: 0; }
.sched-sub { display: block; color: var(--gray); font-size: .86rem; margin-top: 2px; }
.stub .when { margin-top: 8px; font-weight: 600; font-size: .92rem; color: var(--white); }
.sched-row { display: grid; grid-template-columns: 10rem 8.5rem 8.5rem minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border); }
.sched-row input, .sched-row select { min-height: 42px; }
.sched-row .wide { grid-column: 4 / 5; }
.sched-row .extra { grid-column: 1 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 720px) {
  .sched-row { grid-template-columns: 1fr 1fr; }
  .sched-row .d, .sched-row .wide, .sched-row .extra { grid-column: 1 / -1; }
  .sched-row .extra { grid-template-columns: 1fr; }
}
input[type=date], input[type=time], input[type=datetime-local] { color-scheme: dark; }

/* check-in guest list */
#listview details > summary::-webkit-details-marker { display: none; }
#listview details > summary strong::before { content: "\25B8  "; color: var(--gold); }
#listview details[open] > summary strong::before { content: "\25BE  "; }
#listview .pick .btn { white-space: nowrap; flex: none; }

/* pull to refresh in the check-in app */
html:has(#ptr), html:has(#ptr) body { overscroll-behavior-y: contain; }
#ptr { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#ptr.snap { transition: height .2s ease; }
#ptr .ptr-icon { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border2); border-top-color: var(--gold); opacity: 0; }
#ptr.ready .ptr-icon { border-color: var(--gold); border-top-color: transparent; }
#ptr.spin .ptr-icon { border-color: var(--border2); border-top-color: var(--gold); animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
