/* KEEMCO LIVE — Netflix page language
   One cinematic surface system: near-black canvas, #141414 / #181818 surfaces, imagery first.
   Red = brand, live and active indicators only. White = primary action and selection (Netflix “Play”).
   Green = valid / admitted. Grey = secondary. Corners stay restrained (4–8px); chips and avatars are round. */

:root {
  /* canvas */
  --canvas: #000000;
  --canvas-2: #141414;
  --canvas-3: #1F1F1F;
  --canvas-4: #2B2B2B;
  --on-canvas: #FFFFFF;
  --on-canvas-2: #B3B3B3;
  --on-canvas-3: #808080;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);
  --glass: rgba(255, 255, 255, .08);
  --glass-2: rgba(109, 109, 110, .55);   /* Netflix “More info” grey */

  /* surfaces (formerly paper) — now Netflix panels */
  --paper: #181818;
  --paper-2: #232323;
  --paper-3: #333333;
  --ink: #FFFFFF;
  --ink-2: #B3B3B3;
  --ink-3: #808080;
  --paper-line: rgba(255, 255, 255, .10);
  --paper-line-2: rgba(255, 255, 255, .22);

  /* colour jobs */
  --select: #FFFFFF;
  --on-select: #000000;
  --select-hover: #D9D9D9;
  --select-tint: rgba(255, 255, 255, .10);
  --select-ink: #FFFFFF;
  --live: #E50914;
  --live-ink: #FF4A52;
  --ok: #46D369;                 /* Netflix “match” green */
  --ok-tint: rgba(70, 211, 105, .14);
  --ok-ink: #46D369;
  --warn: #F5A524;
  --warn-tint: rgba(245, 165, 36, .14);
  --warn-ink: #FFC766;
  --bad: #E50914;
  --bad-tint: rgba(229, 9, 20, .14);
  --bad-ink: #FF6B70;

  --ambient: #2a0a0f;

  /* type */
  --font-marquee: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: .75rem; --t-sm: .8125rem; --t-md: .9375rem; --t-lg: 1.0625rem; --t-xl: 1.375rem; --t-2xl: 1.75rem;

  /* space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* shape + depth — restrained like Netflix */
  --r-xs: 4px; --r-sm: 4px; --r-md: 8px; --r-lg: 10px; --r-xl: 14px; --r-pill: 999px;
  --shadow-paper: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, .7);

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --d1: 160ms; --d2: 280ms; --d3: 480ms;

  --topbar-h: 60px;
  --tabbar-h: 68px;
  color-scheme: dark;
}

/* Light theme keeps the same structure on a bright canvas. */
:root[data-theme="light"] {
  --canvas: #F3F3F3;
  --canvas-2: #FFFFFF;
  --canvas-3: #EAEAEA;
  --canvas-4: #DADADA;
  --on-canvas: #141414;
  --on-canvas-2: #595959;
  --on-canvas-3: #7A7A7A;
  --line: rgba(0, 0, 0, .10);
  --line-2: rgba(0, 0, 0, .18);
  --glass: rgba(0, 0, 0, .05);
  --glass-2: rgba(0, 0, 0, .10);
  --paper: #FFFFFF; --paper-2: #F5F5F5; --paper-3: #E6E6E6;
  --ink: #141414; --ink-2: #595959; --ink-3: #8A8A8A;
  --paper-line: rgba(0, 0, 0, .10); --paper-line-2: rgba(0, 0, 0, .20);
  --select: #141414; --on-select: #FFFFFF; --select-hover: #333333; --select-tint: rgba(0, 0, 0, .06); --select-ink: #141414;
  --ok: #1E8E3E; --ok-tint: #E6F4EA; --ok-ink: #1E7B35;
  --warn-ink: #8A5300; --warn-tint: #FFF4DE; --bad-ink: #B3141B; --bad-tint: #FDECEC;
  --shadow-paper: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .08);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, .18);
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  :root { --d1: 0ms; --d2: 0ms; --d3: 0ms; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}

/* ── base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--on-canvas);
  font: 400 var(--t-md)/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
.marquee { font-family: var(--font-marquee); font-weight: 400; letter-spacing: .01em; line-height: .92; }
.muted { color: var(--on-canvas-2); }
.tabular { font-variant-numeric: tabular-nums; }

/* ambient tint sampled from the current event's art (Netflix) */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--ambient) 75%, transparent), transparent 70%),
    var(--canvas);
  transition: background var(--d3) var(--ease);
}
:root[data-theme="light"] .ambient { background: radial-gradient(120% 50% at 50% -10%, color-mix(in srgb, var(--ambient) 22%, transparent), transparent 70%), var(--canvas); }

/* ── shell ────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--canvas) 92%, transparent), color-mix(in srgb, var(--canvas) 70%, transparent));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-marquee); font-size: 26px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.brand b { color: var(--live); font-weight: 400; }
.brand__mark { width: 22px; height: 22px; border-radius: 5px; background: var(--live); display: grid; place-items: center; color: #fff; font-size: 17px; }
.topbar__nav { display: none; gap: var(--s1); margin-left: var(--s4); }
.topbar__nav a { padding: 8px 12px; border-radius: var(--r-pill); color: var(--on-canvas-2); font-weight: 500; font-size: var(--t-sm); }
.topbar__nav a[aria-current="page"] { color: var(--on-canvas); background: var(--glass); }
.topbar__spacer { flex: 1; }

.country { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--glass); color: var(--on-canvas); cursor: pointer; }
.country:hover { background: var(--glass-2); }
.country:focus-within { outline: 2px solid var(--select); outline-offset: 2px; }
.country select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; font-weight: 600; font-size: var(--t-sm); color: inherit; padding: 0 2px; cursor: pointer; outline: none; }
.country select option { color: #000; }
.country__flag { font-size: 16px; line-height: 1; }
.photo-credit { margin-top: var(--s2); font-size: var(--t-xs); color: var(--on-canvas-3); }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--on-canvas); transition: background var(--d1) var(--ease); }
.iconbtn:hover { background: var(--glass); }

main { padding-bottom: calc(var(--tabbar-h) + var(--s6)); }
main.no-tabbar { padding-bottom: var(--s7); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--s4); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--tabbar-h);
  display: flex; justify-content: space-around; align-items: flex-start; padding-top: 8px;
  background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 72px; min-height: 44px; font-size: 11px; font-weight: 500; color: var(--on-canvas-3); position: relative; }
.tabbar a[aria-current="page"] { color: var(--on-canvas); }
.tabbar .dot { position: absolute; top: -2px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }

@media (min-width: 900px) {
  .topbar { padding: 0 var(--s6); }
  .topbar__nav { display: flex; }
  .tabbar { display: none; }
  main { padding-bottom: var(--s8); }
  .wrap { padding: 0 var(--s6); }
}

/* ── buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-sm); font-weight: 600; font-size: var(--t-md); white-space: nowrap;
  transition: background var(--d1) var(--ease), transform var(--d1) var(--ease), opacity var(--d1);
}
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: var(--t-lg); }
.btn--pill { border-radius: var(--r-pill); }
/* Netflix pair */
.btn--play { background: #fff; color: #0A0A0B; }
.btn--play:hover { background: rgba(255, 255, 255, .86); }
.btn--glass { background: var(--glass-2); color: var(--on-canvas); backdrop-filter: blur(8px); }
.btn--glass:hover { background: color-mix(in srgb, var(--on-canvas) 22%, transparent); }
/* Calendly commit */
.btn--select { background: var(--select); color: var(--on-select); }
.btn--select:hover { background: var(--select-hover); }
.btn--outline { border: 1px solid var(--select); color: var(--select); background: transparent; }
.btn--outline:hover { background: var(--select-tint); }
.btn--ghost { color: var(--select); padding: 0 10px; }
.btn--ghost-dark { color: var(--on-canvas); padding: 0 12px; }
.btn--danger { background: var(--bad-tint); color: var(--bad-ink); }
.btn--ok { background: var(--ok); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--paper-3); color: var(--ink-3); cursor: not-allowed; transform: none; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── chips (Netflix outlined pills) ───────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  color: var(--on-canvas); font-size: var(--t-sm); font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--d1) var(--ease), border-color var(--d1);
}
.chip:hover { background: var(--glass); }
.chip[aria-pressed="true"] { background: var(--on-canvas); color: var(--canvas); border-color: var(--on-canvas); }

/* ── poster ───────────────────────────────────────────────────────── */
.poster {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xs);
  background:
    radial-gradient(90% 70% at 85% 10%, var(--pb), transparent 60%),
    radial-gradient(80% 80% at 10% 100%, var(--pa), transparent 65%),
    var(--pc);
  aspect-ratio: 2 / 3; color: #fff;
}
.poster svg { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 55%); z-index: 0; }
/* Netflix key-art treatment over photos: deep bottom fade + subtle vignette so the title always reads. */
.poster--photo::after { background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 32%, transparent 62%), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .45)); }
.poster__mark { position: absolute; top: 8px; left: 8px; z-index: 1; font-family: var(--font-marquee); font-size: 20px; line-height: 1; color: var(--live); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.poster--hero .poster__mark, .poster--lg .poster__mark { font-size: 34px; top: 14px; left: 16px; }
.event-hero .poster__mark { display: none; }
.poster__title { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.poster__title span { font-family: var(--font-marquee); font-size: clamp(22px, 2.4vw, 30px); line-height: .9; text-wrap: balance; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.poster__title small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.poster--wide { aspect-ratio: 16 / 9; }
.poster--hero { aspect-ratio: 4 / 5; border-radius: var(--r-md); }
.poster--hero .poster__title { left: 20px; right: 20px; bottom: 236px; text-align: center; align-items: center; }
.poster--hero .poster__title span { font-size: clamp(52px, 12vw, 96px); }
.poster--hero .poster__title small { font-size: 13px; }
.poster--thumb { aspect-ratio: 1; border-radius: var(--r-xs); }
.poster--thumb .poster__title { display: none; }

/* ── home ─────────────────────────────────────────────────────────── */

.billboard { position: relative; margin-top: var(--s4); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); }
.billboard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s4); display: flex; flex-direction: column; align-items: center; gap: var(--s3); z-index: 2; }
.dot-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: var(--t-sm); color: rgba(255, 255, 255, .92); }
.dot-tags span + span::before { content: "•"; margin-right: 6px; opacity: .7; }
.billboard__meta { font-size: var(--t-sm); color: rgba(255, 255, 255, .85); display: flex; gap: 10px; align-items: center; }
.billboard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.badge--live { background: var(--live); color: #fff; }
.badge--soft { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.badge--ok { background: var(--ok); color: #fff; }
.badge--top { position: absolute; top: 0; right: 0; z-index: 2; background: var(--live); color: #fff; font-size: 9px; line-height: 1; padding: 4px 4px 3px; border-radius: 0 0 0 3px; text-align: center; font-weight: 800; }
.badge--top b { display: block; font-size: 13px; }

.row { margin-top: var(--s6); }
.row__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s3); }
.row__head h2 { font-size: var(--t-lg); font-weight: 700; }
.row__head a { font-size: var(--t-sm); color: var(--on-canvas-2); display: inline-flex; align-items: center; gap: 2px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s4); scrollbar-width: none; margin: 0 calc(-1 * var(--s4)); padding: 0 var(--s4) 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.card-poster { display: flex; flex-direction: column; gap: 6px; transition: transform var(--d2) var(--ease); }
.card-poster:hover { transform: translateY(-3px); }
.card-poster__meta { font-size: var(--t-xs); color: var(--on-canvas-2); line-height: 1.35; }
.card-poster__meta b { color: var(--on-canvas); font-weight: 600; display: block; font-size: var(--t-sm); }
.card-poster .poster { box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.card-poster__flag { position: absolute; left: 0; top: 0; z-index: 2; white-space: nowrap; border-radius: var(--r-xs) 0 3px 0; }

/* Top 10: giant outlined numerals (Netflix) */
.rail--top { grid-auto-columns: 196px; }
.top-item { display: grid; grid-template-columns: 78px 1fr; align-items: end; }
.top-item__n { font-family: var(--font-marquee); font-size: 168px; line-height: .74; color: var(--canvas); -webkit-text-stroke: 2px var(--on-canvas-3); letter-spacing: -.06em; margin-right: -14px; }
.top-item .poster { border-radius: var(--r-xs); }

/* upcoming (continue watching analogue) */
.rail--wide { grid-auto-columns: 260px; }
.upcoming { display: flex; flex-direction: column; border-radius: var(--r-sm); overflow: hidden; background: var(--canvas-2); border: 1px solid var(--line); }
.upcoming__art { position: relative; }
.upcoming__art .poster { border-radius: 0; }
.upcoming__count { position: absolute; left: 12px; bottom: 10px; z-index: 2; color: #fff; }
.upcoming__count .marquee { font-size: 40px; }
.upcoming__count small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.progress { height: 3px; background: rgba(255, 255, 255, .2); }
.progress i { display: block; height: 100%; background: var(--live); }
.upcoming__foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: var(--t-sm); }

@media (min-width: 900px) {
  .billboard { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 460px; }
  .billboard .poster--hero { aspect-ratio: auto; height: 100%; border-radius: 0; }
  .billboard .poster--hero .poster__title { bottom: 40px; }
  .rail { scroll-padding-inline: 0; }
  .billboard__body { position: static; align-items: flex-start; justify-content: flex-end; padding: var(--s7); background: linear-gradient(to right, var(--canvas-2), var(--canvas-3)); }
  .billboard__body .dot-tags { justify-content: flex-start; color: var(--on-canvas-2); }
  .billboard__meta { color: var(--on-canvas-2); }
  .billboard__actions { width: auto; grid-template-columns: auto auto; }
  .billboard__about { display: block !important; color: var(--on-canvas-2); max-width: 46ch; }
  .billboard__name { display: block !important; }
  .rail { grid-auto-columns: 172px; margin: 0; padding: 0 0 6px; }
  .rail--top { grid-auto-columns: 236px; }
  .rail--wide { grid-auto-columns: 300px; }
}
.billboard__about, .billboard__name { display: none; }
.billboard__name { font-family: var(--font-marquee); font-size: 72px; line-height: .9; }

/* ── paper (Calendly) ─────────────────────────────────────────────── */
.paper { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-paper); }
.paper .muted, .paper-muted { color: var(--ink-2); }
.paper hr, .hr { border: 0; border-top: 1px solid var(--paper-line); margin: 0; }
.paper h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -.01em; }
.paper h3 { font-size: var(--t-lg); font-weight: 700; }
.eyebrow { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.on-canvas .eyebrow { color: var(--on-canvas-3); }

/* icon meta rows — Calendly's left pane */
.meta { display: flex; flex-direction: column; gap: 10px; }
.meta li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.meta li .ic { color: var(--ink-2); margin-top: 1px; }
.meta li span small { display: block; font-weight: 400; color: var(--ink-2); }
ul.meta { list-style: none; margin: 0; padding: 0; }

/* ── event page ───────────────────────────────────────────────────── */
.event-hero { position: relative; margin: 0 calc(-1 * var(--s4)); }
.event-hero .poster { aspect-ratio: 1 / 1; border-radius: 0; }
.event-hero .poster__title { left: var(--s4); right: var(--s4); bottom: 64px; }
.event-hero .poster__title span { font-size: clamp(56px, 14vw, 88px); }
.event-hero__top { position: absolute; top: var(--s3); left: var(--s3); right: var(--s3); display: flex; justify-content: space-between; z-index: 3; }
.event-hero__top .iconbtn { background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(8px); }
.event-sheet { position: relative; margin-top: -40px; z-index: 2; }
.event-layout { display: block; }
.event-side { display: none; }
.event-about { margin-top: var(--s5); }
.event-about p { color: var(--on-canvas-2); max-width: 62ch; }
.going { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: var(--t-sm); }

.book { padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s5); }
.book__head { display: flex; flex-direction: column; gap: var(--s3); }
.book__org { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; }
.book__title { font-size: var(--t-2xl); font-weight: 700; line-height: 1.15; }
.book__section { display: flex; flex-direction: column; gap: var(--s3); }
.book__section > header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.book__section h3 { font-size: var(--t-lg); }

@media (min-width: 900px) {
  .event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: var(--s6); align-items: start; padding-top: var(--s6); }
  .event-hero { margin: 0; }
  .event-hero .poster { aspect-ratio: 16 / 10; border-radius: var(--r-md); }
  .event-hero .poster__title { bottom: 24px; left: 24px; right: 24px; }
  .event-hero .poster__title span { font-size: clamp(44px, 5vw, 76px); }
  .event-sheet { margin-top: 0; position: sticky; top: calc(var(--topbar-h) + var(--s5)); }
  .book { padding: var(--s6); }
  .event-side { display: block; }
}

