/* Reactions belong to the dinosaur room, never to the page or the sky. */
.din-meteor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; image-rendering: pixelated; }
.page-dinosaurs .din-quote { transition: color 1.8s ease, opacity .9s ease; }
.page-dinosaurs .din-cosmic-message .din-quote { opacity: 0; pointer-events: none; }
.page-dinosaurs .din-night .din-quote { color: #bbdef3; }
.din-bubble {
  position: absolute; z-index: 8; left: 50%; bottom: calc(18% + min(24vw, 235px));
  width: min(340px, 78vw); margin: 0; padding: 22px 30px 26px;
  border: 2px solid #513452; border-radius: 48% 52% 43% 47%;
  background: #fff3fa; color: #472449;
  font: 600 clamp(22px, 2vw, 29px)/1.15 'Caveat', cursive;
  text-align: center; text-wrap: balance; transform: translateX(-50%);
  opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s;
  pointer-events: none;
}
.din-bubble::after {
  content: ''; position: absolute; bottom: -17px; left: 54%; width: 20px; height: 24px;
  background: #fff3fa; border-right: 2px solid #513452; border-bottom: 2px solid #513452;
  transform: skewY(35deg) rotate(22deg); border-radius: 0 0 8px 0;
}
.din-space-question {
  position: absolute; z-index: 4; top: 19%; left: 50%; transform: translateX(-50%);
  width: min(940px, 90%); margin: 0; color: #c4e4fc;
  font: 400 clamp(20px, min(2.3vw, 3.25svh), 36px)/1.32 'Dino Kosmos', cursive;
  letter-spacing: .012em;
  text-align: center; text-wrap: balance; text-shadow: 0 0 24px #9fbff94d;
  opacity: 0; visibility: hidden; transition: opacity 2.4s ease, visibility 0s 2.4s;
  pointer-events: none;
}
.din-space-question span { display: block; }
.din-bubble.is-visible, .din-space-question.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.din-scene-reset {
  position: absolute; right: 4%; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 31;
  padding: 10px 14px; border: 1px solid #d3e2ff55; border-radius: 25px;
  background: #25204266; color: #d3e5f9; font: 11px/1.4 'Manrope', sans-serif; cursor: pointer;
}
.din-scene-reset[hidden] { display: none; }
.din-scene-reset:focus-visible { outline: 2px solid #c4e4fc; outline-offset: 4px; }
@media (max-width: 600px) {
  .din-space-question { top: 23%; font-size: clamp(19px, 4.8vw, 24px); line-height: 1.42; width: 94%; }
  .din-bubble { padding: 18px 24px 22px; }
  .din-scene-reset { right: 12px; bottom: max(20px, env(safe-area-inset-bottom)); }
  .din-has-reaction .din-excavation-ui { left: 12px; right: auto; text-align: left; }
}
@media (min-width: 601px) and (max-height: 740px) {
  .din-space-question { top: 15%; font-size: clamp(16px, min(2.3vw, 3svh), 23px); line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .page-dinosaurs .din-quote, .din-space-question, .din-bubble { transition: none; }
}
