:root {
  --font-display: 'Bebas Neue', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --color-primary: #E8580C;
  --color-primary-hover: #FF6A1E;
  --color-primary-active: #C44A0A;
  --color-bg: #1a1412;
  --color-surface: #231c18;
  --color-surface-2: #2c2420;
  --color-text: #f0e6dc;
  --color-text-muted: #a89585;
  --color-text-faint: #9a8878;  /* WCAG AA on #1a1412: 5.4:1 */
  --color-border: rgba(232, 88, 12, 0.24);
  --color-border-strong: rgba(232, 88, 12, 0.4);
  --color-shadow: rgba(0, 0, 0, 0.45);

  --radius-lg: 1.1rem;
  --radius-xl: 1.6rem;
  --radius-2xl: 2rem;

  --max-layout-width: 1800px;
  --safe-edge: clamp(0.75rem, 2vw, 1.8rem);
  --safe-left: max(var(--safe-edge), env(safe-area-inset-left));
  --safe-right: max(var(--safe-edge), env(safe-area-inset-right));
  --safe-top: max(var(--safe-edge), env(safe-area-inset-top));
  --safe-bottom: max(var(--safe-edge), env(safe-area-inset-bottom));
  --footer-stack-height: 0px;

  --heat-wave-duration: 28s;
  --heat-wave-max-height: clamp(14vh, 18vh, 24vh);
  --heat-wave-showtime-height: clamp(55vh, 75dvh, 95dvh);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at top, rgba(255, 106, 30, 0.12), transparent 32%),
    linear-gradient(180deg, #120d0b 0%, var(--color-bg) 40%, #120d0b 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - var(--footer-stack-height));
  display: grid;
  grid-template-rows: auto 1fr;
  transition: opacity 700ms ease, transform 700ms ease;
}

body.phase-showtime main {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

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

.brand-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.brand-logo--main {
  max-width: clamp(4.25rem, 7vw, 6rem);
  max-height: clamp(4.25rem, 7vw, 6rem);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

.brand-logo--two12 {
  max-width: clamp(10rem, 16vw, 15rem);
  max-height: clamp(2.8rem, 4.5vw, 3.5rem);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.2));
}

.header,
.meet-shell,
.showtime-screen__inner {
  width: min(100%, var(--max-layout-width));
  margin: 0 auto;
}

.header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  padding:
    calc(var(--safe-top) + 0.35rem)
    var(--safe-right)
    clamp(0.5rem, 0.8vw, 0.75rem)
    var(--safe-left);
}

.header-left,
.header-branding,
.header-two12 {
  display: flex;
  align-items: center;
}

.header-two12 {
  position: relative;
  padding: clamp(0.4rem, 0.7vw, 0.55rem) clamp(0.6rem, 1vw, 0.9rem);
}

.header-two12::before {
  content: '';
  position: absolute;
  inset: -25% -15%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.09) 0%, rgba(232, 88, 12, 0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: two12-pulse 6s ease-in-out infinite;
}

.brand-logo--two12 {
  position: relative;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 24px rgba(232, 88, 12, 0.2));
}

@keyframes two12-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.header-left {
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
  min-width: 0;
  flex-shrink: 0;
}

.header-branding {
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
  min-width: 0;
}

.header-brand-copy {
  min-width: 0;
}

.header-title,
.countdown-header,
.meet-block__title,
.qr-panel__heading,
.showtime-headline,
.showtime-kicker,
.support-label,
.ticker-content,
.schedule-row__time,
.countdown-label {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}

.header-title {
  font-size: clamp(2.1rem, 3.4vw, 3.5rem);
  line-height: 0.94;
  color: var(--color-primary);
}


.header-divider {
  width: 1px;
  height: clamp(2.2rem, 4vw, 3rem);
  background: linear-gradient(180deg, transparent, rgba(232, 88, 12, 0.45), transparent);
}

.header-center,
.header-right {
  min-width: 0;
}

.header-center {
  text-align: center;
}

.header-datetime {
  font-size: clamp(1.02rem, 1.35vw, 1.4rem);
  font-weight: 700;
  color: var(--color-text);
}

.header-location,
.header-date {
  font-size: clamp(0.82rem, 0.95vw, 1rem);
  color: var(--color-text-muted);
}

.header-location {
  margin-top: 0.24rem;
}

.header-right {
  text-align: right;
}

.header-time {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: 0.08em;
  color: var(--color-text);
  line-height: 0.95;
}

