:root {
  color-scheme: light;
  --paper: #f1f2ed;
  --ink: #233a30;
  --muted: #637066;
  --green: #496d5b;
  --gold: #d3a66a;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.viewer {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--paper);
}
.presentation { width: min(1600px, calc(100vw - 48px), calc((100svh - 116px) * 16 / 9)); }
.stage { aspect-ratio: 16 / 9; position: relative; background: #f9f8f4; overflow: hidden; box-shadow: 0 2px 20px #233a3010; }
#slide-image { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.video-frame { position: absolute; overflow: hidden; background: #f9f8f4; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.play-demo {
  position: absolute; inset: 0; border: 0;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: #182b222b; color: white;
  text-shadow: 0 1px 3px #0009;
  font-size: clamp(11px, 1.1vw, 16px); font-weight: 600;
}
.play-demo svg { width: 24px; height: auto; padding: 20px; background: var(--ink); border: 1px solid #ffffff80; border-radius: 50%; box-sizing: content-box; box-shadow: 0 2px 12px #0003; }
.play-demo:hover { background: #182b2240; }
.play-demo:hover svg { background: #355745; }
.toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 68px; }
.deck-label { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; }
.deck-label span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.navigation { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 50%; background: transparent; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover:not(:disabled), .slide-picker:hover { background: #e3e7de; }
.icon-button:disabled { opacity: .28; cursor: default; }
.fullscreen { justify-self: end; }
.slide-picker { border-radius: 6px; }
.slide-picker select { width: 76px; height: 44px; padding: 0 8px; border: 0; background: transparent; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.play-demo:focus-visible { outline-offset: -5px; outline-color: var(--gold); }
.message { font-size: 14px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.viewer:fullscreen { overflow-y: auto; padding: 16px; }
.viewer:fullscreen .presentation { width: min(calc(100vw - 32px), calc((100svh - 100px) * 16 / 9)); }
@media (max-width: 640px) {
  .viewer { padding: 12px; }
  .presentation { width: min(calc(100vw - 24px), calc((100svh - 86px) * 16 / 9)); }
  .toolbar { grid-template-columns: 1fr auto; gap: 4px; min-height: 62px; }
  .deck-label { display: none; }
  .navigation { justify-self: start; gap: 4px; }
  .play-demo { gap: 5px; }
  .play-demo svg { width: 16px; padding: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .15s ease; }
}
