/*
 * css/style.css
 * Interfaz de los simuladores: "Cuaderno de laboratorio".
 * Escenario (lienzo + lectura de datos) a la izquierda y, a la derecha, la hoja de
 * cuaderno con las cuatro fases de Pólya. Los tokens viven en tokens.css.
 *
 * Nota de migración: Cinemática ya usa la plantilla nueva (.stage-head, .canvas-wrap,
 * .readout). Los otros cinco simuladores conservan su marcado anterior (barra
 * <header> + telemetría superpuesta), que este archivo también estiliza, hasta
 * que se migren a la plantilla nueva.
 */

@import url('tokens.css');

/* ───────────────────────── Barra superior (marcado anterior) ───────────────────────── */

body:has(> header) {
  --bar-h: 56px;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--bar-h);
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

body > header h1 {
  font: 600 1.25rem/1.1 var(--font-display);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
  text-align: center;
}

body > header h1 span {
  font-style: normal;
  font-weight: 400;
  color: var(--red);
}

/* !important: neutraliza los estilos en línea de las páginas aún no migradas */
.tutor-badge {
  display: inline-block;
  font: 500 0.78rem/1.2 var(--font-mono) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink) !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  text-decoration: none;
  cursor: pointer;
}

a.tutor-badge:hover {
  color: var(--red) !important;
  border-bottom-color: var(--red) !important;
}

/* ───────────────────────── Estructura: escenario + hoja ───────────────────────── */

#app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  min-height: calc(100vh - var(--bar-h));
}

#simulation-area {
  position: sticky; /* el lienzo queda fijo mientras la hoja se desplaza */
  top: var(--bar-h);
  height: calc(100vh - var(--bar-h));
  align-self: start;
  display: flex;
  flex-direction: column;
  /* sin fondo propio: se ve el fondo animado de física (body + .physics-backdrop) */
  background: transparent;
  border-right: 2px solid var(--ink);
  overflow: hidden;
}

/* Línea de margen roja de cuaderno */
#simulation-area::before {
  content: '';
  position: absolute;
  left: 64px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--red);
  opacity: 0.5;
  pointer-events: none;
}

#physics-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Cabecera del escenario (plantilla nueva) */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 26px 40px 0 88px;
}

.crumb {
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.crumb:hover {
  color: var(--red);
}

.stage-title {
  font: 700 clamp(2rem, 4vw, 3.4rem)/1 var(--font-display);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
  padding: 14px 40px 0 88px;
}

.stage-title em {
  font-style: normal;
  font-weight: 600;
  font-variation-settings: 'opsz' 48; /* menos contraste: los trazos finos de opsz 144 se pierden en rojo */
  color: var(--red);
}

.stage-subtitle {
  padding: 10px 40px 0 88px;
  max-width: 44rem;
  color: var(--ink-soft);
  font-style: normal;
}

.canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 18px 40px 20px 88px;
  /* Pantalla de instrumento: el lienzo se dibuja con tinta clara sobre este fondo (readScreenPalette) */
  background: var(--screen);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rule);
}

.canvas-wrap > #physics-canvas {
  position: absolute;
  inset: 0;
}

/* Visor (js/shared/instrument.js): esquinas, rótulo de estado y cruz del puntero */
.canvas-wrap > .hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Trama de pantalla, casi invisible */
.canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* ───────────────────────── Lectura de datos ───────────────────────── */

/* Variante superpuesta (marcado anterior) */
#vector-telemetry {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(27, 26, 23, 0.12);
  padding: 10px 14px;
  pointer-events: none;
}

.telemetry-title {
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.vector-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vector-indicator::before {
  content: '';
  width: 14px;
  height: 3px;
  background: currentColor;
}

.vector-indicator.velocity { color: var(--blue); }
.vector-indicator.acceleration { color: var(--red); }

/* Variante tira (plantilla nueva) */
#vector-telemetry.readout {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  margin: 0 40px 28px 88px;
  background: none;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
  padding: 0;
}

.readout > div {
  min-width: 0;
  padding: 10px 6px 10px 14px;
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.readout > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.readout dt {
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.readout dd {
  margin-top: 2px;
  font: 500 1rem/1.25 var(--font-mono);
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ───────────────────────── Hoja de cuaderno (panel de Pólya) ───────────────────────── */

#tutor-panel {
  position: relative;
  background: var(--paper-2);
  min-width: 0;
}

/* Renglones sutiles */
#tutor-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(transparent 0 31px, var(--graph-minor) 31px 32px);
}

#tutor-panel > * {
  position: relative;
}