/* calendar — Calendly */
.cal { user-select: none; }
.cal__head { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-bottom: var(--s2); font-weight: 600; font-size: var(--t-sm); }
.cal__head button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--select); }
.cal__head button:hover:not([disabled]) { background: var(--select-tint); }
.cal__head button[disabled] { color: var(--ink-3); opacity: .5; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; text-align: center; }
.cal__dow { font-size: 11px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; padding: 4px 0; }
.cal__day { aspect-ratio: 1; max-width: 44px; width: 100%; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: var(--t-sm); color: var(--ink-3); position: relative; }
.cal__day--avail { background: var(--select-tint); color: var(--select); font-weight: 700; }
.cal__day--avail:hover { background: color-mix(in srgb, var(--select) 20%, var(--paper)); }
.cal__day[aria-pressed="true"] { background: var(--select); color: var(--on-select); }
.cal__day--today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* date chips when calendar is overkill */
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s2); }
.date-pill { border: 1px solid var(--paper-line-2); border-radius: var(--r-sm); padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-height: 44px; transition: border-color var(--d1), background var(--d1); }
.date-pill b { font-size: var(--t-lg); color: var(--ink); }
.date-pill small { font-size: var(--t-xs); color: var(--ink-2); }
.date-pill:hover { border-color: var(--select); }
.date-pill[aria-pressed="true"] { background: var(--select); border-color: var(--select); }
.date-pill[aria-pressed="true"] b, .date-pill[aria-pressed="true"] small { color: var(--on-select); }

/* tier slot — Calendly outlined slot that "opens" when selected */
.tiers { display: flex; flex-direction: column; gap: var(--s2); }
.tier { border: 1px solid var(--paper-line-2); border-radius: var(--r-md); transition: border-color var(--d1), box-shadow var(--d2) var(--ease), background var(--d1); }
.tier:hover:not(.tier--out) { border-color: var(--select); }
.tier--on { border-color: var(--select); box-shadow: 0 0 0 1px var(--select) inset; background: color-mix(in srgb, var(--select-tint) 45%, var(--paper)); }
.tier--out { opacity: .62; }
.tier__main { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); padding: var(--s4); align-items: center; }
.tier__name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tier__price { font-size: var(--t-sm); color: var(--ink-2); margin-top: 2px; }
.tier__price b { color: var(--ink); font-size: var(--t-md); }
.tier__avail { font-size: var(--t-xs); color: var(--ink-2); display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.avail-dot--low { background: var(--warn); }
.avail-dot--out { background: var(--ink-3); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.tag--warn { background: var(--warn-tint); color: var(--warn-ink); }
.tag--out { background: var(--paper-3); color: var(--ink-2); }
.tag--blue { background: var(--select-tint); color: var(--select-ink); }
.tag--live { background: color-mix(in srgb, var(--live) 12%, transparent); color: var(--bad-ink); }
.tier__access { padding: 0 var(--s4) var(--s4); display: flex; flex-wrap: wrap; gap: 6px; }
.zone { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--paper-line); }
.zone--yes { background: var(--ok-tint); color: var(--ok-ink); border-color: transparent; }
.zone--no { text-decoration: line-through; opacity: .7; }

.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--paper-line-2); border-radius: var(--r-pill); padding: 2px; background: var(--paper); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--select); }
.stepper button:hover:not([disabled]) { background: var(--select-tint); }
.stepper button[disabled] { color: var(--ink-3); opacity: .45; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* access compare matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.matrix th, .matrix td { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--paper-line); }
.matrix th:first-child, .matrix td:first-child { text-align: left; color: var(--ink-2); font-weight: 500; }
.matrix thead th { font-size: var(--t-xs); color: var(--ink); font-weight: 700; }
.matrix .yes { color: var(--ok); }
.matrix .no { color: var(--ink-3); }

.policy { display: grid; gap: 8px; }
.policy li { display: flex; gap: 10px; font-size: var(--t-sm); color: var(--ink-2); }
.policy li .ic { color: var(--ink-2); }

/* sticky purchase bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--paper); color: var(--ink); border-top: 1px solid var(--paper-line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
  display: flex; align-items: center; gap: var(--s3);
  transform: translateY(0); transition: transform var(--d2) var(--ease);
}
.buybar__sum { flex: 1; min-width: 0; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.3; }
.buybar__sum b { display: block; font-size: var(--t-lg); color: var(--ink); }
.buybar .btn { flex: none; }
.book__cta { display: none; }
@media (min-width: 900px) {
  .buybar { display: none; }
  .book__cta { display: flex; align-items: center; gap: var(--s3); position: sticky; bottom: 0; background: var(--paper); padding-top: var(--s3); }
  .book__cta .buybar__sum { font-size: var(--t-sm); }
}
.has-buybar main { padding-bottom: 120px; }

/* ── checkout ─────────────────────────────────────────────────────── */
.flow { max-width: 1040px; margin: 0 auto; padding: var(--s4) var(--s4) 0; }
.flow__top { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
.flow__top h1 { font-size: var(--t-lg); font-weight: 700; flex: 1; }
.steps { display: flex; gap: 6px; margin-bottom: var(--s4); }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); }
.steps i.on { background: var(--on-canvas); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; }
.split > * { min-width: 0; }
.split__left { padding: var(--s5) var(--s4); border-bottom: 1px solid var(--paper-line); display: flex; flex-direction: column; gap: var(--s4); }
.split__right { padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s5); }
.split__ident { display: flex; gap: var(--s3); align-items: center; }
.split__ident .poster { width: 64px; flex: none; border-radius: var(--r-xs); }
@media (min-width: 900px) {
  .flow { padding-top: var(--s6); }
  .split { grid-template-columns: 340px minmax(0, 1fr); }
  .split__left { border-bottom: 0; border-right: 1px solid var(--paper-line); padding: var(--s6); }
  .split__right { padding: var(--s6); }
  .split__ident { flex-direction: column; align-items: flex-start; }
  .split__ident .poster { width: 120px; }
}

.timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; background: var(--select-tint); color: var(--select-ink); font-variant-numeric: tabular-nums; }
.timer--low { background: var(--bad-tint); color: var(--bad-ink); }

.lines { display: flex; flex-direction: column; gap: 8px; font-size: var(--t-sm); }
.lines div { display: flex; justify-content: space-between; gap: var(--s3); color: var(--ink-2); }
.lines div b { color: var(--ink); font-weight: 600; }
.lines .total { padding-top: 10px; border-top: 1px solid var(--paper-line); color: var(--ink); font-size: var(--t-lg); font-weight: 700; }
.lines .total b { font-weight: 800; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  min-height: 46px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--paper-line-2); background: var(--paper); color: var(--ink);
  transition: border-color var(--d1), box-shadow var(--d1);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--select); box-shadow: 0 0 0 3px color-mix(in srgb, var(--select) 22%, transparent); }
.field[data-invalid] input { border-color: var(--bad); }
.field__err { font-size: var(--t-xs); color: var(--bad-ink); display: flex; gap: 4px; align-items: center; min-height: 16px; }
.field__hint { font-size: var(--t-xs); color: var(--ink-2); }
.grid2 { display: grid; gap: var(--s3); }
@media (min-width: 600px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; }
.btn[aria-busy="true"] { cursor: progress; opacity: .9; }

.radios { display: flex; flex-direction: column; gap: var(--s2); }
.radio { display: flex; align-items: center; gap: var(--s3); padding: 14px var(--s4); border: 1px solid var(--paper-line-2); border-radius: var(--r-md); min-height: 56px; text-align: left; transition: border-color var(--d1), background var(--d1); }
.radio:hover { border-color: var(--select); }
.radio[aria-checked="true"] { border-color: var(--select); box-shadow: 0 0 0 1px var(--select) inset; background: color-mix(in srgb, var(--select-tint) 45%, var(--paper)); }
.radio__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--paper-line-2); flex: none; display: grid; place-items: center; }
.radio[aria-checked="true"] .radio__dot { border-color: var(--select); }
.radio[aria-checked="true"] .radio__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--select); }
.radio__body { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.radio__body small { font-weight: 400; color: var(--ink-2); font-size: var(--t-xs); }
.radio > .ic { color: var(--ink-2); }

.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-size: var(--t-sm); align-items: flex-start; }
.notice--info { background: var(--paper-2); color: var(--ink-2); }
.notice--warn { background: var(--warn-tint); color: var(--warn-ink); }
.notice--bad { background: var(--bad-tint); color: var(--bad-ink); }
.notice--ok { background: var(--ok-tint); color: var(--ok-ink); }
.notice b { color: inherit; }
.fine { font-size: var(--t-xs); color: var(--ink-2); }
/* Paystack: one secure page for card, transfer, USSD and Apple Pay */
.paystack { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border-radius: var(--r-sm); background: var(--paper-2); border: 1px solid var(--paper-line); color: var(--ink-2); font-size: var(--t-sm); }
.paystack__ways { display: flex; flex-wrap: wrap; gap: 6px; }
.paystack__ways .chip { pointer-events: none; }
/* Back from Paystack: confirming the payment */
.paidwait { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--s6); }
.paidwait__in { display: flex; flex-direction: column; align-items: center; gap: var(--s3); max-width: 420px; }
.paidwait__ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--live); animation: spin 0.9s linear infinite; }
.paidwait__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); }
.paidwait h1 { font-size: var(--t-xl); text-wrap: balance; }
.paidwait__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--s2); }
@media (prefers-reduced-motion: reduce) { .paidwait__ring { animation-duration: 3s; } }
.fine a { color: var(--select); text-decoration: underline; }