.ticker-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(232, 88, 12, 0.2);
  border-bottom: 1px solid rgba(232, 88, 12, 0.2);
  background: linear-gradient(90deg, rgba(232, 88, 12, 0.92), rgba(255, 106, 30, 0.95), rgba(232, 88, 12, 0.92));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.ticker-wrap--footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
}

.ticker-content {
  display: inline-block;
  min-width: 100%;
  padding: 0.75rem 0;
  white-space: nowrap;
  font-size: clamp(1.05rem, 1.6vw, 1.6rem);
  color: #fff5eb;
  animation: ticker-scroll 36s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1.25rem;
}

.ticker-sep {
  opacity: 0.45;
}

.meet-shell {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding:
    clamp(0.4rem, 0.7vw, 0.65rem)
    var(--safe-right)
    clamp(0.4rem, 0.7vw, 0.65rem)
    var(--safe-left);
}

.footer-stack {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: grid;
  gap: 0.35rem;
  padding: 0 0 var(--safe-bottom) 0;
  pointer-events: none;
}

.spotify-dock,
.ticker-wrap--footer {
  width: 100%;
  margin: 0;
  pointer-events: auto;
}

.ticker-wrap--footer {
  order: 1;
}

.spotify-dock {
  order: 2;
  display: grid;
  gap: 0.5rem;
  padding: 0;
  border-top: 1px solid rgba(232, 88, 12, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(20, 15, 12, 0.96), rgba(28, 22, 18, 0.94));
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.spotify-dock__inner {
  width: min(100%, var(--max-layout-width));
  margin: 0 auto;
  padding:
    clamp(0.55rem, 0.9vw, 0.75rem)
    var(--safe-right)
    clamp(0.55rem, 0.9vw, 0.75rem)
    var(--safe-left);
}

.spotify-dock__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr);
  gap: clamp(0.7rem, 0.9vw, 1rem);
  align-items: center;
}

.spotify-now-playing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.55rem, 0.8vw, 0.8rem);
  min-width: 0;
}

