/* Todo lo que va debajo de la portada. Mismo lenguaje que la portada: escenas a sangre que se funden
   con la oscuridad, luz de farol, niebla y el «otro lado». Sin inset ni aspect-ratio (Safari antiguo). */

:root {
  --delirio: #e08a6a;
  --recuerdo: #b7a3d6;
  --luz-farol: rgba(209, 169, 100, .16);
}

/* Lo que no dibujamos también lleva el estilo */
::selection { background: var(--laton); color: #14110b; }
html { scrollbar-color: #3a3f3b var(--fondo); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--fondo); }
::-webkit-scrollbar-thumb { background: #3a3f3b; }
input, textarea { caret-color: var(--laton); }
a { text-underline-offset: 3px; }

.envoltura { max-width: 1376px; margin: 0 auto; padding: 0 var(--margen); }

/* Títulos */
.cabecera h2, .avisame h2 {
  margin: 0; font-family: "IM Fell English SC", Georgia, serif; font-weight: normal;
  font-size: 104px; line-height: .95; letter-spacing: -0.02em; white-space: nowrap;
}
.jugar h3 {
  margin: 0 0 20px; text-wrap: balance; font-family: "IM Fell English SC", Georgia, serif; font-weight: normal;
  font-size: 56px; line-height: 1;
}
.destacado { font-size: 30px !important; line-height: 1.3 !important; max-width: 22em; color: var(--tinta); }

/* Cabecera de sección: el título entero en una línea y el texto debajo, alineado con la columna
   de texto de las reglas; una raya de latón los une */
.cabecera .col-texto {
  margin: 44px 0 0 calc(46% + 72px); padding-top: 32px;
  border-top: 1px solid rgba(209, 169, 100, .35);
}
.col-texto p { margin: 0 0 20px; max-width: 32em; text-wrap: pretty; font-size: 21px; line-height: 1.55; }

/* ---------- Cabecera fija al bajar ---------- */
.barra { position: fixed; transition: background .4s, padding .4s; }
.barra.fija {
  padding-top: 14px; padding-bottom: 28px;
  background: linear-gradient(to bottom, rgba(11,13,12,.96) 0%, rgba(11,13,12,.85) 55%, rgba(11,13,12,0) 100%); /* taste-skill-ignore: para que la cabecera no pise el texto */
}
.barra.fija .marca { opacity: 1; }
/* La hora de la noche, que avanza al bajar */
.hora-noche {
  display: flex; align-items: center; margin-left: 14px; font-family: "IM Fell English SC", Georgia, serif; font-size: 17px; color: var(--laton);
  opacity: 0; transition: opacity .4s, color 1.2s;
}
.reloj-mini { position: relative; display: block; width: 22px; height: 22px; margin-right: 7px; }
.reloj-mini img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}
.barra.fija .hora-noche { opacity: .9; }
.hora-noche.alba { color: #f0dcb0; }

/* El farol: lo que solo se ve dentro de su luz */
/* Con ratón, en «Aprende a jugar» el cursor es un farol que cuelga de la mano: oscila al moverlo
   y suelta chispas y una estela de luz (portada.js). En enlaces y botones vuelve la manita. */
.con-farol .jugar { cursor: none; }
.con-farol .jugar a, .con-farol .jugar button, .con-farol .jugar .dado, .con-farol .jugar .vela, .con-farol .jugar input { cursor: pointer; }
.farol-mano {
  position: fixed; top: 0; left: 0; z-index: 8; width: 46px; height: 95px; pointer-events: none;
  opacity: 0; -webkit-transition: opacity .35s; transition: opacity .35s;
  -webkit-transform-origin: 23px 1px; transform-origin: 23px 1px;
}
.farol-mano.ve { opacity: 1; }
.farol-mano img { display: block; width: 46px; height: 95px; -webkit-filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.chispas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }
.capa-luz {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,0) 100%);
  -webkit-mask-size: 460px 460px; mask-size: 460px 460px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: -999px -999px; mask-position: -999px -999px;
}
.capa-luz img { position: absolute; height: auto; opacity: .55; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated; }
.tiza {
  position: absolute; margin: 0; max-width: 12em; white-space: nowrap;
  font-style: italic; font-size: 30px; color: #dfe3d6; opacity: .8; letter-spacing: .02em;
  text-shadow: 0 0 6px rgba(223, 227, 214, .35);
}
.resplandor {
  position: fixed; top: 0; left: 0; width: 720px; height: 720px; z-index: 6; pointer-events: none;
  background: radial-gradient(closest-side, rgba(209,169,100,.07), rgba(209,169,100,0)); /* taste-skill-ignore: luz del farol que lleva el visitante */
  -webkit-transform: translate(-999px, -999px); transform: translate(-999px, -999px);
}

/* Barra de progreso de lectura */
.progreso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.progreso i {
  display: block; height: 100%; background: var(--laton);
  -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleX(0); transform: scaleX(0);
}

/* Botón para volver arriba */
.subir {
  position: fixed; right: var(--margen); bottom: 24px; z-index: 15;
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  background: rgba(11, 13, 12, .85); border: 1px solid rgba(209, 169, 100, .35); border-radius: 50%;
  opacity: 0; visibility: hidden; -webkit-transform: translateY(12px); transform: translateY(12px);
  transition: opacity .3s, visibility .3s, -webkit-transform .3s; transition: opacity .3s, visibility .3s, transform .3s;
}
.subir.ver { opacity: 1; visibility: visible; -webkit-transform: none; transform: none; }
/* La mano del juego, señalando hacia arriba */
.subir img {
  width: 34px; height: 27px; -webkit-transform: rotate(-90deg); transform: rotate(-90deg);
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
  transition: -webkit-transform .25s; transition: transform .25s;
}
.subir:hover, .subir:focus-visible { border-color: var(--laton); }
.subir:hover img, .subir:focus-visible img { -webkit-transform: rotate(-90deg) translateX(4px); transform: rotate(-90deg) translateX(4px); }

/* Grano de película en toda la página: el negro deja de ser plano */
.grano-pagina {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay; background-size: 128px 128px;
}

/* ---------- Menú móvil ---------- */
.menu-boton {
  display: none; margin-left: 12px; padding: 8px 14px;
  font: inherit; font-size: 17px; color: var(--tinta);
  background: rgba(11, 13, 12, .55); border: 0; border-radius: 0; cursor: pointer;
}
.menu-movil {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 20;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--margen) 40px; background: var(--fondo); overflow: hidden;
}
.menu-movil[hidden] { display: none; }
.menu-fondo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.menu-fondo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: .2;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}
.menu-fondo:after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--fondo) 0%, rgba(11,13,12,.4) 45%, var(--fondo) 100%); /* taste-skill-ignore: funde la calle con el negro */
}
.menu-lugar, .menu-movil ul, .menu-demo { position: relative; }
.menu-lugar { margin: 0 0 20px; font-style: italic; font-size: 17px; color: var(--tinta-2); }
.menu-movil ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(209, 169, 100, .3); }
.menu-movil li { border-bottom: 1px solid rgba(209, 169, 100, .3); }
.menu-movil a:not(.boton) {
  display: flex; align-items: center; padding: 20px 0;
  font-family: "IM Fell English SC", Georgia, serif; font-size: 38px; line-height: 1.1;
  text-decoration: none; color: var(--tinta);
}
.menu-movil .mano {
  width: 43px; height: 34px; margin-right: 16px; opacity: .6;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
  -webkit-transform: translateX(-4px); transform: translateX(-4px); transition: opacity .2s, -webkit-transform .2s; transition: opacity .2s, transform .2s;
}
.menu-movil a:active, .menu-movil a:focus-visible { color: var(--laton); }
.menu-movil a:active .mano, .menu-movil a:focus-visible .mano, .menu-movil a:hover .mano { opacity: 1; -webkit-transform: none; transform: none; }
.menu-demo { -webkit-align-self: flex-start; align-self: flex-start; margin-top: 36px; }
.menu-movil:not([hidden]) li, .menu-movil:not([hidden]) .menu-demo {
  -webkit-animation: entra-menu .5s cubic-bezier(.16, 1, .3, 1) both; animation: entra-menu .5s cubic-bezier(.16, 1, .3, 1) both;
}
.menu-movil li:nth-child(2) { -webkit-animation-delay: .06s; animation-delay: .06s; }
.menu-movil li:nth-child(3) { -webkit-animation-delay: .12s; animation-delay: .12s; }
.menu-movil li:nth-child(4) { -webkit-animation-delay: .18s; animation-delay: .18s; }
.menu-movil .menu-demo { -webkit-animation-delay: .26s; animation-delay: .26s; }
@-webkit-keyframes entra-menu { from { opacity: 0; -webkit-transform: translateX(-24px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes entra-menu { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.menu-abierto .barra { z-index: 30; background: none; }

/* ---------- Bandas: escenas a sangre que se funden con la oscuridad ---------- */
.banda { position: relative; margin: 0; }
.banda-img { position: relative; overflow: hidden; background: var(--fondo); }
.banda-img img {
  display: block; width: 100%; height: 78vh; min-height: 420px; max-height: 820px;
  object-fit: cover; object-position: 50% 50%;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}
.banda-img .luz { z-index: 2; }
.velo-banda {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; pointer-events: none;
  /* taste-skill-ignore: funde la escena con el fondo arriba y abajo */
  background: linear-gradient(to bottom, var(--fondo) 0%, rgba(11,13,12,0) 22%, rgba(11,13,12,0) 62%, var(--fondo) 100%);
}
.banda-img .grano { z-index: 4; }
.banda figcaption {
  position: relative; z-index: 5; margin-top: -56px;
  font-style: italic; font-size: 21px; color: var(--tinta-2);
}
.pista { display: block; margin-top: 6px; font-style: normal; color: var(--delirio); }
.pista em { font-style: italic; }
.pulsable .banda-img { cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.delirio-img { position: absolute; top: 0; left: 0; z-index: 1; opacity: 0; transition: opacity .4s steps(4, end); }
.pulsable.otro .delirio-img { opacity: 1; }
.pulsable.otro .banda-img { -webkit-animation: sacudida .18s infinite steps(2, end); animation: sacudida .18s infinite steps(2, end); }

/* ---------- El pueblo ---------- */
.pueblo { padding-top: 140px; }
.pueblo .cabecera { margin-bottom: 56px; }

/* ---------- Aprende a jugar ---------- */
.jugar { position: relative; padding-top: 112px; overflow: hidden; }


/* Símbolos de espiritismo como marca de agua, a distinta profundidad */
.simbolos { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.simbolos img {
  position: absolute; height: auto; opacity: .11;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}
/* El tablero de médium, a la luz de una vela, detrás del título */
.tablero-fondo { position: absolute; top: 60px; left: 50%; width: 1200px; margin-left: -600px; z-index: 0; pointer-events: none; }
.tablero-fondo img {
  display: block; width: 100%; height: auto; opacity: .3;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 35%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 35%, rgba(0,0,0,0) 100%);
}
/* Cenefa de latón entre secciones */
.separador { position: relative; z-index: 1; padding: 80px 0 0; text-align: center; }
.separador img {
  width: 320px; height: 64px; opacity: .85;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}
.jugar > .envoltura, .jugar > .banda { position: relative; z-index: 1; }

.regla { display: flex; align-items: center; margin-top: 96px; margin-bottom: 96px; }
.regla.inv { -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -webkit-flex-direction: row-reverse; flex-direction: row-reverse; }
/* El objeto, puesto sobre la mesa a la luz de un farol que cae desde arriba */
.objeto {
  position: relative; -webkit-box-flex: 0; -webkit-flex: 0 0 46%; flex: 0 0 46%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 520px; padding: 40px 0;
}
.objeto:before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 52% 58% at 50% 42%, rgba(209,169,100,.2), rgba(209,169,100,.06) 55%, rgba(209,169,100,0) 75%); /* taste-skill-ignore: cono de luz de farol */
  -webkit-animation: farol 7s infinite steps(1, end); animation: farol 7s infinite steps(1, end);
}
@-webkit-keyframes farol { 0%{opacity:1} 41%{opacity:.82} 43%{opacity:1} 77%{opacity:.9} 78%{opacity:1} }
@keyframes farol { 0%{opacity:1} 41%{opacity:.82} 43%{opacity:1} 77%{opacity:.9} 78%{opacity:1} }
/* Sombra y charco de luz bajo la pieza: la apoya sobre algo */
.pieza { position: relative; display: block; }
.pieza:after {
  content: ""; position: absolute; left: -28%; right: -28%; bottom: -30px; height: 60px; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,.35) 40%, rgba(209,169,100,.14) 62%, rgba(209,169,100,0)); /* taste-skill-ignore: sombra de contacto */
}
/* Motas de polvo que suben por la luz */
.mota {
  position: absolute; bottom: 30%; width: 3px; height: 3px; background: #e9d6a8; opacity: 0; pointer-events: none;
  -webkit-animation: mota 9s infinite linear; animation: mota 9s infinite linear;
}
@-webkit-keyframes mota { 0%{opacity:0;-webkit-transform:translate(0,0)} 15%{opacity:.55} 85%{opacity:.4} 100%{opacity:0;-webkit-transform:translate(26px,-240px)} }
@keyframes mota { 0%{opacity:0;transform:translate(0,0)} 15%{opacity:.55} 85%{opacity:.4} 100%{opacity:0;transform:translate(26px,-240px)} }
/* Etiqueta de papel, como en una vitrina */
.ficha {
  margin: 36px 0 0; padding: 5px 14px 6px; background: #cfc2a4; color: #2a2118;
  font-style: italic; font-size: 16px; line-height: 1.3;
  -webkit-transform: rotate(-1.5deg); transform: rotate(-1.5deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
}
.regla-txt { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; padding-left: 72px; }
.regla.inv .regla-txt { padding-left: 0; padding-right: 72px; }
.regla-txt p { margin: 0 0 16px; max-width: 30em; text-wrap: pretty; font-size: 21px; line-height: 1.55; }
.rotulo { margin: 20px 0 0; font-family: "IM Fell English SC", Georgia, serif; font-size: 48px; line-height: 1; color: var(--laton); }
.objeto img { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated; }

/* Reloj */
.reloj { position: relative; display: block; width: 280px; height: 280px; }
.reloj img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Dado, con el número dibujado como en el juego */
.dado {
  position: relative; display: block; width: 304px; height: 304px; cursor: pointer;
  background: url(img/ui/d20_anim_1.png) 100% 0 no-repeat; background-size: 1600% 100%;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
  --u: 5.2px;
}
.dnum {
  position: absolute; left: 50%; top: 50%; display: flex;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .3s;
}
.dado.final .dnum { opacity: 1; }
.dnum i.interroga { background-position: calc(var(--u) * -70) 0; }
.dnum i {
  display: block; width: calc(var(--u) * 6); height: calc(var(--u) * 9); margin: 0 calc(var(--u) / 2);
  background: url(img/ui/digits.png) no-repeat; background-size: calc(var(--u) * 77) calc(var(--u) * 9);
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}
.dado-sale { min-height: 1em; margin-bottom: 24px; }
.tirar { border: 0; cursor: pointer; font-family: inherit; }
.sensaciones { margin: 8px 0 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; max-width: 34em; border-top: 1px solid rgba(209, 169, 100, .22); }
.sensaciones li {
  display: flex; align-items: center; width: 50%; padding: 12px 0;
  border-bottom: 1px solid rgba(209, 169, 100, .22); font-style: italic; font-size: 19px;
}
.sensaciones img {
  width: 32px; height: 25px; margin-right: 12px; opacity: .8; flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}
.dado-son {
  margin: 14px 0 0; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-style: italic; font-size: 15px; color: var(--tinta-2);
  text-decoration: underline; text-decoration-color: rgba(185, 179, 165, .4);
}
.dado-son:hover, .dado-son:focus-visible { color: var(--laton); }
.dado-son.activo { text-decoration: none; cursor: default; color: var(--laton); }

/* Cuerpo y cordura: corazón y cerebro que pasan de un estado a otro */
.pareja { display: flex; }
.estado { margin: 0 28px; display: flex; flex-direction: column; align-items: center; }
.estado img { width: 176px; height: 176px; transition: opacity .25s steps(3, end); }
.estado.cambia img { opacity: 0; }
.estado .rotulo { font-size: 32px; min-width: 7em; text-align: center; }

/* Banda del alba con el texto encima */
.alba .banda-texto { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 5; }
.alba .banda-texto p { margin: 0 0 12px; max-width: 30em; text-wrap: pretty; font-size: 21px; line-height: 1.55; }
.alba .banda-texto h3 { font-size: 64px; }
.recuerdo { color: var(--recuerdo); font-style: italic; }

/* Velas de Resolución: se apagan al pulsarlas */
.velas { display: flex; margin: 0; }
.vela { margin: 0 14px; padding: 0; background: none; border: 0; cursor: pointer; }
.vela img { display: block; width: 72px; height: 152px; }
.vela[disabled] { cursor: default; }
.vela:not([disabled]):hover img { -webkit-filter: brightness(1.2); filter: brightness(1.2); }
.eco-caja { height: 92px; width: 100%; display: flex; justify-content: center; align-items: flex-start; }
.eco { min-height: 1em; max-width: 11em; font-size: 40px; text-align: center; }
.eco.oido { color: var(--delirio); -webkit-animation: eco 1.2s steps(1, end); animation: eco 1.2s steps(1, end); }
@-webkit-keyframes eco { 0%{opacity:0} 20%{opacity:1} 26%{opacity:.2} 32%{opacity:1} 60%{opacity:.5} 66%{opacity:1} }
@keyframes eco { 0%{opacity:0} 20%{opacity:1} 26%{opacity:.2} 32%{opacity:1} 60%{opacity:.5} 66%{opacity:1} }

/* Diario: una hoja rayada, con manchas de humedad, que se escribe sola al llegar */
.diario {
  position: relative; width: 100%; max-width: 460px; padding: 28px 40px 34px 66px;
  color: #2b2119; background-color: #d9ccae;
  background-image:
    radial-gradient(circle at 86% 14%, rgba(120, 80, 30, .2), rgba(120, 80, 30, 0) 18%),
    radial-gradient(circle at 12% 88%, rgba(120, 80, 30, .16), rgba(120, 80, 30, 0) 22%),
    linear-gradient(to right, rgba(0,0,0,0) 46px, rgba(160, 60, 50, .45) 46px, rgba(160, 60, 50, .45) 47px, rgba(0,0,0,0) 47px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 31px, rgba(70, 90, 120, .22) 31px, rgba(70, 90, 120, .22) 32px);
  background-position: 0 0, 0 0, 0 0, 0 22px;
  -webkit-transform: rotate(-2.5deg); transform: rotate(-2.5deg);
  box-shadow: inset 0 0 50px rgba(90, 55, 20, .35), 0 26px 50px rgba(0, 0, 0, .6);
}
.diario:after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .35  0 0 0 0 .22  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23f)'/></svg>");
}
.diario p { position: relative; text-wrap: pretty; margin: 0; font-style: italic; font-size: 20px; line-height: 32px; }
.diario .diario-fecha { margin-bottom: 0; font-style: normal; font-family: "IM Fell English SC", Georgia, serif; font-size: 17px; color: #6b5640; }
.diario .linea + .linea { margin-top: 0; }
.diario .borroso span { display: inline-block; -webkit-filter: blur(3px); filter: blur(3px); opacity: .75; -webkit-animation: casi 6s infinite; animation: casi 6s infinite; }
@-webkit-keyframes casi { 0%,62%,100% { -webkit-filter: blur(3px); } 70%,76% { -webkit-filter: blur(.6px); } }
@keyframes casi { 0%,62%,100% { filter: blur(3px); } 70%,76% { filter: blur(.6px); } }
.nota-margen {
  display: block; margin: -4px 0 0 46%; white-space: nowrap; line-height: 28px;
  font-size: 17px; color: #a2392b; -webkit-transform: rotate(-7deg); transform: rotate(-7deg);
}
/* La tinta va apareciendo palabra a palabra */
.js .diario .pal { opacity: 0; transition: opacity .35s; }
.js .diario.escrito .pal { opacity: 1; }
.js .diario .nota-margen { opacity: 0; transition: opacity .6s 3.4s; }
.js .diario.escrito .nota-margen { opacity: 1; }

/* ---------- Crea tu personaje: retratos ovalados que se revelan como una fotografía ---------- */
.personaje { position: relative; padding-top: 88px; }
.oficios { margin: 72px 0 0; padding: 0; list-style: none; display: flex; justify-content: space-between; }
.oficios li { width: 22%; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: default; }
.camafeo {
  position: relative; display: block; width: 100%; padding: 10px; background: #15130f;
  border: 1px solid rgba(209, 169, 100, .55); border-radius: 50%;
  box-shadow: 0 0 0 5px #0e0d0b, 0 0 0 6px rgba(209, 169, 100, .25), 0 24px 40px rgba(0, 0, 0, .6);
}
.silueta {
  position: relative; display: block; width: 100%; height: 0; padding-top: 128%; overflow: hidden; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #3a3326, #16140f 70%); /* taste-skill-ignore: fondo de estudio del retrato */
}
.silueta img {
  position: absolute; left: -12%; bottom: 0; width: 124%; height: auto;
  -webkit-filter: brightness(0); filter: brightness(0);
  transition: -webkit-filter 2.4s ease-out, filter 2.4s ease-out, opacity 2.2s ease-in-out;
  image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;
}
.silueta img.oculta { opacity: 0; }
.oficios li.revelado .silueta img, .oficios li:hover .silueta img { -webkit-filter: sepia(.35) brightness(.95) contrast(1.05); filter: sepia(.35) brightness(.95) contrast(1.05); }
.oficios li.pronto.revelado .silueta img { -webkit-filter: grayscale(.7) sepia(.4) brightness(.75); filter: grayscale(.7) sepia(.4) brightness(.75); }
.oficios b { margin-top: 26px; font-family: "IM Fell English SC", Georgia, serif; font-weight: normal; font-size: 32px; }
.oficios em { font-size: 17px; color: var(--tinta-2); }
.oficios .pronto em { color: var(--delirio); }
.llamar { margin: 80px 0 0; text-align: center; }

/* ---------- Te avisamos: vuelta a la calle, como cierre ---------- */
.avisame { position: relative; margin-top: 48px; }
.fondo-avisame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* Aquí el fundido de arriba es muy corto, para que la farola se vea entera */
.fondo-avisame .velo-banda { background: linear-gradient(to bottom, var(--fondo) 0%, rgba(11,13,12,0) 9%, rgba(11,13,12,0) 70%, var(--fondo) 100%); } /* taste-skill-ignore: funde el buzón con el negro */
.fondo-avisame img {
  height: 100%; max-height: none; min-height: 0; opacity: .62; object-position: 30% 50%;
  -webkit-animation: farola 6s infinite steps(1, end); animation: farola 6s infinite steps(1, end);
}
/* La farola del buzón parpadea de vez en cuando */
@-webkit-keyframes farola { 0%{opacity:.62} 37%{opacity:.5} 39%{opacity:.62} 71%{opacity:.56} 72%{opacity:.62} }
@keyframes farola { 0%{opacity:.62} 37%{opacity:.5} 39%{opacity:.62} 71%{opacity:.56} 72%{opacity:.62} }
.avisame-caja { position: relative; z-index: 5; padding-top: 200px; padding-bottom: 136px; text-align: center; }
.avisame-caja > p { margin: 28px auto 0; max-width: 30em; font-size: 21px; line-height: 1.55; }
.avisame .alta, .avisame .alta-hecha { margin: 40px auto 0; text-align: left; }
/* En pantallas anchas, el texto a la derecha, sobre la niebla: el buzón y la farola quedan
   siempre libres en la mitad izquierda, sea cual sea el tamaño de la ventana */
@media (min-width: 1100px) {
  .fondo-avisame img { object-position: 0 0; }
  .avisame-caja { text-align: left; }
  .avisame-caja > h2, .avisame-caja > p, .avisame .alta { margin-left: 50%; padding-left: 24px; }
  .avisame .alta-hecha { margin-left: 50%; }
  .avisame h2 { font-size: 80px; }
}
/* Tableta: como en el móvil, el buzón arriba y el formulario debajo */
@media (min-width: 761px) and (max-width: 1099px) {
  .fondo-avisame { height: 70%; }
  .fondo-avisame img { object-position: 20% 50%; }
  .avisame-caja { padding-top: 52vh; }
}

/* Pie */
.pie { padding: 64px var(--margen) 48px; max-width: 1376px; margin: 0 auto; }
.pie p { margin: 0; max-width: 40em; font-size: 17px; line-height: 1.55; color: var(--tinta-2); }
.pie .legal { margin-top: 16px; }
.llamada { margin-left: 2px; color: var(--laton); text-decoration: none; }

/* Páginas sencillas (privacidad) */
.bloque { padding: 160px var(--margen) 40px; max-width: 980px; margin: 0 auto; }
.bloque p { margin: 0; max-width: 34em; font-size: 21px; line-height: 1.55; }

/* ---------- Entradas al llegar ---------- */
/* Lo demás sube desde abajo con un fundido */
.js .sale {
  opacity: 0; -webkit-transform: translateY(40px); transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(.25, 1, .5, 1), -webkit-transform 1.2s cubic-bezier(.25, 1, .5, 1);
  transition: opacity 1.2s cubic-bezier(.25, 1, .5, 1), transform 1.2s cubic-bezier(.25, 1, .5, 1);
}
.js .sale.visible { opacity: 1; -webkit-transform: none; transform: none; }
/* Títulos: cada palabra sube desde detrás de una máscara */
.parte .m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.parte .i {
  display: inline-block; opacity: 0; -webkit-filter: blur(4px); filter: blur(4px);
  -webkit-transform: translateY(105%); transform: translateY(105%);
  transition: opacity 1.2s cubic-bezier(.25, 1, .5, 1), -webkit-filter 1.2s cubic-bezier(.25, 1, .5, 1), -webkit-transform 1.2s cubic-bezier(.25, 1, .5, 1);
  transition: opacity 1.2s cubic-bezier(.25, 1, .5, 1), filter 1.2s cubic-bezier(.25, 1, .5, 1), transform 1.2s cubic-bezier(.25, 1, .5, 1);
}
.parte.visible .i { opacity: 1; -webkit-filter: none; filter: none; -webkit-transform: none; transform: none; }
/* Escenas: cortinilla de izquierda a derecha */
.cortina {
  -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0);
  transition: -webkit-clip-path 1.3s cubic-bezier(.65, 0, .35, 1); transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1);
}
.cortina.visible { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }

