/* ---------- Valores por defecto del tipo Slides ----------
   Bloque tomado de artifact-type/reference/viewer.md (el CSS con el que el
   propio tipo previsualiza un deck). deck.css se escribió contando con esto. */
* { margin: 0 }
body { font: 32px/1.2 sans-serif }
.deck > section { width: 1920px !important; height: 1080px !important; overflow: hidden !important; box-sizing: border-box !important; position: absolute; left: 0; top: 0; isolation: isolate }
section[hidden], aside, noscript { display: none !important }
h1 { font-size: 96px; font-weight: 600 }
h2 { font-size: 64px; font-weight: 600 }
h3 { font-size: 44px; font-weight: 600 }
p, li, h1, h2, h3, td, th { overflow-wrap: break-word; text-wrap: pretty }
x-shape, x-icon, x-embed { display: block }
/* viewer.md: los hijos absolutos que van antes del primer hijo en flujo pintan
   debajo del flujo (en Slides todo el flujo es una capa en el lugar de su primer hijo). */
.deck > section > svg:first-child { z-index: -1 }

/* ---------- Escenario: lienzo de 1920×1080 escalado con bandas ---------- */
html, body { height: 100%; overflow: hidden; }
body { background: #0d0f15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
.deck {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) scale(var(--s, 0.5));
  user-select: none; -webkit-user-select: none;
}
.is-loading .deck { visibility: hidden; }

/* Quien pide menos movimiento ve el estado final (la regla plana de cada figura). */
@media (prefers-reduced-motion: reduce) {
  .deck *, .deck *::before, .deck *::after { animation: none !important; transition: none !important; }
}

/* ---------- Controles (fuera del lienzo) ---------- */
.fs-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 10;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 0; background: rgba(13, 15, 21, 0.72); color: #f4f5f8;
  cursor: pointer; opacity: 0; transition: opacity 250ms;
}
.fs-btn:focus-visible { outline: 2px solid #f0621d; outline-offset: 2px; opacity: 1; }
.show-ui .fs-btn { opacity: 1; }
.no-fs .fs-btn { display: none; }

.rotate-hint {
  position: fixed; left: 16px; right: 16px; top: 16px; z-index: 11;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: #0d0f14; color: #f4f5f8;
  font: 500 15px/1.3 'Inter', Arial, sans-serif;
  border-left: 4px solid #f0621d;
}
.rotate-hint[hidden] { display: none; }
.rotate-hint button {
  flex: none; border: 0; border-radius: 0; padding: 8px 12px;
  background: #f0621d; color: #0d0f14; font: inherit; font-weight: 600; cursor: pointer;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