.spotify-art-shell {
  width: clamp(3rem, 3.2vw, 3.5rem);
  height: clamp(3rem, 3.2vw, 3.5rem);
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(232, 88, 12, 0.14);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.spotify-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotify-copy {
  min-width: 0;
}

.spotify-label {
  margin: 0;
  font-size: clamp(0.78rem, 0.88vw, 0.92rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.spotify-track-title {
  margin: 0.05rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff4ea;
  text-wrap: balance;
}

.spotify-track-meta {
  margin: 0.18rem 0 0;
  font-size: clamp(0.8rem, 0.82vw, 0.92rem);
  line-height: 1.45;
  color: var(--color-text-muted);
  text-wrap: balance;
}

.spotify-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin-top: 0.45rem;
}

.spotify-status {
  font-size: clamp(0.76rem, 0.8vw, 0.88rem);
  font-weight: 700;
  color: #ffe0c9;
}

.spotify-hint,
.spotify-control-note {
  font-size: clamp(0.76rem, 0.8vw, 0.88rem);
  color: var(--color-text-faint);
  text-wrap: balance;
}

.spotify-actions {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.spotify-preset-rail,
.spotify-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.spotify-preset,
.spotify-button {
  appearance: none;
  border: 1px solid rgba(232, 88, 12, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff2e7;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.82vw, 0.88rem);
  font-weight: 700;
  line-height: 1;
  padding: 0.52rem 0.78rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.spotify-preset:hover,
.spotify-button:hover,
.spotify-preset:focus-visible,
.spotify-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 153, 94, 0.5);
  background: rgba(232, 88, 12, 0.12);
  outline: none;
}

.spotify-preset.is-active,
.spotify-button--primary {
  background: linear-gradient(135deg, rgba(255, 115, 41, 0.92), rgba(232, 88, 12, 0.96));
  border-color: transparent;
  color: #fff9f3;
}

.spotify-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.spotify-embed-shell {
  overflow: hidden;
  width: min(100%, var(--max-layout-width));
  margin: 0 auto;
  border-radius: 0 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  background: rgba(12, 10, 9, 0.82);
  min-height: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  margin-top: 0;
  transition: max-height 220ms ease, opacity 180ms ease, margin-top 180ms ease, visibility 180ms ease;
}

.spotify-embed {
  display: block;
  width: min(100%, var(--max-layout-width));
  min-height: 232px;
  border: 0;
}

.spotify-dock.is-expanded {
  gap: 0.7rem;
}

.spotify-dock:not(.is-expanded) .spotify-track-meta,
.spotify-dock:not(.is-expanded) .spotify-hint,
.spotify-dock:not(.is-expanded) .spotify-control-note {
  display: none;
}

.spotify-dock.is-expanded .spotify-embed-shell {
  max-height: 280px;
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.lobby {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.25fr) minmax(300px, 0.9fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
  align-items: stretch;
  width: min(100%, var(--max-layout-width, 1800px));
  flex: 1 1 0;
  min-height: 0;
  margin: 0 auto;
}

.meet-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(1.1rem, 2vw, 2rem);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(35, 28, 24, 0.96), rgba(26, 20, 18, 0.97));
  box-shadow: 0 26px 60px var(--color-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.meet-panel--info {
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 0.75vw, 0.7rem);
}

.meet-panel--countdown {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meet-panel--qr {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.meet-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.3rem, 0.55vw, 0.5rem);
  min-width: 0;
  min-height: 0;
  flex: 1 1 0;
  padding: clamp(0.6rem, 1vw, 0.9rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(232, 88, 12, 0.18);
  background: linear-gradient(180deg, rgba(48, 39, 34, 0.74), rgba(34, 28, 24, 0.82));
  overflow: hidden;
}

.meet-block--speaker {
  flex: 1.5 1 0;
}

.meet-block--venue {
  flex: 0.85 1 0;
}

.meet-block--schedule {
  flex: 1 1 0;
}

.meet-block--venue {
  text-align: center;
  align-items: center;
}

.meet-block--schedule {
  text-align: center;
  align-items: center;
}

.meet-block--schedule .schedule-list {
  text-align: left;
  justify-self: center;
  width: auto;
}

.meet-block--speaker {
  text-align: center;
  align-items: center;
}

.meet-block__eyebrow,
.qr-panel__eyebrow,
.countdown-kicker,
.showtime-kicker,
.card-sync-pill {
  margin: 0;
  font-size: clamp(0.78rem, 0.95vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.meet-block__title {
  margin: 0;
  font-size: clamp(1.4rem, 1.9vw, 2rem);
  line-height: 0.95;
}

.meet-block__body,
.qr-panel__copy,
.qr-panel__note,
.countdown-context,
.showtime-sub,
.showtime-meta,
.schedule-row__label,
.meet-events__list,
.meet-inline-list {
  margin: 0;
  font-size: clamp(0.88rem, 0.95vw, 1.05rem);
  line-height: 1.45;
  color: var(--color-text-muted);
  text-wrap: balance;
}

.speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 0.9vw, 0.85rem);
  min-width: 0;
  width: 100%;
}

.speaker-card__photo,
.speaker-card__fallback {
  width: clamp(5.5rem, 8.5vw, 9rem);
  height: clamp(5.5rem, 8.5vw, 9rem);
  border-radius: 50%;
  flex: 0 0 auto;
}

.speaker-card__photo {
  object-fit: cover;
  border: 2px solid rgba(232, 88, 12, 0.38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.speaker-card__fallback {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(232, 88, 12, 0.16);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  letter-spacing: 0.05em;
}

.speaker-card__content {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.speaker-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--color-text);
}

.speaker-card__company {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  color: var(--color-primary-hover);
  letter-spacing: 0.03em;
  font-weight: 600;
}

.mentor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 88, 12, 0.14), rgba(232, 88, 12, 0.05));
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 0.78vw, 0.82rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
  box-shadow: 0 0 12px rgba(232, 88, 12, 0.12);
}

.mentor-pill[hidden] {
  display: none;
}

.mentor-pill__glyph {
  font-size: 0.95em;
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(232, 88, 12, 0.5);
}

.mentor-pill__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.mentor-pill__name {
  font-weight: 700;
  color: var(--color-primary-hover);
}

.meet-inline-list {
  padding-left: 0;
  list-style: none;
  text-align: center;
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  line-height: 1.35;
}

.meet-events__list {
  padding-left: 0;
  list-style: none;
}

.meet-inline-list li {
  margin-bottom: 0.18rem;
}

.meet-events__list li {
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  line-height: 1.4;
}

.schedule-list {
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(6.6rem, auto) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.schedule-row__time {
  font-size: clamp(0.9rem, 1vw, 1rem);
  color: var(--color-primary-hover);
}

.card-sync-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 88, 12, 0.2);
  background: rgba(232, 88, 12, 0.09);
  width: fit-content;
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
}

.meet-events {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.meet-events__list {
  margin: 0;
  text-align: left;
}

.meet-events__list strong {
  color: var(--color-text);
}

.meet-events__empty {
  list-style: none;
}

.countdown-intro {
  display: grid;
  gap: 0.7rem;
  text-align: center;
  width: 100%;
}

.countdown-header {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4.5rem);
  line-height: 0.92;
  color: var(--color-primary);
}

