@import url("area-attendee.css");
@import url("area-host.css");
@import url("area-admin.css");
@import url("area-register.css");

/* Moment web app — one design system for every screen.
   Tokens → base → layout (phone tab bar / desktop sidebar) → components.
   Guest-facing "stage" surfaces are dark and themed per event/community; tools
   follow the system light/dark setting. */

:root {
  --accent: #6B4DF2;
  --accent-2: #9480FC;
  --accent-ink: #ffffff;
  --gold: #F5C35C;
  --ink: #0E0C1B;
  --ink-raised: #1A1730;
  --green: #22A559;
  --red: #E5484D;
  --orange: #F08C28;

  --bg: #F3F1F7;
  --surface: #FFFFFF;
  --surface-2: #F7F5FB;
  --surface-3: #ECE8F4;
  --text: #16131F;
  --text-2: #5E5870;
  --text-3: #8E889C;
  --line: rgba(22, 19, 31, 0.09);
  --line-strong: rgba(22, 19, 31, 0.16);
  --shadow: 0 1px 2px rgba(20, 10, 40, .06), 0 8px 24px rgba(20, 10, 40, .07);
  --shadow-lg: 0 18px 60px rgba(20, 10, 40, .18);

  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --topbar-h: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0A12;
    --surface: #17151F;
    --surface-2: #1E1B28;
    --surface-3: #282435;
    --text: #F4F2F8;
    --text-2: #B3ADC2;
    --text-3: #857F95;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ----------------------------------------------------------- boot */
.boot { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 14px; background: radial-gradient(120% 80% at 50% 0%, #2A1D55 0%, var(--ink) 60%); color: #fff; }
.boot-mark { border-radius: 20px; animation: bootPulse 1.4s var(--ease) infinite alternate; box-shadow: 0 10px 40px rgba(107, 77, 242, .45); }
.boot-text { opacity: .7; font-size: 14px; }
@keyframes bootPulse { from { transform: scale(.94); } to { transform: scale(1.04); } }

/* ----------------------------------------------------------- layout */
.shell { min-height: 100dvh; display: flex; }
.sidebar { display: none; }
.main { flex: 1 1 auto; min-width: 0; padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); }
.page { max-width: 1040px; margin: 0 auto; padding: 12px 16px 28px; animation: pageIn .32s var(--ease); }
.page.narrow { max-width: 640px; }
.page.wide { max-width: 1240px; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) 12px 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 17px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .title.left { text-align: left; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.topbar .slot { display: flex; gap: 6px; align-items: center; min-width: 44px; }
.topbar .slot.end { justify-content: flex-end; }
.topbar.hidden-bar { display: none; }
.topbar.stage { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: absolute; left: 0; right: 0; color: #fff; }

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-bottom)); z-index: 40;
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; width: min(560px, calc(100% - 24px));
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(22px); -webkit-backdrop-filter: saturate(1.6) blur(22px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.tabbar a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 999px; color: var(--text-2); font-size: 11px; font-weight: 600; position: relative; transition: background .2s, color .2s; }
.tabbar a .ico { width: 24px; height: 24px; }
.tabbar a.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tabbar a .dot { position: absolute; top: 4px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; }

@media (min-width: 920px) {
  .main { padding-bottom: 24px; }
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; width: 260px; flex: 0 0 260px;
    padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto;
  }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; font-weight: 800; font-size: 19px; color: var(--text); }
  .sidebar .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .sidebar a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 15px; }
  .sidebar a.nav .ico { width: 22px; height: 22px; color: var(--text-2); }
  .sidebar a.nav:hover { background: var(--surface-2); }
  .sidebar a.nav.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
  .sidebar a.nav.on .ico { color: var(--accent); }
  .sidebar .section { margin: 16px 12px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
  .sidebar .foot { margin-top: auto; padding: 12px; font-size: 12px; color: var(--text-3); }
  .page { padding: 20px 28px 40px; }
  .topbar { padding-left: 20px; padding-right: 20px; }
}

