:root {
  --purple: #3a1463;
  --purple-deep: #240a42;
  --purple-mid: #4b1c7a;
  --purple-soft: #5c2a8d;
  --cream: #fbf3dc;
  --cream-dark: #efe3c0;
  --gold: #ffc107;
  --gold-deep: #e6ac00;
  --orange: #f07820;
  --orange-deep: #d96512;
  --teal: #26c6b4;
  --teal-deep: #1aa896;
  --breakout: #7b3aa8;
  --ink: #1a0a2c;
  --ink-soft: #3c2458;
  --paper: #fffdf6;
  --white: #ffffff;
  --muted: #d7c7ef;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(16, 4, 32, 0.28);
  --radius: 18px;
  --tap: 44px;
  --font: "Nunito", "Trebuchet MS", sans-serif;
  --display: "Luckiest Guy", "Trebuchet MS", sans-serif;
  --header-h: 0px;
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--paper);
  background: var(--purple-deep);
  min-height: 100vh;
  line-height: 1.45;
  overflow-x: hidden;
  overflow-wrap: break-word;
  max-width: 100%;
}

html.scroll-locked,
html.scroll-locked body {
  overflow: hidden;
}

html.scroll-locked body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 193, 7, 0.16), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(240, 120, 32, 0.18), transparent 28%),
    linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%);
  z-index: -2;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

a {
  color: var(--gold);
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.app {
  display: grid;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
}

.app > div {
  min-width: 0;
  max-width: 100%;
}

.hero {
  background: var(--cream);
  color: var(--ink);
  padding: 1.25rem 1.25rem 1.1rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--white) 0 28%, var(--orange) 29% 62%, var(--ink) 63% 70%, var(--white) 71% 100%);
  opacity: 0.18;
}

.hero-inner {
  display: grid;
  gap: 1rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}

.brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.brand > div {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  container-type: inline-size;
}

.mascot {
  width: clamp(52px, 18vw, 72px);
  height: clamp(52px, 18vw, 72px);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 10px rgba(58, 20, 99, 0.2));
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1.7rem, 14.2cqi, 3.2rem);
  letter-spacing: 0.02em;
  color: var(--gold);
  -webkit-text-stroke: 0.06em var(--purple);
  paint-order: stroke fill;
  line-height: 0.95;
  margin: 0;
  max-width: 100%;
  padding-inline: 0.06em;
  overflow-wrap: normal;
  word-break: normal;
}