.countdown-target {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--color-text);
  font-weight: 600;
}

.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1.2rem);
  margin: clamp(1rem, 2vw, 1.6rem) 0;
  width: 100%;
}

.countdown-unit {
  min-width: 0;
  text-align: center;
}

.countdown-value {
  padding: clamp(0.7rem, 1.4vw, 1.1rem) clamp(0.45rem, 1vw, 0.7rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(232, 88, 12, 0.2);
  background: rgba(17, 13, 11, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.32);
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
  color: #fff4ea;
}

.countdown-value--compact {
  font-size: clamp(3.8rem, 7vw, 6rem);
}

.countdown-value--ultra-compact {
  font-size: clamp(3rem, 5.8vw, 4.6rem);
}

.countdown-label {
  margin-top: 0.6rem;
  font-size: clamp(0.9rem, 1vw, 1rem);
  color: var(--color-text-faint);
}

.countdown-context {
  text-align: center;
}

.status-banner {
  margin: 1.1rem auto 0;
  padding: 0.75rem 1rem;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(232, 88, 12, 0.22);
  background: rgba(232, 88, 12, 0.08);
  text-align: center;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 600;
  color: #ffd8bc;
}

.countdown-support-grid,
.showtime-grid {
  display: grid;
  gap: clamp(0.7rem, 1.2vw, 1rem);
}

.countdown-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.1rem, 1.8vw, 1.6rem);
  width: 100%;
}

.countdown-support-grid[hidden] {
  display: none;
}

.countdown-support-card,
.showtime-copy-card,
.showtime-qr-card {
  min-width: 0;
  padding: clamp(0.85rem, 1.1vw, 1.1rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(232, 88, 12, 0.18);
  background: rgba(17, 13, 11, 0.62);
  text-align: center;
}

.support-label {
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  color: var(--color-primary);
}

.support-value {
  margin-top: 0.35rem;
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  font-weight: 700;
  color: var(--color-text);
  text-wrap: balance;
}

.meet-panel--qr {
  gap: clamp(0.55rem, 0.85vw, 0.85rem);
  text-align: center;
  align-items: center;
}

.qr-panel__heading {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.75rem);
  line-height: 0.92;
}

.qr-panel__copy,
.showtime-qr-card__cta {
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  color: var(--color-text);
}

.qr-panel__link,
.showtime-qr-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.qr-panel__img,
.showtime-qr-card__img {
  width: clamp(200px, 15vw, 280px);
  min-width: 140px;
  min-height: 0;
  height: auto;
}

.qr-panel__context {
  margin: 0;
  font-size: clamp(0.88rem, 0.95vw, 1rem);
  color: var(--color-text-muted);
  text-wrap: balance;
  max-width: 26ch;
}

.qr-panel__easy-line {
  margin: 0;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 700;
  color: #ffd8bc;
  text-wrap: balance;
}

.qr-panel__footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}

.qr-panel__note {
  margin: 0;
  max-width: 28ch;
}

.showtime-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms ease, visibility 700ms ease;
}

body.phase-showtime .showtime-screen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.showtime-screen__inner {
  padding:
    calc(var(--safe-top) + 1rem)
    var(--safe-right)
    calc(var(--footer-stack-height) + var(--safe-bottom) + 1rem)
    var(--safe-left);
}

.showtime-panel {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: clamp(1.2rem, 2.3vw, 2.2rem);
  border-radius: clamp(1.4rem, 2.4vw, 2.25rem);
  border: 1px solid rgba(255, 228, 205, 0.18);
  background: rgba(20, 15, 12, 0.9);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.showtime-kicker {
  margin: 0;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
}

.showtime-headline {
  margin: 0.45rem 0 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.94;
  color: #fff4ea;
}

.showtime-sub {
  margin-top: 0.85rem;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.15;
  color: #ffe0c9;
  max-width: 20ch;
}

.showtime-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  margin-top: clamp(1rem, 2vw, 1.8rem);
  align-items: stretch;
}

.showtime-copy-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.showtime-meta {
  color: #f4e7da;
}

.showtime-qr-card {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  text-align: center;
}

.noise-overlay,
.heat-bg,
.heat-orb,
.heat-glow,
.heat-distortion,
.heat-waves,
#embers-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise-overlay {
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.heat-bg,
.heat-orb,
.heat-glow,
.heat-distortion,
.heat-waves,
#embers-container {
  z-index: 1;
}

.heat-bg {
  overflow: hidden;
}