/* ── secured moment (Eventbrite "Tickets secured", Netflix marquee) ─ */
.secured { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden; background: var(--canvas); }
.secured__glow { position: absolute; inset: -20%; background: conic-gradient(from 0deg, var(--pa), var(--pb), var(--live), var(--pa)); filter: blur(80px); opacity: .55; animation: spin 9s linear infinite; }
.secured__word { position: relative; font-family: var(--font-marquee); font-size: clamp(72px, 20vw, 200px); line-height: .85; text-align: center; color: #fff; animation: rise var(--d3) var(--ease) both; }
.secured__word span { display: block; animation: rise var(--d3) var(--ease) both; }
.secured__word span:nth-child(2) { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

.confirm { max-width: 560px; margin: 0 auto; padding: var(--s6) var(--s4); display: flex; flex-direction: column; gap: var(--s5); }
.confirm__title { font-size: clamp(32px, 7vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }

/* ── wallet ───────────────────────────────────────────────────────── */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); }
.seg button { min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; color: var(--on-canvas-2); }
.seg button[aria-pressed="true"] { background: var(--on-canvas); color: var(--canvas); }
.paper .seg { background: var(--paper-2); border-color: var(--paper-line); }
.paper .seg button { color: var(--ink-2); }
.paper .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.wallet { display: grid; gap: var(--s4); margin-top: var(--s4); }
@media (min-width: 720px) { .wallet { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wallet { grid-template-columns: repeat(3, 1fr); } }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 700; white-space: nowrap; }
.status--ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: #3DDC97; }
.status--info { background: rgba(255,255,255,.12); color: #fff; }
.status--warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: #FFC766; }
.status--muted { background: var(--glass); color: var(--on-canvas-2); }
.status--bad { background: color-mix(in srgb, var(--bad) 20%, transparent); color: #FF8A8E; }
:root[data-theme="light"] .status--ok, .paper .status--ok { color: var(--ok-ink); background: var(--ok-tint); }
:root[data-theme="light"] .status--info, .paper .status--info { color: var(--select-ink); background: var(--select-tint); }
:root[data-theme="light"] .status--warn, .paper .status--warn { color: var(--warn-ink); background: var(--warn-tint); }
:root[data-theme="light"] .status--bad, .paper .status--bad { color: var(--bad-ink); background: var(--bad-tint); }
.paper .status--muted { background: var(--paper-3); color: var(--ink-2); }

/* ── credential ───────────────────────────────────────────────────── */
.cred-page { max-width: 1120px; margin: 0 auto; padding: var(--s4); display: grid; gap: var(--s5); }
@media (min-width: 900px) { .cred-page { grid-template-columns: 420px 1fr; padding-top: var(--s6); align-items: start; } .cred-page > .stub { position: sticky; top: calc(var(--topbar-h) + var(--s5)); } }
.stub { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-paper); overflow: hidden; }
.stub::before, .stub::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--canvas); transform: translateY(-50%); box-shadow: inset 0 0 0 100px color-mix(in srgb, var(--ambient) 18%, transparent); }
.stub::before { left: -13px; top: var(--notch, 62%); }
.stub::after { right: -13px; top: var(--notch, 62%); }
.stub__head { display: flex; gap: var(--s3); padding: var(--s4); align-items: center; }
.stub__head .poster { width: 56px; flex: none; }
.stub__head h1 { font-size: var(--t-lg); font-weight: 700; line-height: 1.2; }
.stub__head p { font-size: var(--t-sm); color: var(--ink-2); }
.stub__code { position: relative; margin: 0 var(--s4); padding: var(--s4); border-radius: var(--r-md); background: var(--paper-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stub__code canvas { width: 100%; max-width: 236px; aspect-ratio: 1; image-rendering: pixelated; border-radius: 6px; }
.stub__code--off canvas { filter: blur(7px); opacity: .5; }
.stub__veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s5); font-weight: 700; color: var(--ink); }
.stub__veil span { background: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow-paper); display: flex; flex-direction: column; gap: 4px; align-items: center; max-width: 260px; }
.stub__veil small { font-weight: 400; color: var(--ink-2); }
.live-proof { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.live-proof i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.ring { width: 18px; height: 18px; }
.ring circle { fill: none; stroke-width: 3; }
.stub__perf { margin: var(--s4) var(--s4) 0; border-top: 2px dashed var(--paper-line-2); }
.stub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); padding: var(--s4); }
.stub__grid div { display: flex; flex-direction: column; gap: 2px; }
.stub__grid small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }
.stub__grid b { font-size: var(--t-md); }
.gatebig { display: flex; align-items: center; gap: var(--s4); margin: 0 var(--s4) var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--ink); color: #fff; }
.gatebig .marquee { font-size: 54px; line-height: .8; }
.gatebig small { display: block; font-size: var(--t-xs); opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.gatebig b { font-size: var(--t-md); }

.actions { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--canvas-2); border: 1px solid var(--line); }
.actions > a, .actions > button { display: flex; align-items: center; gap: var(--s3); padding: 14px var(--s4); min-height: 56px; text-align: left; border-bottom: 1px solid var(--line); transition: background var(--d1); }
.actions > *:last-child { border-bottom: 0; }
.actions > a:hover, .actions > button:hover:not([aria-disabled="true"]) { background: var(--glass); }
.actions__body { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.actions__body small { font-weight: 400; color: var(--on-canvas-2); font-size: var(--t-xs); }
.actions [aria-disabled="true"] { cursor: default; }
.actions [aria-disabled="true"] .actions__body { color: var(--on-canvas-3); }
.why { color: var(--on-canvas); text-decoration: underline; font-weight: 600; font-size: var(--t-xs); padding: 6px; margin: -6px; }
.panel-dark { padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s3); }
.panel-dark h2 { font-size: var(--t-lg); font-weight: 700; }

/* arrival map */
.map { width: 100%; height: auto; border-radius: var(--r-sm); background: var(--canvas-3); }
.map text { font: 600 9px var(--font-ui); fill: var(--on-canvas-2); }
.map .gate-mine { fill: var(--select); }
.map .route { stroke: var(--select); stroke-width: 2.5; stroke-dasharray: 5 5; fill: none; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* ── sheet / dialog ───────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--d2) var(--ease); }
.sheet { width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s3) var(--s5) var(--s5); animation: up var(--d2) var(--ease); }
.sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--paper-line-2); margin: 0 auto var(--s4); }
.sheet h2 { font-size: var(--t-xl); margin-bottom: var(--s2); }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: var(--r-xl); } .sheet__grab { display: none; } .sheet { padding-top: var(--s5); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.toast { position: fixed; z-index: 100; left: 50%; top: calc(var(--topbar-h) + 10px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-sm); background: var(--on-canvas); color: var(--canvas); box-shadow: var(--shadow-pop); animation: drop var(--d2) var(--ease); max-width: calc(100vw - 32px); }
.toast--ok { background: var(--ok); color: #fff; }
.toast--bad { background: var(--bad); color: #fff; }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: var(--s7) var(--s4); color: var(--on-canvas-2); }
.empty h3 { color: var(--on-canvas); font-size: var(--t-lg); }
.empty p { max-width: 36ch; font-size: var(--t-sm); }
.empty .btn { margin-top: var(--s3); }

/* ── transfer / refund flows ──────────────────────────────────────── */
.mini-flow { max-width: 560px; margin: 0 auto; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s4); }
.mini-flow .paper { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.sendcard { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--paper-line); }
.sendcard .poster { aspect-ratio: 16 / 8; border-radius: 0; }
.sendcard__rows div { display: flex; justify-content: space-between; padding: 12px var(--s4); border-top: 1px solid var(--paper-line); font-size: var(--t-sm); }
.sendcard__rows div span { color: var(--ink-2); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons button { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--paper-line-2); font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.reasons button[aria-pressed="true"] { background: var(--select); border-color: var(--select); color: var(--on-select); }

/* ── shared bits ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--s2)); padding: 0 var(--s2); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: var(--t-sm); }

.demo-note { font-size: var(--t-xs); color: var(--on-canvas-3); text-align: center; padding: var(--s6) var(--s4) 0; }
.demo-note button { text-decoration: underline; color: var(--on-canvas-2); min-height: 32px; }
@media (min-width: 900px) { .only-mobile { display: none !important; } }

/* ═══════════════════════════════════════════════════════════════════
   Round 2 — social, profile, memories, wallet, notifications, map
   Marquee (dark) for feeling & people · Margin (paper) for money & decisions
   ═══════════════════════════════════════════════════════════════════ */

/* header additions */
.brand__word { display: none; }
@media (min-width: 420px) { .brand__word { display: inline; } }
.iconbtn--badge { position: relative; }
.count-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--live); color: #fff; font: 700 11px/18px var(--font-ui); text-align: center; }
.topbar__me { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
.topbar__search { display: none; }
@media (min-width: 560px) { .topbar__search { display: grid; } }
.topbar { gap: var(--s2); }
.country { padding: 0 8px; }
@media (max-width: 420px) { .country select { max-width: 74px; text-overflow: ellipsis; } }
.tabbar a { min-width: 58px; }
.chromeless .topbar, .chromeless .tabbar { display: none; }
.chromeless main { padding: 0; }
.kicker { color: var(--on-canvas-2); font-size: var(--t-sm); margin-top: 2px; }
.h2 { font-size: var(--t-lg); font-weight: 700; margin: var(--s5) 0 var(--s3); }
.row__head h2 small, .row__head small { font-weight: 500; color: var(--on-canvas-3); font-size: var(--t-sm); margin-left: 6px; }
.link-btn { color: var(--select); font-weight: 600; font-size: var(--t-sm); text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.on-canvas.link-btn, .link-btn.on-canvas { color: var(--on-canvas-2); }
.fine.on-canvas { color: var(--on-canvas-3); margin-top: var(--s3); }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--on-canvas-2); font-size: var(--t-sm); font-weight: 600; min-height: 44px; margin-top: var(--s2); }
.iconbtn--sm { width: 36px; height: 36px; color: var(--on-canvas-3); }

/* avatars + social proof */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 40) 70% 38%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.avatar--org { border-radius: 28%; }
.avatar--more { background: var(--canvas-4); color: var(--on-canvas); }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack > .avatar { box-shadow: 0 0 0 2px var(--canvas); }
.avatar-stack > .avatar + .avatar { margin-left: -8px; }
.paper .avatar-stack > .avatar { box-shadow: 0 0 0 2px var(--paper); }
.proof { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--on-canvas-2); line-height: 1.3; }
.proof b { color: var(--on-canvas); font-weight: 600; }
.proof--paper { color: var(--ink-2); } .proof--paper b { color: var(--ink); }

/* event cards (§11) */
.ecard { position: relative; min-width: 0; }
.ecard__link { display: flex; flex-direction: column; gap: 8px; transition: transform var(--d2) var(--ease); }
.ecard__link:hover { transform: translateY(-3px); }
.ecard__art { position: relative; border-radius: var(--r-xs); overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.ecard__art .poster { border-radius: 0; }
.ecard__flag { position: absolute; left: 0; top: 0; z-index: 2; border-radius: 0 0 6px 0; }
.ecard__save { position: absolute; top: 6px; right: 6px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); transition: transform var(--d1) var(--ease), color var(--d1); }
.ecard__save:hover { transform: scale(1.08); }
.ecard__save[aria-pressed="true"] { color: var(--live); background: rgba(255,255,255,.92); }
.ecard__meta { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-xs); color: var(--on-canvas-2); line-height: 1.35; min-width: 0; }
.ecard__meta > b { color: var(--on-canvas); font-size: var(--t-sm); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecard__meta > span:not(.proof) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecard__price { color: var(--on-canvas); font-weight: 600; }
.ecard__meta .proof { margin-top: 4px; }
.ecard--wide .ecard__art .poster { aspect-ratio: 16 / 9; }
.ecard--wide .poster__title span { font-size: 30px; }
.ecard--row .ecard__link { flex-direction: row; align-items: center; gap: var(--s3); }
.ecard--row .ecard__art { width: 72px; flex: none; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s4) var(--s3); }
@media (min-width: 900px) { .grid-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.billboard__proof { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: rgba(255,255,255,.9); }
.billboard__proof b { color: #fff; }
@media (min-width: 900px) { .billboard__proof { color: var(--on-canvas-2); } .billboard__proof b { color: var(--on-canvas); } }

/* search + filters (§24) */
.searchbar { display: flex; align-items: center; gap: 10px; margin-top: var(--s3); padding: 0 6px 0 16px; min-height: 52px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line-2); color: var(--on-canvas-2); }
.searchbar:focus-within { border-color: var(--select); box-shadow: 0 0 0 3px color-mix(in srgb, var(--select) 30%, transparent); }
.searchbar input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--on-canvas); font-size: var(--t-md); min-height: 48px; }
.searchbar input::placeholder { color: var(--on-canvas-3); }
.searchbar__filter { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--on-canvas); background: var(--glass); }
.searchbar__filter .count-badge { top: 0; right: 0; }
.chip--on { background: color-mix(in srgb, var(--select) 22%, transparent); border-color: var(--select); }
.fgroup { margin-top: var(--s4); } .fgroup h3 { font-size: var(--t-sm); margin-bottom: var(--s2); }
.wrapchips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-paper { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--paper-line-2); font-size: var(--t-sm); font-weight: 500; color: var(--ink); background: var(--paper); }
.chip-paper:hover { border-color: var(--select); }
.chip-paper[aria-pressed="true"] { background: var(--select); border-color: var(--select); color: var(--on-select); }