#polya-steps-bar {
  display: flex;
  gap: 22px;
  margin: 0 36px;
  padding-top: 26px;
  border-bottom: 1px solid var(--ink);
}

.step-tab {
  position: relative;
  padding-bottom: 8px;
  font: 500 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: not-allowed; /* se avanza en secuencia */
  transition: var(--transition-smooth);
}

.step-tab.active {
  color: var(--ink);
}

.step-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--red);
}

.step-tab.completed {
  color: var(--blue);
  cursor: pointer; /* permite volver */
}

.panel-content-wrapper {
  padding: 8px 36px 56px;
}

.polya-phase-container {
  display: none;
}

.polya-phase-container.active {
  display: block;
  animation: rise 0.5s var(--ease-out);
}

/* Título de fase: numeral grande en cursiva + encabezado */
h2 {
  display: block;
  margin: 4px 0 12px;
  font: 600 1.9rem/1.1 var(--font-display);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
}

.phase-number {
  display: block;
  margin: 18px 0 8px -3px;
  font: 600 5.5rem/0.85 var(--font-display);
  color: var(--red);
  font-variation-settings: 'opsz' 48;
}

.phase-intro {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* ───────────────────────── Bloques de contenido ───────────────────────── */

.card {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 4px;
}

.card:last-of-type {
  margin-bottom: 18px;
}

/* Nota al margen */
.card.margin-note,
.prediction-instructions {
  padding: 4px 0 4px 14px;
  margin: 16px 0;
  border-top: 0;
  border-left: 3px solid var(--red);
  font-style: normal;
  color: var(--ink);
}

.prediction-instructions strong,
.margin-note strong {
  font-weight: 600;
  color: var(--red);
}

.control-group {
  margin-bottom: 20px;
}

.control-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font: 500 0.78rem/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 4px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 22px;
  background: none;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--ink);
}

input[type='range']::-moz-range-track {
  height: 1px;
  background: var(--ink);
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 22px;
  margin-top: -11px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 0;
}

input[type='range']::-moz-range-thumb {
  width: 10px;
  height: 18px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 0;
}

input[type='range']:hover::-webkit-slider-thumb {
  background: var(--red);
  border-color: var(--red);
}

input[type='range']:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.value-display {
  min-width: 5.5rem;
  text-align: right;
  font: 500 1.1rem/1.2 var(--font-mono);
  color: var(--blue);
  white-space: nowrap;
}

/* Cuestionario: filas con letra de opción generada por contador */
.quiz-question {
  font: 600 1.15rem/1.3 var(--font-display);
  margin-bottom: 12px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  counter-reset: option;
}

.option-btn {
  counter-increment: option;
  display: flex;
  gap: 14px;
  align-items: baseline;
  width: 100%;
  padding: 11px 4px;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  text-align: left;
  font: 400 1.05rem/1.35 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.option-btn::before {
  content: counter(option, upper-alpha);
  font: 500 0.75rem var(--font-mono);
  color: var(--muted);
}

.option-btn:hover {
  background: rgba(184, 58, 38, 0.07);
}

.option-btn.selected {
  background: rgba(27, 26, 23, 0.05);
}

.option-btn.correct {
  background: rgba(43, 76, 140, 0.1);
  box-shadow: inset 3px 0 0 var(--blue);
}

.option-btn.incorrect {
  background: rgba(184, 58, 38, 0.1);
  box-shadow: inset 3px 0 0 var(--red);
}

#phase1-feedback {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ───────────────────────── Botones ───────────────────────── */

.btn-action {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper-2);
  border: 0;
  border-radius: 0;
  font: 500 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Flecha de avance en los botones que cambian de fase (no en reproducir/pausar) */
.btn-action:not(.success):not(.warning)::after {
  content: '→';
  font-size: 1rem;
}

.btn-action:hover:not(:disabled) {
  background: var(--red);
  transform: translateX(4px);
}

.btn-action:disabled {
  background: none;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--rule);
  cursor: not-allowed;
}

.btn-action.success {
  background: var(--blue);
}

.btn-action.warning {
  background: var(--ochre);
}

/* Deshabilitado gana a la variante de color: si no, queda texto gris sobre fondo azul/ocre */
.btn-action.success:disabled,
.btn-action.warning:disabled {
  background: none;
  color: var(--muted);
}

