/* RÜM Cinematic Architecture Engine — reproductor (prototipo Fase 0)
   Estética: A24 / Apple TV+, quiet luxury. La fotografía manda; el chrome desaparece.
   Un solo acento (durazno). Sin negro puro. Motion motivado (Ken Burns + crossfade). */

:root {
  --bg:        #14110d;          /* warm near-black, nunca #000 */
  --bar:       #0e0b08;          /* barras de cine, cálido */
  --ink:       #f3ece0;          /* off-white cálido */
  --muted:     rgba(243, 236, 224, 0.60);
  --accent:    #f3d2b2;          /* DURAZNO — acento único, lockeado */
  --accent-dim: rgba(243, 210, 178, 0.22);
  --scrim:     rgba(12, 9, 6, 0.55);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --xfade:     900ms;            /* crossfade entre escenas */
  /* Outfit: geométrica editorial — chrome de cine, no system-ui genérico */
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rum-font: "Baloo 2", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Marca RÜM: siempre Baloo 2 (aunque el skin cambie --rum-font a serif). */
  --rum-brand-font: "Baloo 2", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-tracking: 0.06em;
  --ui-tracking-wide: 0.16em;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- ETAPA ---------- */
.stage {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  overflow: hidden;
  cursor: default;
  background: transparent;
}

.frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--xfade) var(--ease);
}
.frame.is-active { opacity: 1; }

.frame-zoom {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  will-change: transform;
}

.frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Clip de video encima del poster (cuando existe el .mp4) */
.frame-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  pointer-events: none;
}
.frame-video.is-on { opacity: 1; }

/* Canvas: mirror del video cuando force-landscape (iOS no pinta <video> bajo transform) */
.frame-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  /* cover vía JS size; el canvas se estira al contenedor */
}
.frame-canvas.is-on { opacity: 1; }
html.force-landscape .frame-video.is-on { opacity: 0 !important; }
html.force-landscape .frame-canvas.is-on { opacity: 1; }

/* Móvil: cover fullscreen (cine edge-to-edge).
   Los hotspots se alinean al rectángulo cover vía syncHotspotLayer() en JS.
   contain dejaba franjas negras + barras anamórficas = layout raro en portrait. */
@media (max-width: 640px) {
  .frame-img,
  .frame-video,
  .frame-canvas {
    object-fit: cover;
    object-position: center center;
  }
  .frame.is-active .frame-zoom.kb {
    animation: none;
  }
}

/* Desktop + proyecto vertical (Casa Tizón): columna 9:16 centrada,
   resto negro. No estirar el metraje móvil a todo el monitor. */
@media (min-width: 641px) {
  html.prefer-portrait,
  html.prefer-portrait body {
    background: #000 !important;
  }
  html.prefer-portrait .stage {
    background: #000 !important;
  }
  html.prefer-portrait .frame {
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(100vw, calc(100dvh * 9 / 16)) !important;
    height: min(100dvh, calc(100vw * 16 / 9)) !important;
    max-width: 100vw;
    max-height: 100dvh;
    transform: translate(-50%, -50%);
    background: #000;
  }
  html.prefer-portrait .frame-img,
  html.prefer-portrait .frame-video,
  html.prefer-portrait .frame-canvas {
    object-fit: cover;
    object-position: center center;
  }
  html.prefer-portrait .frame.is-active .frame-zoom.kb {
    animation: none !important;
  }
  html.prefer-portrait .vignette {
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: min(100vw, calc(100dvh * 9 / 16)) !important;
    height: min(100dvh, calc(100vw * 16 / 9)) !important;
    transform: translate(-50%, -50%);
    opacity: 0.4;
  }
  html.prefer-portrait .bar {
    display: none !important;
  }
}

/* Ken Burns — movimiento ambiental sutil, motivado (simula el hero vivo) */
@media (prefers-reduced-motion: no-preference) {
  .frame.is-active .frame-zoom.kb {
    animation: kenburns 26s var(--ease) forwards alternate;
  }
}
@keyframes kenburns {
  from { transform: scale(1.06) translate(1.2%, -0.6%); }
  to   { transform: scale(1.14) translate(-1.4%, 0.8%); }
}

/* Vignette cálida — profundidad filmica, no borde duro */
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(10,8,5,0.42) 100%),
    linear-gradient(to bottom, rgba(10,8,5,0.28) 0%, transparent 22%, transparent 62%, rgba(10,8,5,0.55) 100%);
}

