:root {
  color-scheme: dark;
  --ground: #080807;
  --surface: #141311;
  --surface-raised: #1d1a16;
  --line: #39352b;
  --control-line: #706854;
  --text: #f7f5ef;
  --muted: #c1bdae;
  --gold: #ffd21a;
  --gold-hover: #ffe15c;
  --gold-ink: #1b1400;
  --gold-gradient: linear-gradient(135deg, #ffe21c 0%, #ffbf08 56%, #ef8b00 100%);
  --green: #9be0ad;
  --red: #ff9b90;
  --radius: 14px;
  --content: 1180px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.5;
  font-optical-sizing: auto;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ground); color: var(--text); }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--gold); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
::selection { background: var(--gold); color: var(--gold-ink); }
input::placeholder, textarea::placeholder { color: #aaa69a; opacity: 1; }
input, textarea, select { caret-color: var(--gold); }

.skip-link { position: fixed; z-index: 20; top: .5rem; left: .5rem; padding: .7rem 1rem; transform: translateY(-160%); background: var(--gold); color: var(--gold-ink); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; }
.site-header { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 1rem; width: 256px; min-height: 100vh; padding: 1.35rem 1rem; border-right: 1px solid rgba(255,255,255,.12); background: rgba(8,8,7,.96); backdrop-filter: blur(18px) saturate(140%); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font-size: 1.12rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { display: block; flex: 0 0 auto; width: 60px; height: 42px; object-fit: contain; }
.brand-accent { color: var(--gold); }
.site-nav { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: .35rem; width: 100%; margin-top: 2rem; }
.site-nav a { position: relative; display: flex; align-items: center; gap: .85rem; min-width: 0; min-height: 48px; padding: .7rem .85rem; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 650; transition: background-color 140ms ease, color 140ms ease, transform 100ms ease-out; }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.site-nav a:active { transform: scale(.97); }
.site-nav a[aria-current="page"] { color: var(--gold); background: rgba(255,210,26,.12); }
.site-nav svg { display: block; flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-nav .nav-register { margin-top: .45rem; background: var(--gold-gradient); color: var(--gold-ink); }
.site-nav .nav-register:hover { background: var(--gold-hover); color: var(--gold-ink); }
.site-nav .nav-account { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); border-radius: 0; }
.site-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; margin-left: 256px; }
.container { flex: 1; width: min(var(--content), calc(100% - 3rem)); margin-inline: auto; min-height: 66vh; padding-block: clamp(1.5rem, 4vw, 3rem) 4rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { width: min(var(--content), calc(100% - 2.5rem)); margin: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.brand-footer { font-size: .98rem; }
.brand-footer .brand-mark { width: 50px; height: 36px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 16ch; font-size: clamp(2.15rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { max-width: 72ch; }
.muted, .small { color: var(--muted); }
.small { font-size: .88rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 2.8rem 0 1.1rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); }

.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .72rem 1.05rem; border: 1px solid transparent; border-radius: 11px; background: var(--gold-gradient); color: var(--gold-ink); text-decoration: none; font-weight: 760; cursor: pointer; transition: background-color 140ms ease, color 140ms ease, transform 140ms ease, border-color 140ms ease; }
.button:hover, .btn:hover { background: var(--gold-hover); color: var(--gold-ink); }
.button:active, .btn:active { transform: scale(.98); }
.button-secondary { background: transparent; border-color: var(--control-line); color: var(--text); }
.button-secondary:hover { border-color: var(--gold); background: rgba(255,210,26,.08); color: var(--text); }
.button-small { min-height: 38px; padding: .55rem .85rem; }
.button-danger { background: #542622; color: #fff; }
.button-danger:hover { background: #71332d; color: #fff; }
button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; padding: clamp(1.6rem, 4.5vw, 3.6rem) 0 2.2rem; border-bottom: 1px solid var(--line); }
.home-hero h1 { margin-bottom: 1rem; }
.home-hero h1 span { color: var(--gold); }
.home-hero-copy { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.5rem; }
.home-hero-aside { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-hero-aside strong { display: block; margin-bottom: .35rem; }
.home-hero-aside p { margin: 0; color: var(--muted); font-size: .94rem; }
.search-form { display: flex; gap: .6rem; align-items: center; max-width: 680px; }
.search-form input { flex: 1; min-width: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.filter-chip { display: inline-flex; align-items: center; min-height: 38px; padding: .45rem .8rem; border: 1px solid var(--control-line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .88rem; }
.filter-chip[aria-current="true"], .filter-chip:hover { border-color: var(--gold); color: var(--gold); }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.event-card { display: flex; flex-direction: column; min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 150ms ease, transform 150ms ease; }
.event-card:hover { border-color: #a78113; transform: translateY(-2px); }
.event-card h3 { margin: .7rem 0 .45rem; overflow-wrap: anywhere; }
.event-meta { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin: .7rem 0; color: var(--muted); font-size: .88rem; }
.event-card-footer { display: flex; justify-content: space-between; align-items: end; gap: .8rem; margin-top: auto; padding-top: .8rem; }
.event-price { color: var(--gold); font-size: 1.2rem; font-weight: 780; white-space: nowrap; }
.event-empty { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.event-empty p { color: var(--muted); }
.tag { display: inline-flex; align-items: center; width: fit-content; border: 1px solid #705b13; border-radius: 999px; padding: .3rem .65rem; color: var(--gold); font-size: .78rem; font-weight: 680; }
.demo-disclaimer { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid rgba(255,210,26,.3); border-radius: 12px; background: rgba(255,210,26,.06); color: var(--muted); }
.demo-disclaimer-label { flex: 0 0 auto; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.demo-disclaimer p { margin: 0; max-width: none; font-size: .9rem; }
.demo-featured { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.demo-featured-art { display: grid; place-items: center; min-width: 0; overflow: hidden; background: #050505; }
.demo-featured-art img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.demo-featured-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .9rem; padding: clamp(1.25rem,3vw,2.1rem); }
.demo-featured-copy h3 { max-width: 14ch; margin: 0; font-size: clamp(1.6rem,3vw,2.8rem); }
.demo-featured-copy .event-meta { display: grid; gap: .45rem; margin: 0; }
.demo-presenter { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.demo-tagline { margin: -.55rem 0 0; color: var(--gold); font-size: 1.05rem; font-weight: 720; }
.demo-lineup { display: grid; gap: .35rem; width: 100%; padding-top: .8rem; border-top: 1px solid var(--line); }
.demo-lineup-label { color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demo-lineup strong { color: var(--text); font-size: .94rem; }
.demo-lineup span:last-child { color: var(--muted); font-size: .84rem; }
.demo-featured-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; color: var(--muted); font-size: .86rem; }
.demo-age { padding: .12rem .42rem; border: 1px solid #73413a; border-radius: 999px; color: #ffc3bc; font-size: .75rem; font-weight: 800; }
.demo-unavailable { display: inline-flex; align-items: center; min-height: 30px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.demo-event-card { gap: .85rem; padding: .65rem; }
.demo-event-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 0 .35rem .35rem; }
.demo-event-body h3 { margin: .65rem 0 .35rem; }
.demo-event-body .event-meta { display: grid; gap: .35rem; margin: .45rem 0; }
.demo-event-body .event-card-footer { width: 100%; align-items: center; }
.demo-poster { position: relative; isolation: isolate; display: flex; min-height: 200px; flex-direction: column; justify-content: space-between; gap: 1rem; overflow: hidden; padding: 1rem; border-radius: 11px; background: radial-gradient(circle at 78% 24%, rgba(255,210,26,.28), transparent 34%), linear-gradient(145deg,#352608,#0a0907 72%); color: #fff8df; }
.demo-poster::before { position: absolute; z-index: 0; top: 12%; right: -18%; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255,210,26,.42); border-radius: 50%; box-shadow: 0 0 0 16px rgba(255,210,26,.06), 0 0 0 36px rgba(255,210,26,.035); content: ""; }
.demo-poster::after { position: absolute; z-index: 0; top: 1rem; right: 1.15rem; bottom: 1rem; width: 2px; background: repeating-linear-gradient(to bottom,transparent 0 7px,rgba(255,210,26,.72) 7px 13px,transparent 13px 21px); content: ""; }
.demo-poster-top, .demo-poster-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: .65rem; color: rgba(255,248,223,.78); font-size: .63rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.demo-poster-art { position: relative; z-index: 1; max-width: 8ch; color: #fff8df; font-size: clamp(1.7rem,3.5vw,2.75rem); font-weight: 900; letter-spacing: -.045em; line-height: .94; text-transform: uppercase; text-wrap: balance; }
.demo-poster--run { background: radial-gradient(circle at 78% 24%,rgba(126,185,94,.3),transparent 34%),linear-gradient(145deg,#1b3326,#090807 72%); }
.demo-poster--salsa { background: radial-gradient(circle at 78% 24%,rgba(236,103,54,.35),transparent 34%),linear-gradient(145deg,#421b14,#090807 72%); }
.demo-poster--food { background: radial-gradient(circle at 78% 24%,rgba(233,175,66,.35),transparent 34%),linear-gradient(145deg,#3a2d12,#090807 72%); }
.demo-poster--concert { background: radial-gradient(circle at 78% 24%,rgba(104,157,218,.34),transparent 34%),linear-gradient(145deg,#182942,#090807 72%); }
.demo-poster--open-air { background: radial-gradient(circle at 78% 24%,rgba(67,190,175,.3),transparent 34%),linear-gradient(145deg,#123432,#090807 72%); }
.demo-poster--club { background: radial-gradient(circle at 78% 24%,rgba(208,95,164,.32),transparent 34%),linear-gradient(145deg,#351b32,#090807 72%); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: start; gap: clamp(1.2rem, 3vw, 2rem); }
.detail-copy, .checkout-panel, .panel, .ticket-card, .order-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-copy { padding: clamp(1.2rem, 3vw, 2rem); }
.checkout-panel { position: sticky; top: 96px; padding: 1.25rem; }
.checkout-panel h2 { font-size: 1.3rem; }
.ticket-option { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.ticket-option:first-of-type { border-top: 0; }
.ticket-option p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
.ticket-option-price { color: var(--gold); font-weight: 750; white-space: nowrap; }
.total-row { display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; margin-top: .9rem; border-top: 1px solid var(--line); font-weight: 760; }
.no-wrap { white-space: nowrap; }

.panel { padding: clamp(1rem, 2.5vw, 1.5rem); margin-block: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.1rem; }
.panel-head h2, .panel-head h3 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-block: 1rem; }
.stat { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat-label { display: block; color: var(--muted); font-size: .82rem; }
.stat-value { display: block; margin-top: .2rem; font-size: 1.35rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: .8rem .9rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .82rem; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #292722; color: var(--muted); }
.status-success { background: #142f23; color: var(--green); }
.status-warning { background: #392e17; color: var(--gold-hover); }
.status-error { background: #3b211e; color: var(--red); }

.form { width: min(100%, 720px); display: grid; gap: 1rem; }
.form-wide { width: 100%; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { color: var(--text); font-size: .91rem; font-weight: 650; }
.field small, .help-text { color: var(--muted); font-size: .84rem; }
.field input, .field select, .field textarea, input, select, textarea {
  max-width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid var(--control-line); border-radius: 10px;
  background: #0f0e0c; color: var(--text); font-size: 1rem;
}
.field textarea, textarea { min-height: 112px; resize: vertical; }
.field input[type="checkbox"], input[type="checkbox"] { width: 1.1rem; min-height: 1.1rem; height: 1.1rem; accent-color: var(--gold); }
.field input[type="file"], input[type="file"] { padding: .5rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.notice { padding: .85rem 1rem; margin: 1rem 0; border: 1px solid #5a4930; border-radius: 10px; background: #292315; color: #ffe3a6; }
.notice-success { border-color: #2b6542; background: #12271c; color: #b1ebc4; }
.notice-error { border-color: #73413a; background: #301b19; color: #ffc3bc; }
.field-error { color: #ffc3bc; font-size: .86rem; }
.empty { padding: 1.4rem; border: 1px dashed #685c41; border-radius: 12px; color: var(--muted); }

.ticket-list { display: grid; gap: .8rem; }
.ticket-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; padding: 1rem; }
.ticket-card h3 { margin: 0 0 .35rem; }
.ticket-card p { margin: .25rem 0; color: var(--muted); }
.qr-wrap { display: grid; justify-items: center; gap: .5rem; min-width: 150px; padding: .75rem; border-radius: 10px; background: #fff; color: #101010; }
.qr-code { width: 148px; height: 148px; }
.qr-code img, .qr-code canvas { max-width: 100%; height: auto; }
.ticket-token { overflow-wrap: anywhere; font: 700 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1a1a1a; text-align: center; }
.claim-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.7fr); gap: 1.25rem; align-items: start; }
.scan-box { min-height: 220px; display: grid; place-items: center; border: 1px dashed #635b45; border-radius: 12px; background: #10100e; color: var(--muted); overflow: hidden; }
.scan-box video { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.claim-result { padding: 1rem; margin-top: 1rem; border-radius: 12px; background: var(--surface-raised); }
.claim-result h3 { margin-bottom: .4rem; }
.ticket-claim-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.text-link { color: var(--gold); text-decoration-thickness: 1px; }
.inline { display: inline; }
.spacer { height: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--muted); }
.event-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.event-policy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.event-policy h2 { font-size: 1.15rem; }
.event-policy p { color: var(--muted); font-size: .92rem; }
.holder-fields { min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 11px; }
.holder-fields legend { padding-inline: .35rem; color: var(--text); font-size: .9rem; font-weight: 700; }
.holder-field { margin-top: .75rem; }
.ticket-setup { display: grid; gap: 1rem; margin-block: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #11100d; }
.ticket-setup h3 { margin: 0 0 .25rem; }
.ticket-setup p { margin-bottom: 0; }
.optional-tier { border-top: 1px solid var(--line); padding-top: .85rem; }
.optional-tier summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.optional-tier .form-row { margin-top: .85rem; }
.check-row { display: flex; align-items: center; gap: .7rem; width: fit-content; color: var(--text); font-weight: 650; }
.event-picker { max-width: 420px; margin: 0 0 1rem; }
.action-stack { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem; min-width: 150px; }
.inline-form { display: flex; align-items: center; gap: .45rem; }
.inline-form select { min-height: 38px; padding-block: .45rem; }
.order-card { padding: clamp(1rem,2.5vw,1.5rem); margin-block: 1rem; }
.order-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.order-head h2 { margin: .7rem 0 .25rem; }
.order-head p { margin-bottom: 0; }
.order-summary { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pickup-box { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center; margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.pickup-box h3 { margin: 0 0 .35rem; }
.pickup-box p { color: var(--muted); font-size: .9rem; }
.ticket-token-inline { display: inline-block; overflow-wrap: anywhere; padding: .35rem .5rem; border-radius: 7px; background: #0c0b09; color: var(--gold); font: 700 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,.8fr); gap: 1rem; align-items: start; }
.checkout-summary, .payment-panel { min-width: 0; }
.summary-event { margin-top: 1.3rem; padding: 1.1rem 0; border-block: 1px solid var(--line); }
.summary-event h2 { margin: .75rem 0 .4rem; }
.summary-event p { margin: .25rem 0; }
.payment-panel { position: sticky; top: 95px; }
.payment-panel btn-yappy { display: block; width: 100%; margin-block: 1rem; }
.disabled-payment { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-block: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.order-card .notice { margin-block: 1rem; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.75fr); gap: clamp(1.5rem,5vw,4rem); align-items: start; max-width: 980px; margin-inline: auto; padding-top: clamp(1.5rem,5vw,4rem); }
.auth-copy { padding-top: 1rem; }
.auth-copy h1 { max-width: 12ch; }
.auth-form { width: 100%; }
.auth-form h2 { margin-bottom: .25rem; }
.event-description { max-width: 68ch; }
.admin-intro { max-width: 72ch; }

@media (max-width: 900px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-header { position: relative; inset: auto; flex-direction: row; align-items: center; gap: 0; width: auto; min-height: 64px; padding: .55rem 1rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(8,8,7,.94); backdrop-filter: none; }
  .site-nav { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; width: 100%; margin: 0; padding: .4rem .35rem calc(.4rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.15); background: rgba(15,14,12,.94); box-shadow: 0 -8px 24px rgba(0,0,0,.3); backdrop-filter: blur(22px) saturate(160%); }
  .site-nav.nav-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav.nav-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-nav a { flex-direction: column; justify-content: center; gap: .22rem; min-height: 58px; padding: .25rem .08rem; border-radius: 10px; font-size: .6rem; line-height: 1.1; text-align: center; white-space: nowrap; }
  .site-nav a:hover { background: rgba(255,255,255,.05); }
  .site-nav a[aria-current="page"] { background: transparent; color: var(--gold); }
  .site-nav svg { flex-basis: 21px; width: 21px; height: 21px; }
  .site-nav .nav-register { margin-top: 0; background: transparent; color: var(--gold); }
  .site-nav .nav-register:hover { background: rgba(255,210,26,.08); color: var(--gold); }
  .site-nav .nav-account { margin-top: 0; padding-top: .25rem; border-top: 0; border-radius: 10px; }
  .site-main { min-height: 0; margin-left: 0; }
  .container { width: min(var(--content), calc(100% - 2rem)); }
}
@media (max-width: 850px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-hero { grid-template-columns: 1fr; }
  .detail-grid, .claim-layout { grid-template-columns: 1fr; }
  .checkout-panel { position: static; }
  .demo-featured { grid-template-columns: 1fr; }
  .demo-featured-art img { max-height: 340px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 2rem); padding-top: 1.25rem; }
  .event-grid, .stats, .form-row { grid-template-columns: 1fr; }
  .search-form { align-items: stretch; flex-direction: column; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .ticket-card { grid-template-columns: 1fr; }
  .qr-wrap { justify-self: start; }
  .pickup-box { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .payment-panel { position: static; }
  .order-head { flex-direction: column; }
  .auth-layout { grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1rem; }
  .demo-disclaimer { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .demo-featured-art img { max-height: 300px; }
  h1 { font-size: clamp(2rem, 10vw, 3.1rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-nav { background: var(--ground); backdrop-filter: none; }
}
