:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: #17171d;
  background: #f7f2e9;
  --ink: #17171d;
  --muted: #6d6a68;
  --paper: #fffaf2;
  --cream: #f7f2e9;
  --coral: #f04f78;
  --coral-dark: #c52d57;
  --mint: #64d7c6;
  --violet: #7454d6;
  --line: rgb(23 23 29 / 13%);
  --shadow: 0 1.4rem 4rem rgb(65 42 22 / 10%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--coral);
  box-shadow: inset 0 0 0 0.35rem var(--ink);
}

.eyebrow,
.step,
.panel-number,
.host-kicker {
  margin: 0;
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guest-page {
  background:
    radial-gradient(circle at 90% 1%, rgb(100 215 198 / 25%), transparent 24rem),
    radial-gradient(circle at 0 35%, rgb(240 79 120 / 12%), transparent 22rem),
    var(--cream);
}

.guest-header,
.guest-footer {
  width: min(46rem, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guest-header {
  padding: 1.2rem 0;
}

.phase-chip,
.card-badge,
.count-badge,
.local-only,
.live-badge {
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgb(255 255 255 / 58%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guest-shell {
  width: min(46rem, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.guest-hero {
  padding: 2.5rem 0 1.5rem;
}

.guest-hero h1,
.host-overview h1 {
  margin: 0.65rem 0 1rem;
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: clamp(3.2rem, 13vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.55;
}

.notice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: #37554f;
  background: rgb(100 215 198 / 18%);
  font-weight: 600;
}

.notice.locked {
  color: #7b3f4e;
  background: rgb(240 79 120 / 13%);
}

.pulse {
  width: 0.66rem;
  height: 0.66rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0.35rem rgb(100 215 198 / 20%);
}

.locked .pulse {
  background: var(--coral);
  box-shadow: 0 0 0 0.35rem rgb(240 79 120 / 15%);
}

.card {
  margin-top: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgb(23 23 29 / 8%);
  border-radius: 1.6rem;
  background: rgb(255 250 242 / 90%);
  box-shadow: var(--shadow);
}

.card-heading,
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.card h2,
.host-panel h2 {
  margin: 0.15rem 0 0;
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  letter-spacing: -0.045em;
}

.card-badge.accent {
  color: #fff;
  border-color: var(--violet);
  background: var(--violet);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: #45434a;
  font-size: 0.82rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  color: var(--ink);
  background: white;
  font-size: 1rem;
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button,
.host-primary {
  min-height: 3.3rem;
  border: 0;
  border-radius: 0.95rem;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.primary-button:disabled,
.host-primary:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.helper {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-state {
  min-height: 9rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  max-width: 18rem;
  margin: 0;
}

.mini-record {
  width: 3rem;
  height: 3rem;
  border: 0.35rem solid #23232a;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral) 0 18%, #23232a 19% 24%, transparent 25%);
}

.candidate-list {
  display: grid;
  gap: 0.7rem;
}

.candidate-button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: white;
  text-align: left;
  cursor: pointer;
}

.candidate-button.selected {
  border-color: var(--violet);
  box-shadow: inset 0 0 0 1px var(--violet);
  background: #f5f1ff;
}

.candidate-number {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.candidate-copy strong,
.candidate-copy span {
  display: block;
}

.candidate-copy span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.vote-check {
  color: var(--violet);
  font-weight: 700;
}

.guest-footer {
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  max-width: 30rem;
  margin-inline: auto;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  color: white;
  background: var(--ink);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
  text-align: center;
  font-weight: 600;
}

/* Host control room */

.host-page {
  color: #f7f3eb;
  background:
    radial-gradient(circle at 80% 0, rgb(116 84 214 / 20%), transparent 28rem),
    #101116;
}

.host-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 4.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem max(1rem, calc((100vw - 78rem) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: rgb(16 17 22 / 88%);
  backdrop-filter: blur(18px);
}

.brand-light {
  color: white;
}

.host-kicker {
  color: #a99ee0;
}

.host-connection {
  margin: 0.1rem 0 0;
  color: #8f909a;
  font-size: 0.74rem;
}

.ghost-button,
.toggle-button {
  min-height: 2.7rem;
  padding: 0 0.9rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 0.75rem;
  color: #efebe4;
  background: rgb(255 255 255 / 5%);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.host-shell {
  width: min(78rem, calc(100% - 2rem));
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.host-overview {
  grid-column: 1 / -1;
  min-height: 24rem;
  display: grid;
  grid-template-columns: 1fr 20rem;
  align-items: end;
  gap: 2rem;
  padding: 4rem 0 2rem;
}

.host-overview h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
}

.now-card {
  padding: 1.4rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 5%);
}

.now-card p,
.now-card span,
.now-card strong {
  display: block;
}

.now-card p {
  margin: 0;
  color: #858690;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.now-card strong {
  margin: 0.7rem 0 0.4rem;
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: 2.5rem;
  letter-spacing: -0.06em;
  text-transform: capitalize;
}

.now-card span {
  color: #adaeb7;
  font-size: 0.82rem;
}

.host-panel {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 1.25rem;
  background: #17181f;
}

.host-panel-wide {
  grid-column: 1 / -1;
}

.panel-number {
  color: #8271d3;
}

.local-only {
  color: #7ce0d1;
  border-color: rgb(100 215 198 / 25%);
  background: rgb(100 215 198 / 8%);
}

.phase-controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.phase-button {
  min-height: 3.2rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0.8rem;
  color: #a9aab3;
  background: #202129;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  cursor: pointer;
}

.phase-button.active {
  color: #16171c;
  border-color: var(--mint);
  background: var(--mint);
}

.safety-controls {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.toggle-button.active {
  color: #111217;
  border-color: #f1bc54;
  background: #f1bc54;
}

.toggle-button.special.active {
  color: white;
  border-color: var(--coral);
  background: var(--coral-dark);
}

.count-badge,
.live-badge {
  color: #8f909a;
  border-color: rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 3%);
}

.live-badge.active {
  color: #7ce0d1;
  border-color: rgb(100 215 198 / 30%);
}

.live-badge.warning {
  color: #ff8ba8;
  border-color: rgb(240 79 120 / 32%);
}

.stack-list,
.queue-list,
.live-grid {
  display: grid;
  gap: 0.55rem;
  overflow-anchor: none;
}

.stack-list {
  max-height: 24rem;
  overflow: auto;
}

.host-row,
.queue-row,
.live-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 0.8rem;
  background: #1e1f27;
}

.host-row strong,
.host-row span,
.queue-row strong,
.queue-row span,
.live-row strong,
.live-row span {
  display: block;
}

.host-row span,
.queue-row span,
.live-row span {
  margin-top: 0.16rem;
  color: #8f909a;
  font-size: 0.74rem;
}

.row-actions {
  display: flex;
  gap: 0.4rem;
}

.row-button {
  min-height: 2.2rem;
  padding: 0 0.65rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0.55rem;
  color: #e8e4dc;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.row-button.approve {
  color: #7ce0d1;
}

.row-button.reject {
  color: #ff8ba8;
}

.host-primary {
  width: 100%;
  margin-top: 0.8rem;
  color: #111217;
  background: var(--mint);
}

.host-primary.coral {
  background: var(--coral);
  color: white;
}

.live-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.live-row {
  grid-template-columns: 1fr auto;
}

.vote-total {
  width: 2.4rem;
  height: 2.4rem;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  color: #111217 !important;
  background: var(--mint);
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: 1rem !important;
  font-weight: 700;
}

.queue-row {
  grid-template-columns: auto 1fr auto;
}

.queue-position {
  color: #8271d3;
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-weight: 700;
}

.queue-status {
  color: #7ce0d1 !important;
  text-transform: capitalize;
}

.host-empty {
  margin: 0;
  padding: 1.4rem;
  border: 1px dashed rgb(255 255 255 / 10%);
  border-radius: 0.8rem;
  color: #777883;
  text-align: center;
  font-size: 0.82rem;
}

.media-summary {
  margin: 0 0 0.8rem;
  color: #adaeb7;
  font-size: 0.86rem;
  line-height: 1.5;
}

.media-issues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.55rem;
}

.media-issues .host-empty {
  padding: 0.8rem;
  text-align: left;
}

.host-toast {
  color: #111217;
  background: var(--mint);
}

@media (max-width: 48rem) {
  .guest-shell {
    margin-top: 0;
  }

  .guest-hero {
    padding-top: 1.8rem;
  }

  .host-header {
    grid-template-columns: auto 1fr;
  }

  .host-header .ghost-button {
    grid-column: 1 / -1;
  }

  .host-shell {
    grid-template-columns: 1fr;
  }

  .host-overview,
  .host-panel,
  .host-panel-wide {
    grid-column: 1;
  }

  .host-overview {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .phase-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .safety-controls {
    display: grid;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pulse {
    animation: breathe 1.8s ease-in-out infinite;
  }

  .card,
  .host-panel {
    animation: rise 420ms ease both;
  }

  .vote-card,
  .host-panel:nth-of-type(3) {
    animation-delay: 80ms;
  }
}

@keyframes breathe {
  50% {
    transform: scale(0.72);
    opacity: 0.7;
  }
}

@keyframes rise {
  from {
    transform: translateY(0.7rem);
    opacity: 0;
  }
}

/* Interactive wedding timeline */

.timeline-page {
  color-scheme: dark;
  color: #f5f1e8;
  background:
    radial-gradient(circle at 80% 4%, rgb(116 84 214 / 24%), transparent 28rem),
    radial-gradient(circle at 8% 26%, rgb(240 79 120 / 14%), transparent 24rem),
    #090a10;
}

.timeline-page .timeline-header,
.timeline-page .guest-footer,
.timeline-page .timeline-shell {
  width: min(76rem, calc(100% - 2rem));
}

.timeline-header {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.timeline-page .brand {
  color: #fff;
}

.timeline-page .brand-mark {
  box-shadow: inset 0 0 0 0.35rem #090a10;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9697a2;
  font-size: 0.76rem;
}

.connection-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 1rem rgb(100 215 198 / 80%);
}

.is-offline .connection-dot {
  background: #f1bc54;
}

.timeline-page .phase-chip,
.timeline-page .duration-chip {
  color: #d5d1ca;
  border-color: rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 5%);
}

.timeline-shell {
  margin-top: 0;
}

.timeline-hero {
  min-height: 34rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) 0 4rem;
}

.timeline-hero h1 {
  max-width: 10ch;
  margin: 0.7rem 0 1.3rem;
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: clamp(4.5rem, 10vw, 8.8rem);
  line-height: 0.84;
  letter-spacing: -0.085em;
}

.timeline-page .eyebrow,
.timeline-page .step {
  color: #ff6f96;
}

.timeline-page .lede {
  color: #a6a5ad;
}

.live-segment-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 1.6rem;
  background:
    linear-gradient(150deg, rgb(116 84 214 / 18%), transparent 55%),
    #15161e;
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 36%);
}

.live-segment-card::before {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  top: -5rem;
  right: -4rem;
  border: 1px solid rgb(100 215 198 / 30%);
  border-radius: 50%;
  box-shadow: 0 0 3rem rgb(100 215 198 / 18%);
}

.live-segment-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #8f909b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-segment-card h2 {
  margin: 2rem 0 0.8rem;
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.live-segment-card p {
  color: #a9a8b1;
  line-height: 1.6;
}

.timeline-progress {
  height: 0.36rem;
  margin: 1.6rem 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}

.timeline-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--mint));
  transition: width 500ms ease;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.capability-chip,
.duration-chip {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  color: #84858f;
  background: rgb(255 255 255 / 3%);
  font-size: 0.68rem;
  font-weight: 750;
}

.capability-chip.active {
  color: #7ce0d1;
  border-color: rgb(100 215 198 / 24%);
  background: rgb(100 215 198 / 8%);
}

.timeline-page .notice {
  margin: 0 0 3rem;
  color: #8de4d7;
  border: 1px solid rgb(100 215 198 / 16%);
  background: rgb(100 215 198 / 7%);
}

.timeline-page .notice.locked {
  color: #ff9bb4;
  border-color: rgb(240 79 120 / 18%);
  background: rgb(240 79 120 / 7%);
}

.timeline-ledger {
  padding: 2rem 0 4rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  max-width: 17ch;
  margin: 0.5rem 0 0;
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.timeline-list {
  display: grid;
  gap: 0.6rem;
}

.timeline-entry {
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 1rem;
  background: #12131a;
  transition: border-color 180ms ease, background 180ms ease;
}

.timeline-entry[data-state="current"] {
  border-color: rgb(100 215 198 / 45%);
  background: linear-gradient(90deg, rgb(100 215 198 / 9%), #15161e 50%);
}

.timeline-entry[data-state="complete"] {
  opacity: 0.58;
}

.timeline-entry summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  list-style: none;
  cursor: pointer;
}

.timeline-entry summary::-webkit-details-marker {
  display: none;
}

.timeline-marker {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 50%;
  color: #8b8c96;
  font-size: 0.72rem;
  font-weight: 800;
}

.timeline-entry[data-state="current"] .timeline-marker {
  color: #0c1615;
  border-color: var(--mint);
  background: var(--mint);
}

.timeline-entry-copy strong,
.timeline-entry-copy span,
.timeline-entry-meta span {
  display: block;
}

.timeline-entry-copy strong {
  font-size: 1rem;
}

.timeline-entry-copy span,
.timeline-entry-meta {
  margin-top: 0.15rem;
  color: #7f808a;
  font-size: 0.74rem;
}

.timeline-entry-meta {
  min-width: 8rem;
  text-align: right;
}

.timeline-entry-details {
  padding: 0 1rem 1rem 4.45rem;
  color: #aaa9b1;
  line-height: 1.55;
}

.timeline-entry-details p {
  margin: 0;
}

.timeline-entry-details ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline-entry-details li {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #c2bec8;
  background: rgb(255 255 255 / 6%);
  font-size: 0.7rem;
}

.guest-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 5rem;
}

.timeline-page .card {
  margin: 0;
  color: #f4f0e8;
  border-color: rgb(255 255 255 / 9%);
  background: #16171f;
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 20%);
}

.timeline-page label {
  color: #aaa9b1;
}

.timeline-page input {
  color: #f5f1e8;
  border-color: rgb(255 255 255 / 12%);
  background: #0e0f15;
}

.timeline-page .primary-button {
  color: #0d1111;
  background: var(--mint);
}

.timeline-page .card-badge {
  color: #8f909a;
  border-color: rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 4%);
}

.timeline-page .card-badge.accent {
  color: #fff;
  background: var(--violet);
}

.timeline-page .empty-state {
  color: #81828d;
}

.timeline-page .candidate-button {
  color: #f5f1e8;
  border-color: rgb(255 255 255 / 10%);
  background: #0e0f15;
}

.timeline-page .candidate-button.selected {
  background: rgb(116 84 214 / 18%);
}

.timeline-page .guest-footer {
  color: #71727d;
  border-color: rgb(255 255 255 / 8%);
}

/* Timeline host additions */

.timeline-phase-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-phase-controls .phase-button {
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.now-card #timeline-remaining {
  margin-bottom: 0.35rem;
  color: #7ce0d1;
}

.spotify-output {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.spotify-output > div:first-child strong,
.spotify-output > div:first-child span {
  display: block;
}

.spotify-transport-button {
  margin-top: 0.8rem;
  padding: 0.62rem 0.8rem;
  color: #0d1514;
  border: 0;
  border-radius: 0.65rem;
  background: #61e6cf;
  cursor: pointer;
  font-weight: 800;
}

.spotify-transport-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.spotify-output > div:first-child strong {
  color: #f4f0e8;
  font-size: 0.86rem;
}

.spotify-output > div:first-child span {
  margin-top: 0.3rem;
  color: #8f9099;
  font-size: 0.75rem;
}

.spotify-device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.55rem;
}

.spotify-device-button {
  padding: 0.72rem 0.8rem;
  color: #d7d3cc;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0.72rem;
  background: rgb(255 255 255 / 4%);
  cursor: pointer;
  text-align: left;
}

.spotify-device-button strong,
.spotify-device-button span {
  display: block;
}

.spotify-device-button span {
  margin-top: 0.2rem;
  color: #7f808a;
  font-size: 0.68rem;
  text-transform: capitalize;
}

.spotify-device-button.active {
  color: #0c1413;
  border-color: #61e6cf;
  background: #61e6cf;
}

.spotify-device-button.active span {
  color: #24534c;
}

.access-grid {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  align-items: center;
  gap: 1.4rem;
}

.access-grid img {
  width: 10rem;
  height: 10rem;
  padding: 0.6rem;
  border-radius: 1rem;
  background: white;
}

.access-grid p {
  max-width: 38rem;
  color: #a6a7b0;
  line-height: 1.55;
}

.access-grid a {
  color: #7ce0d1;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.media-disclosure {
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 3%);
}

.media-disclosure summary {
  padding: 0.9rem 1rem;
  color: #c6c2ba;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
}

.media-disclosure .media-issues {
  padding: 0 0.8rem 0.8rem;
}

@media (max-width: 54rem) {
  .timeline-hero,
  .guest-actions {
    grid-template-columns: 1fr;
  }

  .timeline-hero {
    padding-top: 3rem;
  }

  .timeline-hero h1 {
    font-size: clamp(4rem, 19vw, 7rem);
  }

  .access-grid {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .access-grid img {
    width: 7rem;
    height: 7rem;
  }
}

/* Host flow additions: overrides, matching, unwedge tools */

.override-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.override-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.override-group > span {
  color: #a9aab3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.override-options {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0.7rem;
}

.override-button {
  min-height: 2.4rem;
  padding: 0 0.8rem;
  border: 0;
  color: #a9aab3;
  background: rgb(255 255 255 / 4%);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.override-button + .override-button {
  border-left: 1px solid rgb(255 255 255 / 10%);
}

.override-button.active {
  color: #111217;
  background: #cfc9bf;
  cursor: default;
}

.override-button.active[data-value="open"] {
  background: var(--mint);
}

.override-button.active[data-value="closed"] {
  color: white;
  background: var(--coral-dark);
}

.override-hint {
  flex-basis: 100%;
  margin: 0;
  color: #6f707b;
  font-size: 0.72rem;
}

.spotify-auth {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgb(255 255 255 / 10%);
}

.spotify-auth span {
  color: #8f9099;
  font-size: 0.75rem;
}

.spotify-auth-button {
  margin-top: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 0.65rem;
  color: #0d1514;
  background: #61e6cf;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.spotify-auth-button.linked {
  color: #e8e4dc;
  background: transparent;
}

.needs-match {
  display: inline-block !important;
  margin-top: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  color: #ffce7a !important;
  background: rgb(241 188 84 / 14%);
  font-size: 0.64rem !important;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.row-button.match {
  color: #ffce7a;
}

.row-wrap {
  display: grid;
  gap: 0.35rem;
}

.match-panel {
  display: grid;
  gap: 0.35rem;
  margin-left: 1.2rem;
}

.match-panel .host-empty {
  padding: 0.7rem;
}

.match-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgb(116 84 214 / 35%);
  border-radius: 0.7rem;
  color: #e8e4dc;
  background: rgb(116 84 214 / 10%);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.match-button:hover {
  border-color: var(--violet);
  background: rgb(116 84 214 / 22%);
}

.match-button strong {
  display: block;
  font-size: 0.85rem;
}

.match-button div span {
  display: block;
  margin-top: 0.12rem;
  color: #9d92cf;
  font-size: 0.72rem;
}

.match-use {
  flex: 0 0 auto;
  color: #cabfff;
  font-size: 0.72rem;
  font-weight: 800;
}

.live-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.live-actions .host-primary {
  margin-top: 0.8rem;
}

.cancel-round {
  margin-top: 0.8rem;
  min-height: 3.3rem;
  color: #ff8ba8;
}

.live-row {
  position: relative;
  overflow: hidden;
}

.vote-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  margin: 0 !important;
  background: linear-gradient(90deg, rgb(100 215 198 / 14%), rgb(116 84 214 / 18%));
  pointer-events: none;
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.live-row > div,
.live-row .vote-total {
  position: relative;
}

.live-row.leading {
  border-color: rgb(100 215 198 / 40%);
}

.queue-tail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.queue-status[data-status="uncertain"] {
  color: #ffce7a !important;
}

.queue-status[data-status="planned"] {
  color: #cabfff !important;
}

.queue-status[data-status="cancelled"] {
  color: #777883 !important;
}

/* Vote builder additions and navigation */

.timeline-header {
  grid-template-columns: auto 1fr auto auto;
}

.nav-chip {
  padding: 0.42rem 0.7rem;
  border: 1px solid rgb(100 215 198 / 30%);
  border-radius: 999px;
  color: #7ce0d1;
  background: rgb(100 215 198 / 8%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.host-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.host-add input {
  min-height: 2.6rem;
  padding: 0 0.8rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 0.7rem;
  color: #f0ece4;
  background: #0f1016;
  font-size: 0.85rem;
}

.host-add .row-button {
  min-height: 2.6rem;
}

.host-add-results {
  margin: 0.45rem 0 0;
}

.close-mode {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.close-mode > span {
  color: #a9aab3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-deadline {
  color: #ffce7a;
  font-size: 0.74rem;
  font-weight: 750;
}

.queue-status[data-status="playing"] {
  color: #7ce0d1 !important;
}

@media (max-width: 38rem) {
  .timeline-header .nav-chip {
    justify-self: end;
  }
}

/* Wishing well */

.donate-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--coral), var(--coral-dark));
  box-shadow: 0 0.8rem 2.4rem rgb(240 79 120 / 28%);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.donate-chip span,
.donate-button span {
  font-size: 1.05em;
  line-height: 1;
}

.wishing-well {
  position: relative;
  max-width: 40rem;
  margin: 0 auto 5rem;
  padding: clamp(2rem, 6vw, 3.2rem);
  border: 1px solid rgb(240 79 120 / 28%);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 50% 0, rgb(240 79 120 / 14%), transparent 18rem),
    linear-gradient(165deg, rgb(116 84 214 / 10%), transparent 55%),
    #14121a;
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 35%);
  text-align: center;
}

.wishing-heart {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, var(--coral), var(--coral-dark));
  box-shadow: 0 0 2.4rem rgb(240 79 120 / 45%);
  font-size: 1.4rem;
}

.wishing-well h2 {
  margin: 0.5rem 0 1.4rem;
  font-family: "Arial Black", ui-sans-serif, sans-serif;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.wishing-well p {
  max-width: 32rem;
  margin: 0 auto 1rem;
  color: #b9b6c0;
  line-height: 1.65;
}

.wishing-note {
  color: #ffb1c5 !important;
  font-weight: 650;
}

.donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.4rem;
  margin-top: 0.6rem;
  padding: 0 1.8rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--coral), var(--coral-dark));
  box-shadow: 0 1rem 3rem rgb(240 79 120 / 32%);
  font-weight: 800;
  text-decoration: none;
}

.wishing-sign {
  margin-top: 1.6rem !important;
  color: #8f8c9a !important;
  font-size: 0.85rem;
  font-style: italic;
}

/* Wayfinding maps */

.wayfinding {
  padding: 0 0 4rem;
}

.wayfinding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}