/* ----------------------------------------------------------- buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 16px; background: var(--accent); color: var(--accent-ink);
  transition: transform .15s var(--ease), filter .15s, background .2s, opacity .2s; text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.lg { min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn.pill { border-radius: 999px; }
.btn.secondary { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.plain { background: var(--surface-2); color: var(--text); }
.btn.danger { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.btn.danger.solid { background: var(--red); color: #fff; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn.glass { background: rgba(255, 255, 255, .14); color: #fff; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { appearance: none; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: transform .15s; position: relative; }
.icon-btn:active { transform: scale(.92); }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn.accent { color: var(--accent); }
.icon-btn .dot { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }
.stage .icon-btn { background: rgba(0, 0, 0, .28); color: #fff; box-shadow: none; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-weight: 600; }

/* ----------------------------------------------------------- cards & lists */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px; }
.card.flat { box-shadow: none; }
.card.tight { padding: 0; overflow: hidden; }
.card h3 { font-size: 17px; }
.card.pressable { cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s; }
.card.pressable:hover { box-shadow: var(--shadow-lg); }
.card.pressable:active { transform: scale(.985); }
.section-title { display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; margin: 24px 2px 12px; }
.section-title .count { font-size: 14px; font-weight: 600; color: var(--text-3); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.list { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 52px; border-top: 1px solid var(--line); color: var(--text); background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; }
.list > .item:first-child { border-top: 0; }
.list > button.item, .list > a.item { cursor: pointer; }
.list > button.item:hover, .list > a.item:hover { background: var(--surface-2); }
.list .item .chev { color: var(--text-3); width: 18px; height: 18px; flex: none; }
.list .item .sub { font-size: 13px; color: var(--text-2); }
.list-head { font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin: 22px 6px 8px; }
.list-foot { font-size: 13px; color: var(--text-3); margin: 8px 8px 0; line-height: 1.4; }
.grid { display: grid; gap: 14px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
@media (min-width: 920px) { .grid.tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }

/* ----------------------------------------------------------- form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input, input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="search"], input[type="datetime-local"], input[type="date"], input[type="time"], textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.help { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.error-text { font-size: 14px; color: var(--red); font-weight: 600; }
.form-card { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 51px; height: 31px; border-radius: 16px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .25s var(--spring); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-3); border-radius: 12px; }
.seg button { appearance: none; border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 20px; }
.stepper span { min-width: 44px; text-align: center; font-weight: 700; }

/* ----------------------------------------------------------- chips, badges */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.pill.accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pill.green { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.pill.red { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.pill.orange { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.pill.dark { background: rgba(0, 0, 0, .5); color: #fff; }
.pill.live { background: var(--red); color: #fff; letter-spacing: .06em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: currentColor; opacity: .4; animation: livePulse 1.3s ease-out infinite; }
@keyframes livePulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.8); opacity: 0; } }
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.logo-disc { border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 800; border: 3px solid rgba(255, 255, 255, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); flex: none; background: var(--accent); }
.logo-disc img { width: 100%; height: 100%; object-fit: cover; }
.date-badge { width: 46px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); text-align: center; flex: none; }
.date-badge .m { font-size: 10px; font-weight: 900; color: #fff; background: var(--accent); padding: 2px 0; letter-spacing: .04em; }
.date-badge .d { font-size: 20px; font-weight: 800; color: #111; padding: 1px 0 2px; }

/* ----------------------------------------------------------- stage (guest-facing, themed) */
.stage-page { min-height: 100dvh; color: #fff; background: var(--stage-bg, var(--ink)); position: relative; }
.stage-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(80% 60% at 80% 0%, color-mix(in srgb, var(--stage-accent, var(--accent)) 55%, transparent) 0%, transparent 70%),
  radial-gradient(70% 50% at 0% 100%, color-mix(in srgb, var(--stage-accent, var(--accent)) 30%, transparent) 0%, transparent 70%),
  var(--stage-bg, var(--ink)); }
.stage-content { position: relative; z-index: 1; }
.stage-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.stage-card .muted, .stage-page .muted { color: rgba(255, 255, 255, .72); }
.stage-card .faint, .stage-page .faint { color: rgba(255, 255, 255, .5); }
.stage-light { color: var(--text); background: var(--stage-bg, #F6F4FA); }
.stage-light .stage-card { background: rgba(255, 255, 255, .78); border-color: rgba(0, 0, 0, .06); color: var(--text); box-shadow: var(--shadow); }
.stage-light .stage-card .muted, .stage-light .muted { color: var(--text-2); }
.hero-gradient { background: radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--hero-2, var(--gold)) 50%, transparent), transparent 60%), linear-gradient(135deg, var(--hero-1, var(--accent)), color-mix(in srgb, var(--hero-1, var(--accent)) 60%, #000)); color: #fff; }

/* ----------------------------------------------------------- code boxes */
.codeboxes { display: flex; gap: 8px; justify-content: center; position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.codeboxes .box { flex: 1 1 0; min-width: 0; max-width: 54px; aspect-ratio: 50 / 64; border-radius: 14px; display: grid; place-items: center; font-family: var(--mono); font-size: 30px; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .18); transition: transform .25s var(--spring), border-color .2s, background .2s; }
.codeboxes .box.filled { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .34); transform: scale(1.04); }
.codeboxes .box.active { border-color: var(--gold); border-width: 2px; }
.codeboxes .dash { color: rgba(255, 255, 255, .3); align-self: center; font-size: 24px; }
.codeboxes input { position: absolute; inset: 0; opacity: 0.01; font-size: 16px; text-transform: uppercase; caret-color: transparent; border: 0; background: transparent; color: transparent; }
@media (max-width: 420px) { .codeboxes .box { font-size: 24px; border-radius: 12px; } .codeboxes { gap: 5px; } .codeboxes .dash { font-size: 18px; } }
.shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }

/* ----------------------------------------------------------- sheets, toasts */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(8, 6, 16, .48); animation: fadeIn .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + var(--safe-bottom)); animation: sheetUp .34s var(--ease); box-shadow: var(--shadow-lg); }
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sheet-head h2 { flex: 1; font-size: 19px; text-align: center; }
@media (min-width: 720px) { .scrim { align-items: center; } .sheet { border-radius: 22px; padding-bottom: 20px; animation: popIn .28s var(--spring); } .sheet .grabber { display: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes popIn { from { transform: scale(.94); opacity: 0; } }
.toast-wrap { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 26px); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
@media (min-width: 920px) { .toast-wrap { bottom: 28px; } }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); animation: toastIn .3s var(--spring); display: flex; gap: 10px; align-items: center; }
.toast.error { background: var(--red); }
.toast.success { background: #1E7B3C; }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 13%, transparent); font-size: 14px; }
.banner.info { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.banner.good { background: color-mix(in srgb, var(--green) 12%, transparent); }

/* ----------------------------------------------------------- skeletons & empty */
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, color-mix(in srgb, var(--surface-3) 50%, var(--surface)) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 12px; }
.stage-page .skel { background: linear-gradient(90deg, rgba(255,255,255,.08) 25%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.08) 75%); background-size: 200% 100%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.loading-line { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; padding: 10px; }
.loading-line .dots { display: inline-flex; gap: 5px; }
.loading-line .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: breathe 1.1s ease-in-out infinite; }
.loading-line .dots i:nth-child(2) { animation-delay: .18s; } .loading-line .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes breathe { 0%, 100% { transform: scale(.5); opacity: .35; } 50% { transform: scale(1); opacity: 1; } }
.empty { text-align: center; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ico-wrap { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 6px; }
.empty .ico-wrap .ico { width: 44px; height: 44px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--text-2); max-width: 380px; }

/* ----------------------------------------------------------- event cards & tiles */
.ev-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s; display: flex; flex-direction: column; color: var(--text); text-align: left; }
.ev-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ev-card:active { transform: scale(.985); }
.ev-card .banner-img { height: 128px; position: relative; background-size: cover; background-position: center; }
.ev-card .banner-img .over { position: absolute; inset: 10px; display: flex; justify-content: space-between; align-items: flex-start; }
.ev-card .body { padding: 12px 14px 14px; display: flex; gap: 12px; }
.ev-card .body .logo-disc { margin-top: -34px; }
.ev-card h3 { font-size: 17px; }
.ev-card .meta { font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.ev-card.past { opacity: .82; }
.ev-card.past .banner-img { filter: saturate(.4); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .18s var(--ease), box-shadow .2s; color: var(--text); opacity: 0; animation: tileIn .45s var(--spring) forwards; }
.tile:hover { box-shadow: var(--shadow); }
.tile:active { transform: scale(.97); }
.tile .tico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c-accent, var(--accent)), color-mix(in srgb, var(--c-accent, var(--accent)) 55%, var(--c-secondary, var(--gold)))); }
.tile .tico .ico { width: 21px; height: 21px; }
.tile .tname { font-weight: 800; font-size: 15px; }
.tile.setup { border-style: dashed; border-color: color-mix(in srgb, var(--orange) 60%, transparent); }
@keyframes tileIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- misc */
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kbd { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); }
.qr { background: #fff; padding: 14px; border-radius: 18px; display: inline-block; }
.qr canvas, .qr svg { display: block; width: 240px; height: 240px; image-rendering: pixelated; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tile { opacity: 1; }
}

/* ----------------------------------------------------------- full-bleed stage pages */
.page.stage-full { max-width: none; padding: 0; animation: none; }
.main.stage-host .topbar { position: fixed; left: 0; right: 0; }
@media (min-width: 920px) { .main.stage-host .topbar { left: 260px; } }

/* ----------------------------------------------------------- landing */
.landing-hero { position: relative; margin-top: calc(var(--safe-top) + 4px); overflow: hidden; border-radius: var(--r-xl); padding: 34px 22px 28px; color: #fff;
  background: radial-gradient(70% 70% at 90% 0%, rgba(245, 195, 92, .35), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(148, 128, 252, .45), transparent 60%), linear-gradient(160deg, #1B1440, var(--ink)); }
.landing-hero h1 { font-family: var(--serif); font-size: clamp(34px, 7vw, 56px); line-height: 1.02; letter-spacing: -0.02em; }
.landing-hero .lede { font-size: 17px; color: rgba(255,255,255,.78); margin-top: 12px; max-width: 560px; }
.choice-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 760px) { .choice-grid { grid-template-columns: 1.1fr 1fr; } .landing-hero { padding: 48px 40px 40px; } }
.choice { border-radius: var(--r-lg); padding: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 14px; }
.choice h2 { font-size: 21px; display: flex; gap: 10px; align-items: center; }
.choice p { color: rgba(255,255,255,.72); font-size: 15px; }
.feature-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.feature .ico-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 10px; }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border-radius: 12px; background: #fff; color: #1F1F1F; border: 1px solid #747775; font-weight: 600; font-size: 16px; cursor: pointer; width: 100%; font-family: Roboto, var(--font); transition: box-shadow .15s, transform .15s; }
.google-btn:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px rgba(60,64,67,.15); }
.google-btn:active { transform: scale(.98); }
.reveal { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 10px; }
.reveal .logo-disc { animation: revealPop .7s var(--spring) both; }
.reveal h2 { font-family: var(--serif); font-size: 34px; animation: fadeUp .6s .25s var(--ease) both; }
.reveal .kicker { animation: fadeUp .6s .15s var(--ease) both; }
@keyframes revealPop { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0; } }
#main:focus, #main:focus-visible { outline: none; }
a.card, a.item, a.ev-card, a.tile { color: var(--text); }
@media (min-width: 920px) { .stage-backdrop { left: 260px; } }

/* A screen refreshed in place (fresh data after a cached paint): no replayed entrance animations. */
.quiet, .quiet * { animation: none !important; }