/* Barras anamórficas — cálidas, delgadas (no comen la foto) */
.bar {
  position: absolute; left: 0; right: 0; height: 5.2vh;
  background: var(--bar); pointer-events: none; z-index: 5;
}
.bar--top { top: 0; }
.bar--bottom { bottom: 0; }

/* ---------- INTRO TITLE CARD ---------- */
/* Aparece una vez, sobre el hero de entrada (HUD sigue visible debajo). */
.intro {
  position: fixed; inset: 0; z-index: 52;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  /* Sobre las losas / huellas del piso en el hero de entrada */
  padding-bottom: clamp(88px, 16vh, 140px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 700ms var(--ease);
}
.intro.is-out { opacity: 0; }

.intro-inner { position: relative; padding: 48px 64px; }
.intro-inner::before {
  content: "";
  position: absolute; inset: -30% -40%;
  z-index: -1;
  background: radial-gradient(58% 58% at 50% 50%, rgba(10, 8, 5, 0.46) 0%, transparent 72%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 900ms var(--ease), transform 1.1s var(--ease);
}
.intro.is-in .intro-inner::before {
  opacity: 1;
  transform: scale(1);
}

.intro-line,
.intro-rule,
.intro-by {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
}

.intro-line {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.intro.is-in .intro-line {
  animation: introReveal 1.15s var(--ease) 0.08s forwards;
}

.intro-rule {
  width: 42px; height: 1px; margin: 18px auto;
  background: var(--accent);
  transform-origin: center;
}
.intro.is-in .intro-rule {
  animation: introRuleReveal 1s var(--ease) 0.42s forwards;
}

.intro-by {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.intro.is-in .intro-by {
  animation: introReveal 1s var(--ease) 0.72s forwards;
}
.intro-by strong {
  font-family: var(--rum-brand-font);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.intro.is-out .intro-line,
.intro.is-out .intro-rule,
.intro.is-out .intro-by {
  animation: none;
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(4px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease), filter 520ms var(--ease);
}
.intro.is-out .intro-inner::before {
  opacity: 0;
  transform: scale(1.04);
}

@keyframes introReveal {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes introRuleReveal {
  from { opacity: 0; transform: translateY(22px) scaleX(0); filter: blur(8px); }
  to   { opacity: 0.85; transform: translateY(0) scaleX(1); filter: blur(0); }
}

@media (max-width: 640px) {
  .intro { padding-bottom: clamp(72px, 14vh, 110px); }
  .intro-line { font-size: 18px; letter-spacing: 0.22em; }
  .intro-by { font-size: 11px; letter-spacing: 0.26em; }
  .intro-inner { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { transition: opacity 200ms linear; }
  .intro-line, .intro-rule, .intro-by { filter: none; transform: none; }
  .intro.is-in .intro-line,
  .intro.is-in .intro-rule,
  .intro.is-in .intro-by { animation: introRevealReduced 400ms linear forwards; }
  .intro.is-in .intro-rule { animation-delay: 120ms; }
  .intro.is-in .intro-by { animation-delay: 240ms; }
  @keyframes introRevealReduced {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ---------- HOTSPOTS ---------- */
/* El contenedor es transparente a clics (deja pasar el clic en zona vacía al
   stage → "clic para volver"); sólo los puntos ARMADOS capturan el clic. */
/* inset por defecto; JS ajusta left/top/width/height al rectángulo real
   del media (cover) para que x%/y% del JSON coincidan con la foto. */
.hotspots {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}
.hotspots.is-armed .hotspot { pointer-events: auto; }

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.hotspots.is-armed .hotspot {
  opacity: 0;
  animation: hotspotReveal 0.58s var(--ease) forwards;
}
.hotspots.is-armed .hotspot:nth-child(2) { animation-delay: 0.1s; }
.hotspots.is-armed .hotspot:nth-child(3) { animation-delay: 0.18s; }
.hotspots.is-armed .hotspot:nth-child(4) { animation-delay: 0.26s; }
.hotspots.is-armed .hotspot:nth-child(5) { animation-delay: 0.34s; }

@keyframes hotspotReveal {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.82); filter: blur(4px); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

.hotspots.is-armed .hotspot .label {
  opacity: 0.92;
  transform: translateY(-50%) translateX(0);
}
.hotspots.is-armed .hotspot[data-side="right"] .label {
  transform: translateY(-50%) translateX(0);
}

.hotspot .dot {
  position: relative;
  width: 13px; height: 13px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim), 0 2px 10px rgba(0,0,0,0.35);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hotspot .dot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 2px var(--accent);
    animation: pulse 2.6s var(--ease) infinite;
  }
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hotspot .label {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  transform: translateY(-50%) translateX(-4px);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ui-tracking);
  line-height: 1.2;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(12, 9, 6, 0.62);
  border: 1px solid rgba(243, 210, 178, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.hotspot:hover .label,
.hotspot:focus-visible .label { opacity: 1; transform: translateY(-50%) translateX(0); }

.hotspot:hover .dot,
.hotspot:focus-visible .dot { transform: scale(1.15); }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible .dot { box-shadow: 0 0 0 4px var(--accent), 0 0 0 8px var(--accent-dim); }

/* Hotspot cerca del borde izquierdo: etiqueta hacia adentro (derecha del dot) */
.hotspot[data-side="right"] .label {
  left: auto;
  right: calc(100% + 6px);
  transform: translateY(-50%) translateX(4px);
}
.hotspot[data-side="right"]:hover .label,
.hotspot[data-side="right"]:focus-visible .label { transform: translateY(-50%) translateX(0); }

/* Hotspot stacked (menú vertical): etiqueta debajo del punto */
.hotspot[data-side="below"] .label {
  left: 50%;
  right: auto;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(-4px);
}
.hotspot[data-side="below"]:hover .label,
.hotspot[data-side="below"]:focus-visible .label {
  transform: translateX(-50%) translateY(0);
}
.hotspots.is-armed .hotspot[data-side="below"] .label {
  transform: translateX(-50%) translateY(0);
}

/* ---------- HUD ---------- */
/* absolute (no fixed): en force-landscape / transform del stage los fixed
   se anclan al viewport físico y los botones “desaparecen” o se solapan. */
.hud {
  position: absolute; inset: 0; z-index: 55;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}
.hud.is-hidden { opacity: 0; }
.hud > * { pointer-events: auto; }

.hud > *:not(.scene-title) {
  opacity: 0;
  transform: translateY(12px);
}
.hud.is-live > *:not([hidden]):not(.scene-title) {
  animation: hudReveal 0.72s var(--ease) forwards;
}
.hud.is-live #playpause { animation-delay: 0.12s; }
.hud.is-live #help { animation-delay: 0.22s; }
.hud.is-live #audio-toggle:not([hidden]) { animation-delay: 0.18s; }
.hud.is-live #back:not([hidden]) { animation-delay: 0.06s; }

.hud.is-live .scene-title {
  animation: hudRevealTitle 0.78s var(--ease) 0.04s forwards;
}

@keyframes hudReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hudRevealTitle {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hud-pop { animation: hudReveal 0.55s var(--ease) forwards; }

/* Chrome fijo del Showroom (badge + volver al catálogo) —
   SIEMPRE visible: no depende de .is-live ni animaciones. */
.mockup-badge {
  opacity: 1;
  transform: none;
}
.showroom-back {
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top)) !important;
  left: max(12px, env(safe-area-inset-left)) !important;
  z-index: 2147483646 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  font: 700 11px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #2f6df6 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(47, 109, 246, 0.3);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.showroom-back-icon { font-size: 13px; line-height: 1; opacity: 0.85; }

@keyframes chromeReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-ghost {
  position: absolute; left: max(3.5vw, 20px); bottom: max(7vh, 34px);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: var(--ui-tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(243,236,224,0.28);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  cursor: pointer;
  transition: border-color 240ms var(--ease), background 240ms var(--ease), transform 120ms var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(243,210,178,0.08); }
.btn-ghost:active { transform: translateY(1px); }
.btn-ghost .chev { color: var(--accent); font-size: 15px; line-height: 0; font-weight: 400; }

.scene-title {
  position: absolute; left: 50%; bottom: max(6.6vh, 30px);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
  transition: opacity 360ms var(--ease);
  white-space: nowrap;
  /* Sólo es una etiqueta; nunca debe capturar clics de los botones cercanos. */
  pointer-events: none;
}
.scene-title.is-dim { opacity: 0; }
.scene-title b { color: var(--ink); font-weight: 600; letter-spacing: 0.28em; }
.scene-title.title-pop {
  animation: hudRevealTitle 0.72s var(--ease) forwards;
}

.btn-help {
  position: absolute; right: max(3.5vw, 20px); top: max(3vh, 18px);
  width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 13px; font-style: italic; font-weight: 600;
  color: var(--muted);
  background: var(--scrim);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(243,236,224,0.16);
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-help:hover { color: var(--accent); border-color: var(--accent-dim); }

/* Toggle de audio ambiental (a la izquierda del botón de ayuda) */
.btn-audio {
  position: absolute; right: max(calc(3.5vw + 46px), 66px); top: max(3vh, 18px);
  width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--muted);
  background: var(--scrim);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(243, 236, 224, 0.16);
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-audio:hover { color: var(--accent); border-color: var(--accent-dim); }
.btn-audio .wave { opacity: 0; transition: opacity 200ms var(--ease); }
.btn-audio .mute-slash { opacity: 1; transition: opacity 200ms var(--ease); }
.btn-audio.is-on .wave { opacity: 1; }
.btn-audio.is-on .mute-slash { opacity: 0; }

/* Pausa/reanuda el shot activo (video o Ken Burns del poster) */
.btn-playpause {
  position: absolute; right: max(3.5vw, 20px); bottom: max(7vh, 34px);
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(243, 236, 224, 0.28);
  cursor: pointer;
  transition: border-color 240ms var(--ease), background 240ms var(--ease), transform 120ms var(--ease);
}
.btn-playpause:hover { border-color: var(--accent); background: rgba(243, 210, 178, 0.08); }
.btn-playpause:active { transform: translateY(1px); }

.btn-playpause .icon { position: relative; width: 13px; height: 14px; }
.btn-playpause .icon::before,
.btn-playpause .icon::after {
  content: ""; position: absolute; top: 0; width: 4px; height: 14px;
  background: var(--ink); border-radius: 1px;
}
.btn-playpause .icon::before { left: 0; }
.btn-playpause .icon::after { right: 0; }

/* Pausado → icono cambia a triángulo de "reanudar" */
.btn-playpause.is-paused .icon::before,
.btn-playpause.is-paused .icon::after { display: none; }
.btn-playpause.is-paused .icon {
  width: 0; height: 0; margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--ink);
}

/* Congela el Ken Burns del poster mientras está pausado (si aún no hay video) */
.stage.is-paused .frame.kb { animation-play-state: paused; }

/* Volver de detalle */
.detail-close {
  position: absolute; z-index: 22;
  left: 50%; bottom: max(11vh, 60px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: var(--ui-tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--scrim);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(243,236,224,0.22);
  border-radius: 999px; padding: 11px 20px 11px 15px; cursor: pointer;
  opacity: 0; transition: opacity 400ms var(--ease);
}
.detail-close:not([hidden]) { opacity: 1 !important; visibility: visible !important; z-index: 58; }
.detail-close .chev { color: var(--accent); font-size: 15px; line-height: 0; }

/* Ficha de acabado / material en detalle de objeto */
.material-card {
  position: absolute; z-index: 24;
  left: max(3.5vw, 20px);
  bottom: max(18vh, 110px);
  max-width: min(420px, 86vw);
  padding: 18px 20px 16px;
  color: var(--ink);
  background: rgba(12, 9, 6, 0.72);
  border: 1px solid rgba(243, 236, 224, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.material-card:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}
.material-card-kicker {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.material-card-title {
  margin: 0;
  font-family: var(--rum-font);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.material-card-sub {
  margin: 8px 0 0;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.material-card-body {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 236, 224, 0.14);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: rgba(243, 236, 224, 0.82);
}
.material-card-body:empty,
.material-card-sub:empty,
.material-card-kicker:empty { display: none; }

html.skin-tizon .material-card {
  border-radius: 0;
  border-color: var(--tizon-line);
  border-left: 2px solid var(--accent);
  background: rgba(10, 8, 6, 0.78);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.skin-tizon .material-card-title {
  font-family: var(--rum-font);
  letter-spacing: 0.04em;
}

/* En portrait desktop: ficha en la franja negra izquierda (como Exterior). */
@media (min-width: 900px) {
  html.prefer-portrait .material-card {
    left: max(16px, calc(50vw - min(100vw, 100dvh * 9 / 16) / 2 - 280px));
    right: auto;
    bottom: max(16vh, 96px);
    max-width: 260px;
    z-index: 30;
  }
}

/* CRÍTICO: varios overlays declaran display:inline-flex/flex/grid, que GANA al
   atributo `hidden` (cuyo default es display:none). Sin esto, botones y docks
   "ocultos" siguen ocupando su lugar a pantalla/centro y se comen los clics de
   los demás botones (Volver, back, hotspots…). Forzar que `hidden` oculte de
   verdad arregla toda la clase de bugs de golpe. */
[hidden] { display: none !important; }

/* Galería día/noche (detalle estático) — dock unificado */
.gallery-dock {
  position: absolute; z-index: 24;
  left: 50%; bottom: max(10vh, 56px);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  background: var(--scrim);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 236, 224, 0.22);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.gallery-dock:not([hidden]) { opacity: 1 !important; visibility: visible !important; z-index: 58; }

.gallery-dock-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--ui-tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(243, 210, 178, 0.12);
  border: 1px solid rgba(243, 210, 178, 0.28);
  border-radius: 999px;
  padding: 9px 14px 9px 11px;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.gallery-dock-back:hover {
  background: rgba(243, 210, 178, 0.2);
  border-color: rgba(243, 210, 178, 0.45);
}
.gallery-dock-back .chev { color: var(--accent); font-size: 14px; line-height: 0; }

.gallery-dock-toggles {
  display: inline-flex; align-items: center; gap: 4px;
  padding-left: 2px;
  border-left: 1px solid rgba(243, 236, 224, 0.16);
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(92vw, 520px);
}

.stage.is-gallery .scene-title { opacity: 0 !important; }
.stage.is-detail .btn-ghost,
.stage.is-detail .btn-playpause,
.stage.is-gallery .btn-ghost,
.stage.is-gallery .btn-playpause { opacity: 0 !important; pointer-events: none !important; }

/* Detalle/galería: nunca el overlay «Toca para reproducir» — solo «Volver». */
.stage.is-detail .tap-play,
.stage.is-gallery .tap-play {
  display: none !important;
  pointer-events: none !important;
}

/* Intro / tap-to-play / pre-unlock: un solo foco — sin hotspot ni pause duplicado. */
.stage.is-intro .hotspots,
.stage.is-tap-play .hotspots,
.stage.is-awaiting-play .hotspots {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.stage.is-intro .scene-title {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.stage.is-intro #playpause,
.stage.is-tap-play #playpause,
.stage.is-awaiting-play #playpause,
.stage.is-intro .hud #playpause,
.stage.is-tap-play .hud #playpause,
.stage.is-awaiting-play .hud #playpause {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.gallery-toggle {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--ui-tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.gallery-toggle:hover { color: var(--ink); }
.gallery-toggle.is-active {
  color: var(--ink);
  background: rgba(243, 210, 178, 0.18);
  box-shadow: inset 0 0 0 1px rgba(243, 210, 178, 0.35);
}
.gallery-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

/* Respuesta táctil: sin retardo de 300ms, sin zoom por doble-tap, sin flash gris */
.btn-ghost, .btn-playpause, .btn-help, .btn-audio,
.detail-close, .gallery-dock-back, .gallery-toggle, .hotspot {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Hint */
.hint {
  position: absolute; z-index: 22; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: var(--ui-tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--scrim);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(243,236,224,0.18);
  border-radius: 999px; padding: 12px 22px;
  transition: opacity 600ms var(--ease);
}
.hint.is-out { opacity: 0; }

/* ---------- SPLASH ---------- */
.splash {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: rgba(20, 17, 13, 0.42);
  transition: opacity 700ms var(--ease);
}
.splash.is-out { opacity: 0; pointer-events: none; }
.wordmark {
  font-family: var(--rum-brand-font);
  font-size: 40px;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding-left: 0.06em;
}
.splash .sub { font-family: var(--font); font-size: 11px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }
.loader { margin-top: 18px; width: 140px; height: 2px; background: rgba(243,236,224,0.14); border-radius: 2px; overflow: hidden; }
.loader span { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 2px; animation: slide 1.3s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
.splash-status {
  margin: 10px 0 0; font-family: var(--font); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- FATAL ---------- */
.fatal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-content: center;
  text-align: center; padding: 8vw; color: var(--muted); font-size: 14px; line-height: 1.7;
  background: var(--bg);
}
.fatal b { color: var(--ink); }

/* ---------- ROTATE GATE (móvil portrait → landscape) ---------- */
.rotate-gate {
  position: fixed; inset: 0; z-index: 80;
  display: none; place-content: center; justify-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(243, 210, 178, 0.12), transparent 55%),
    rgba(20, 17, 13, 0.96);
  color: var(--ink);
  text-align: center;
}
.rotate-gate:not([hidden]) { display: grid; }
.rotate-gate-inner {
  display: grid; justify-items: center; gap: 10px; max-width: 280px;
  pointer-events: auto; position: relative; z-index: 1;
}
.rotate-icon {
  color: var(--accent);
  margin-bottom: 6px;
  animation: rotate-phone 1.8s var(--ease) infinite;
}
@keyframes rotate-phone {
  0%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(90deg); }
  65% { transform: rotate(90deg); }
}
.rotate-title {
  margin: 0; font-family: var(--rum-font); font-size: 22px; font-weight: 700;
  letter-spacing: 0.04em;
}
.rotate-sub {
  margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5;
}
.rotate-lock {
  margin-top: 14px; appearance: none; cursor: pointer;
  font: 700 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase;
  color: #1a1510; background: var(--accent); border: 0; border-radius: 999px;
  padding: 14px 22px;
  position: relative; z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  min-width: 200px;
}
.rotate-lock:active { transform: scale(0.98); }

/*
  Layout horizontal en portrait: rota el stage 90°.
  El <video> se oculta y se pinta en canvas (ver player.js) porque iOS
  no compone video dentro de un ancestro con transform.
*/
html.force-landscape {
  overflow: hidden;
}
html.force-landscape body {
  position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden;
  background: var(--bg);
}
html.force-landscape .stage {
  visibility: visible !important;
  pointer-events: auto !important;
  /* Anula .stage { min-height: 100dvh }: si no, el stage queda cuadrado
     (100vh×100vh) al rotar y HUD / «Volver» salen del viewport físico. */
  inset: auto;
  width: 100vh;
  height: 100vw;
  min-width: 0;
  min-height: 0;
  max-width: 100vh;
  max-height: 100vw;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}
html.force-landscape .splash,
html.force-landscape #boot-poster {
  inset: auto;
  width: 100vh;
  height: 100vw;
  min-width: 0;
  min-height: 0;
  max-width: 100vh;
  max-height: 100vw;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}
html.force-landscape .rotate-gate { display: none !important; }

/* Tap-to-play: iOS / Low Power — gesto discreto, la foto manda */
.tap-play {
  position: absolute; inset: 0; z-index: 40;
  display: none; place-content: center; justify-items: center;
  background: rgba(12, 9, 6, 0.22);
  border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  gap: 14px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tap-play:not([hidden]) { display: grid; }
.tap-play-icon {
  width: 48px; height: 48px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(12, 9, 6, 0.28);
  color: var(--ink);
  border: 1px solid rgba(243, 236, 224, 0.42);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 240ms var(--ease), background 240ms var(--ease), transform 120ms var(--ease);
}
.tap-play:active .tap-play-icon {
  transform: scale(0.96);
  border-color: var(--accent);
  background: rgba(12, 9, 6, 0.4);
}
.tap-play-icon svg {
  width: 16px; height: 16px;
  margin-left: 2px;
  opacity: 0.92;
}
.tap-play-label {
  color: rgba(243, 236, 224, 0.7);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
  font-weight: 500;
}
@media (prefers-reduced-motion: no-preference) {
  .tap-play:not([hidden]) .tap-play-icon {
    animation: tapPlayBreath 3.2s var(--ease) infinite;
  }
}
@keyframes tapPlayBreath {
  0%, 100% { border-color: rgba(243, 236, 224, 0.32); }
  50% { border-color: color-mix(in srgb, var(--accent) 65%, rgba(243, 236, 224, 0.4)); }
}

@media (max-width: 640px) {
  .bar { height: 3.4vh; }
  .scene-title {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    /* Entre Volver (izq) y play (der); sin esto el tracking largo desborda el viewport. */
    max-width: calc(100vw - 11.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    bottom: max(7.4vh, calc(env(safe-area-inset-bottom) + 28px));
  }
  .scene-title b { letter-spacing: 0.14em; }

  /* Etiquetas de hotspot: tipografía de cine, no system genérica */
  .hotspot .label {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    max-width: min(44vw, 168px);
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }

  /* Sin hover en touch: etiquetas siempre visibles cuando el hotspot está armado */
  .hotspots.is-armed .hotspot .label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
  .hotspots.is-armed .hotspot[data-side="right"] .label {
    transform: translateY(-50%) translateX(0);
  }
  .hotspots.is-armed .hotspot[data-side="below"] .label {
    transform: translateX(-50%) translateY(0);
    text-align: center;
    max-width: min(56vw, 200px);
  }

  /* HUD nunca se esconde; botones siempre opacos (no dependen de la animación).
     Importante: NO resetear transform en .scene-title — vive en left:50% +
     translateX(-50%). Sin eso el título arranca a mitad de pantalla y se corta. */
  .hud.is-hidden { opacity: 1; }
  .hud.is-live > *:not([hidden]):not(.scene-title) {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hud.is-live .scene-title {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    animation: none !important;
  }

  /* Targets táctiles cómodos (≥44px) y anclados fuera del notch / barra de inicio
     (viewport-fit=cover): así los botones dejan de "esconderse" bajo el hardware. */
  .btn-help,
  .btn-audio {
    width: 44px; height: 44px; font-size: 15px;
    top: max(3vh, calc(env(safe-area-inset-top) + 12px));
    z-index: 58;
  }
  .btn-help { right: max(3.5vw, calc(env(safe-area-inset-right) + 16px)); }
  .btn-audio { right: max(calc(3.5vw + 54px), calc(env(safe-area-inset-right) + 70px)); }

  .btn-playpause {
    width: 48px; height: 48px;
    right: max(3.5vw, calc(env(safe-area-inset-right) + 16px));
    bottom: max(7vh, calc(env(safe-area-inset-bottom) + 20px));
    z-index: 58;
  }
  /* Refuerzo móvil: el HUD !important no debe resucitar el pause junto al tap. */
  .stage.is-intro #playpause,
  .stage.is-tap-play #playpause,
  .stage.is-awaiting-play #playpause,
  .stage.is-intro .hud #playpause,
  .stage.is-tap-play .hud #playpause,
  .stage.is-awaiting-play .hud #playpause {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .btn-ghost {
    left: max(3.5vw, calc(env(safe-area-inset-left) + 16px));
    bottom: max(7vh, calc(env(safe-area-inset-bottom) + 22px));
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    padding: 13px 20px 13px 16px;
    z-index: 58;
    /* Fondo sólido: sin esto el borde ghost se pierde en suelos/techos oscuros. */
    background: var(--scrim);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-color: rgba(243, 236, 224, 0.28);
  }

  .detail-close {
    padding: 14px 22px 14px 17px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    bottom: max(11vh, calc(env(safe-area-inset-bottom) + 64px));
    z-index: 60;
  }

  .material-card {
    /* En móvil las fichas tapan hotspots / Volver — solo desktop (gutter). */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .material-card-title { font-size: 1.1rem; }
  .material-card-body { font-size: 12px; line-height: 1.5; }

  /* Por si el HUD móvil fuerza opacity:1 — el pause no debe tapar el detalle. */
  .stage.is-detail .hud #playpause,
  .stage.is-gallery .hud #playpause,
  .stage.is-detail .hud #back,
  .stage.is-gallery .hud #back {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .gallery-dock {
    bottom: max(10vh, calc(env(safe-area-inset-bottom) + 56px));
    gap: 8px;
    z-index: 58;
  }
  .gallery-dock-back {
    padding: 12px 15px 12px 12px;
    font-size: 11.5px;
    letter-spacing: 0.12em;
  }
  .gallery-toggle {
    padding: 12px 18px;
    font-size: 11.5px;
    letter-spacing: 0.14em;
  }

  /* Punto de interés: área de toque más grande y punto ligeramente mayor */
  .hotspot { width: 56px; height: 56px; }
  .hotspot .dot { width: 15px; height: 15px; }

  .hint {
    font-size: 11.5px;
    letter-spacing: 0.14em;
    padding: 13px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   SKIN · Casa Tizón — refugio volcánico / madera oscura
   Distinto de Cabo (peach pills + Outfit + letterbox).
   ═══════════════════════════════════════════════════════════ */
html.skin-tizon {
  --bg: #100e0c;
  --bar: #0a0908;
  --ink: #f2ebe1;
  --muted: rgba(242, 235, 225, 0.58);
  --accent: #C08E52;
  --accent-dim: rgba(192, 142, 82, 0.2);
  --scrim: rgba(10, 8, 6, 0.62);
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --rum-font: "Fraunces", Georgia, "Times New Roman", serif;
  --ui-tracking: 0.08em;
  --ui-tracking-wide: 0.18em;
  --tizon-line: rgba(242, 235, 225, 0.18);
  --xfade: 720ms;
}

html.skin-tizon .vignette {
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(8, 7, 6, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.28) 0%, transparent 18%, transparent 72%, rgba(8, 7, 6, 0.5) 100%);
}

html.skin-tizon .hotspot .dot {
  width: 11px;
  height: 11px;
  border-radius: 1px;
  background: transparent;
  border: 1.5px solid var(--accent);
  box-shadow: none;
  transform: rotate(45deg);
}
html.skin-tizon .hotspot .dot::before {
  content: "";
  position: absolute;
  inset: 2.5px;
  background: var(--accent);
  border-radius: 0.5px;
}
html.skin-tizon .hotspot .dot::after {
  inset: -5px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
  animation: tizonPulse 3.4s var(--ease) infinite;
}
@keyframes tizonPulse {
  0%   { transform: scale(1); opacity: 0.55; }
  70%  { transform: scale(1.85); opacity: 0; }
  100% { transform: scale(1.85); opacity: 0; }
}
html.skin-tizon .hotspot:hover .dot,
html.skin-tizon .hotspot:focus-visible .dot {
  transform: rotate(45deg) scale(1.12);
  background: transparent;
  box-shadow: none;
}
html.skin-tizon .hotspot:focus-visible .dot {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

html.skin-tizon .hotspot .label {
  border-radius: 0;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(12, 10, 8, 0.78);
  border: 1px solid var(--tizon-line);
  border-left: 2px solid var(--accent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html.skin-tizon .btn-ghost,
html.skin-tizon .detail-close,
html.skin-tizon .gallery-dock-back,
html.skin-tizon .gallery-toggle,
html.skin-tizon .btn-help,
html.skin-tizon .btn-audio,
html.skin-tizon .btn-playpause {
  border-radius: 0;
  letter-spacing: 0.16em;
}
html.skin-tizon .btn-ghost {
  border-color: var(--tizon-line);
  background: rgba(12, 10, 8, 0.45);
  padding: 11px 16px 11px 12px;
}
html.skin-tizon .btn-ghost:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
html.skin-tizon .scene-title {
  font-family: var(--rum-font);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: rgba(242, 235, 225, 0.72);
}
html.skin-tizon .btn-help,
html.skin-tizon .btn-audio,
html.skin-tizon .btn-playpause {
  border-color: var(--tizon-line);
  background: rgba(12, 10, 8, 0.4);
}
html.skin-tizon .btn-help:hover,
html.skin-tizon .btn-audio:hover,
html.skin-tizon .btn-playpause:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
}

html.skin-tizon .intro-inner {
  border: 1px solid var(--tizon-line);
  background: rgba(10, 8, 6, 0.55);
  padding: 28px 32px;
  border-radius: 0;
}
html.skin-tizon .intro-line {
  font-family: var(--rum-font);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}
html.skin-tizon .intro-rule {
  width: 42px;
  height: 1px;
  background: var(--accent);
  margin: 14px auto;
  opacity: 0.85;
}
html.skin-tizon .intro-by {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}
html.skin-tizon .intro-by strong {
  font-family: var(--rum-brand-font);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

html.skin-tizon .splash {
  background:
    radial-gradient(90% 70% at 50% 20%, rgba(192, 142, 82, 0.1), transparent 55%),
    var(--bg);
}
html.skin-tizon .wordmark {
  font-family: var(--rum-brand-font);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 34px;
}
html.skin-tizon .splash .sub {
  letter-spacing: 0.28em;
}
html.skin-tizon .loader,
html.skin-tizon .loader span {
  border-radius: 0;
}

html.skin-tizon .detail-close {
  border-color: var(--tizon-line);
  background: rgba(12, 10, 8, 0.55);
}
html.skin-tizon .gallery-dock {
  border-radius: 0;
  border: 1px solid var(--tizon-line);
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.skin-tizon .gallery-toggle.is-active {
  background: var(--accent);
  color: #1a1510;
  border-radius: 0;
}
html.skin-tizon .tap-play {
  background: rgba(8, 7, 6, 0.26);
  border: 0;
}
html.skin-tizon .tap-play-icon {
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: rgba(10, 8, 6, 0.32);
  color: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.skin-tizon .tap-play:active .tap-play-icon {
  border-color: var(--accent);
  background: rgba(10, 8, 6, 0.48);
}
html.skin-tizon .tap-play-label {
  letter-spacing: 0.22em;
  color: rgba(242, 235, 225, 0.68);
}
html.skin-tizon .hint {
  border-radius: 0;
  letter-spacing: 0.18em;
}

@media (max-width: 640px) {
  html.skin-tizon .hotspot .dot { width: 12px; height: 12px; }
  html.skin-tizon .scene-title {
    font-size: 11px;
    letter-spacing: 0.14em;
    max-width: calc(100vw - 11.5rem);
  }
  html.skin-tizon .scene-title b { letter-spacing: 0.12em; }
  html.skin-tizon .material-card {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Portrait projects (Casa Tizón): never allow CSS landscape rotate. */
html.prefer-portrait.force-landscape .stage,
html.prefer-portrait.force-landscape .splash,
html.prefer-portrait.force-landscape #boot-poster {
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
}
html.prefer-portrait .rotate-gate { display: none !important; }
html.prefer-portrait.force-landscape .frame-video.is-on { opacity: 1 !important; }
html.prefer-portrait.force-landscape .frame-canvas.is-on { opacity: 0 !important; }
