/* The opening cutscene (src/opening.js): black fade, letterbox bars, a caption and the "Salta" button.
   The overlay sits above everything in #stage (z-index 40; #dialog is 30) and keeps every tap for itself.
   While it plays #stage has the class op-cutscene, which hides the rest of the interface (the HUD, the joystick…). */
#stage.op-cutscene > :not(#view):not(#flash):not(.op-scene) { visibility: hidden !important; }

.op-scene { position: absolute; inset: 0; z-index: 40; overflow: hidden; touch-action: none; }
.op-scene .op-black { position: absolute; inset: 0; background: #000; opacity: 1; pointer-events: none; }
.op-scene .op-bar { position: absolute; left: 0; right: 0; height: max(48px, 9%); background: #000; pointer-events: none; will-change: transform; }
.op-scene .op-top { top: 0; transform: translateY(-100%); }
.op-scene .op-bottom { bottom: 0; transform: translateY(100%); }

.op-scene .op-caption { position: absolute; left: 16px; right: 16px; top: 20%; margin: 0; text-align: center; color: #f4efe2; opacity: 0; pointer-events: none; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 0, 0, 0.55); }
.op-scene .op-caption.title { font-size: 24px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.op-scene .op-caption.note { font-size: 17px; font-weight: 700; font-style: italic; letter-spacing: 0.02em; }

.op-scene .op-skip {
  position: absolute; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 96px; min-height: 48px; padding: 8px 18px;
  border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 24px;
  background: rgba(0, 0, 0, 0.45); color: #fff;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0.02em;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.op-scene .op-skip b { font-size: 18px; line-height: 1; }
.op-scene .op-skip:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.2); }
.op-scene .op-skip:focus-visible { outline: 3px solid #ffd23a; outline-offset: 2px; }