/* people rows */
.plist { display: flex; flex-direction: column; }
.prow { display: flex; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.prow:last-child { border-bottom: 0; }
.prow__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); }
.prow__who b { display: block; font-size: var(--t-md); }
.prow__who small { display: block; color: var(--on-canvas-3); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow__who > span { min-width: 0; }
.verified { display: inline-block; color: var(--select); vertical-align: -2px; }
.ehead__org .prow__who small { white-space: normal; }

/* event page as a social profile (§12–15) */
.event-main { min-width: 0; }
.ehead { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s4); }
.ehead .dot-tags { justify-content: flex-start; color: var(--on-canvas-2); }
.ehead__title { font-family: var(--font-marquee); font-weight: 400; font-size: clamp(44px, 9vw, 72px); line-height: .9; letter-spacing: .01em; }
.ehead__title span { display: block; font-family: var(--font-ui); font-size: var(--t-lg); font-weight: 500; letter-spacing: 0; color: var(--on-canvas-2); margin-top: 6px; line-height: 1.3; }
.ehead__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); color: var(--on-canvas-2); }
.ehead__facts li { display: flex; gap: 8px; align-items: center; }
.ehead__org { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); }
.ehead__proof { display: flex; flex-direction: column; gap: 8px; }
.ehead__proof p { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--on-canvas-2); }
.ehead__proof p b { color: var(--on-canvas); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-sm); color: var(--on-canvas-2); }
.stats b { color: var(--on-canvas); font-weight: 700; font-variant-numeric: tabular-nums; }
.stats a:hover { color: var(--on-canvas); }
.ehead__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.etabs { position: sticky; top: var(--topbar-h); z-index: 20; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: var(--s5) calc(-1 * var(--s4)) 0; padding: 0 var(--s4); background: color-mix(in srgb, var(--canvas) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.etabs::-webkit-scrollbar { display: none; }
.etabs button { flex: none; min-height: 48px; padding: 0 14px; font-weight: 600; font-size: var(--t-sm); color: var(--on-canvas-2); border-bottom: 2px solid transparent; }
.etabs button small { color: var(--on-canvas-3); font-weight: 500; }
.etabs button[aria-selected="true"] { color: var(--on-canvas); border-color: var(--live); }
@media (min-width: 900px) { .etabs { margin: var(--s5) 0 0; padding: 0; } }
.tabbody { display: flex; flex-direction: column; gap: var(--s4); padding-top: var(--s4); }
.lede { font-size: var(--t-lg); color: var(--on-canvas-2); max-width: 62ch; }
.event-hero .poster__title { display: none; }
.event-layout .event-sheet .book { box-shadow: var(--shadow-paper); }

/* community (§22) */
.composer { padding: var(--s3); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s2); }
.composer__top { display: flex; gap: var(--s3); align-items: flex-start; }
.composer textarea { flex: 1; min-height: 64px; resize: vertical; background: transparent; border: 0; outline: none; color: var(--on-canvas); font: inherit; padding-top: 8px; }
.composer textarea::placeholder { color: var(--on-canvas-3); }
.composer__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.composer .seg button { min-height: 32px; padding: 0 12px; }
.post { padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s3); }
.post--pinned { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); }
.post__head { display: flex; align-items: center; gap: var(--s2); }
.post__who { flex: 1; display: flex; gap: var(--s3); align-items: center; min-width: 0; }
.post__who b { font-size: var(--t-sm); }
.post__who small { display: block; color: var(--on-canvas-3); font-size: var(--t-xs); }
.label-org { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--live); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.label-q { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--glass-2); color: var(--on-canvas); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.post__text { font-size: var(--t-md); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.post__event { display: flex; align-items: center; gap: var(--s3); padding: 8px; border-radius: var(--r-sm); background: var(--glass); font-size: var(--t-sm); font-weight: 600; }
.post__event .poster { width: 40px; flex: none; }
.post__event small { display: block; color: var(--on-canvas-3); font-weight: 400; font-size: var(--t-xs); }
.post__actions { display: flex; gap: var(--s2); }
.post__actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 44px; padding: 0 10px; border-radius: var(--r-pill); color: var(--on-canvas-2); font-size: var(--t-sm); font-weight: 600; }
.post__actions button:hover { background: var(--glass); color: var(--on-canvas); }
.post__actions button[aria-pressed="true"] { color: var(--live); }
.post__comments { list-style: none; margin: 0; padding: var(--s2) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.post__comments li { display: flex; gap: 10px; font-size: var(--t-sm); }
.post__comments small { display: block; color: var(--on-canvas-3); font-size: var(--t-xs); }
.post__reply { display: flex; gap: 8px; }
.post__reply input { flex: 1; min-width: 0; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--canvas); color: var(--on-canvas); }
.post__reply input:focus { outline: none; border-color: var(--select); }

/* map, gates, where am I (§19–21) */
.mapwrap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--canvas-2); border: 1px solid var(--line); }
.maptools { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: var(--t-xs); }
.evmap { width: 100%; height: auto; display: block; }
.evmap__ground { fill: var(--canvas-3); }
.evmap__road { stroke: var(--line-2); stroke-width: 6; }
.evmap__stage { fill: color-mix(in srgb, var(--live) 25%, var(--canvas-4)); }
.evmap__zone { fill: var(--glass); stroke: var(--line-2); stroke-dasharray: 3 3; }
.evmap__zlabel { font: 600 9px var(--font-ui); fill: var(--on-canvas-3); text-transform: uppercase; letter-spacing: .06em; }
.evmap__poi { cursor: pointer; outline: none; }
.evmap__poi circle { fill: var(--canvas); stroke: var(--on-canvas-3); stroke-width: 1.5; transition: transform var(--d1); }
.evmap__poi text { font: 700 9px var(--font-ui); fill: var(--on-canvas); pointer-events: none; }
.evmap__poi--gate circle { fill: var(--on-canvas); stroke: none; } .evmap__poi--gate text { fill: var(--canvas); font-size: 11px; }
.evmap__poi--stage circle { fill: var(--live); stroke: none; } .evmap__poi--stage text { fill: #fff; }
.evmap__poi--vip circle { stroke: #ffc766; }
.evmap__poi.is-mine circle { fill: var(--live); } .evmap__poi.is-mine text { fill: #fff; }
.evmap__poi.is-dest circle { stroke: var(--select); stroke-width: 3; }
.evmap__poi:focus-visible circle { stroke: var(--select); stroke-width: 3; }
.evmap__route { fill: none; stroke: var(--select); stroke-width: 3; stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
.evmap__here circle:not(.evmap__pulse) { fill: #2F80FF; stroke: #fff; stroke-width: 2.5; }
.evmap__pulse { fill: rgba(47, 128, 255, .3); animation: pulse 1.6s ease-in-out infinite; }
.evmap__here text { font: 800 8px var(--font-ui); fill: var(--on-canvas); letter-spacing: .08em; }
.whereami { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.route { display: flex; flex-direction: column; gap: 2px; padding: var(--s3); border-radius: var(--r-sm); background: var(--select-tint); font-size: var(--t-sm); color: var(--ink); }
.label-live, .label-est { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.label-live { background: color-mix(in srgb, var(--ok) 22%, transparent); color: #3DDC97; }
.label-est { background: color-mix(in srgb, var(--warn) 22%, transparent); color: #FFC766; }
.paper .label-est, .route .label-est { color: var(--warn-ink); background: var(--warn-tint); }
.gates { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .gates { grid-template-columns: repeat(2, 1fr); } }
.gatecard { padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s3); }
.gatecard--mine { border-color: var(--select); box-shadow: 0 0 0 1px var(--select) inset; }
.gatecard header { display: flex; gap: var(--s3); align-items: center; }
.gatecard header small { display: block; color: var(--on-canvas-3); font-size: var(--t-xs); }
.gatecard__id { font-size: 44px; line-height: .8; width: 40px; text-align: center; }
.gatecard dl { margin: 0; display: grid; gap: 6px; font-size: var(--t-sm); }
.gatecard dl div { display: flex; justify-content: space-between; gap: var(--s3); }
.gatecard dt { color: var(--on-canvas-3); } .gatecard dd { margin: 0; text-align: right; font-weight: 600; }
.dotlive { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--on-canvas-3); margin-right: 6px; }
.dotlive--on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 30%, transparent); }
.gatecard .btn { align-self: flex-start; }

/* schedule + info */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); position: relative; }
.timeline__t { font-family: var(--font-marquee); font-size: 24px; line-height: 1; color: var(--on-canvas); }
.timeline small { display: block; color: var(--on-canvas-3); font-size: var(--t-xs); }
.infolist { margin: 0; display: flex; flex-direction: column; }
.infolist div { display: grid; grid-template-columns: 140px 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.infolist dt { display: flex; align-items: center; gap: 8px; font-weight: 600; } .infolist dd { margin: 0; color: var(--on-canvas-2); }
@media (max-width: 480px) { .infolist div { grid-template-columns: 1fr; gap: 4px; } }

/* social tab */
.seg--wide { display: flex; width: 100%; margin-top: var(--s3); overflow-x: auto; }
.seg--wide button { flex: 1; white-space: nowrap; }
.social__body { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s4); }
.plans { display: flex; gap: var(--s4); overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.plans::-webkit-scrollbar { display: none; }
.plan { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: var(--t-xs); }
.plan b { font-size: var(--t-xs); }
.plan small { color: var(--on-canvas-3); font-size: 10px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.plan__ring { padding: 3px; border-radius: 50%; background: conic-gradient(var(--pa), var(--pb), var(--live), var(--pa)); }
.plan__ring .avatar { box-shadow: 0 0 0 3px var(--canvas); }
.feed { display: flex; flex-direction: column; gap: var(--s4); max-width: 680px; }
.activity { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: linear-gradient(135deg, var(--canvas-2), var(--canvas-3)); border: 1px solid var(--line); }
.activity p { font-size: var(--t-sm); color: var(--on-canvas-2); } .activity p b, .activity p a { color: var(--on-canvas); font-weight: 600; }
.activity .ecard { max-width: 360px; }
.clist { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .clist { grid-template-columns: repeat(2, 1fr); } }
.ccard { display: grid; grid-template-columns: 120px 1fr; gap: var(--s3); padding: var(--s3); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); transition: border-color var(--d1); }
.ccard:hover { border-color: var(--line-2); }
.ccard__art .poster { border-radius: var(--r-xs); aspect-ratio: 4 / 3; }
.ccard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ccard__body small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.ccard__last { font-size: var(--t-sm); color: var(--on-canvas-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ccard__last span { color: var(--on-canvas-3); font-size: var(--t-xs); }
.privacy-hint { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--glass); font-size: var(--t-sm); color: var(--on-canvas-2); }
.privacy-hint span:nth-child(2) { flex: 1; } .privacy-hint b { color: var(--on-canvas); }
.sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s3); }
.sug { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s4) var(--s3); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); text-align: center; }
.sug > a { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sug small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.sug__mutual { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--on-canvas-2); min-height: 30px; }

/* profile (§29) */
.profile { padding-bottom: var(--s6); }
.phead { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0 calc(-1 * var(--s4)); padding: 0 var(--s4); }
.phead__cover { height: 120px; margin: 0 calc(-1 * var(--s4)); background: radial-gradient(120% 140% at 20% 0%, hsl(var(--h) 70% 45%), transparent 60%), radial-gradient(100% 120% at 100% 0%, hsl(calc(var(--h) + 60) 70% 35%), transparent 60%), var(--canvas-2); }
@media (min-width: 900px) { .phead { margin: 0; padding: 0; } .phead__cover { margin: 0; border-radius: var(--r-lg); height: 160px; } }
.phead__row { display: flex; align-items: flex-end; gap: var(--s4); margin-top: -48px; }
.phead__avatar { box-shadow: 0 0 0 4px var(--canvas) !important; }
.phead__counts { flex: 1; display: flex; justify-content: space-around; gap: var(--s2); padding-bottom: 4px; }
.phead__counts > * { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.phead__counts b { font-size: var(--t-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.phead__counts small { font-size: var(--t-xs); color: var(--on-canvas-3); }
.phead__name { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.01em; margin-top: var(--s2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phead__handle { color: var(--on-canvas-3); font-size: var(--t-sm); }
.phead__bio { color: var(--on-canvas-2); max-width: 52ch; }
.phead__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s2); align-items: center; }
.walletchip { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5); padding: 14px var(--s4); border-radius: var(--r-md); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-paper); }
.walletchip span { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.walletchip b { font-size: var(--t-lg); }
.yearcard { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-md); background: linear-gradient(135deg, color-mix(in srgb, var(--ambient) 55%, var(--canvas-2)), var(--canvas-2)); border: 1px solid var(--line); }
.yearcard .eyebrow { color: var(--on-canvas-2); }
.yearcard__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s2); }
.yearcard__grid b { display: block; font-family: var(--font-marquee); font-size: 44px; line-height: 1; font-weight: 400; }
.yearcard__grid small { font-size: var(--t-xs); color: var(--on-canvas-2); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.mcard { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; display: block; background: linear-gradient(160deg, var(--pa), var(--pb)); isolation: isolate; }
.mcard img, .mcard .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), transparent 55%); }
.mcard__play { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: #000; display: grid; place-items: center; }
.mcard__meta { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; color: #fff; display: flex; flex-direction: column; }
.mcard__meta b { font-size: 30px; line-height: .9; }
.mcard__meta small, .mcard__meta span { font-size: var(--t-xs); opacity: .85; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.badgecard { display: flex; flex-direction: column; gap: 6px; padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); opacity: .78; }
.badgecard.is-done { opacity: 1; border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--ok) 14%, var(--canvas-2)), var(--canvas-2)); }
.badgecard__glyph { font-size: 30px; filter: grayscale(1); } .badgecard.is-done .badgecard__glyph { filter: none; }
.badgecard small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.badgecard .bar { background: var(--glass-2); }
.settings-list { display: flex; flex-direction: column; margin-top: var(--s5); border-radius: var(--r-md); overflow: hidden; background: var(--canvas-2); border: 1px solid var(--line); }
.settings-list h2 { padding: var(--s4) var(--s4) 0; margin: 0; }
.settings-list > a, .settings-list > button { display: flex; align-items: center; gap: var(--s3); padding: 14px var(--s4); min-height: 56px; border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; }
.settings-list > a span, .settings-list > button span { flex: 1; }
.settings-list > *:last-child { border-bottom: 0; }
.settings-list > a:hover, .settings-list > button:hover { background: var(--glass); }
.settings-list > button { color: var(--live-ink); }
.setcard { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); margin-top: var(--s3); }
.setcard hr { margin: 0; }
.setcard .toggle { color: var(--ink); }
.hue { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 40) 70% 38%)); }
.hue[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--select); }