.heat-line {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 139, 74, 0.12), transparent);
  animation: heat-line-drift 18s linear infinite;
}

.heat-line:nth-child(1) { top: 18%; animation-delay: -2s; }
.heat-line:nth-child(2) { top: 30%; animation-delay: -6s; }
.heat-line:nth-child(3) { top: 44%; animation-delay: -9s; }
.heat-line:nth-child(4) { top: 58%; animation-delay: -12s; }
.heat-line:nth-child(5) { top: 72%; animation-delay: -15s; }

.heat-orb {
  top: 42%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(78vw, 980px);
  height: min(78vw, 980px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 88, 12, 0.18) 0%, rgba(255, 106, 30, 0.08) 34%, transparent 70%);
  mix-blend-mode: screen;
  animation: orb-pulse 10s ease-in-out infinite;
}

.heat-glow,
.heat-distortion,
.heat-waves {
  top: auto;
  bottom: var(--footer-stack-height);
  height: var(--heat-wave-max-height);
  max-height: var(--heat-wave-max-height);
  transition: height 900ms ease, max-height 900ms ease, opacity 700ms ease, filter 700ms ease;
}

.heat-glow {
  background: radial-gradient(ellipse 140% 90% at 50% 100%, rgba(232, 88, 12, 0.22) 0%, rgba(255, 106, 30, 0.1) 42%, transparent 82%);
  opacity: 0.9;
}

.heat-distortion {
  filter: url(#heat-distort);
  backdrop-filter: blur(1.25px);
  -webkit-backdrop-filter: blur(1.25px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 42%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 42%, transparent 100%);
  opacity: 0.65;
}

.heat-waves {
  overflow: hidden;
  opacity: 0.76;
}

.hw-wave,
.hw-shimmer {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6%;
}

.hw-wave {
  border-radius: 48% 52% 0 0 / 60% 60% 0 0;
  background: linear-gradient(180deg, rgba(255, 177, 115, 0.18), rgba(232, 88, 12, 0.28));
  filter: blur(28px);
  animation-duration: var(--heat-wave-duration);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.hw-wave--one {
  height: 48%;
  animation-name: wave-drift-one;
}

.hw-wave--two {
  height: 60%;
  opacity: 0.6;
  animation-name: wave-drift-two;
  animation-delay: -9s;
}

.hw-wave--three {
  height: 72%;
  opacity: 0.38;
  animation-name: wave-drift-three;
  animation-delay: -15s;
}

.hw-shimmer {
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(255, 222, 189, 0.12));
  filter: blur(20px);
  animation: shimmer-drift calc(var(--heat-wave-duration) * 1.15) ease-in-out infinite;
}

body.phase-showtime .heat-glow,
body.phase-showtime .heat-distortion,
body.phase-showtime .heat-waves {
  height: var(--heat-wave-showtime-height);
  max-height: var(--heat-wave-showtime-height);
}

body.phase-showtime .heat-glow {
  background: radial-gradient(ellipse 150% 100% at 50% 100%, rgba(232, 88, 12, 0.32) 0%, rgba(255, 106, 30, 0.16) 45%, transparent 88%);
  opacity: 1;
}

body.phase-showtime .heat-distortion {
  opacity: 0.84;
}

body.phase-showtime .heat-waves {
  opacity: 0.95;
  filter: saturate(1.08);
}

#embers-container {
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 190, 120, 0.95) 0%, rgba(255, 112, 42, 0.7) 45%, transparent 75%);
  animation: ember-float linear forwards;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes heat-line-drift {
  0% { transform: translateX(0); opacity: 0.12; }
  50% { transform: translateX(4%); opacity: 0.18; }
  100% { transform: translateX(0); opacity: 0.12; }
}

@keyframes orb-pulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes wave-drift-one {
  0%, 100% { transform: translateX(0) translateY(0) scaleX(1); }
  50% { transform: translateX(2%) translateY(-0.35rem) scaleX(1.03); }
}

@keyframes wave-drift-two {
  0%, 100% { transform: translateX(0) translateY(0) scaleX(1); }
  50% { transform: translateX(-2%) translateY(-0.5rem) scaleX(1.04); }
}

@keyframes wave-drift-three {
  0%, 100% { transform: translateX(0) translateY(0) scaleX(1); }
  50% { transform: translateX(1.4%) translateY(-0.65rem) scaleX(1.05); }
}

@keyframes shimmer-drift {
  0%, 100% { transform: translateX(0); opacity: 0.25; }
  50% { transform: translateX(3%); opacity: 0.4; }
}

@keyframes ember-float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(var(--ember-x, 0), calc(-1 * var(--ember-rise, 22vh)), 0) scale(1.1);
    opacity: 0;
  }
}