.map-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 1.2rem;
  background: #12131a;
}

.map-card > a {
  display: block;
  overflow: hidden;
}

.map-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 320ms ease;
}

.map-card > a:hover img,
.map-card > a:focus-visible img {
  transform: scale(1.04);
}

.map-card figcaption {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem 1.2rem;
}

.map-card strong {
  font-size: 0.98rem;
}

.map-card figcaption span {
  color: #a9aab3;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .connection-dot {
    animation: breathe 2.2s ease-in-out infinite;
  }

  .timeline-page {
    overflow-x: clip;
  }

  .timeline-hero {
    position: relative;
  }

  .timeline-hero::before,
  .timeline-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
  }

  .timeline-hero::before {
    top: -7rem;
    right: -9rem;
    background: radial-gradient(circle, rgb(116 84 214 / 26%) 0%, transparent 62%);
    animation: aurora-a 16s ease-in-out infinite alternate;
  }

  .timeline-hero::after {
    bottom: -9rem;
    left: -11rem;
    background: radial-gradient(circle, rgb(240 79 120 / 20%) 0%, transparent 62%);
    animation: aurora-b 21s ease-in-out infinite alternate;
  }

  .timeline-progress span {
    background: linear-gradient(90deg, var(--coral), var(--mint), var(--violet), var(--coral));
    background-size: 300% 100%;
    animation: progress-flow 6s linear infinite;
  }

  .live-segment-card::before {
    animation: ring-pulse 4s ease-in-out infinite;
  }

  .timeline-entry.animate-in {
    animation: ledger-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }

  .timeline-entry[data-state="current"] .timeline-marker {
    animation: marker-glow 2.6s ease-in-out infinite;
  }

  .capability-chip {
    animation: chip-pop 360ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .capability-chip:nth-child(2) {
    animation-delay: 50ms;
  }

  .capability-chip:nth-child(3) {
    animation-delay: 100ms;
  }

  .candidate-button {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .candidate-button:hover {
    transform: translateY(-2px);
  }

  .candidate-button:active {
    transform: scale(0.98);
  }

  .candidate-button.selected {
    animation: selected-glow 1.8s ease-in-out infinite;
  }

  .request-card,
  .vote-card {
    transition: transform 220ms ease, box-shadow 220ms ease;
  }

  .request-card:hover,
  .vote-card:hover {
    transform: translateY(-3px);
  }

  .donate-chip,
  .donate-button {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .donate-chip:hover,
  .donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 1.2rem 3.4rem rgb(240 79 120 / 45%);
  }

  .wishing-heart {
    animation: heartbeat 2.6s ease-in-out infinite;
  }

  .toast,
  .host-toast {
    animation: toast-in 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .live-badge.active {
    animation: badge-pulse 2.4s ease-in-out infinite;
  }

  .vote-total.bump {
    animation: vote-bump 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .row-wrap.is-new .host-row {
    animation: row-arrive 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .phase-button,
  .toggle-button,
  .row-button,
  .spotify-device-button {
    transition: transform 130ms ease, background 160ms ease, border-color 160ms ease;
  }

  .phase-button:not(:disabled):active,
  .toggle-button:not(:disabled):active,
  .row-button:not(:disabled):active {
    transform: scale(0.96);
  }
}

@keyframes aurora-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-5rem, 4rem, 0) scale(1.25);
  }
}

@keyframes aurora-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.15);
  }

  to {
    transform: translate3d(6rem, -3rem, 0) scale(0.9);
  }
}

