/* EPS components — "night stage": dark hero stages with glow, rounded cards, soft depth. Mobile first. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-md)/1.55 var(--font-ui);
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.04; margin: 0 0 var(--s4); letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 600; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num, .price { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: var(--fs-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--bg); padding: var(--s3) var(--s4); z-index: 100; border-radius: var(--r-1); }
.skip:focus { top: var(--s4); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s6); } }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }
.sprite { display: none; }

/* ---------- Header (glass) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--glass); border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.site-header .bar { display: flex; align-items: center; gap: var(--s3); min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; font: 700 1.05rem/1 var(--font-display); letter-spacing: -0.03em; }
.logo svg { width: 32px; height: 32px; }
.logo .full { display: none; }
@media (min-width: 1100px) { .logo .full { display: inline; } .logo .short { display: none; } }
.logo-mark .bg { fill: url(#eps-grad); stroke: none; }
.logo-mark .fg { stroke: #fff; fill: none; }
.logo-mark .dot { fill: #fff; }
.header-search { display: none; flex: 1; max-width: 560px; position: relative; }
@media (min-width: 900px) { .header-search { display: flex; } }
.header-search input[type=search] { flex: 1; min-width: 0; border-radius: var(--r-pill); padding-left: 44px; background: var(--surface); }
.header-search .btn { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); min-height: 36px; width: 36px; padding: 0;
  border: 0; background: transparent; box-shadow: none; color: var(--muted); }
.header-search .btn:hover { transform: translateY(-50%); color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.lang-switch { font: 600 var(--fs-sm)/1 var(--font-display); text-transform: uppercase; min-height: var(--tap); min-width: var(--tap);
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); text-decoration: none; }
.lang-switch:hover { background: var(--surface-2); color: var(--ink); }
.site-header .theme-toggle { display: none; }
@media (min-width: 900px) { .site-header .theme-toggle { display: inline-flex; } }

/* Theme toggle */
.theme-toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-2); }
.theme-toggle button { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast); }
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.theme-toggle button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.theme-toggle .icon { width: 18px; height: 18px; }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass); border-top: 1px solid var(--line-soft); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
@media (min-width: 900px) { .tabbar { display: none; } }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
  font: 600 0.7rem/1 var(--font-ui); color: var(--muted); min-height: var(--tap); }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] .icon { stroke: var(--accent); }
.tabbar .icon { width: 22px; height: 22px; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s5);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 var(--fs-md)/1 var(--font-display);
  text-decoration: none; cursor: pointer; border-radius: var(--r-pill); white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 24px -8px var(--accent); }
.btn-primary:hover { color: var(--on-accent); border-color: transparent; transform: translateY(-1px); box-shadow: 0 12px 28px -8px var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; font-size: var(--fs-lg); padding: 0 var(--s6); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=url], input[type=tel], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-1);
  min-height: var(--tap); padding: var(--s2) var(--s3); width: 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 25%, transparent); }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
label { font-weight: 600; display: block; margin-bottom: var(--s1); }
.field { margin-bottom: var(--s4); }
.field .hint { font-size: var(--fs-xs); margin-top: var(--s1); }
.field .error, .form-error { color: var(--soldout); font-weight: 600; font-size: var(--fs-sm); margin-top: var(--s1); }
.form-error { border: 1px solid var(--soldout); border-radius: var(--r-1); padding: var(--s3); margin-bottom: var(--s4); }
.notice { border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); padding: var(--s3) var(--s4); margin-bottom: var(--s4); }
.notice-ok { border-color: var(--available); }
.checkbox, .check { display: flex; gap: var(--s2); align-items: center; font-weight: 500; min-height: var(--tap); margin: 0; }
.checkbox input, .check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- Layout ---------- */
.section { padding-block: var(--s7); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.kicker { font: 700 var(--fs-xs)/1 var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); margin-bottom: var(--s2); }
.grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-2); padding: var(--s5); box-shadow: var(--shadow); }
.panel h2 { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-lg); }
.split { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); } }
.stack > * + * { margin-top: var(--s5); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.scroller { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); scrollbar-width: none; }
.scroller > * { scroll-snap-align: start; flex: none; }