/* ---------- Tableta ---------- */
@media (max-width: 960px) {
  .menu { display: none; }
  .sonido { margin-left: auto; }
  .menu-boton { display: block; }
  .regla, .regla.inv { display: block; margin-top: 80px; margin-bottom: 80px; }
  .objeto { min-height: 420px; }
  .cabecera .col-texto { margin-left: 0; }
  .regla-txt, .regla.inv .regla-txt { padding: 32px 0 0; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .cabecera h2, .avisame h2 { font-size: 11.4vw; }
  .jugar h3 { font-size: 34px; }
  .destacado { font-size: 24px !important; }
  .cabecera .col-texto { margin: 28px 0 0; padding-top: 24px; }
  .col-texto p, .regla-txt p, .avisame-caja > p, .alba .banda-texto p { font-size: 17px; }
  .pueblo, .jugar { padding-top: 88px; }
  .banda-img img { height: 64vh; min-height: 320px; }
  .banda figcaption { margin-top: -40px; font-size: 17px; }
  .objeto { min-height: 340px; }
  .reloj { width: 196px; height: 196px; }
  .rotulo { font-size: 34px; }
  .dado { width: 228px; height: 228px; --u: 3.9px; }
  .estado { margin: 0 8px; }
  .estado img { width: 120px; height: 120px; }
  .estado .rotulo { font-size: 24px; min-width: 6em; }
  .alba .banda-img img { height: 52vh; min-height: 280px; }
  .alba .banda-texto { position: relative; bottom: auto; margin-top: -24px; }
  .alba .banda-texto h3 { font-size: 40px; }
  .vela { margin: 0 8px; }
  .vela img { width: 54px; height: 114px; }
  .eco { font-size: 34px; }
  .diario { padding: 28px; }
  .diario p { font-size: 17px; }
  .personaje { padding-top: 64px; }
  .separador { padding-top: 56px; }
  .separador img { width: 240px; height: 48px; }
  .tablero-fondo { top: 40px; width: 760px; margin-left: -380px; }
  .simbolos img { opacity: .12; max-width: 46vw; }
  .capa-luz img { max-width: 46vw; }
  .tiza { font-size: 22px; white-space: normal; max-width: 9em; }
  .hora-noche { font-size: 15px; margin-left: 10px; }
  .oficios { margin-top: 48px; }
  .camafeo { padding: 7px; }
  .llamar { margin-top: 48px; }
  .eco-caja { height: 80px; }
  .objeto { padding: 24px 0; }
  .ficha { font-size: 15px; margin-top: 28px; }
  .sensaciones li { width: 100%; font-size: 17px; padding: 10px 0; }
  .diario { padding: 22px 26px 28px 54px; background-position: 0 0, 0 0, -12px 0, 0 22px; }
  .diario p { font-size: 17px; }
  .nota-margen { margin-left: 30%; font-size: 15px; }
  .menu-movil a:not(.boton) { font-size: 34px; padding: 16px 0; }
  .menu-movil .mano { width: 32px; height: 25px; margin-right: 14px; }
  .oficios { flex-wrap: wrap; }
  .oficios li { width: 48%; margin-bottom: 32px; }
  .oficios b { font-size: 24px; }
  .oficios em { font-size: 16px; }
  .avisame-caja { padding-top: 120px; padding-bottom: 96px; }
  /* En el móvil, el buzón y la farola arriba y el formulario debajo, sin taparlos */
  .fondo-avisame { height: 72%; }
  .fondo-avisame img { object-position: 22% 50%; }
  .avisame-caja { padding-top: 56vh; }
  .subir { bottom: 16px; width: 48px; height: 48px; }
  .pie { padding: 48px var(--margen) 80px; }
  .pie p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .otro-aviso { opacity: 1; transition: none; }
  .js .sale { opacity: 1; -webkit-filter: none; filter: none; -webkit-transform: none; transform: none; transition: none; }
  .cortina { -webkit-clip-path: none; clip-path: none; }
  .fondo-avisame img { -webkit-animation: none; animation: none; }
  .pulsable.otro .banda-img { -webkit-animation: none; animation: none; }
  .eco.oido { -webkit-animation: none; animation: none; }
}

/* Aviso de la portada: «el otro lado» en el color del delirio */
.otro-aviso { font-style: normal; }
.otro-aviso em { font-style: italic; color: var(--delirio); }

/* Móviles estrechos (iPhone de 375 px o menos): la cabecera tiene que caber en una línea */
@media (max-width: 480px) {
  .sonido .largo { display: none; }
  .sonido .corto { display: inline; }
  .sonido, .menu-boton { padding: 8px 10px; }
  .menu-boton { margin-left: 4px; }
  .hora-noche { margin-left: 8px; font-size: 14px; }
  .reloj-mini { width: 18px; height: 18px; margin-right: 5px; }
}
