#faunaraColdOpen {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: #000;
  color: #fff3d8;
  font-family: system-ui, sans-serif;
  pointer-events: auto;
  isolation: isolate;
}
#faunaraColdOpen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 1.5s;
}
#faunaraColdOpen.is-black canvas,
#faunaraColdOpen.is-black .cold-location {
  opacity: 0;
}
.cold-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#08100c55, transparent 25% 65%, #08100cbb);
}
.is-black .cold-shade {
  background: #000;
}
.cold-location {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  text-shadow: 0 2px 8px #000;
}
.cold-dialogue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 40px));
  padding: 22px 26px;
  border: 2px solid #bba878;
  border-radius: 12px;
  background: #10241ef2;
  box-sizing: border-box;
}
.cold-speaker {
  color: #e8ce85;
  font-size: 11px;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
}
.cold-line {
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.5;
  margin: 0 0 16px;
  min-height: 38px;
}
.cold-next,
.cold-touch button,
.cold-skip {
  border: 1px solid #deca92;
  border-radius: 7px;
  background: #234436;
  color: #fff1cd;
  padding: 12px 18px;
  font: 600 14px system-ui;
  cursor: pointer;
  min-height: 46px;
}
.cold-next {
  display: block;
  margin-left: auto;
}
.cold-next:disabled {
  opacity: 0.4;
}
.cold-next:focus-visible,
.cold-touch button:focus-visible {
  outline: 3px solid #fff;
}
.cold-ride {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  text-align: center;
  text-shadow: 0 2px 8px #000;
}
.cold-status {
  font-weight: 700;
  font-size: 18px;
}
.cold-touch {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 650px;
  margin: auto;
}
.cold-touch button {
  touch-action: none;
  min-width: 76px;
  background: #10241eed;
}
.cold-skip {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 11px;
}
.cold-hit:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 9px solid #eead6666;
  pointer-events: none;
}
.cold-save-error {
  position: absolute;
  top: 58px;
  left: 20px;
  right: 20px;
  color: #ffdb92;
  text-align: center;
  background: #261409e8;
}
.cold-save-error:empty {
  display: none;
}
#faunaraColdOpen [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .cold-dialogue {
    bottom: 12px;
    padding: 16px;
  }
  .cold-location {
    top: 58px;
    font-size: 10px;
  }
  .cold-ride > p {
    font-size: 12px;
  }
  .cold-status {
    font-size: 16px !important;
  }
}
.cold-touch { flex-wrap: wrap; justify-content: center; max-width: 950px; gap: 8px; }
.cold-touch button { min-width: 58px; padding: 10px 12px; }
@media (max-width: 600px) { .cold-touch { gap: 5px; } .cold-touch button { font-size: 12px; padding: 8px; } }

/* The escape has no special HUD; touch-only controls remain available. */
.cold-ride { display: none; }
@media (pointer: coarse) { .cold-ride { display: block; } }
body.faunara-opening-active #faunaraSettings { z-index: 180; }
body.faunara-opening-active #faunaraInputDialog { z-index: 182; }
body.faunara-opening-active #faunaraExitConfirm { z-index: 184; }

#faunaraColdOpen.is-arriving::before {
  content: ''; position: absolute; inset: 0; z-index: 10; background: #000;
  animation: cold-gate-fade .8s ease forwards;
}
@keyframes cold-gate-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #faunaraColdOpen.is-arriving::before { animation-duration: .01s; }
}

body.faunara-opening-active #faunaraPause { z-index: 180; }