.btn-action.success:hover:not(:disabled),
.btn-action.warning:hover:not(:disabled) {
  background: var(--ink);
}

.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  padding: 12px 20px;
  background: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 500 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.sim-controls-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.sim-controls-wrapper .btn-secondary {
  margin-top: 0;
}

.btn-sim-play { flex: 2; }
.btn-sim-reset { flex: 1; }

/* ───────────────────────── Fase 4: tabla y retroalimentación ───────────────────────── */

.contrast-table {
  width: 100%;
  margin: 8px 0 20px;
  border-collapse: collapse;
}

.contrast-table th {
  padding: 8px 8px 8px 0;
  text-align: left;
  font: 500 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}

.contrast-table td {
  padding: 11px 8px 11px 0;
  border-bottom: 1px solid var(--rule);
  font: 500 0.9rem/1.2 var(--font-mono);
  color: var(--ink-soft);
}

.contrast-table td.parameter-name {
  font: 600 1.02rem/1.2 var(--font-body);
  color: var(--ink);
}

.error-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 0;
  font: 500 0.78rem/1.4 var(--font-mono);
}

.error-badge.low { color: var(--blue); }
.error-badge.medium { color: var(--ochre); }
.error-badge.high { color: var(--red); }

.tutor-feedback-box {
  margin: 4px 0 22px;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--red);
  font-style: normal;
  line-height: 1.5;
  color: var(--ink);
}

/* Rótulo fijo de la caja y titular que genera el tutor: en la fuente de titulares */
.tutor-feedback-box > strong,
#tutor-feedback-text > strong:first-child {
  display: block;
  margin-bottom: 4px;
  font: 600 1.05rem/1.3 var(--font-display);
  font-style: normal;
  color: var(--red);
}

/* Cifras y énfasis dentro del texto: en línea */
#tutor-feedback-text strong:not(:first-child) {
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
}

/* ───────────────────────── Tintas con significado (sustituyen estilos en línea) ───────────────────────── */

.c-blue { color: var(--blue); }
.c-red { color: var(--red); }
.c-ochre { color: var(--ochre); }
.c-green { color: var(--green); }
.c-ink { color: var(--ink); }
.c-muted { color: var(--muted); }

.bg-blue { background: var(--blue); }
.bg-red { background: var(--red); }
.bg-ochre { background: var(--ochre); }
.bg-green { background: var(--green); }
.bg-ink { background: var(--ink); }

/* Tarjeta con canto de color (una fuerza, una magnitud) */
.card[class*='edge-'] {
  padding-left: 14px;
  border-top: 0;
  border-left: 3px solid currentColor;
}

.card.edge-red { color: var(--red); }
.card.edge-blue { color: var(--blue); }
.card.edge-ochre { color: var(--ochre); }
.card.edge-green { color: var(--green); }

.card[class*='edge-'] > * { color: var(--ink); }
.card[class*='edge-'] > .telemetry-title { color: inherit; }

.margin-note .telemetry-title { color: var(--red); }

/* Colores de los indicadores de la lectura de datos y leyendas */
.ke-dot { color: var(--green); }
.pe-dot { color: var(--blue); }
.thermal-dot { color: var(--red); }
.torque-tag { color: var(--ochre); font-weight: 600; }
.omega-tag { color: var(--blue); font-weight: 600; }
.alpha-tag { color: var(--red); font-weight: 600; }
.L-tag { color: var(--green); font-weight: 600; }
.star-tag { color: var(--ochre); }
.planet-tag { color: var(--ink); }
.force-tag { color: var(--red); }
.vel-tag { color: var(--blue); }
.kepler-tag { color: var(--green); font-weight: 600; }

/* Leyenda: muestra de color + texto */
.vector-legend,
.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
}

.legend-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* Texto corrido con la muestra de color flotando a la izquierda */
.vector-legend-item {
  position: relative;
  padding-left: 26px;
}

.vector-legend-item .vector-dot {
  position: absolute;
  left: 0;
  top: 0.7em;
}

.vector-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 14px;
  height: 3px;
}

.legend-item .vector-dot {
  transform: translateY(-4px);
}

/* ───────────────────────── Selectores y medidores propios de cada laboratorio ───────────────────────── */

.body-selector,
.system-selector {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid var(--ink);
}