/* memories story (§29, core loop §63) */
.story { position: relative; min-height: 100dvh; overflow: hidden; color: #fff; background: #000; display: flex; flex-direction: column; isolation: isolate; }
.story__bg { position: absolute; inset: 0; z-index: -1; }
.story__bg img, .story__bg .poster { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; animation: kenburns 9s ease-out both; }
.story__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.15) 30%, rgba(0,0,0,.85)); }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.story__bars { display: flex; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) var(--s4) 0; }
.story__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.story__bars b { display: block; height: 100%; background: #fff; }
.story__top { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s3) 0 var(--s4); z-index: 3; }
.story__top .iconbtn { color: #fff; }
.story__top > span:last-child { display: flex; }
.story__who { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); }
.story__who small { opacity: .75; }
.story__nav { position: absolute; top: 90px; bottom: 120px; width: 35%; z-index: 1; }
.story__nav--prev { left: 0; } .story__nav--next { right: 0; }
.story__nav:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.story__content { position: relative; z-index: 2; margin-top: auto; padding: var(--s5) var(--s5) calc(var(--s7) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--s3); max-width: 640px; animation: rise var(--d3) var(--ease) both; }
.story__content.is-interactive { margin-top: var(--s4); }
.story__content .eyebrow { color: rgba(255,255,255,.8); }
.story__content .story__big { font-size: clamp(52px, 13vw, 96px); line-height: .88; color: #fff; }
.story__content .story__huge { font-size: clamp(110px, 32vw, 220px); line-height: .8; color: #fff; }
.story__content p { font-size: var(--t-lg); color: rgba(255,255,255,.88); }
.story__crew { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.story__crew span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--t-xs); }
.story__collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.story__collage figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: rgba(255,255,255,.08); }
.story__collage img { width: 100%; height: 100%; object-fit: cover; }
.story__collage figcaption { position: absolute; left: 4px; right: 4px; bottom: 3px; font-size: 9px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story__rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.story__add { align-self: flex-start; cursor: pointer; }
.story__fine { font-size: var(--t-xs) !important; opacity: .7; }
.story__quote { margin: 0; font-size: clamp(24px, 6vw, 36px); font-weight: 700; line-height: 1.2; }
.story__note { width: 100%; min-height: 80px; padding: 12px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.35); color: #fff; font: inherit; resize: vertical; }
.story__note:focus { outline: none; border-color: #fff; }
.story__vis { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); align-self: flex-start; }
.story__vis button { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; color: rgba(255,255,255,.8); }
.story__vis button[aria-checked="true"] { background: #fff; color: #000; }
.story__ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.story__next .rail { margin: var(--s2) 0 0; padding: 0; grid-auto-columns: 130px; }
.story__next .ecard__meta { color: rgba(255,255,255,.75); } .story__next .ecard__meta > b, .story__next .ecard__price { color: #fff; }

/* wallet (§27) */
.balance { margin-top: var(--s4); padding: var(--s5); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-paper); }
.balance__n { font-size: clamp(40px, 10vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.wactions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); }
.wactions > * { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: var(--r-md); background: var(--paper-2); color: var(--ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; min-height: 76px; text-align: center; overflow-wrap: anywhere; transition: background var(--d1); }
.wactions > *:hover { background: var(--select-tint); color: var(--select-ink); }
.evwallets { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .evwallets { grid-template-columns: repeat(2, 1fr); } }
.evwallet { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 150px; display: flex; }
.evwallet .poster { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }
.evwallet__body { position: relative; z-index: 2; margin-top: auto; padding: var(--s4); display: flex; flex-direction: column; gap: 2px; color: #fff; width: 100%; }
.evwallet__body .eyebrow { color: rgba(255,255,255,.8); }
.evwallet__n { font-size: var(--t-2xl); font-weight: 800; }
.evwallet__body .btn { align-self: flex-start; margin-top: 6px; }
.txday { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--on-canvas-3); margin: var(--s4) 0 var(--s2); font-weight: 700; }
.txlist { list-style: none; margin: 0; padding: 0; border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid var(--line); }
.txlist li { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4); border-bottom: 1px solid var(--line); }
.txlist li:last-child { border-bottom: 0; }
.txlist__what { flex: 1; min-width: 0; } .txlist__what b { display: block; font-size: var(--t-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txlist__what small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.txicon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); flex: none; }
.txicon--topup, .txicon--refund { background: color-mix(in srgb, var(--ok) 22%, transparent); color: #3DDC97; }
.amt-in { color: #3DDC97; }
:root[data-theme="light"] .amt-in, :root[data-theme="light"] .txicon--topup, :root[data-theme="light"] .txicon--refund { color: var(--ok-ink); }
.pickrow { display: flex; gap: var(--s3); overflow-x: auto; padding: 4px 2px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: var(--r-sm); font-size: var(--t-xs); color: var(--ink); flex: none; min-width: 64px; }
.pick[aria-pressed="true"] { background: var(--select-tint); box-shadow: 0 0 0 2px var(--select) inset; }

/* notifications (§28) */
.nlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nlist li { display: flex; align-items: center; gap: var(--s2); border-radius: var(--r-md); padding-right: var(--s2); }
.nlist li.is-unread { background: var(--canvas-2); }
.nitem { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); padding: 12px; text-align: left; position: relative; border-radius: var(--r-md); }
.nitem:hover { background: var(--glass); }
.nitem__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nitem__text b { font-size: var(--t-sm); font-weight: 600; }
.nitem__text small { color: var(--on-canvas-2); font-size: var(--t-xs); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nitem__when { color: var(--on-canvas-3) !important; }
.nitem__thumb { width: 44px; flex: none; } .nitem__thumb .poster { border-radius: 6px; }
.nicon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--glass-2); }
.nicon--payment, .nicon--refund { background: color-mix(in srgb, var(--ok) 22%, transparent); color: #3DDC97; }
.nicon--gate, .nicon--schedule { background: color-mix(in srgb, var(--warn) 22%, transparent); color: #FFC766; }
.nicon--organiser { background: color-mix(in srgb, var(--live) 22%, transparent); color: var(--live-ink); }
.udot { position: absolute; top: 50%; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--live); transform: translateY(-50%); }

/* tickets */
.qrprev { width: 58px; height: 58px; border-radius: 6px; background: #fff; padding: 3px; image-rendering: pixelated; }
.qrprev.is-off { filter: blur(3px); opacity: .5; }
.stub__eyebrow { padding: var(--s4) var(--s4) 0; font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.stub__eyebrow + .stub__head { padding-top: var(--s2); }

/* checkout steps (§17) */
.stepper-labels { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stepper-labels li { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; color: var(--on-canvas-3); padding-top: 8px; border-top: 3px solid var(--line-2); }
.stepper-labels li span { display: none; }
.stepper-labels li.is-done, .stepper-labels li.is-on { color: var(--on-canvas); border-color: var(--on-canvas); }
.stepper-labels li[aria-current="step"] { border-color: var(--select); }

/* light theme tweaks for new surfaces */
:root[data-theme="light"] .ecard__save:not([aria-pressed="true"]) { background: rgba(0,0,0,.45); }
:root[data-theme="light"] .label-live { color: var(--ok-ink); background: var(--ok-tint); }
:root[data-theme="light"] .label-est { color: var(--warn-ink); background: var(--warn-tint); }
:root[data-theme="light"] .nicon--gate, :root[data-theme="light"] .nicon--schedule { color: var(--warn-ink); }
:root[data-theme="light"] .nicon--payment, :root[data-theme="light"] .nicon--refund { color: var(--ok-ink); }
.bar { height: 6px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--live); border-radius: 3px; }
.story__note::placeholder { color: rgba(255,255,255,.65); }

.evwallet .poster__mark { display: none; }
.brand__word b { margin-left: 5px; }

/* filled rounded icons: profile settings button + settings tiles */
.phead__corner { position: absolute; top: var(--s3); right: var(--s3); z-index: 3; }
@media (min-width: 900px) { .phead__corner { right: var(--s3); } }
.roundbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform var(--d1) var(--ease), background var(--d1); }
.roundbtn:hover { background: rgba(0,0,0,.6); transform: rotate(30deg); }
.itile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(160deg, hsl(var(--h) 78% 58%), hsl(var(--h) 72% 44%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.settings-page .settings-list + .settings-list { margin-top: var(--s4); }
.settings-list > a > .itile, .settings-list > button > .itile { flex: 0 0 32px; }

/* ═══════════════════════════════════════════════════════════════════
   Round 3 — Netflix page language, polish pass
   ═══════════════════════════════════════════════════════════════════ */

/* chrome: transparent header over art, solid black on scroll */
.topbar { background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0)); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background var(--d2) var(--ease); }
.topbar.is-solid { background: rgba(0,0,0,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
:root[data-theme="light"] .topbar { background: linear-gradient(to bottom, rgba(243,243,243,.9), rgba(243,243,243,0)); }
:root[data-theme="light"] .topbar.is-solid { background: rgba(243,243,243,.95); }
.topbar__nav a { border-radius: var(--r-xs); font-weight: 600; }
.topbar__nav a[aria-current="page"] { background: transparent; color: var(--on-canvas); font-weight: 800; }
.tabbar { background: rgba(0,0,0,.94); border-top: 1px solid rgba(255,255,255,.06); }
:root[data-theme="light"] .tabbar { background: rgba(255,255,255,.96); }
.tabbar a { font-size: 10px; gap: 4px; }
.tabbar a[aria-current="page"] { font-weight: 700; }
.tab-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; box-shadow: 0 0 0 2px transparent; }
.tab-avatar.is-on { box-shadow: 0 0 0 2px var(--on-canvas); }
.avatar--sq { border-radius: 22% !important; }
.ambient { background: radial-gradient(110% 55% at 50% -12%, color-mix(in srgb, var(--ambient) 55%, transparent), transparent 65%), var(--canvas); }

/* type + page heads */
.pagehead { display: flex; flex-direction: column; gap: 2px; padding-top: var(--s4); }
.pagehead h1 { font-size: clamp(24px, 6vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.pagehead--home .kicker { margin: 0; }
.setform { display: flex; flex-direction: column; gap: var(--s3); margin: var(--s4) 0; }
.selectable { user-select: all; }
.pagehead--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.row__head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.row__head a { color: var(--on-canvas); font-weight: 600; }
.muted, .paper-muted, .paper .muted { color: var(--on-canvas-2); }
.eyebrow { color: var(--on-canvas-2); }

/* buttons: Netflix rectangles */
.btn { border-radius: var(--r-xs); font-weight: 700; }
.btn--pill { border-radius: var(--r-xs); }
.btn--sm { border-radius: var(--r-xs); }
.btn--play { background: #fff; color: #000; }
.btn--play:hover { background: rgba(255,255,255,.75); }
:root[data-theme="light"] .btn--play { background: #141414; color: #fff; }
.btn--grey, .btn--glass { background: rgba(109,109,110,.7); color: #fff; }
.btn--grey:hover, .btn--glass:hover { background: rgba(109,109,110,.45); }
:root[data-theme="light"] .btn--grey, :root[data-theme="light"] .btn--glass { background: rgba(0,0,0,.08); color: #141414; }
.btn--outline { border-color: var(--line-2); color: var(--on-canvas); }
.btn--outline:hover { background: var(--glass); }
.btn--ghost { color: var(--on-canvas); }
.btn[disabled], .btn[aria-disabled="true"] { background: rgba(255,255,255,.12); color: rgba(255,255,255,.45); }
:root[data-theme="light"] .btn[disabled], :root[data-theme="light"] .btn[aria-disabled="true"] { background: rgba(0,0,0,.06); color: rgba(0,0,0,.4); }
.iconbtn--scrim { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.link-plain { color: var(--on-canvas); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; min-height: 24px; }
.box { display: inline-flex; align-items: center; padding: 0 5px; height: 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--on-canvas-2); vertical-align: 1px; }
:root[data-theme="light"] .box { border-color: rgba(0,0,0,.3); }

/* chips: Netflix outlined pills, selected = light grey fill */
.chip { border-color: rgba(255,255,255,.35); font-weight: 600; }
.chip[aria-pressed="true"] { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.22); }
:root[data-theme="light"] .chip[aria-pressed="true"] { background: #141414; color: #fff; border-color: #141414; }
.chip small { opacity: .7; font-weight: 500; }
.pills { margin-top: var(--s3); }

/* posters + images: fade in over generated art, hover lift like Netflix web */
.poster img { opacity: 0; transition: opacity 420ms var(--ease); }
.poster img.is-in { opacity: 1; }
.poster { border-radius: var(--r-xs); }
.poster__mark { font-size: 18px; top: 6px; left: 7px; }
@media (hover: hover) and (min-width: 900px) {
  .ecard__link:hover { transform: scale(1.04); }
  .ecard__link:hover .ecard__art { box-shadow: 0 16px 40px rgba(0,0,0,.7); }
}
.ecard__link { transition: transform 260ms var(--ease); transform-origin: center bottom; }
.ecard__art { border-radius: var(--r-xs); box-shadow: none; }
.ecard__save { width: 32px; height: 32px; top: 5px; right: 5px; background: rgba(0,0,0,.55); }
.ecard__flag { border-radius: 0 0 var(--r-xs) 0; font-size: 10px; }
.ecard__meta > b { font-weight: 700; }
.ecard--bare .ecard__link { gap: 0; }
.grid-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .grid-cards--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-cards--3 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.grid-cards--3 .poster__title span { font-size: 18px; }
.grid-cards--3 .poster__title small { font-size: 9px; }
.rail { gap: 8px; }
.rail .ecard--bare { width: 100%; }
.billboard { border-radius: var(--r-lg); border-color: rgba(255,255,255,.12); }

/* title page (event) */
.tp-hero { position: relative; }
.tp-hero .poster { aspect-ratio: 16 / 9; border-radius: 0; }
.tp-hero .poster::after { background: linear-gradient(to top, #000 0%, rgba(0,0,0,.2) 40%, transparent 70%); }
:root[data-theme="light"] .tp-hero .poster::after { background: linear-gradient(to top, rgba(0,0,0,.6), transparent 60%); }
.tp-hero__top { position: absolute; top: calc(var(--topbar-h) + 6px); left: var(--s3); right: var(--s3); display: flex; justify-content: space-between; z-index: 3; }
.tp-hero__over { padding: var(--s3) var(--s4) 0; }
.tp { margin-top: calc(-1 * var(--topbar-h)); }
.tp-head { display: flex; flex-direction: column; gap: 10px; }
.tp-series { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--on-canvas-2); display: flex; align-items: center; gap: 6px; }
.tp-series b { color: var(--live); font-family: var(--font-marquee); font-size: 20px; letter-spacing: 0; line-height: 1; }
.tp-title { font-family: var(--font-marquee); font-weight: 400; font-size: clamp(44px, 11vw, 88px); line-height: .88; letter-spacing: .01em; }
.tp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t-sm); color: var(--on-canvas-2); }
.tp-match { color: var(--ok); font-weight: 700; }
.tp-proof { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--on-canvas-2); }
.tp-proof b { color: var(--on-canvas); }
.tp-buttons { display: grid; gap: 8px; margin-top: 4px; }
.tp-buttons .btn { width: 100%; }
.tp-body { padding-top: var(--s4); }
.tp-about { display: grid; gap: var(--s3); }
.tp-desc { font-size: var(--t-md); line-height: 1.5; }
.tp-credit { font-size: var(--t-sm); color: var(--on-canvas-2); line-height: 1.5; }
.tp-credit > span:first-child { color: var(--on-canvas-3); }
.tp-credit a { color: var(--on-canvas); }
.tp-credit a:hover { text-decoration: underline; }
.tp-actions { display: flex; gap: var(--s5); margin: var(--s5) 0 0; padding: 0 var(--s2); }
.tp-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; min-height: 56px; font-size: 11px; color: var(--on-canvas-2); }
.tp-actions button:hover, .tp-actions button[aria-pressed="true"] { color: var(--on-canvas); }
.tp-tabs { position: sticky; top: var(--topbar-h); z-index: 20; display: flex; gap: var(--s5); overflow-x: auto; scrollbar-width: none; margin: var(--s5) calc(-1 * var(--s4)) 0; padding: 0 var(--s4); background: var(--canvas); border-top: 1px solid var(--line); }
.tp-tabs::-webkit-scrollbar { display: none; }
.tp-tabs button { position: relative; flex: none; min-height: 52px; padding-top: 6px; font-size: var(--t-md); font-weight: 700; color: var(--on-canvas-3); }
.tp-tabs button::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 4px; background: transparent; }
.tp-tabs button[aria-selected="true"] { color: var(--on-canvas); }
.tp-tabs button[aria-selected="true"]::before { background: var(--live); }
.tp-tabs small { font-weight: 500; color: var(--on-canvas-3); }
.tp-toolbar { display: flex; justify-content: space-between; align-items: center; }
.season { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-xs); background: #2b2b2b; color: #fff; font-weight: 600; font-size: var(--t-sm); }
.season--static { background: transparent; padding: 0; color: var(--on-canvas-2); }
:root[data-theme="light"] .season:not(.season--static) { background: #e6e6e6; color: #141414; }
.season-list { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.season-list button { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px; text-align: left; font-size: var(--t-lg); color: var(--ink-2); }
.season-list button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.season-list small { display: block; font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); }
.season-list__sp { width: 18px; }
.eps { display: flex; flex-direction: column; }
.ep { padding: var(--s3) 0 var(--s4); border-bottom: 1px solid var(--line); }
.ep--out { opacity: .55; }
.ep__row { display: grid; grid-template-columns: 128px 1fr auto; gap: var(--s3); align-items: center; }
.ep__thumb { position: relative; border-radius: var(--r-xs); overflow: hidden; }
.ep__thumb .poster { aspect-ratio: 16 / 9; border-radius: 0; }
.ep__thumb .poster__mark { display: none; }
.ep__n { position: absolute; left: 8px; bottom: 2px; z-index: 2; font-size: 34px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.ep__badge { position: absolute; top: 0; right: 0; z-index: 2; padding: 2px 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ep__badge--live { background: var(--live); }
.ep__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ep__info b { font-size: var(--t-md); }
.ep__price { font-size: var(--t-sm); color: var(--on-canvas); font-weight: 600; }
.ep__price small { color: var(--on-canvas-3); font-weight: 400; }
.ep__avail { font-size: var(--t-xs); color: var(--on-canvas-3); }
.ep__avail.is-low { color: var(--live-ink); font-weight: 600; }
.ep__desc { margin-top: var(--s2); font-size: var(--t-sm); color: var(--on-canvas-2); line-height: 1.45; }
.ep--on .ep__thumb { box-shadow: 0 0 0 2px #fff; }
.ep .stepper { background: transparent; border-color: rgba(255,255,255,.3); }
.ep .stepper button { color: var(--on-canvas); }
@media (max-width: 420px) { .ep__row { grid-template-columns: 104px 1fr; } .ep .stepper { grid-column: 1 / -1; justify-self: end; margin-top: 4px; } }
.tp-checkout { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: var(--s4) 0; }
.tp-checkout b { display: block; font-size: var(--t-xl); }
.tp-checkout small { color: var(--on-canvas-2); font-size: var(--t-xs); }
.buybar { background: rgba(0,0,0,.94); color: #fff; border-top: 1px solid rgba(255,255,255,.08); box-shadow: none; backdrop-filter: blur(12px); }
.buybar__sum { color: var(--on-canvas-2); } .buybar__sum b { color: #fff; }
:root[data-theme="light"] .buybar { background: rgba(255,255,255,.96); color: #141414; } :root[data-theme="light"] .buybar__sum b { color: #141414; }
@media (min-width: 900px) {
  .tp-hero .poster { aspect-ratio: auto; height: min(78vh, 720px); }
  .tp-hero .poster::after { background: linear-gradient(to right, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, transparent 70%), linear-gradient(to top, #000 0%, transparent 35%); }
  .tp-hero__over { position: absolute; left: var(--s7); bottom: var(--s7); width: min(520px, 45vw); padding: 0; z-index: 2; }
  .tp-hero__top { left: var(--s6); right: var(--s6); }
  .tp-buttons { grid-template-columns: auto auto; justify-content: start; }
  .tp-buttons .btn { width: auto; padding: 0 28px; }
  .tp-body { max-width: 1240px; padding: var(--s6) var(--s7) 0; }
  .tp-about { grid-template-columns: 1.6fr 1fr; gap: var(--s6); }
  .tp-tabs { margin: var(--s6) 0 0; padding: 0; }
  .tp .buybar { display: none; }
}
.tp-hero__over .tp-proof b, .tp-hero__over .tp-title { color: #fff; }

/* profile: My KEEMCO */
.phead { align-items: center; text-align: center; margin: var(--s4) 0 0; padding: var(--s5) var(--s4) var(--s2); position: relative; isolation: isolate; }
.phead__glow { position: absolute; inset: 0 0 auto; height: 160px; z-index: -1; background: radial-gradient(60% 100% at 50% 0%, hsl(var(--h) 70% 40% / .45), transparent 70%); }
.phead__corner { top: 0; right: 0; }
.phead__avatar { box-shadow: 0 10px 30px rgba(0,0,0,.5) !important; font-size: 34px !important; }
.phead__name { justify-content: center; font-size: var(--t-2xl); margin-top: var(--s3); }
.phead__handle { color: var(--on-canvas-3); }
.phead__bio { margin: 4px auto 0; text-align: center; }
.phead__counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: var(--s2); font-size: var(--t-sm); color: var(--on-canvas-2); }
.phead__counts b { color: var(--on-canvas); font-weight: 800; }
.phead__counts i { color: var(--on-canvas-3); font-style: normal; }
.phead__actions { justify-content: center; }
.npanel { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid rgba(255,255,255,.06); transition: background var(--d1); }
.npanel:hover { background: var(--canvas-3); }
.npanel__head { display: flex; align-items: center; gap: var(--s3); font-size: var(--t-lg); }
.npanel__head b { flex: 1; }
.npanel__ic { position: relative; width: 32px; height: 32px; display: grid; place-items: center; }
.udot-inline { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.npanel__item { display: grid; grid-template-columns: 112px 1fr; gap: var(--s3); align-items: center; }
.npanel__item b { display: block; font-size: var(--t-sm); }
.npanel__item small { display: block; font-size: var(--t-xs); color: var(--on-canvas-3); }
.npanel__thumb { border-radius: var(--r-xs); overflow: hidden; }
.npanel__thumb .poster { aspect-ratio: 16 / 9; border-radius: 0; }
.npanel__thumb .poster__mark { display: none; }
.npanel__thumb--ic { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--canvas-3); }
.npanel__wallet { display: flex; gap: var(--s3); align-items: stretch; }
.npanel__wallet > span:first-child { display: flex; flex-direction: column; justify-content: center; min-width: 120px; }
.npanel__wallet small { font-size: var(--t-xs); color: var(--on-canvas-3); }
.npanel__wallet b { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.02em; }
.npanel__ew { position: relative; flex: 1; border-radius: var(--r-xs); overflow: hidden; min-height: 76px; }
.npanel__ew .poster { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }
.npanel__ew .poster__mark { display: none; }
.npanel__ew > span { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 8px 10px; }
.npanel__ew b { font-size: var(--t-lg); }
.yearcard { border-radius: var(--r-md); background: var(--canvas-2); border-color: rgba(255,255,255,.06); }
.emptypanel { padding: var(--s5); border-radius: var(--r-md); background: var(--canvas-2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s3); color: var(--on-canvas-2); font-size: var(--t-sm); }
.moment { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--canvas-2); }
.moment__art { position: relative; aspect-ratio: 16 / 9; display: block; }
.moment__art img, .moment__art .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.moment__play { position: absolute; left: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); display: grid; place-items: center; color: #fff; }
.moment__len { position: absolute; right: 8px; bottom: 10px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 3px; }
.moment__meta { padding: 10px 12px; text-align: center; }
.moment__meta b { display: block; font-size: var(--t-sm); } .moment__meta small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.rail--badges { grid-auto-columns: 112px; }
.badgemini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: var(--s3) 6px; border-radius: var(--r-md); background: var(--canvas-2); opacity: .55; }
.badgemini.is-done { opacity: 1; }
.badgemini span { font-size: 28px; filter: grayscale(1); } .badgemini.is-done span { filter: none; }
.badgemini b { font-size: var(--t-xs); } .badgemini small { font-size: 10px; color: var(--on-canvas-3); }
.badgecard, .walletchip, .settings-list, .gatecard, .post, .composer, .ccard, .sug, .txlist, .panel-dark { border-radius: var(--r-md); background: var(--canvas-2); border-color: rgba(255,255,255,.06); }

/* discover: Netflix search */
.searchbar { border-radius: var(--r-xs); background: #333; border-color: transparent; min-height: 48px; }
:root[data-theme="light"] .searchbar { background: #e6e6e6; }
.searchbar:focus-within { box-shadow: 0 0 0 2px rgba(255,255,255,.5); border-color: transparent; }
.reclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rec { display: grid; grid-template-columns: 146px 1fr auto; gap: var(--s3); align-items: center; padding-right: var(--s2); background: var(--canvas-2); border-radius: var(--r-xs); overflow: hidden; transition: background var(--d1); }
.rec:hover { background: var(--canvas-3); }
.rec__thumb .poster { aspect-ratio: 16 / 9; border-radius: 0; }
.rec__thumb .poster__mark { display: none; }
.rec__text b { display: block; font-size: var(--t-md); }
.rec__text small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.rec__play { color: var(--on-canvas); }

/* social: New & Hot */
.nh { border-radius: var(--r-md); overflow: hidden; background: var(--canvas-2); border: 1px solid rgba(255,255,255,.06); }
.nh__media { position: relative; display: block; }
.nh__media .poster { aspect-ratio: 16 / 9; border-radius: 0; }
.nh__age { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; }
.nh__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.nh__title { font-size: 40px; line-height: .9; }
.nh__line { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--on-canvas-2); }
.nh__line b { color: var(--on-canvas); }
.nh__desc { font-size: var(--t-sm); color: var(--on-canvas-2); }
.nh__btns { display: flex; gap: 8px; margin-top: 4px; }

/* tickets: Downloads-style list */
.dl { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dl__row { display: grid; grid-template-columns: 136px 1fr auto; gap: var(--s3); align-items: center; padding: 8px; border-radius: var(--r-md); background: var(--canvas-2); transition: background var(--d1); }
.dl__row:hover { background: var(--canvas-3); }
.dl__thumb { position: relative; border-radius: var(--r-xs); overflow: hidden; }
.dl__thumb .poster { aspect-ratio: 16 / 9; border-radius: 0; }
.dl__thumb .poster__mark { display: none; }
.dl__live { position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--live); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; }
.dl__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.dl__text b { font-size: var(--t-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dl__text small { color: var(--on-canvas-3); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dl__text .status { margin-top: 4px; }
@media (max-width: 420px) { .dl__row { grid-template-columns: 112px 1fr; } .dl__row .qrprev { display: none; } }

/* notifications: thumbnail first */
.nitem { gap: var(--s3); }
.nitem__thumb { position: relative; width: 112px; flex: none; border-radius: var(--r-xs); overflow: hidden; }
.nitem__thumb .poster { aspect-ratio: 16 / 9; border-radius: 0; }
.nitem__thumb .poster__mark { display: none; }
.nitem__thumb--ic { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--canvas-3); }
.nitem__actor { position: absolute; right: 4px; bottom: 4px; z-index: 2; box-shadow: 0 0 0 2px #000 !important; }
.nlist li.is-unread { background: transparent; }
.nlist li.is-unread .nitem__text b { color: var(--on-canvas); }
.nlist li:not(.is-unread) .nitem__text b { color: var(--on-canvas-2); font-weight: 500; }

/* sheets, toasts, misc */
.sheet { background: #1f1f1f; border-radius: var(--r-xl) var(--r-xl) 0 0; }
@media (min-width: 700px) { .sheet { border-radius: var(--r-lg); } }
:root[data-theme="light"] .sheet { background: #fff; }
.toast { border-radius: var(--r-xs); background: #fff; color: #000; }
.toast--ok { background: #fff; color: #000; box-shadow: inset 4px 0 0 var(--ok), var(--shadow-pop); }
.toast--bad { background: #fff; color: #000; box-shadow: inset 4px 0 0 var(--live), var(--shadow-pop); }
.stub { border-radius: var(--r-lg); }
.balance { border-radius: var(--r-md); background: var(--canvas-2); }
.wactions > * { background: #2b2b2b; color: #fff; border-radius: var(--r-md); }
.wactions > *:hover { background: #3a3a3a; color: #fff; }
:root[data-theme="light"] .wactions > * { background: #eee; color: #141414; }
.timer { background: rgba(255,255,255,.12); color: #fff; border-radius: var(--r-xs); }
.timer--low { background: var(--live); color: #fff; }
.label-org { border-radius: 2px; }
.etabs button[aria-selected="true"] { border-color: var(--live); }
.status--ok { background: var(--ok-tint); color: var(--ok); }
.cal__day--avail { background: rgba(255,255,255,.1); color: #fff; }
.phead .phead__counts > * { display: inline; min-width: 0; }
.pagehead--row { flex-direction: row; align-items: center; justify-content: space-between; }
.roundbtn { background: rgba(255,255,255,.08); backdrop-filter: none; box-shadow: none; }
.roundbtn:hover { background: rgba(255,255,255,.16); }
:root[data-theme="light"] .roundbtn { background: rgba(0,0,0,.06); color: #141414; }

/* ── Section rhythm ─────────────────────────────────────────────────
   One gap between sections everywhere; headings sit closer to their own content
   than to the section above, so each block reads as a group. */
:root { --section: 44px; --section-sm: 28px; --head-gap: 14px; }
@media (min-width: 900px) { :root { --section: 60px; --section-sm: 36px; --head-gap: 18px; } }

.pagehead { padding-top: var(--s5); margin-bottom: var(--s2); }
.billboard { margin-top: var(--s5); }
.row { margin-top: var(--section); }
.row__head { margin-bottom: var(--head-gap); }
.rail { padding-bottom: 8px; }
.chips + .row, .pills + .row { margin-top: var(--section-sm); }

/* event title page */
.tp-head { gap: 14px; }
.tp-buttons { margin-top: var(--s2); gap: 10px; }
.tp-body { padding-top: var(--s6); }
.tp-about { gap: var(--s4); }
.tp-about__main, .tp-about__side { display: flex; flex-direction: column; gap: 6px; }
.tp-desc { margin-bottom: var(--s2); }
.tp-actions { margin-top: var(--section-sm); }
.tp-tabs { margin-top: var(--section-sm); }
.tabbody { gap: var(--s5); padding-top: var(--s5); }
.eps .ep { padding: var(--s4) 0 var(--s5); }
.tp-checkout { padding: var(--s5) 0 var(--s4); }
.gates { gap: var(--s4); }
.h2 { margin: var(--s4) 0 0; }

/* profile */
.phead { margin-top: var(--s3); padding-bottom: var(--s4); gap: 8px; }
.phead__actions { margin-top: var(--s3); }
.npanel { margin-top: var(--s5); gap: var(--s4); padding: var(--s5) var(--s4); }
.npanel + .npanel { margin-top: var(--s4); }
.yearcard { margin-top: var(--section-sm); padding: var(--s5) var(--s4); }
.yearcard__grid { margin-top: var(--s3); }
.settings-list { margin-top: var(--section-sm); }
.settings-page .settings-list + .settings-list { margin-top: var(--s5); }

/* social, tickets, notifications, discover */
.social__body { margin-top: var(--section-sm); gap: var(--s5); }
.feed { gap: var(--s5); }
.plans { margin-bottom: var(--s2); }
.clist { gap: var(--s4); }
.sugs { gap: var(--s4); }
.dl { margin-top: var(--section-sm); gap: 10px; }
.txday { margin: var(--section-sm) 0 var(--head-gap); }
.txday:first-of-type { margin-top: var(--s5); }
.nlist { gap: 8px; }
.searchbar { margin-top: var(--s4); }
.chips { margin-top: var(--s4); }
.reclist { gap: 8px; }

/* wallet + settings */
.balance { margin-top: var(--s5); }
.wallet-page .row, .settings-page .setcard { margin-top: var(--section-sm); }
.setcard { gap: var(--s5); }
.mini-flow { gap: var(--s5); }
.cred-page { gap: var(--s6); }
.cred-page .actions + .panel-dark, .cred-page .panel-dark + .panel-dark { margin-top: var(--s2); }

/* ── Material Symbols Rounded (filled) ─────────────────────────────── */
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal;
  text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased;
  display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; user-select: none;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}
.ms--outline { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
/* Material 3 navigation bar: active icon filled inside a pill indicator */
.navpill { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 15px; transition: background var(--d2) var(--ease); }
.navpill.is-on { background: rgba(255,255,255,.16); }
:root[data-theme="light"] .navpill.is-on { background: rgba(0,0,0,.08); }
.tabbar { height: 76px; padding-top: 10px; }
:root { --tabbar-h: 76px; }

/* ── Ticket stub: hierarchy = status, event, live code, gate, details ─ */
.stub { display: flex; flex-direction: column; gap: var(--s5); padding: var(--s5); background: var(--canvas-2); border: 1px solid rgba(255,255,255,.06); }
.stub__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.stub__eyebrow { padding: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-canvas-3); }
.stub__event { display: flex; align-items: center; gap: var(--s3); }
.stub__event .poster { width: 56px; flex: none; border-radius: var(--r-xs); }
.stub__event h1 { font-size: var(--t-xl); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.stub__event p { font-size: var(--t-sm); color: var(--on-canvas-2); margin-top: 2px; }
.stub__code { margin: 0; padding: var(--s5) var(--s4) var(--s4); background: var(--canvas-3); border-radius: var(--r-md); gap: var(--s3); }
.stub__plate { background: #fff; padding: 14px; border-radius: var(--r-md); line-height: 0; }
.stub__plate canvas { display: block; width: min(220px, 60vw); max-width: none; height: auto; aspect-ratio: 1; border-radius: 0; image-rendering: pixelated; }
.stub__code--off .stub__plate { filter: blur(6px); opacity: .45; }
.stub__live { display: flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--on-canvas-2); font-variant-numeric: tabular-nums; margin-top: var(--s1); }
.stub__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s ease-in-out infinite; }
.stub__live b { color: var(--on-canvas); font-weight: 700; }
.stub__sep { color: var(--on-canvas-3); }
.stub__note { font-size: var(--t-xs); color: var(--on-canvas-3); }
.stub__veil span { background: var(--canvas-2); color: var(--on-canvas); }
.stub__gate { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label label" "name hint"; align-items: end; gap: 2px var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-3); border-left: 4px solid var(--live); }
.stub__gate-label { grid-area: label; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-canvas-3); }
.stub__gate-name { grid-area: name; font-size: 44px; line-height: .9; color: var(--on-canvas); }
.stub__gate-hint { grid-area: hint; display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-sm); color: var(--on-canvas-2); text-align: right; padding-bottom: 4px; }
.stub__perf { margin: 0 calc(-1 * var(--s5)); border-top: 2px dashed rgba(255,255,255,.14); }
.stub__grid { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
.stub__grid div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stub__grid dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-canvas-3); }
.stub__grid dd { margin: 0; font-size: var(--t-md); font-weight: 600; color: var(--on-canvas); overflow-wrap: anywhere; }
.stub__grid .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--t-sm); letter-spacing: .02em; }
.stub__pager { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--on-canvas-2); }
.stub__pager b { color: var(--on-canvas); }
.stub__pager .roundbtn[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.stub::before, .stub::after { width: 24px; height: 24px; background: var(--canvas); box-shadow: none; }
.stub::before { left: -13px; } .stub::after { right: -13px; }
:root[data-theme="light"] .stub__plate { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }


.btn--danger-solid { background: var(--live); color: #fff; }
.btn--danger-solid:hover { background: #c40812; }

/* ── At the event (live mode) ───────────────────────────────────────── */
.btn--live { background: var(--live); color: #fff; }
.btn--live:hover { background: #c40812; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 8px; border-radius: 3px; background: var(--live); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; }
.livebar { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: var(--s3); margin-top: var(--s4); padding: 10px; border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid color-mix(in srgb, var(--live) 55%, transparent); }
.livebar:hover { background: var(--canvas-3); }
.livebar__art { border-radius: var(--r-xs); overflow: hidden; } .livebar__art .poster { aspect-ratio: 16 / 9; border-radius: 0; } .livebar__art .poster__mark { display: none; }
.livebar__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.livebar__text b { font-size: var(--t-md); } .livebar__text small { color: var(--on-canvas-2); font-size: var(--t-xs); }
.live { margin-top: calc(-1 * var(--topbar-h)); }
.live-hero { position: relative; }
.live-hero .poster { aspect-ratio: 4 / 3.4; border-radius: 0; }
.live-hero .poster::after { background: linear-gradient(to top, #000 4%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.5)); }
.live-hero .poster__mark { display: none; }
.live-hero__over { position: absolute; left: 0; right: 0; bottom: var(--s4); display: flex; flex-direction: column; gap: 8px; }
.live-title { font-size: clamp(44px, 12vw, 84px); line-height: .88; color: #fff; }
.live-sub { color: rgba(255,255,255,.85); font-size: var(--t-sm); }
.live-progress { height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.live-progress i { display: block; height: 100%; background: var(--live); }
.live-time { display: flex; justify-content: space-between; font-size: var(--t-xs); color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .live-hero .poster { aspect-ratio: auto; height: min(56vh, 520px); } .live-hero__over { bottom: var(--s6); } }
.live-body { display: flex; flex-direction: column; padding-top: var(--s5); }
.live-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.live-actions > * { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: var(--r-md); background: var(--canvas-2); font-size: var(--t-xs); font-weight: 700; color: var(--on-canvas); min-height: 76px; transition: background var(--d1); }
.live-actions > *:hover { background: var(--canvas-3); }
.live-now { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s5); }
.live-slot { display: flex; flex-direction: column; gap: 2px; padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-2); min-width: 0; }
.live-slot.is-now { box-shadow: inset 3px 0 0 var(--live); }
.live-slot b { font-size: var(--t-md); } .live-slot small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.live-friends { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5); padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-2); }
.live-friends > span:nth-child(2) { flex: 1; font-size: var(--t-sm); color: var(--on-canvas-2); } .live-friends b { color: var(--on-canvas); }
.live-friends small { display: block; color: var(--on-canvas-3); font-size: var(--t-xs); }
.live-mem { display: grid; grid-auto-flow: column; grid-auto-columns: 108px; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.live-mem__add { aspect-ratio: 3 / 4; border-radius: var(--r-md); border: 2px dashed rgba(255,255,255,.25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--on-canvas-2); font-size: var(--t-xs); font-weight: 700; }
.live-mem__add:hover { border-color: var(--on-canvas-2); color: var(--on-canvas); }
.live-mem__ph { aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; } .live-mem__ph img { width: 100%; height: 100%; object-fit: cover; }
.live-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.live-act { display: grid; grid-template-columns: 52px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.live-act__time { font-family: var(--font-marquee); font-size: 22px; line-height: 1; } .live-act.is-done { opacity: .5; }
.live-act__body b { display: block; font-size: var(--t-md); } .live-act__body small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.live-vendors { display: grid; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 760px) { .live-vendors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vendor { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--canvas-2); border: 1px solid rgba(255,255,255,.06); }
.vendor header { display: flex; gap: var(--s3); align-items: center; } .vendor header b { display: block; } .vendor header small { color: var(--on-canvas-3); font-size: var(--t-xs); }
.vendor__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.vendor__ic--food { background: linear-gradient(160deg, #ff8a3d, #e5530f); } .vendor__ic--drinks { background: linear-gradient(160deg, #3d9bff, #1f55f2); } .vendor__ic--merch { background: linear-gradient(160deg, #c858ff, #8a1df0); }
.vendor ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); }
.vendor li { display: flex; justify-content: space-between; gap: var(--s3); color: var(--on-canvas-2); } .vendor li b { color: var(--on-canvas); }
.vendor__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--t-xs); color: var(--on-canvas-3); }
.vendor__wait { margin-left: auto; }
.vendor__btns { display: flex; gap: 8px; }
.cap-preview { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--r-md); margin: var(--s3) 0; }
.actions__live { color: var(--live-ink); } .actions__live .actions__body { color: var(--on-canvas); }
/* memories back to cover cards, with Add photos */
.mcard-wrap { display: flex; flex-direction: column; gap: 8px; }
.moment { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--canvas-2); }
.moment__meta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.moment__add { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 10px; border-radius: var(--r-xs); background: rgba(109,109,110,.5); font-size: var(--t-xs); font-weight: 700; color: var(--on-canvas); }
/* badges: glossy illustrations; locked ones are the same art, desaturated */
.badgecard__art { width: 88px; height: 88px; align-self: center; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.badgecard:not(.is-done) .badgecard__art, .badgemini:not(.is-done) img { filter: grayscale(1) brightness(.75); opacity: .55; }
.badgecard { align-items: center; text-align: center; }
.badgecard .bar { width: 100%; }
.badgemini img { width: 72px; height: 72px; }
.badgemini { opacity: 1; }
.rail--badges { grid-auto-columns: 120px; }

/* ═════════════════════════════════════════════════════════════════════
   Final design QA — one system for buttons, avatars, cards and type.
   This layer is the source of truth; earlier rounds are overridden here.
   ═════════════════════════════════════════════════════════════════════ */

/* Buttons: four roles, three sizes, one shape.
   primary  .btn--play   white (black in light theme): one per view
   secondary .btn--grey  translucent grey
   tertiary .btn--ghost  text only
   danger   .btn--danger-solid / .btn--live   red
   sizes: .btn--sm 40 · default 44 · .btn--lg 52 */
.btn { min-height: 44px; padding: 0 20px; gap: 8px; border-radius: var(--r-xs); font-size: var(--t-md); font-weight: 700; line-height: 1; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--t-sm); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: var(--t-lg); }
.btn--ghost { background: transparent; color: var(--on-canvas); padding: 0 14px; }
.btn--ghost:hover { background: var(--glass); }
.btn .ms { flex: none; }
.btn:focus-visible, .iconbtn:focus-visible, .chip:focus-visible, .ecard__link:focus-visible, .ecard__save:focus-visible { outline: 2px solid var(--on-canvas); outline-offset: 2px; }
/* Button pairs in sheets and footers share one height and split the row predictably. */
.btn + .btn--block, .btn--ghost + .btn { flex: 1; }

/* Icon buttons: 44px hit area everywhere; the 36px visual variant keeps the 44 target. */
.iconbtn { width: 44px; height: 44px; border-radius: 50%; }
.iconbtn--sm { position: relative; }
.iconbtn--sm::before, .ecard__save::before { content: ""; position: absolute; inset: -4px; }

/* Avatars: circles for people (you included), rounded squares only for organisers (brands). */
.avatar, .avatar--sq { border-radius: 50% !important; line-height: 1; }
.avatar--org { border-radius: 24% !important; }
.tab-avatar { border-radius: 50%; width: 28px; height: 28px; }
.avatar-stack > .avatar + .avatar { margin-left: -6px; }
.avatar-stack > .avatar { box-shadow: 0 0 0 2px var(--canvas); }

/* Small labels: nothing under 11px. */
.badge, .ecard__flag, .ep__badge, .dl__live, .label-org, .label-q, .label-live, .label-est, .box { font-size: 11px; }
.badge--top { font-size: 11px; }
.ecard__flag { padding: 4px 8px; letter-spacing: .03em; }

/* Page header */
.pagehead__sub { color: var(--on-canvas-2); font-size: var(--t-sm); margin-top: 2px; }

/* Row headers: title left, one “See all” link right, same size on every row. */
.row__head { align-items: center; gap: var(--s3); min-height: 32px; }
.row__head h2 { min-width: 0; }
.row__head > a { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -6px 0; font-size: var(--t-sm); font-weight: 600; color: var(--on-canvas-2); }
.row__head > a:hover { color: var(--on-canvas); }

/* Rails: one column width per card type, one gap. */
.rail { gap: 12px; grid-auto-columns: 148px; }
.rail--wide { grid-auto-columns: 280px; }
.rail--top { gap: 8px; grid-auto-columns: 200px; }
.rail--badges { gap: 12px; }
@media (min-width: 900px) {
  .rail { grid-auto-columns: 176px; gap: 14px; }
  .rail--wide { grid-auto-columns: 340px; }
  .rail--top { grid-auto-columns: 236px; gap: 10px; }
}

/* Event cards: identical anatomy — art, then title / when / price / proof, each one line. */
.ecard__link { gap: 10px; }
.ecard__meta { gap: 3px; font-size: var(--t-xs); }
.ecard__meta > b { font-size: var(--t-sm); line-height: 1.3; }
.ecard__price { display: inline-flex; align-items: center; gap: 4px; }
.ecard__meta .proof { margin-top: 3px; min-width: 0; }
.proof { white-space: nowrap; overflow: hidden; min-width: 0; }
.proof > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ecard__save { width: 36px; height: 36px; top: 6px; right: 6px; }
.ecard__flag { max-width: calc(100% - 48px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-cards { gap: var(--s5) 12px; }

/* Country picker: a compact control that reads as part of the header, not a hero element. */
.country { min-height: 36px; padding: 0 8px 0 10px; gap: 4px; }
.country select { font-size: var(--t-sm); }

/* Quick-action tiles (wallet, live): one tile style, sentence-case labels that never break mid-word. */
.wactions { width: 100%; }
.wactions > * { font-size: var(--t-xs); font-weight: 600; text-transform: none; letter-spacing: 0; overflow-wrap: normal; white-space: nowrap; }
.yearcard__grid small { white-space: nowrap; }
/* Discover results: an event row ends in a chevron (it navigates), not a play button. */
.rec__play { color: var(--on-canvas-3); padding-right: 12px; }
.rec__text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__text .rec__price { color: var(--on-canvas); font-weight: 600; margin-top: 2px; }
.rec__text b { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Tap targets and minimum type for the last stragglers. */
.seg > button { min-height: 36px; }
.link-btn { min-height: 40px; display: inline-flex; align-items: center; }
.moment__add { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; }
.phead__counts > a { min-height: 44px; display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px; }
.phead__counts > a > * { display: inline !important; }
.plan small, .badgemini small { font-size: 11px; }

/* Photo avatars: the image covers the initials, which stay underneath as the loading/fallback state. */
.avatar { position: relative; overflow: hidden; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar--photo { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

/* Settings list: rows use the same 24px side padding as the setting pages they open,
   so the icon tile and chevron line up with the content edge on the next screen. */
.settings-list > a, .settings-list > button { padding: 14px calc(var(--s5) - 1px); gap: var(--s3); } /* minus the list's 1px border */
.settings-list > a > .ms:last-child { flex: none; color: var(--on-canvas-3); }

/* Toggle switch (role="switch"): label left, 52×32 track right, whole row is the tap target. */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); width: 100%; min-height: 64px; padding: 12px 0; text-align: left; color: var(--ink); cursor: pointer; border-top: 1px solid var(--paper-line, rgba(255,255,255,.08)); }
.setcard h2 + .toggle, .setcard hr + .toggle { border-top: 0; }
.toggle__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--t-md); font-weight: 600; }
.toggle__label small { font-size: var(--t-sm); font-weight: 400; color: var(--ink-2); line-height: 1.4; }
.toggle__sw { position: relative; flex: 0 0 52px; width: 52px; height: 32px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 18%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 30%, transparent); transition: background var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.toggle__sw::after { content: ""; position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 65%, transparent); transition: transform var(--d2) var(--ease), width var(--d2) var(--ease), height var(--d2) var(--ease), top var(--d2) var(--ease), left var(--d2) var(--ease), background var(--d2); }
.toggle[aria-checked="true"] .toggle__sw { background: var(--ok); box-shadow: none; }
.toggle[aria-checked="true"] .toggle__sw::after { top: 4px; left: 4px; width: 24px; height: 24px; transform: translateX(20px); background: #fff; }
.toggle:focus-visible { outline: none; }
.toggle:focus-visible .toggle__sw { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .toggle__sw, .toggle__sw::after { transition: none; } }
.setcard:has(> h2 + .toggle) { gap: 0; }
.setcard .toggle + .toggle { margin-top: calc(-1 * var(--s5)); }
.setcard:has(> h2 + .toggle) .toggle + .toggle { margin-top: 0; }
.setcard:has(> h2 + .toggle) h2 { margin-bottom: var(--s2); }
