.candidate-intro[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.candidate-intro.ci-video-intro {
  background: #132d30;
}
.civ-frame {
  position: absolute;
  inset: calc(68px + env(safe-area-inset-top, 0px)) 0 calc(45px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
}
.civ-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.civ-status {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: #e9f3e1;
}
.ci-video-intro .ci2-sound[aria-pressed=true] {
  background: #427e42;
  border-color: #c6df98;
}
.ci-video-intro .ci2-sound[aria-pressed=false] {
  background: #354c50;
  color: #d3dcdb;
}
.civ-frame[hidden] {
  display: none;
}
.ci-video-intro[data-phase=formation] {
  background: transparent;
}
.civ-horn-scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}
.civ-horn-actor {
  position: absolute;
  left: 4%;
  top: 4%;
  width: 76%;
  height: 58%;
  opacity: 0;
  transform-origin: 70% 42%;
  will-change: transform, opacity;
}
.civ-horn-actor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.civ-horn-puffs {
  position: absolute;
  left: var(--horn-x);
  top: var(--horn-y);
  opacity: var(--horn-puff,0);
  width: 1px;
  height: 1px;
}
.civ-horn-puffs i {
  position: absolute;
  left: -5px;
  top: -16px;
  width: 25px;
  height: 32px;
  border: 3px solid #fbf5ae;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-24deg);
  filter: drop-shadow(0 1px 0 #5e8a35);
}
.civ-horn-puffs i:nth-child(2) {
  left: 9px;
  top: -25px;
  width: 35px;
  height: 47px;
  opacity: .7;
}
.civ-horn-puffs i:nth-child(3) {
  left: 24px;
  top: -33px;
  width: 45px;
  height: 61px;
  opacity: .35;
}
.candidate-intro {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 110;
  background: #193d35;
  overflow: hidden;
  color: #fff9e8;
  isolation: isolate;
}
.candidate-intro[data-ready=false] {
  background:
    radial-gradient(
      ellipse at 50% 38%,
      #e4f5ce,
      #d4efb5 50%,
      #c8eea4);
}
.candidate-intro[data-ready=false] .candidate-stage {
  visibility: hidden;
}
.candidate-intro[data-ready=false] .ci3-progress {
  display: none;
}
.ci2-loading {
  display: contents;
  pointer-events: none;
}
.ci2-loading > img,
.ci2-loading > strong {
  display: none;
}
.candidate-intro[data-ready=false] .ci2-loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 65px 35px;
  color: #375d30;
}
.candidate-intro[data-ready=false] .ci2-loading > img {
  display: block;
  width: min(230px, 72%);
  height: auto;
  margin-bottom: 8px;
}
.candidate-intro[data-ready=false] .ci2-loading > strong {
  display: block;
  font-size: 20px;
  letter-spacing: 3px;
}
.candidate-intro[data-ready=false] .ci2-loading > .ci2-load {
  position: static;
  margin: 0;
  color: #587442;
  font-size: 12px;
  min-height: 18px;
}
.candidate-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, calc(calc(var(--legacy-vh,1vh) * 100) * .5625));
  width: min(100%, calc(100dvh * .5625));
  margin-inline: auto;
  overflow: hidden;
  background: #b8ddba;
  isolation: isolate;
}
.ci3-location {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: scale(1.035);
  transition: transform .6s ease-out;
  pointer-events: none;
}
.ci3-location-before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.035);
}
.candidate-stage[data-shot=reaction] .ci3-location {
  transform: scale(1.07) translateX(1%);
}
.candidate-stage:is([data-shot=candidate], [data-shot=interrupt]) .ci3-location {
  transform: scale(1.075) translateX(-1%);
}
.ci3-vignette {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      #17362b25,
      transparent 22%,
      transparent 58%,
      #142f2e78 92%);
  pointer-events: none;
  z-index: 4;
}
.ci3-camera {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform-origin: 50% 65%;
  transition: transform .45s cubic-bezier(.2, .8, .3, 1);
}
.candidate-stage[data-shot=reaction] .ci3-camera {
  transform: scale(1.075) translate(2%, 0);
}
.candidate-stage:is([data-shot=candidate], [data-shot=interrupt]) .ci3-camera {
  transform: scale(1.12) translate(-3%, 1%);
}
.candidate-stage[data-shot=solo] .ci3-camera {
  transform: scale(1.045);
}
.candidate-stage[data-resident-full=true][data-shot=reaction] .ci3-camera {
  transform: translate(1%, 0);
}
.candidate-stage[data-resident-full=true]:is([data-shot=candidate], [data-shot=interrupt]) .ci3-camera {
  transform: translate(-.5%, 0);
}
.ci2-city {
  position: absolute;
  left: 18px;
  top: calc(74px + env(safe-area-inset-top, 0px));
  padding: 6px 11px;
  border: 1px solid #fff4c25c;
  border-radius: 99px;
  background: #294c3caf;
  color: #fff7df;
  letter-spacing: 3px;
  font: 700 11px/1.5 system-ui, sans-serif;
  z-index: 8;
}
.ci2-actor {
  position: absolute;
  left: 18%;
  bottom: 14%;
  width: 84%;
  height: 72%;
  transform-origin: 50% 90%;
  transition: opacity .35s, filter .35s;
  z-index: 2;
}
.ci2-actor img,
.ci2-resident img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 6px 2px #24462b25);
}
.ci2-actor .ci3-before {
  opacity: 0;
}
.ci4-adult {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 2px #24462b25);
}
.candidate-stage[data-rig=true] .ci2-actor img {
  display: none;
}
.ci2-resident {
  position: absolute;
  left: -4%;
  bottom: 15%;
  width: 52%;
  height: 40%;
  transform-origin: 40% 85%;
  z-index: 3;
  transition: opacity .35s, transform .4s;
}
.candidate-stage[data-speaker=candidate] .ci2-resident {
  filter: brightness(.88) saturate(.85);
  transform: scale(.96) translateX(-5px);
}
.candidate-stage[data-speaker=resident] .ci2-resident {
  animation: ci3-reaction-in .35s cubic-bezier(.2, .85, .3, 1.25) both;
}
.candidate-stage[data-speaker=resident] .ci2-actor {
  filter: brightness(.88) saturate(.85);
}
.candidate-stage[data-resident-full=true] .ci2-actor {
  left: 31%;
  bottom: 20%;
  width: 68%;
}
.candidate-stage[data-resident-full=true] .ci2-resident {
  left: -2%;
  bottom: 20%;
  width: 51%;
  height: 63%;
  transform-origin: 50% 100%;
}
.candidate-stage[data-resident-full=true][data-resident-gender=female] .ci2-resident {
  width: 56%;
}
.candidate-stage[data-resident-full=true][data-speaker=candidate] .ci2-resident {
  transform: none;
}
.candidate-stage[data-action=interrupt] .ci2-actor {
  animation: ci3-interrupt .58s ease-out both;
}
.candidate-stage[data-solo=true] .ci2-actor {
  left: 9%;
  width: 82%;
  bottom: 20%;
  height: 70%;
}
.candidate-stage[data-solo=true] .ci2-resident {
  display: none;
}
.candidate-stage[data-action=candidate-entry] .ci2-actor {
  animation: ci3-candidate-entry 1.65s cubic-bezier(.2, .7, .25, 1) both;
}
.candidate-stage[data-action=candidate-horn] .ci2-actor {
  animation: ci3-horn-kick .23s ease-in-out 4 alternate;
}
.candidate-stage[data-action=transform] .ci3-current {
  animation: ci3-new-pose .8s both;
}
.candidate-stage[data-action=transform] .ci3-before {
  animation: ci3-old-pose .8s both;
}
.ci2-poof {
  position: absolute;
  left: 24%;
  top: 18%;
  width: 74%;
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}
.ci2-poof img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.candidate-stage[data-action=transform] .ci2-poof {
  animation: ci3-transform .85s ease-out both;
}
.ci2-dialogue[hidden] {
  display: none;
}
.ci2-dialogue {
  position: absolute;
  left: 14px;
  top: 120px;
  width: max-content;
  max-width: min(78%, 330px);
  padding: 11px 14px;
  box-sizing: border-box;
  border: 2px solid #536743;
  border-radius: 19px;
  background: #fffdec;
  box-shadow: 0 3px 0 #27442e28;
  z-index: 12;
  pointer-events: none;
}
.ci2-dialogue:after {
  content: "";
  position: absolute;
  left: calc(var(--speech-tail,40px) - 6px);
  bottom: -7px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fffdec;
  border-right: 2px solid #536743;
  border-bottom: 2px solid #536743;
}
.ci2-dialogue[data-tail=up]:after {
  top: -7px;
  bottom: auto;
  transform: rotate(225deg);
}
.ci2-dialogue b,
.ci2-dialogue small {
  display: none;
}
.ci2-dialogue p {
  margin: 0;
  color: #294636;
  font: 600 clamp(14px, calc(var(--legacy-vh,1vh) * 1.9), 16px)/1.65 system-ui, sans-serif;
  font: 600 clamp(14px, 1.9dvh, 16px)/1.65 system-ui, sans-serif;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.ci2-nav {
  position: absolute;
  z-index: 30;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ci2-nav > div {
  display: flex;
  gap: 7px;
}
.ci2-nav button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #f8efc654;
  border-radius: 13px;
  color: #fff9e8;
  background: #173a31c9;
  font-size: 12px;
}
.ci2-sound {
  min-width: 44px;
  font-size: 18px !important;
}
.ci2-sound[aria-pressed=false] {
  color: #a3b7a6;
  background: #304c43;
  text-decoration: line-through;
}
.ci2-nav button:focus-visible {
  outline: 3px solid #fff1a0;
  outline-offset: 3px;
}
.ci3-progress {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 8%;
  right: 8%;
  height: 3px;
  border-radius: 9px;
  background: #cfe5bd3d;
  z-index: 30;
  overflow: hidden;
}
.ci3-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #f9e5a7;
  transform: scaleX(var(--ci3-progress,0));
  transform-origin: left center;
}
.ci2-load {
  position: absolute;
  left: 15%;
  right: 15%;
  top: calc(18px + env(safe-area-inset-top, 0px));
  margin: 0;
  min-height: 15px;
  text-align: center;
  font: 10px/1.5 system-ui, sans-serif;
  color: #ebf5d2;
  pointer-events: none;
  z-index: 29;
}
.candidate-intro[data-ready=false] .ci3-camera,
.candidate-intro[data-ready=false] .ci2-dialogue {
  visibility: hidden;
}
.ci2-flights {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}
.ci2-flying-card {
  pointer-events: none !important;
  opacity: 0;
  will-change: transform;
  transform-origin: 50% 50%;
  cursor: default;
}
.ci2-flying-card .card-face {
  height: 100%;
  bottom: 0;
  transform: none;
  grid-template-rows: minmax(0, 1fr) var(--ci2-caption,12px);
  padding: 2px;
}
.candidate-intro[data-phase=formation] {
  background: transparent;
}
#app[data-entry-forming=true] #screen-game > :not(.board-wrap) {
  visibility: hidden;
}
.candidate-intro[data-phase=formation] .candidate-stage {
  background: transparent;
  width: 100%;
  transition: none;
}
.candidate-intro[data-phase=formation] .ci3-camera {
  transform: none;
  transition: none;
}
.candidate-intro[data-phase=formation] .ci2-actor {
  left: 25%;
  top: 17%;
  bottom: auto;
  width: 72%;
  height: 58%;
  opacity: 1;
  filter: none;
  transition: none;
  animation: ci3-horn-kick .23s ease-in-out 4 alternate;
}
.candidate-intro[data-phase=formation] .ci2-dialogue,
.candidate-intro[data-phase=formation] .ci2-resident,
.candidate-intro[data-phase=formation] .ci2-city,
.candidate-intro[data-phase=formation] .ci3-location,
.candidate-intro[data-phase=formation] .ci3-location-before,
.candidate-intro[data-phase=formation] .ci3-vignette,
.candidate-intro[data-phase=formation] .ci2-school,
.candidate-intro[data-phase=formation] .ci3-progress {
  display: none;
}
.ci2-school {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  overflow: hidden;
}
.candidate-stage[data-scene=school] .ci2-school {
  display: block;
}
.candidate-stage[data-scene=school] .ci2-actor,
.candidate-stage[data-scene=school] .ci2-resident {
  display: none;
}
.ci2-fiction {
  position: absolute;
  right: 16px;
  top: calc(82px + env(safe-area-inset-top, 0px));
  font: 10px/1.5 system-ui, sans-serif;
  letter-spacing: 2px;
  color: #355749;
}
.ci2-door {
  position: absolute;
  left: 72%;
  top: 19%;
  width: 22%;
  height: 39%;
  perspective: 550px;
  z-index: 4;
}
.ci2-door > span {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  color: #fff4d4;
  font: 800 10px/1.5 system-ui;
  text-align: center;
  z-index: 2;
  transform: rotate(-5deg);
}
.ci2-door > i {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      90deg,
      #b5844c,
      #dbb576);
  border: 3px solid #644a37;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 89%);
  transform-origin: right center;
  transform: rotateY(var(--ci4-door-angle,-84deg));
}
.ci2-door > i:after {
  content: "";
  position: absolute;
  left: 12%;
  top: 53%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f6e5b6;
  border: 2px solid #705637;
}
.ci2-girl {
  position: absolute;
  left: 30%;
  bottom: 22%;
  width: 43%;
  height: 44%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 3;
  transform-origin: center bottom;
  transform: translate(var(--ci4-girl-x,0px), var(--ci4-girl-y,0px)) scale(var(--ci4-girl-scale,1));
  opacity: var(--ci4-girl-alpha,1);
}
.ci2-friend {
  position: absolute;
  left: 0%;
  bottom: 22%;
  width: 40%;
  height: 43%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 5;
  opacity: var(--ci4-friend-entry,0);
  translate: calc(-85px * (1 - var(--ci4-friend-entry,0))) 0;
}
.ci2-ball {
  position: absolute;
  left: 4%;
  bottom: 22%;
  width: 44px;
  height: 44px;
  z-index: 6;
}
.ci2-ball svg {
  width: 100%;
  height: 100%;
}
.candidate-stage[data-action=ball] .ci2-ball {
  animation: ci3-football 1.7s cubic-bezier(.2, .8, .4, 1) both;
}
.candidate-stage:is([data-action=door-close], [data-action=help], [data-action=resolve]) .ci2-ball {
  left: 19%;
  opacity: .65;
}
.candidate-intro[data-hidden=true] * {
  animation-play-state: paused !important;
}
@keyframes ci3-reaction-in {
  0% {
    transform: translateY(12px) scale(.95);
  }
  55% {
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    transform: none;
  }
}
@keyframes ci3-interrupt {
  0% {
    transform: translateX(20px) rotate(3deg);
  }
  35% {
    transform: translateX(-9px) rotate(-2deg);
  }
  100% {
    transform: none;
  }
}
@keyframes ci3-candidate-entry {
  from {
    translate: 100px 0;
    rotate: 4deg;
  }
  to {
    translate: 0 0;
    rotate: 0deg;
  }
}
@keyframes ci3-transform {
  0% {
    opacity: 0;
    transform: scale(.4) rotate(-12deg);
  }
  25% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.32) rotate(12deg);
  }
}
@keyframes ci3-old-pose {
  0%, 43% {
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
  }
}
@keyframes ci3-new-pose {
  0%, 43% {
    opacity: 0;
  }
  55%, 100% {
    opacity: 1;
  }
}
@keyframes ci3-horn-kick {
  from {
    rotate: -2deg;
    translate: 2px 0;
  }
  to {
    rotate: 2deg;
    translate: -2px 0;
  }
}
@keyframes ci3-football {
  from {
    translate: -70px 0;
    rotate: -140deg;
  }
  to {
    translate: 95px 0;
    rotate: 260deg;
  }
}
@media (max-height: 720px) {
  .ci2-city {
    top: 66px;
  }
  .ci2-dialogue {
    padding: 9px 12px;
  }
  .ci2-dialogue p {
    font-size: 14px;
    line-height: 1.6;
  }
  .ci2-actor {
    bottom: 15%;
  }
  .ci2-resident {
    bottom: 15%;
  }
  .ci2-fiction {
    top: 70px;
  }
}
@media (max-height: 720px) {
  .candidate-stage[data-resident-full=true] .ci2-actor,
  .candidate-stage[data-resident-full=true] .ci2-resident {
    bottom: 18%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .candidate-intro * {
    animation: none !important;
    transition: none !important;
  }
  .ci3-before {
    display: none !important;
  }
}
.candidate-stage[data-reduced=true] * {
  animation: none !important;
  transition: none !important;
}
.candidate-stage[data-reduced=true] .ci3-before {
  display: none !important;
}