@keyframes progress-flow {
  to {
    background-position: -300% 0;
  }
}

@keyframes ring-pulse {
  50% {
    box-shadow: 0 0 4.5rem rgb(100 215 198 / 34%);
    border-color: rgb(100 215 198 / 55%);
  }
}

@keyframes ledger-in {
  from {
    transform: translateY(1.1rem);
    opacity: 0;
  }
}

@keyframes marker-glow {
  50% {
    box-shadow: 0 0 1.4rem rgb(100 215 198 / 65%);
  }
}

@keyframes chip-pop {
  from {
    transform: scale(0.82);
    opacity: 0;
  }
}

@keyframes selected-glow {
  50% {
    box-shadow: inset 0 0 0 1px var(--violet), 0 0 1.6rem rgb(116 84 214 / 45%);
  }
}

@keyframes toast-in {
  from {
    transform: translateY(1.4rem);
    opacity: 0;
  }
}

@keyframes badge-pulse {
  50% {
    box-shadow: 0 0 1.2rem rgb(100 215 198 / 35%);
  }
}

@keyframes vote-bump {
  35% {
    transform: scale(1.35);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  12% {
    transform: scale(1.12);
  }

  24% {
    transform: scale(1);
  }

  36% {
    transform: scale(1.08);
  }
}

@keyframes row-arrive {
  from {
    transform: translateX(-0.8rem);
    opacity: 0;
    box-shadow: 0 0 0 2px rgb(100 215 198 / 45%);
  }

  60% {
    box-shadow: 0 0 0 2px rgb(100 215 198 / 45%);
  }

  to {
    box-shadow: 0 0 0 0 rgb(100 215 198 / 0%);
  }
}

@media (max-width: 38rem) {
  .timeline-header {
    grid-template-columns: auto 1fr;
  }

  .timeline-header .phase-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .timeline-entry summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .timeline-entry-meta {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .timeline-entry-meta span {
    display: inline;
    margin-right: 0.7rem;
  }

  .timeline-entry-details {
    padding-left: 1rem;
  }

  .timeline-phase-controls,
  .access-grid,
  .spotify-output {
    grid-template-columns: 1fr;
  }
}