/* ── Laptop: viewport height ≤ 960px (MacBook + browser chrome) ── */
@media (max-height: 960px) {
  .header {
    padding-top: calc(var(--safe-top) + 0.25rem);
    padding-bottom: 0.5rem;
  }

  .header-title {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  }

  .header-time {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  }

  .brand-logo--main {
    max-width: clamp(3rem, 5vw, 4rem);
    max-height: clamp(3rem, 5vw, 4rem);
  }

  .brand-logo--two12 {
    max-width: clamp(7rem, 11vw, 9rem);
    max-height: clamp(1.8rem, 3vw, 2.2rem);
  }

  .lobby {
    gap: clamp(0.6rem, 1.2vw, 1rem);
  }

  .meet-panel {
    padding: clamp(0.6rem, 1vw, 0.85rem);
  }

  .meet-panel--info {
    gap: clamp(0.4rem, 0.7vw, 0.6rem);
  }

  .meet-block {
    gap: clamp(0.25rem, 0.5vw, 0.4rem);
    padding: clamp(0.5rem, 0.8vw, 0.7rem);
  }

  .meet-block__eyebrow,
  .qr-panel__eyebrow,
  .countdown-kicker {
    font-size: clamp(0.65rem, 0.75vw, 0.8rem);
  }

  .meet-block__title,
  .qr-panel__heading {
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  }

  .meet-block__body,
  .schedule-row__label,
  .meet-inline-list,
  .meet-events__list,
  .qr-panel__note,
  .countdown-context {
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    line-height: 1.4;
  }

  .speaker-card__photo,
  .speaker-card__fallback {
    width: clamp(3rem, 4.5vw, 3.8rem);
    height: clamp(3rem, 4.5vw, 3.8rem);
  }

  .speaker-card__name {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  }

  .speaker-card__company {
    font-size: clamp(0.78rem, 0.85vw, 0.88rem);
    margin-bottom: 0.2rem;
  }

  .schedule-row {
    gap: 0.4rem;
  }

  .schedule-row__time {
    font-size: clamp(0.78rem, 0.85vw, 0.88rem);
  }

  .countdown-header {
    font-size: clamp(1.6rem, 3vw, 2.8rem);
  }

  .countdown-target {
    font-size: clamp(0.82rem, 0.95vw, 0.95rem);
  }

  .countdown-display {
    gap: clamp(0.4rem, 0.8vw, 0.7rem);
    margin: clamp(0.5rem, 1vw, 0.8rem) 0;
  }

  .countdown-value {
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    padding: clamp(0.4rem, 0.8vw, 0.65rem) clamp(0.3rem, 0.6vw, 0.5rem);
  }

  .countdown-label {
    margin-top: 0.3rem;
    font-size: clamp(0.72rem, 0.8vw, 0.85rem);
  }

  .status-banner {
    margin-top: 0.5rem;
    padding: 0.45rem 0.75rem;
    font-size: clamp(0.78rem, 0.85vw, 0.88rem);
  }

  .countdown-support-grid {
    margin-top: 0.6rem;
    gap: clamp(0.4rem, 0.7vw, 0.6rem);
  }

  .countdown-support-card {
    padding: clamp(0.45rem, 0.7vw, 0.65rem);
  }

  .support-label {
    font-size: clamp(0.65rem, 0.75vw, 0.78rem);
  }

  .support-value {
    font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  }

  .meet-panel--qr {
    gap: clamp(0.4rem, 0.7vw, 0.6rem);
  }

  .qr-panel__img,
  .showtime-qr-card__img {
    width: clamp(180px, 14vw, 240px);
    min-width: 160px;
    min-height: 160px;
  }

  .qr-panel__easy-line {
    font-size: clamp(0.78rem, 0.85vw, 0.88rem);
  }

  .countdown-intro {
    gap: 0.35rem;
  }

  .meet-events {
    display: none;
  }

  .meet-inline-list {
    display: none;
  }

  .spotify-track-meta,
  .spotify-hint,
  .spotify-control-note {
    display: none;
  }

  .spotify-meta-row {
    margin-top: 0.3rem;
  }

  .ticker-content {
    padding: 0.45rem 0;
    font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  }
}

