:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --fg: #f5f5f5;
  --muted: #9aa0a6;
  --accent: #f7931a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  overflow: hidden;
}

.deck {
  position: fixed;
  inset: 0;
  display: block;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 4vmin 6vmin;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  margin: 0 0 0.5em;
  line-height: 1.1;
}

.slide h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin: 0 0 0.75em;
  line-height: 1.15;
  color: var(--accent);
}

.slide p,
.slide li {
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  margin: 0 0 0.5em;
}

.slide ul, .slide ol {
  padding-left: 1.2em;
  margin: 0;
}

.slide li + li { margin-top: 0.4em; }

.slide.title {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.title h1 {
  color: var(--accent);
  margin-bottom: 0.25em;
}

.slide.title .subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.slide.image-slide {
  padding: 2vmin;
  align-items: center;
  justify-content: center;
}

.slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.slide figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.slide figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  text-align: center;
}

.slide-counter {
  position: fixed;
  right: 1rem;
  bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  user-select: none;
  pointer-events: none;
  z-index: 10;
}

.home-link {
  position: fixed;
  left: 1rem;
  bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  z-index: 10;
}

.home-link:hover { color: var(--accent); }

kbd {
  background: #23272e;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
}

.qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.qr-overlay.visible { display: flex; }
.qr-box {
  background: #15181d;
  border: 2px solid #f7931a;
  border-radius: 14px;
  padding: 24px 28px;
  text-align: center;
}
.qr-label {
  color: #f7931a;
  font-family: sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