.wordmark-title {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.year {
  display: block;
  white-space: normal;
  color: var(--purple);
  -webkit-text-stroke: 0;
  font-size: 0.55em;
  letter-spacing: 0.08em;
}

.tagline {
  margin: 0.15rem 0 0;
  font-weight: 800;
  color: var(--purple-mid);
  overflow-wrap: break-word;
  word-break: normal;
}

.meta {
  margin: 0.35rem 0 0;
  font-weight: 700;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  margin-top: 0.7rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.disclaimer {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 42rem;
  overflow-wrap: anywhere;
}

.disclaimer a {
  color: var(--purple-mid);
  font-weight: 800;
}

.now-banner {
  max-width: 1180px;
  width: 100%;
  margin: 0.9rem auto 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  display: none;
  gap: 0.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.now-banner.is-visible {
  display: flex;
}

.now-banner span {
  min-width: 0;
  flex: 1;
}

.now-banner strong {
  color: var(--gold);
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(36, 10, 66, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1rem;
  min-width: 0;
}

.toolbar-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
}

.filters {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
}

.chip {
  border: 0;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.chip[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.chip.mine[aria-pressed="true"] {
  background: var(--orange);
  color: var(--ink);
}

.search {
  min-width: 0;
  width: 100%;
  min-height: var(--tap);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.search::placeholder {
  color: var(--muted);
}

.export {
  min-height: var(--tap);
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--teal);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.export:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1rem 4rem;
  width: 100%;
  min-width: 0;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 5vw, 2.4rem);
  margin: 1.4rem 0 0.8rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.track-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.legend {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--ink);
}

.legend-main { background: var(--gold); }
.legend-security { background: var(--orange); }
.legend-breakout { background: var(--breakout); color: var(--white); }
.legend-break { background: var(--teal); }

.desktop-head {
  display: none;
}

.slot {
  display: grid;
  grid-template-columns: minmax(0, 3.6rem) minmax(0, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  align-items: stretch;
  scroll-margin-top: 9rem;
  min-width: 0;
}

.slot.is-now .slot-time {
  background: var(--gold);
  color: var(--ink);
}

.slot.is-next .slot-time {
  box-shadow: inset 0 0 0 2px var(--teal);
}

.slot-time {
  position: sticky;
  top: 8.5rem;
  align-self: start;
  background: var(--purple-mid);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  min-height: var(--tap);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  padding: 0.45rem 0.15rem;
  text-align: center;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.slot-time small {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.slot.is-now .slot-time small {
  color: var(--ink-soft);
}

.slot-grid {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.card-spacer {
  display: none;
}

.card {
  border: 0;
  width: 100%;
  max-width: 100%;
  text-align: left;
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem 0.9rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  min-height: var(--tap);
  min-width: 0;
  color: var(--ink);
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.card:hover {
  transform: translateY(-1px);
}

.card-main,
.card-ceremony {
  background: var(--gold);
}

.card-security {
  background: var(--orange);
}

.card-break,
.card-social {
  background: var(--teal);
}

.card-breakout {
  background: var(--breakout);
  color: var(--white);
}

.card.is-now {
  box-shadow: 0 0 0 3px var(--white), var(--shadow);
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-right: 2.6rem;
  min-width: 0;
}

.card-kicker span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
  padding-right: 2.6rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}

.speaker-chip {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  max-width: 100%;
  min-width: 0;
}

.speaker-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.speaker-chip .avatar {
  flex-shrink: 0;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--purple-mid);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.star {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.star[aria-pressed="true"] {
  color: var(--purple-deep);
  text-shadow: 0 0 0 currentColor;
}

.card-breakout .star[aria-pressed="true"] {
  color: var(--gold);
}

.empty {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--muted);
}

.dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  padding: 0;
  width: min(720px, calc(100% - 1.2rem));
  max-width: calc(100vw - 1.2rem);
  max-height: min(90dvh, 860px);
  height: fit-content;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.dialog::backdrop {
  background: rgba(20, 6, 36, 0.72);
}

.dialog-body {
  padding: 1.2rem 1.2rem 1.4rem;
  overflow: auto;
  max-height: min(90dvh, 860px);
  min-width: 0;
  overscroll-behavior: contain;
}

.dialog-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pill {
  background: var(--purple);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pill.gold { background: var(--gold); color: var(--ink); }
.pill.orange { background: var(--orange); color: var(--ink); }
.pill.teal { background: var(--teal); color: var(--ink); }
.pill.breakout { background: var(--breakout); color: var(--white); }

.dialog h2 {
  margin: 0 0 0.8rem;
  padding-right: 2.8rem;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  min-width: 0;
}

.btn {
  min-height: var(--tap);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--gold);
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.btn.secondary {
  background: var(--purple);
  color: var(--cream);
}

.person {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
  align-items: start;
  min-width: 0;
}

.person img,
.person .avatar.lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.avatar.lg {
  font-size: 1.2rem;
}

.person h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.person p {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.abstract,
.bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rooms {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.room {
  position: relative;
  background: #f4ebe0;
  border-radius: 16px;
  padding: 0.8rem 3rem 0.8rem 0.8rem;
  min-width: 0;
}

.room h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.close-x {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.notice-message {
  margin: 0 0 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice-dialog h2 {
  padding-right: 0;
}

@media (max-width: 560px) {
  .brand {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .brand > div {
    flex: 1 1 100%;
  }

  .mascot {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem 0.9rem 0.95rem;
  }

  .slot {
    grid-template-columns: minmax(0, 3rem) minmax(0, 1fr);
    gap: 0.45rem;
  }

  .slot-time {
    font-size: 0.78rem;
    padding: 0.35rem 0.1rem;
  }

  .person {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .person img,
  .person .avatar.lg {
    width: 56px;
    height: 56px;
  }

  .toolbar-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .export {
    justify-self: start;
  }
}

footer {
  padding: 1.5rem 1rem 2.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  min-width: 0;
}

footer a {
  font-weight: 800;
}

@media (min-width: 840px) {
  .app {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .hero {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.6rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .mascot {
    width: 180px;
    height: 200px;
    margin: 0.6rem auto 0;
  }

  .brand {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .toolbar {
    top: 0;
  }

  .toolbar-inner {
    display: flex;
    flex-wrap: wrap;
  }

  .filters {
    flex: 1 0 100%;
    overflow: visible;
    flex-wrap: wrap;
  }

  .slot {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .slot-time {
    top: 84px;
    min-height: 100%;
    font-size: 1rem;
  }

  .desktop-head {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    font-weight: 800;
    color: var(--gold);
    text-align: center;
  }

  .desktop-head.morning {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .afternoon .slot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .afternoon .col-main {
    grid-column: 1;
  }

  .afternoon .col-security {
    grid-column: 2;
  }

  .afternoon .col-breakout,
  .afternoon .card-breakout,
  .afternoon .span-all {
    grid-column: 1 / -1;
  }

  .morning .slot-grid.has-breakout {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 34%);
  }

  .morning .slot-grid.has-breakout .col-main {
    grid-column: 1;
  }

  .morning .slot-grid.has-breakout .col-breakout {
    grid-column: 2;
  }

  .span-all {
    grid-column: 1 / -1;
  }

  .card-spacer {
    display: block;
    min-height: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}