@media (max-width: 1280px) {
  .spotify-dock__top {
    grid-template-columns: 1fr;
  }

  .lobby {
    grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.1fr);
  }

  .meet-panel--qr {
    grid-column: 1 / -1;
  }

  .countdown-support-grid,
  .showtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right,
  .header-center {
    text-align: left;
  }

  .lobby {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .spotify-now-playing {
    grid-template-columns: 1fr;
  }


  .countdown-display {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-support-grid,
  .showtime-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .spotify-dock {
    padding: 0;
  }

  .spotify-meta-row {
    flex-direction: column;
  }

  .spotify-embed {
    min-height: 132px;
  }

  .header-left {
    flex-wrap: wrap;
  }

  .header-divider {
    display: none;
  }

  .speaker-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .speaker-card__photo,
  .speaker-card__fallback {
    width: 4.8rem;
    height: 4.8rem;
  }

  .countdown-value {
    font-size: clamp(4rem, 18vw, 5.8rem);
  }

  .qr-panel__img,
  .showtime-qr-card__img {
    width: min(82vw, 320px);
    min-width: min(82vw, 280px);
    min-height: min(82vw, 280px);
  }
}

@media (min-width: 1920px) {
  :root {
    --max-layout-width: 1920px;
  }

  .spotify-dock {
    padding: 0;
  }

  .spotify-track-title {
    font-size: clamp(1.2rem, 1.2vw, 1.65rem);
  }

  .spotify-track-meta,
  .spotify-hint,
  .spotify-control-note,
  .spotify-status {
    font-size: clamp(0.78rem, 0.78vw, 0.94rem);
  }

  .spotify-preset,
  .spotify-button {
    font-size: clamp(0.78rem, 0.76vw, 0.92rem);
    padding: 0.58rem 0.82rem;
  }

  .spotify-dock.is-expanded .spotify-embed-shell {
    max-height: 188px;
  }

  .meet-panel {
    padding: clamp(1.15rem, 1.5vw, 1.95rem);
  }

  .meet-block__title,
  .qr-panel__heading {
    font-size: clamp(1.95rem, 2.4vw, 3rem);
  }

  .meet-block__body,
  .schedule-row__label,
  .qr-panel__copy,
  .qr-panel__note,
  .countdown-context,
  .showtime-meta {
    font-size: clamp(1rem, 1.02vw, 1.22rem);
  }

  .countdown-header {
    font-size: clamp(2.8rem, 3.6vw, 4.4rem);
  }

  .countdown-value {
    font-size: clamp(5rem, 6.4vw, 7.6rem);
  }

  .support-value {
    font-size: clamp(1.08rem, 1.08vw, 1.28rem);
  }

  .qr-panel__img,
  .showtime-qr-card__img {
    width: clamp(340px, 22vw, 440px);
    min-width: 340px;
    min-height: 340px;
  }

  .speaker-card__photo,
  .speaker-card__fallback {
    width: clamp(6.5rem, 7.5vw, 8.5rem);
    height: clamp(6.5rem, 7.5vw, 8.5rem);
  }

  .speaker-card__name {
    font-size: clamp(1.9rem, 2vw, 2.4rem);
  }

  .speaker-card__company {
    font-size: clamp(1.05rem, 1.1vw, 1.25rem);
  }
}

@media (min-width: 3400px) {
  :root {
    --max-layout-width: 3440px;
  }

  body {
    font-size: 1.18rem;
  }

  .header {
    padding-bottom: 1.4rem;
  }

  .header-title {
    font-size: clamp(3rem, 3.4vw, 4.8rem);
  }

  .header-subtitle,
  .header-date,
  .header-location {
    font-size: clamp(0.95rem, 0.95vw, 1.14rem);
  }

  .header-datetime {
    font-size: clamp(1.35rem, 1.25vw, 1.7rem);
  }

  .header-time {
    font-size: clamp(3rem, 3.8vw, 4.8rem);
  }

  .ticker-content {
    font-size: clamp(1.35rem, 1.45vw, 2rem);
  }

  .spotify-dock {
    padding: 0;
  }

  .spotify-track-title {
    font-size: clamp(1.55rem, 1.25vw, 2rem);
  }

  .spotify-track-meta,
  .spotify-hint,
  .spotify-control-note,
  .spotify-status {
    font-size: clamp(0.88rem, 0.76vw, 1rem);
  }

  .spotify-preset,
  .spotify-button {
    font-size: clamp(0.88rem, 0.72vw, 0.98rem);
    padding: 0.65rem 0.95rem;
  }

  .spotify-dock.is-expanded .spotify-embed-shell {
    max-height: 216px;
  }

  .lobby {
    gap: clamp(1.2rem, 1.5vw, 2rem);
  }

  .meet-panel {
    padding: clamp(1.45rem, 1.7vw, 2.4rem);
  }


  .meet-block {
    padding: clamp(1rem, 1.15vw, 1.35rem);
  }

  .meet-block__eyebrow,
  .qr-panel__eyebrow,
  .countdown-kicker,
  .showtime-kicker,
  .card-sync-pill {
    font-size: clamp(0.9rem, 0.9vw, 1.08rem);
  }

  .meet-block__title,
  .qr-panel__heading {
    font-size: clamp(2.5rem, 2.45vw, 3.7rem);
  }

  .meet-block__body,
  .schedule-row__label,
  .qr-panel__copy,
  .qr-panel__note,
  .countdown-context,
  .showtime-meta {
    font-size: clamp(1.18rem, 1.05vw, 1.38rem);
    line-height: 1.48;
  }

  .speaker-card__photo,
  .speaker-card__fallback {
    width: clamp(6rem, 5.8vw, 7.5rem);
    height: clamp(6rem, 5.8vw, 7.5rem);
  }

  .speaker-card__name {
    font-size: clamp(1.6rem, 1.35vw, 2rem);
  }

  .speaker-card__company {
    font-size: clamp(1.02rem, 0.94vw, 1.18rem);
  }

  .schedule-row__time {
    font-size: clamp(1.05rem, 0.96vw, 1.18rem);
  }

  .countdown-header {
    font-size: clamp(4rem, 4.8vw, 6.25rem);
  }

  .countdown-target {
    font-size: clamp(1.18rem, 1vw, 1.38rem);
  }

  .countdown-value {
    font-size: clamp(8rem, 8.6vw, 11.5rem);
  }

  .countdown-label {
    font-size: clamp(1.08rem, 0.95vw, 1.22rem);
  }

  .status-banner {
    width: min(100%, 44rem);
    font-size: clamp(1.08rem, 0.95vw, 1.26rem);
  }

  .support-label {
    font-size: clamp(0.9rem, 0.86vw, 1.08rem);
  }

  .support-value {
    font-size: clamp(1.25rem, 1.05vw, 1.55rem);
  }

  .qr-panel__img,
  .showtime-qr-card__img {
    width: clamp(400px, 15vw, 520px);
    min-width: 400px;
    min-height: 400px;
  }

  .qr-panel__easy-line {
    font-size: clamp(1.08rem, 0.92vw, 1.24rem);
  }

  .showtime-panel {
    width: min(100%, 2280px);
    padding: clamp(2.2rem, 2.3vw, 3.4rem);
  }

  .showtime-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(420px, 0.95fr);
    gap: clamp(1.2rem, 1.3vw, 1.8rem);
  }

  .showtime-copy-card,
  .showtime-qr-card {
    padding: clamp(1.2rem, 1.2vw, 1.7rem);
  }

  .showtime-headline {
    font-size: clamp(5.2rem, 5.7vw, 8rem);
  }

  .showtime-sub {
    font-size: clamp(2.2rem, 2.7vw, 3.8rem);
    max-width: 24ch;
  }
}

