:root {
  --crust:    #11111b;
  --mantle:   #181825;
  --base:     #1e1e2e;
  --surface0: #313244;
  --surface1: #45475a;
  --overlay0: #6c7086;
  --subtext0: #a6adc8;
  --text:     #cdd6f4;
  --green:    #a6e3a1;
  --blue:     #89b4fa;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--base);
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}

/* ── Slideshow container ── */
.slideshow {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* ── Individual slide ── */
.slide {
  position: absolute;
  inset: 0;
  display: none;
  background: var(--base);
}

.slide.active {
  display: block;
}

/* ── Line number gutter (left edge) ── */
.slide-gutter {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 28px;
  width: 48px;
  background: var(--mantle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  gap: 10px;
  font-size: 12px;
  color: var(--surface1);
  user-select: none;
}

/* ── Status bar (bottom) ── */
.slide-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--blue);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mantle);
  gap: 12px;
}

.slide-status-right {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

/* ── Content area (offset for gutter + status bar) ── */
.slide-content {
  position: absolute;
  left: 48px;
  top: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── IDE-style section comment (top-left of content area) ── */
.ide-comment {
  position: absolute;
  top: 28px;
  left: 28px;
  font-size: clamp(12px, 1.4vw, 18px);
  color: var(--green);
  opacity: 0.85;
}

/* ── QR block (bottom-right of content area) ── */
.qr-block {
  position: absolute;
  bottom: 32px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-block img {
  width: clamp(80px, 9vw, 120px);
  height: clamp(80px, 9vw, 120px);
  background: white;
  border-radius: 4px;
  display: block;
}

.qr-label {
  font-size: clamp(9px, 0.9vw, 12px);
  color: var(--overlay0);
  text-align: center;
  line-height: 1.4;
}

/* ── Slide 1: Opener ── */
.opener-title {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.opener-title .accent {
  color: var(--blue);
}

.opener-subtitle {
  font-size: clamp(14px, 1.8vw, 24px);
  color: var(--subtext0);
  margin-top: 20px;
  text-align: center;
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── Slide 2: Sponsors ── */
.sponsor-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.sponsor-logo {
  max-width: 320px;
  max-height: clamp(60px, 8vw, 100px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sponsor-logo-fallback {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  color: var(--blue);
  display: none;
}

.sponsor-divider {
  width: 80px;
  height: 1px;
  background: var(--surface1);
}

.sponsor-tagline {
  font-size: clamp(11px, 1.3vw, 17px);
  color: var(--subtext0);
  max-width: 480px;
}

/* ── Slide 3: Organizers ── */
.team-grid {
  display: flex;
  gap: clamp(32px, 6vw, 96px);
  align-items: flex-start;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.person-photo {
  width: clamp(80px, 10vw, 140px);
  height: clamp(80px, 10vw, 140px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue);
}

.person-name {
  font-size: clamp(14px, 1.8vw, 24px);
  font-weight: 700;
}

.person-role {
  font-size: clamp(10px, 1.1vw, 14px);
  color: var(--subtext0);
}

.person-qr {
  width: clamp(64px, 7vw, 96px);
  height: clamp(64px, 7vw, 96px);
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

.person-qr img {
  width: 100%;
  height: 100%;
  display: block;
}

.person-qr-label {
  font-size: clamp(8px, 0.8vw, 10px);
  color: var(--overlay0);
}