.body-btn,
.btn-sys {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: 0;
  border-left: 1px solid var(--ink);
  border-radius: 0;
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.body-btn:first-child,
.btn-sys:first-child {
  border-left: 0;
}

.body-btn small {
  display: block;
  margin-top: 2px;
  font: 400 0.78rem var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.body-btn:hover,
.btn-sys:hover {
  background: rgba(184, 58, 38, 0.07);
}

.body-btn.selected,
.btn-sys.active {
  background: var(--ink);
  color: var(--paper-2);
}

.body-btn.selected small {
  color: rgba(251, 248, 239, 0.7);
}

/* Barra de progreso del tiempo simulado */
.time-progress-wrapper {
  height: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--ink);
  overflow: hidden;
}

#time-progress {
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.1s linear;
}

#time-label {
  margin-bottom: 14px;
  text-align: right;
  font: 400 0.75rem var(--font-mono);
  color: var(--muted);
}

/* Contadores (órbitas, ciclos) */
.orbits-badge,
.cycles-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  font: 500 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbits-badge span,
.cycles-badge span {
  font: 500 1.3rem/1 var(--font-mono);
  letter-spacing: 0;
  color: var(--blue);
}

/* Mensajes de verificación de la fase 4 */
#conservation-msg,
#kepler-check,
#newton-check {
  min-height: 1.4em;
  margin: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

#teo-kepler-label,
#teo-period-label {
  margin-top: 10px;
  font: 500 0.78rem/1.4 var(--font-mono);
  color: var(--blue);
}

/* Puntuación del diagrama de cuerpo libre */
.score-card {
  text-align: center;
}

#val-dcl-score {
  font: 600 3rem/1 var(--font-display);
  color: var(--red);
  font-variation-settings: 'opsz' 48;
}

#btn-restart-lab {
  margin-top: 16px;
}

/* Notas de ayuda bajo un control */
.card p,
.control-group p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ───────────────────────── Adaptación a pantallas medianas y pequeñas ───────────────────────── */

@media (max-width: 1180px) {
  #app-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .masthead,
  .stage-title,
  .stage-subtitle {
    padding-right: 24px;
  }

  .canvas-wrap {
    margin-right: 24px;
  }

  #vector-telemetry.readout {
    margin-right: 24px;
  }

  #polya-steps-bar,
  .panel-content-wrapper {
    padding-left: 28px;
    padding-right: 28px;
  }

  #polya-steps-bar {
    margin: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 960px) {
  body > header {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  body > header h1 {
    order: -1;
    width: 100%;
    text-align: left;
    font-size: 1.05rem;
  }

  #app-layout {
    grid-template-columns: 1fr;
  }

  #simulation-area {
    position: relative;
    top: auto;
    height: auto;
    min-height: 78vh;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  /* El marcado anterior no tiene envoltorio: su lienzo necesita altura propia */
  #simulation-area > #physics-canvas {
    height: 62vh;
    min-height: 340px;
  }

  #simulation-area::before { left: 18px; }

  .masthead { padding: 18px 16px 0 36px; }
  .stage-title { padding: 10px 16px 0 36px; }
  .stage-subtitle { padding: 8px 16px 0 36px; }
  .canvas-wrap { margin: 14px 16px 16px 36px; min-height: 320px; flex: none; }

  #vector-telemetry.readout {
    margin: 0 16px 20px 36px;
  }

  #polya-steps-bar {
    margin: 0 16px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .panel-content-wrapper {
    padding: 8px 16px 48px;
  }
}

/* ───────────────────────── Inmersión al llegar desde la portada ─────────────────────────
 * js/shared/arrival.js marca <html class="immersing"> con el punto donde se hizo clic (--ox, --oy).
 * El simulador se abre como un círculo de tinta que crece desde ahí, mientras el fondo de física
 * gira acelerado y se calma. `backwards`: no deja filtros ni recortes activos al terminar. */
@keyframes immerse-in {
  from {
    clip-path: circle(0% at var(--ox, 30%) var(--oy, 50%));
    transform: scale(1.07);
    filter: blur(7px);
  }
  60% {
    filter: blur(0);
  }
  to {
    clip-path: circle(150% at var(--ox, 30%) var(--oy, 50%));
    transform: none;
    filter: blur(0);
  }
}

html.immersing #app-layout {
  animation: immerse-in 1.05s var(--ease-out) backwards;
}

@media (prefers-reduced-motion: reduce) {
  html.immersing #app-layout {
    animation: none;
  }
}
