/* cutscene da intro: deserto ao pôr do sol (duas faixas de fotografia em paralaxe, caminhão) e depois a clínica à noite (fotografia) */
.cs {
  position: relative;
  flex: 1;
  min-height: 100%;
  overflow: hidden;
  background: #07040b;
}
.cssc {
  position: absolute;
  inset: 0;
  transition: opacity 1s;
}
.cssc.s1.out {
  opacity: 0;
}
.cssc.s2 {
  opacity: 0;
  background: #07040b;
}
.cssc.s2.in {
  opacity: 1;
}
.cssc .cs-desert-far {
  bottom: 34%;
}
.cssc .cs-desert-near {
  top: 64%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%);
  mask-image: linear-gradient(180deg, transparent 0, #000 24%);
}
.cstruck {
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: 290px;
  margin-left: -160px;
  animation: csbump 0.38s ease-in-out infinite alternate;
}
.cstruck > svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
}
.cswh {
  animation: csspin 0.4s linear infinite;
}
@keyframes csspin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes csbump {
  to {
    transform: translateY(-4px) rotate(-0.6deg);
  }
}
.csmom {
  position: absolute;
  left: 28px;
  bottom: 58px;
  width: 86px;
}
.csmom svg {
  width: 100%;
  height: auto;
  display: block;
  animation: csbump 0.5s ease-in-out infinite alternate-reverse;
}
.csdust {
  position: absolute;
  left: calc(50% - 190px);
  bottom: 15%;
  width: 70px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 184, 96, 0.8), transparent 70%);
  animation: csdust 0.5s ease-out infinite;
}
@keyframes csdust {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: translate(-60px, -20px) scale(1.4);
    opacity: 0;
  }
}
.csclin {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  isolation: isolate;
  container-type: size;
}
.cssign2 {
  position: absolute;
  left: calc(64% - 21cqh);
  width: 42cqh;
  top: 21%;
  text-align: center;
  font-family: var(--f-horror);
  font-size: 30px;
  color: #9dff8a;
  text-shadow: 0 0 12px #3ebf5a;
  animation: ctneon 2.6s steps(1) infinite;
  line-height: 1;
}
.cssign2 small {
  display: block;
  font-family: var(--f-body);
  font-weight: 900;
  font-size: 11px;
  color: #c9ffc0;
  text-shadow: none;
  opacity: 0.7;
}
.cscross {
  position: absolute;
  left: calc(64% - 17px);
  top: 3.5%;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(#e0243a, #e0243a) center/12px 100% no-repeat,
    linear-gradient(#e0243a, #e0243a) center/100% 12px no-repeat;
  filter: drop-shadow(0 0 8px #e0243a);
  animation: ctneon 3.4s steps(1) infinite;
}
.cswin2 {
  position: absolute;
  left: calc(64% - 31cqh);
  top: 40%;
  width: 11cqh;
  height: 16.5%;
  background: rgba(18, 10, 20, 0.5);
  border: 4px solid #231b33;
  transition: background 0.4s;
}
.cswin2.on {
  background: #8e1a22;
  box-shadow: 0 0 30px #e0243a;
}
.cswin2.flash {
  animation: cswf 0.25s steps(1) 6;
}
@keyframes cswf {
  50% {
    background: #fff;
  }
}
/* a porta: .csdoor2 é o vão escuro com o batente; a folha (:after) gira na dobradiça da esquerda e bate depois que a mãe entra */
.csdoor2 {
  position: absolute;
  left: calc(64% - 6cqh);
  bottom: 30%;
  width: 12cqh;
  height: 27%;
  background: linear-gradient(90deg, #050305, #1c0b10);
  border: 4px solid #231b33;
  border-bottom: 0;
  perspective: 220px;
}
.csdoor2:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 54%, #f5c030 0 3.5px, #231b33 3.6px 5px, transparent 5.2px),
    linear-gradient(90deg, #6b4630, #4a2e22);
  box-shadow: inset 0 0 0 3px #3a2218;
  transform-origin: left center;
  transform: rotateY(76deg);
  transition: transform 0.34s cubic-bezier(0.55, 0, 0.85, 0.35);
}
.csdoor2.shut:after {
  transform: none;
}
.csmom2 {
  position: absolute;
  left: -30%;
  bottom: 18%;
  width: 90px;
  transition:
    left 1.6s linear,
    opacity 0.35s,
    transform 0.35s;
}
.csmom2 svg {
  width: 100%;
  height: auto;
  display: block;
}
.csmom2.walk {
  left: calc(50% + 6px);
  animation: csbump 0.3s ease-in-out infinite alternate;
}
.csmom2.gone {
  opacity: 0;
  animation: none;
  transform: translateY(-4px) scale(0.84);
}
.cscap {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(50px + env(safe-area-inset-top, 0px));
  text-align: center;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
  text-shadow:
    0 2px 0 #000,
    0 0 14px #000;
  opacity: 0;
  text-wrap: balance;
}
.cscap.on {
  animation: cscap 0.6s ease-out forwards;
}
.cs.wait .cscap.on {
  animation:
    cscap 0.6s ease-out forwards,
    cswait 1.4s ease-in-out 0.6s infinite;
}
@keyframes cswait {
  50% {
    opacity: 0.5;
  }
}
@keyframes cscap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.csskip {
  position: absolute;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 99px;
  padding: 9px 16px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.csskip::after {
  content: "";
  position: absolute;
  inset: -10px -8px;
}
.csskip:active {
  transform: scale(0.94);
  filter: brightness(1.6);
}