/* ── 16:9 widescreen kiosk (typical TV / external display) ── */
@media (min-aspect-ratio: 16/10) and (min-width: 1280px) {
  .header {
    padding-top: calc(var(--safe-top) + 0.25rem);
    padding-bottom: 0.4rem;
  }

  .meet-shell {
    padding-top: clamp(0.3rem, 0.5vw, 0.5rem);
    padding-bottom: clamp(0.3rem, 0.5vw, 0.5rem);
  }

  .lobby {
    grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.4fr) minmax(320px, 0.9fr);
    gap: clamp(0.7rem, 1.2vw, 1.3rem);
  }

  .countdown-header {
    font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  }

  .countdown-value {
    font-size: clamp(4.8rem, 7.2vw, 8.4rem);
    padding: clamp(0.6rem, 1.2vw, 1rem) clamp(0.4rem, 0.8vw, 0.6rem);
  }

  .countdown-display {
    margin: clamp(1.2rem, 2.5vw, 2rem) 0;
  }

  .meet-panel--countdown {
    justify-content: center;
    gap: clamp(0.8rem, 1.4vw, 1.3rem);
  }

  .qr-panel__img,
  .showtime-qr-card__img {
    width: clamp(300px, 22vw, 420px);
  }

  .qr-panel__heading {
    font-size: clamp(2rem, 3vw, 3.25rem);
  }

  .status-banner {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-content,
  .heat-line,
  .heat-orb,
  .hw-wave,
  .hw-shimmer,
  .ember {
    animation: none !important;
  }

  main,
  .showtime-screen,
  .heat-glow,
  .heat-distortion,
  .heat-waves {
    transition: none !important;
  }
}
