/* 3D cartoon scenes (app/js/toon/*): fullscreen cutscene overlay + embedded canvases. */
.toon-ov {
  position: fixed; inset: 0; z-index: 97; background: #150F33; opacity: 0; transition: opacity .35s ease;
  display: block; overflow: hidden;
}
.toon-ov.in { opacity: 1; }
.toon-ov.out { opacity: 0; }
.toon-box { position: absolute; inset: 0; }
.toon-load { position: absolute; left: 50%; top: 50%; font-size: 56px; transform: translate(-50%, -50%); animation: toonPulse 1s ease-in-out infinite; }
@keyframes toonPulse { 0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.85) rotate(-10deg); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(10deg); } }
.toon-canvas { display: block; width: 100%; height: 100%; }
.toon-cap {
  position: absolute; left: 50%; bottom: 11%; transform: translate(-50%, 16px); max-width: min(88vw, 900px);
  color: #fff; font-size: clamp(24px, 3.4vw, 40px); font-weight: 900; line-height: 1.2; text-align: center;
  text-shadow: 0 3px 0 rgba(40, 20, 90, .55), 0 0 24px rgba(120, 90, 255, .55);
  opacity: 0; transition: opacity .45s ease, transform .45s ease; pointer-events: none;
}
.toon-cap.on { opacity: 1; transform: translate(-50%, 0); }
.toon-skip {
  position: absolute; top: 18px; right: 18px; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 17px;
  background: rgba(255, 255, 255, .88); color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
}
.toon-skip:hover { background: #fff; }

/* embedded views */
.toon-hero { position: relative; width: 230px; height: 250px; cursor: pointer; }
.toon-hero .toon-canvas { border-radius: 18px; }
.toon-res { position: relative; width: 100%; height: 250px; margin-top: -6px; }
.toon-strip { position: relative; width: 100%; height: 300px; border-radius: 22px; overflow: hidden; cursor: pointer; }
.kd-strip3d { margin-bottom: 16px; box-shadow: var(--sh); }
.toon-loc { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; cursor: pointer; }

@media (max-width: 700px) {
  .toon-hero { width: 190px; height: 210px; }
  .toon-res { height: 210px; }
  .toon-strip { height: 220px; }
}
@media (max-height: 760px) {
  .toon-res { height: 200px; }
}
/* phones (landscape): the 3D panorama leaves room for the places below it */
@media (max-height: 500px) and (min-width: 560px) {
  .toon-strip { height: 190px; }
  .toon-skip { top: 10px; right: 10px; min-height: 44px; }
  .toon-cap { bottom: 8%; font-size: 24px; }
}
@media (max-width: 700px) {
  .toon-skip { top: 10px; right: 10px; min-height: 44px; }
}
