/* URU プテラノドン予約案内・飛行イベント v1.0.1 */
.uru-ptera-reservation {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.6vw, 19px);
  box-sizing: border-box;
  width: 100%;
  padding: 10px 2px 13px;
}
.uru-ptera-reservation .uru-ptera-character,
.uru-ptera-reservation .uru-ptera-character:hover,
.uru-ptera-reservation .uru-ptera-character:active {
  flex: 0 0 auto;
  display: block;
  padding: 0;
  margin: 0;
  width: clamp(78px, 14vw, 122px);
  height: clamp(78px, 14vw, 122px);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.uru-ptera-character:focus-visible {
  outline: 3px solid #c07b93;
  outline-offset: 4px;
  border-radius: 12px;
}
.uru-ptera-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(53, 57, 54, .19));
  transition: transform 200ms ease, filter 200ms ease;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
.uru-ptera-character:hover img,
.uru-ptera-character:focus-visible img {
  transform: rotate(5deg) translateY(-3px);
  filter: brightness(1.07) drop-shadow(0 5px 7px rgba(53, 57, 54, .2));
}
.uru-ptera-bubble {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 570px;
  min-height: 55px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fffaf3;
  color: #463830;
  border: 1.5px solid #d8b79c;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(113, 80, 58, .08);
  padding: 13px clamp(12px, 3vw, 24px);
  line-height: 1.7;
  text-align: center;
  font-size: clamp(14px, 1.55vw, 17px);
}
.uru-ptera-bubble::before,
.uru-ptera-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 100%;
  height: 0;
  width: 0;
  border-style: solid;
}
.uru-ptera-bubble::before {
  border-width: 12px 0 12px 14px;
  border-color: transparent transparent transparent #d8b79c;
}
.uru-ptera-bubble::after {
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent #fffaf3;
}
.uru-ptera-bubble p { margin: 0; line-height: inherit; }
.uru-ptera-bubble a { color: #8d4e6b; text-decoration: underline; font-weight: 700; text-underline-offset: 3px; }
.uru-ptera-bubble a:hover { color: #bc587e; }
.uru-ptera-speech { font-weight: 700; color: #a65772; letter-spacing: .015em; }
.uru-ptera-speech[hidden], .uru-ptera-notice[hidden] { display: none !important; }
.uru-ptera-reacting .uru-ptera-bubble { animation: uru-ptera-notice-pop .36s ease both; }
@keyframes uru-ptera-notice-pop {
  0% { transform: scale(.97) rotate(-.7deg); }
  50% { transform: scale(1.025) rotate(.4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.uru-ptera-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 9900;
  pointer-events: none !important;
  overflow: hidden;
  contain: layout paint;
}
.uru-ptera-flying-canvas { width: 100% !important; height: 100% !important; display:block; pointer-events:none !important; }
.uru-ptera-impact {
  position:fixed;
  inset:0;
  z-index: 9901;
  pointer-events:none;
  opacity:0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.48) 0%,rgba(255,225,117,.23) 28%,rgba(250,68,60,.12) 58%,transparent 85%);
}
.uru-ptera-impact-active { animation: uru-ptera-impact .16s ease-out both; }
@keyframes uru-ptera-impact { 0%{opacity:0;} 35%{opacity:1;} 100%{opacity:0;} }
@media (max-width: 700px) {
  .uru-ptera-reservation { gap: 9px; padding: 10px 0; }
  .uru-ptera-reservation .uru-ptera-character,
  .uru-ptera-reservation .uru-ptera-character:hover,
  .uru-ptera-reservation .uru-ptera-character:active { width: clamp(68px, 22vw, 94px); height: clamp(68px, 22vw, 94px); }
  .uru-ptera-bubble { border-radius: 16px; font-size: 13px; line-height: 1.6; padding: 9px 11px; min-height: 68px; }
  .uru-ptera-bubble::before { border-width: 9px 0 9px 11px; }
  .uru-ptera-bubble::after { border-width: 7px 0 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .uru-ptera-reacting .uru-ptera-bubble,
  .uru-ptera-impact-active { animation: none !important; }
  .uru-ptera-character img { transition: none; }
}
