/* ============================================================
   BASE — reset, typography, shared chrome (header, toast)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.wrap {
  width: min(var(--maxw), 100% - 40px);
  margin-inline: auto;
}

/* ------- eyebrow / small caps utility ------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ------------------- top bar ------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.wordmark b { color: var(--love); }
.wordmark i { color: var(--hate); font-style: normal; }

.logo { width: 22px; height: 22px; flex: 0 0 auto; }

/* show-page topbar: ← | logo + SHOW NAME | live */
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  justify-content: center;
}
.topbar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar--show .topbar__back { font-size: 18px; }

.topbar__back {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color .2s var(--ease);
}
.topbar__back:hover { color: var(--ink); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--love);
  box-shadow: 0 0 0 0 var(--love-soft);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--love) 45%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ------------------- demo banner ------------------- */
.demo-banner {
  text-align: center;
  font-size: 13px;
  color: var(--ink-dim);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
}
.demo-banner strong { color: var(--ink); font-weight: 600; }

/* ------------------- toast ------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 50;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------- footer ------------------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--ink-dim);
  text-align: center;
}

/* ------------------- not found ------------------- */
.lost {
  min-height: 70dvh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 14px;
  padding: 24px;
}
.lost__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim);
}
.lost__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.lost__back { color: var(--love); font-weight: 600; }

/* ------------------- a11y ------------------- */
:focus-visible {
  outline: 2px solid var(--love);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