/* ---------- Stage (always dark) ---------- */
.hero, .stage { position: relative; background: var(--stage); color: var(--stage-ink); overflow: hidden; isolation: isolate; }
.hero::before, .stage::before { content: ""; position: absolute; inset: -20%; background: var(--glow); z-index: -1; filter: blur(10px); }
.hero .wrap { padding-block: var(--s7) var(--s8); display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-block: var(--s8); } }
.hero .wrap > * { min-width: 0; } /* the chip scroller must not widen the grid column */
.hero h1 { font-size: var(--fs-3xl); line-height: .95; margin-bottom: var(--s5); letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--stage-accent); }
.hero p { font-size: var(--fs-lg); max-width: 46ch; color: var(--stage-muted); }
.hero-search { display: flex; align-items: center; gap: var(--s2); max-width: 680px; padding: 6px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-search input { border: 0; background: transparent; color: var(--stage-ink); font-size: var(--fs-lg); min-height: 52px; padding-left: var(--s4); }
.hero-search input::placeholder { color: var(--stage-muted); }
.hero-search input:focus { box-shadow: none; }
.hero-search:focus-within { border-color: rgba(255,255,255,.5); }
.hero-search .btn { min-height: 52px; background: #FF6A45; color: #14070A; border: 0; }
.hero-search .btn:hover { color: #14070A; }
@media (max-width: 599px) { .hero-search .btn { width: 52px; padding: 0; } .hero-search .btn .lbl { display: none; } }
.hero-examples { margin-top: var(--s4); display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
/* mouse users have no swipe and the scrollbar is hidden: wrap instead of scroll */
@media (min-width: 600px) { .hero-examples { flex-wrap: wrap; overflow: visible; } }
.hero-examples a { flex: none; color: var(--stage-ink); font-size: var(--fs-sm); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05);
  padding: 0 var(--s3); border-radius: var(--r-pill); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; gap: var(--s1); }
.hero-examples a:hover { background: rgba(255,255,255,.14); color: var(--stage-ink); }
.hero-stack { display: none; position: relative; height: 420px; }
@media (min-width: 1024px) { .hero-stack { display: block; } }
.hero-stack a { position: absolute; width: 62%; border-radius: var(--r-3); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1);
  transition: transform var(--t-slow) var(--ease); }
.hero-stack a:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.hero-stack a:nth-child(2) { left: 19%; top: 0; transform: rotate(2deg); z-index: 2; }
.hero-stack a:nth-child(3) { right: 0; top: 70px; transform: rotate(8deg); }
.hero-stack a:hover { transform: rotate(0) translateY(-8px) scale(1.03); z-index: 3; }
.hero-stack img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-stats { display: flex; gap: var(--s6); margin: var(--s6) 0 0; flex-wrap: wrap; }
.hero-stats dd { margin: 0; }
.hero-stats div { font: 700 var(--fs-xl)/1 var(--font-display); letter-spacing: -0.03em; }
.hero-stats small { display: block; font: 500 var(--fs-xs)/1.4 var(--font-ui); color: var(--stage-muted); letter-spacing: 0; margin-top: var(--s1); }

/* ---------- Event card ---------- */
.card { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: var(--s3); padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-2); box-shadow: var(--shadow);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med); }
.card .art { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.card .art img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform var(--t-slow) var(--ease); }
.card .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 2px var(--s1) 2px 0; }
.card h3 { font-size: 1.02rem; margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .meta { font-size: var(--fs-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 var(--s2); align-items: center; margin: 0; }
.card .meta .icon { width: 14px; height: 14px; }
.card .body > .meta:last-of-type { display: none; }
.card .foot { display: flex; justify-content: space-between; align-items: end; gap: var(--s2); margin-top: auto; padding-top: var(--s1); }
.card .tags { justify-content: flex-end; }
@media (min-width: 600px) {
  .card { display: flex; flex-direction: column; padding: 0; gap: 0; border-radius: var(--r-3); overflow: hidden; }
  .card .art { aspect-ratio: 4 / 3; border-radius: 0; }
  .card .body { padding: var(--s4) var(--s5) var(--s5); gap: var(--s1); }
  .card h3 { font-size: 1.15rem; }
  .card .body > .meta:last-of-type { display: flex; }
  .card .meta { font-size: var(--fs-sm); }
  .card:hover, .card.is-active { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
  .card:hover .art img { transform: scale(1.05); }
}
.card.is-hot { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.pin-no, .card .pin-no { position: absolute; top: var(--s3); left: var(--s3); z-index: 1; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); border-radius: var(--r-pill); font: 700 var(--fs-xs)/1 var(--font-display); }
.from { font-size: var(--fs-xs); color: var(--muted); display: block; }
.price { font: 700 1.2rem/1 var(--font-display); letter-spacing: -0.02em; }
.was { text-decoration: line-through; color: var(--muted); font-size: var(--fs-sm); font-weight: 400; margin-left: var(--s1); }

/* ---------- Tags & chips ---------- */
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); }
.tag { font: 700 0.68rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: var(--r-pill);
  background: var(--tag-bg); color: var(--tag-fg); white-space: nowrap; }
.tag-promo, .tag-black_friday { background: var(--grad); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.tag-last_tickets { background: transparent; color: var(--low); box-shadow: inset 0 0 0 1.5px var(--low); }
.tag-early_bird { background: transparent; color: var(--available); box-shadow: inset 0 0 0 1.5px var(--available); }
.tag-new { background: var(--accent); color: var(--on-accent); }
.tag-resale, .tag-sponsored { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag-soldout { width: fit-content; background: transparent; color: var(--soldout); box-shadow: inset 0 0 0 1.5px var(--soldout); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.chip { display: inline-flex; align-items: center; gap: var(--s1); border: 1px solid var(--line); background: var(--surface); padding: 0 var(--s3);
  min-height: 36px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.chip-x { padding-right: var(--s2); }
.chip-x:hover { border-color: var(--accent); color: var(--ink); }
.chip-x .icon { width: 14px; height: 14px; }
.pill { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; font-weight: 600; background: var(--surface); }

/* ---------- Availability ---------- */
.avail { font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.avail-ok { color: var(--available); } .avail-low { color: var(--low); } .avail-out { color: var(--soldout); }
.avail-bar { width: 100%; max-width: 280px; height: 6px; border-radius: 3px; overflow: hidden; }
.avail-bar .track { fill: var(--surface-2); }
.avail-bar .fill { fill: var(--accent); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table th { font: 600 var(--fs-xs)/1 var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.table tbody tr:hover { background: var(--surface-2); }
.table td.num, .table th.num { text-align: right; }
.table-wrap { overflow-x: auto; }

/* ---------- Tiles (bento) ---------- */
.tiles { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles.bento > :nth-child(1), .tiles.bento > :nth-child(2) { grid-column: span 2; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { position: relative; overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); padding: var(--s4); text-decoration: none; min-height: 104px;
  border-radius: var(--r-2); display: flex; flex-direction: column; justify-content: space-between; font: 700 var(--fs-lg)/1.1 var(--font-display); letter-spacing: -0.02em;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-med); }
.tile small { font: 500 var(--fs-xs)/1 var(--font-ui); color: var(--muted); letter-spacing: 0; }
.tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--grad); opacity: .14; transition: opacity var(--t-med), transform var(--t-slow) var(--ease); }
.tile:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.tile:hover::after { opacity: .35; transform: scale(1.4); }
.bento > :nth-child(1), .bento > :nth-child(2) { min-height: 140px; font-size: var(--fs-xl); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: var(--s8); padding-block: var(--s7) var(--s6); font-size: var(--fs-sm); background: var(--surface); }
.site-footer .cols { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: var(--muted); }
.site-footer li a:hover { color: var(--ink); }
.site-footer .legal { margin-top: var(--s6); color: var(--muted); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; align-items: center; }

/* ---------- Account menu ---------- */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu .menu-list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--elev); border: 1px solid var(--line-soft); border-radius: var(--r-2);
  box-shadow: var(--shadow-lg); min-width: 230px; z-index: 30; padding: var(--s2); }
.menu .menu-list a, .menu .menu-list button { display: flex; width: 100%; min-height: var(--tap); align-items: center; padding: 0 var(--s3); text-decoration: none; background: none;
  border: 0; border-radius: var(--r-1); font: inherit; color: inherit; cursor: pointer; }
.menu .menu-list a:hover, .menu .menu-list button:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Auth & account ---------- */
.auth-wrap { display: grid; place-items: start center; }
.auth-panel { width: 100%; max-width: 440px; }
.auth-panel h1 { font-size: var(--fs-xl); }
.auth-links { margin-top: var(--s4); font-size: var(--fs-sm); }
.divider { display: flex; align-items: center; gap: var(--s3); color: var(--muted); font-size: var(--fs-sm); margin: var(--s5) 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.qr { width: 200px; border-radius: var(--r-1); overflow: hidden; background: #fff; padding: var(--s2); margin-bottom: var(--s3); }
.qr svg { width: 100%; height: auto; }
.codes { columns: 2; font-size: var(--fs-md); }
ul.plain { list-style: none; padding: 0; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }

/* ---------- Listing / catalogue ---------- */
.promise { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promise > div { padding: var(--s5); border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line-soft); }
.promise h2 { font-size: var(--fs-lg); }
.promise p { color: var(--muted); margin: 0; }
.listing-head { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.listing-head .wrap { padding-block: var(--s6); }
.listing-head .lead { max-width: 60ch; font-size: var(--fs-lg); color: var(--muted); }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s3); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Event page ---------- */
.event-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--stage); color: var(--stage-ink); }
.event-backdrop { position: absolute; inset: -40px; z-index: -1; opacity: .5; filter: blur(48px) saturate(140%); }
.event-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.event-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,18,.2), rgba(10,10,18,.85)); }
.event-hero a { color: var(--stage-ink); }
.event-hero .crumbs, .event-hero .crumbs a { color: var(--stage-muted); }
.event-hero .muted { color: var(--stage-muted); }
.event-hero-grid { display: grid; gap: var(--s5); padding-block: var(--s5) var(--s6); align-items: center; }
@media (min-width: 900px) { .event-hero-grid { grid-template-columns: minmax(280px, 5fr) 7fr; gap: var(--s7); padding-block: var(--s7); } }
.event-art { border-radius: var(--r-3); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); }
.event-art img { width: 100%; height: 100%; object-fit: cover; }
.event-hero h1 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: .98; letter-spacing: -0.04em; }
.event-facts-inline { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); font-size: var(--fs-lg); }
.event-facts-inline li { display: flex; gap: var(--s2); align-items: center; }
.chips-static .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--stage-ink); min-height: 30px; }
.event-hero .btn-primary { margin-top: var(--s4); background: #FF6A45; color: #14070A; box-shadow: 0 12px 32px -8px #FF6A45; }
@media (max-width: 899px) {
  .event-hero [data-buy] { position: fixed; z-index: 45; left: var(--s3); right: var(--s3); bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + var(--s2)); margin: 0; }
  .event .split { padding-bottom: 80px; }
}
.banner { display: flex; gap: var(--s2); align-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-1); padding: var(--s3); font-weight: 600; margin-bottom: var(--s4); background: rgba(255,255,255,.06); }
.banner-bad { border-color: #FF8A8A; color: #FFB3B3; }
.tickets { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.ticket-row { display: flex; justify-content: space-between; gap: var(--s4); border: 1px solid var(--line-soft); border-radius: var(--r-2); background: var(--surface); padding: var(--s4) var(--s5); box-shadow: var(--shadow); }
.ticket-row.is-off { background: var(--bg); box-shadow: none; }
.ticket-row h3 { font-size: var(--fs-lg); margin-bottom: 0; }
.ticket-main { flex: 1; display: grid; gap: var(--s2); }
.ticket-price { text-align: right; display: grid; align-content: start; gap: var(--s1); }
.ticket-price .price { font-size: 1.5rem; }
.was-line { font-size: var(--fs-xs); color: var(--muted); max-width: 22ch; }
.phase { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.lineup { columns: 2; padding-left: var(--s5); }
.faq { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 600; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-display); color: var(--muted); transition: transform var(--t-fast); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); margin: 0 0 var(--s3); font-size: var(--fs-sm); }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- Search ---------- */
.search-big { max-width: 760px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-big input { color: var(--ink); }
.search-big input::placeholder { color: var(--muted); }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; cursor: pointer;
  background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.search-tools { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 var(--s2); }
#near-me[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
#near-me[aria-busy="true"] { opacity: .6; cursor: progress; }
.filter-chips { list-style: none; padding: 0; margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.search-split { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .search-split { grid-template-columns: 1fr 420px; align-items: start; } }
.map-col { position: sticky; top: 76px; order: -1; }
@media (min-width: 1024px) { .map-col { order: 0; } }
.map { height: 220px; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); background: var(--surface-2); }
@media (min-width: 1024px) { .map { height: calc(100vh - 110px); max-height: 720px; } }
.pin { display: grid; place-items: center; background: var(--ink); color: var(--bg); border: 2px solid var(--bg); border-radius: 50%;
  font: 700 var(--fs-xs)/1 var(--font-display); box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: transform var(--t-fast); }
.pin span { display: block; width: 100%; text-align: center; line-height: 26px; }
.pin.is-hot { background: var(--accent); color: var(--on-accent); transform: scale(1.25); z-index: 1000 !important; }
.why { grid-column: 1 / -1; margin-top: var(--s2); border-top: 1px solid var(--line-soft); padding-top: var(--s1); font-size: var(--fs-sm); position: relative; z-index: 1; }
.why summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; color: var(--accent-ink); }
.why ul { margin: 0; padding-left: var(--s4); color: var(--muted); }
.empty h2 { font-size: var(--fs-lg); }
.left-after { margin: var(--s2) 0 0; font-weight: 700; color: var(--available); }
.budget-form { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; margin-top: var(--s4); }
.budget-form .field { display: grid; gap: var(--s1); margin: 0; }
.budget-day + .budget-day { margin-top: var(--s6); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution a { color: var(--ink); }

/* ---------- Organizer console ---------- */
.console { display: grid; gap: var(--s5); padding-block: var(--s5) var(--s7); }
@media (min-width: 1024px) { .console { grid-template-columns: 220px 1fr; gap: var(--s6); } }
.side-nav { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; }
@media (min-width: 1024px) { .side-nav { flex-direction: column; position: sticky; top: 84px; align-self: start; } }
.side-nav a { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s3); border-radius: var(--r-1); text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.console-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.console-head h1 { margin: 0; }
.kpis { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
.kpi { padding: var(--s4) var(--s5); border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.kpi .label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 var(--s2); }
.kpi .value { font: 700 clamp(1.5rem, 3vw, 2.1rem)/1 var(--font-display); letter-spacing: -0.03em; margin: 0; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: var(--fs-xs); color: var(--muted); margin: var(--s2) 0 0; }
.kpi.stage { border: 0; background: var(--stage); color: var(--stage-ink); }
.kpi.stage .label, .kpi.stage .sub { color: var(--stage-muted); }
.console-grid { display: grid; gap: var(--s4); margin-top: var(--s4); }
@media (min-width: 1100px) { .console-grid { grid-template-columns: 1.6fr 1fr; } }
.console-grid > * { min-width: 0; } /* the code snippet scrolls inside its panel */
.chart { width: 100%; height: auto; display: block; }
.chart .bar-r { fill: var(--chart-2); }
.chart .bar-r.today { fill: var(--chart-1); }
.chart .axis { fill: var(--muted); font: 500 12px var(--font-ui); }
.chart .grid-l { stroke: var(--chart-grid); stroke-width: 1; }
.fill-bar { width: 120px; height: 8px; border-radius: 4px; }
.fill-bar .track { fill: var(--surface-2); }
.fill-bar .fill { fill: var(--chart-2); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-published::before { background: var(--available); }
.status-pending::before, .status-postponed::before { background: var(--low); }
.status-cancelled::before, .status-rejected::before { background: var(--soldout); }
.snippet { position: relative; margin: var(--s3) 0; }
.snippet pre { margin: 0; padding: 56px var(--s4) var(--s4); border-radius: var(--r-1); background: var(--stage); color: #E6E4F5; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.snippet .btn { position: absolute; top: var(--s2); right: var(--s2); background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.steps li { counter-increment: s; display: flex; gap: var(--s3); align-items: baseline; }
.steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 .72rem/1 var(--font-display); }

.console-solo { padding-block: var(--s6) var(--s7); }
.section-tight { margin-top: var(--s4); }
.table-view { margin-top: var(--s3); font-size: var(--fs-sm); }
.table-view summary { cursor: pointer; color: var(--muted); min-height: var(--tap); display: inline-flex; align-items: center; }
.table-view table, table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table-view td, .table-view th, table.data td, table.data th { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
table.data thead th { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
table.data tbody th { font-weight: 600; }
table.data tr.is-past { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.fill-cell { display: flex; align-items: center; gap: var(--s3); white-space: nowrap; }

/* ---------- Embed widget ---------- */
.embed-body { padding: var(--s3); background: transparent; }
.embed-body .grid { grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 640px) { .embed-body .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .embed-body .grid { grid-template-columns: repeat(3, 1fr); } }
.embed-brand { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s3); }
.embed-brand a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .tile:hover, .hero-stack a:hover { transform: none; }
}

/* ---------- Waiting room ---------- */
.queue { padding-block: var(--s6) var(--s7); max-width: 40rem; }
.queue-pos { font: 700 var(--fs-3xl)/1 var(--font-display); margin: var(--s3) 0; font-variant-numeric: tabular-nums; }
.queue-bar { display: block; width: 100%; height: 12px; margin-bottom: var(--s3); border: 0; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); accent-color: var(--accent); }
.queue-bar::-webkit-progress-bar { background: var(--surface-2); }
.queue-bar::-webkit-progress-value { background: var(--accent); }
.queue-bar::-moz-progress-bar { background: var(--accent); }

/* ---------- Checkout & tickets ---------- */
.checkout-steps { grid-auto-flow: column; justify-content: start; gap: var(--s5); margin-bottom: var(--s5); }
.checkout-steps li[aria-current="step"] { font-weight: 700; }
.checkout-steps li:not([aria-current]) { color: var(--muted); }
.hold { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); margin: 0 0 var(--s5); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); }
.hold.is-over { border-color: var(--soldout); color: var(--soldout); }
.hold .price { font-size: var(--fs-lg); }
.methods-set { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.methods-set legend { padding: 0; }
.methods { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.method { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: var(--tap); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); cursor: pointer; }
.method:has(input:checked) { border-color: var(--accent); }
.method.is-off { opacity: .6; cursor: not-allowed; }
.method input { width: 20px; height: 20px; accent-color: var(--accent); }
.method-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-weight: 600; }
.method-note { display: block; color: var(--muted); font-size: var(--fs-xs); }
.method-price { text-align: right; }
.badge { display: inline-flex; padding: 3px var(--s2); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font: 600 var(--fs-xs)/1.2 var(--font-ui); }
.summary { display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.summary > div { display: flex; justify-content: space-between; gap: var(--s4); }
.summary dt, .summary dd { margin: 0; }
.summary .total { padding-top: var(--s3); border-top: 1px solid var(--line); font-weight: 700; }
.ticket-row h2 { font-size: var(--fs-lg); margin: 0; }
.verify-result { font-size: var(--fs-lg); border-width: 2px; }
.verify-result[data-result="valid"] { border-color: var(--available); }
.verify-result[data-result="used"] { border-color: var(--low); }
.verify-result[data-result="void"], .verify-result[data-result="unknown"] { border-color: var(--soldout); }
@media (min-width: 1024px) { .summary-panel { align-self: start; position: sticky; top: 96px; } }
.summary dd { white-space: nowrap; }
.ticket-row form.row { flex-wrap: nowrap; align-self: center; }
.ticket-row select { width: auto; min-width: 5rem; }
.tickets + p, .tickets + h2 { margin-top: var(--s5); }
.verify-result { margin-top: var(--s5); }
.method-tag { font: 600 var(--fs-xs)/1.2 var(--font-ui); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px var(--s2); }


/* ---- organizer editor ---- */
.narrow { max-width: 36rem; }
.btn-danger { background: transparent; color: var(--soldout); box-shadow: inset 0 0 0 1.5px var(--soldout); }
.btn-danger:hover { background: var(--soldout); color: var(--on-accent); }
.editor .panel { scroll-margin-top: var(--s7); }
.editor-row { border: 1px solid var(--line-soft); border-radius: var(--r-2); padding: var(--s4); margin: 0 0 var(--s4); min-width: 0; }
.editor-row legend { padding: 0 var(--s2); font-weight: 600; }
.editor-progress { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0; }
.editor-progress li a { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); }
.editor-progress li[data-done] a::after { content: "\2713"; color: var(--available); font-weight: 700; }
.serp { border: 1px solid var(--line-soft); border-radius: var(--r-2); padding: var(--s4); background: var(--surface-2); margin-bottom: var(--s4); }
.serp-title { color: var(--accent-ink, var(--ink)); font-size: var(--fs-lg); margin: 0; overflow-wrap: anywhere; }
.serp-url { color: var(--muted); font-size: var(--fs-sm); margin: var(--s1) 0; overflow-wrap: anywhere; }
.serp-desc { margin: 0; font-size: var(--fs-sm); }
.map-small { height: 16rem; border-radius: var(--r-2); }
.counter { font-size: var(--fs-xs); color: var(--muted); }
.counter.is-over { color: var(--soldout); font-weight: 600; }
.is-suggested { box-shadow: inset 0 0 0 1.5px var(--low); }

.has-suggestion::after { content: " · " attr(data-suggested); color: var(--low); font-weight: 600; }

/* ---- analytics charts ---- */
.chart .line-r { fill: none; stroke: var(--chart-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cap-l { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .dot-r { fill: var(--chart-2); stroke: var(--surface); stroke-width: 2; }
.chart .dot-hit { fill: transparent; }
.chart .dot-hit:hover { fill: var(--chart-2); fill-opacity: .25; }
.chart-stack { height: 28px; margin-bottom: var(--s3); }
.seg0, .swatch.seg0 { fill: var(--muted); background: var(--muted); }
.seg1, .swatch.seg1 { fill: var(--chart-1); background: var(--chart-1); }
.seg2, .swatch.seg2 { fill: var(--chart-2); background: var(--chart-2); }
.seg3, .swatch.seg3 { fill: var(--chart-3); background: var(--chart-3); }
.seg4, .swatch.seg4 { fill: var(--chart-4); background: var(--chart-4); }
.seg5, .swatch.seg5 { fill: var(--chart-5); background: var(--chart-5); }
.legend { list-style: none; padding: 0; margin: 0 0 var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--fs-sm); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: var(--s2); }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.hbars li { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr auto; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.hb { width: 100%; height: 8px; }
.hb .track { fill: var(--surface-2); }
.hb .fill { fill: var(--chart-2); }
.hb-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.suggestion h3 { margin-top: 0; }
