/* ==========================================================================
   15-Second Opening Sequence (Frame 0 Old-School PPT -> 3D Breakout -> S1)
   Inspired by "The Last Boring Slide"
   ========================================================================== */

.opening-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  border-radius: inherit;
  user-select: none;
}

.opening-overlay.is-hidden {
  display: none;
  pointer-events: none;
}

/* Full-Stage 60fps Canvas for 3D Shards, Agent Topology & Warm Cream Wash */
#openingCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   Frame 0: Deliberately Cliché 2012 Corporate/School Training PowerPoint
   ========================================================================== */
.boring-ppt {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #ffffff;
  color: #222222;
  font-family: "Calibri", "Arial", "Helvetica Neue", "SimSun", sans-serif;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, opacity;
}

.boring-ppt.is-shattered {
  opacity: 0;
  pointer-events: none;
}

.boring-top-bar {
  background: #1f4e79;
  color: #ffffff;
  padding: 2.3cqw 3.8cqw 1.8cqw;
  border-bottom: 0.45cqw solid #5b9bd5;
  position: relative;
}

.boring-top-bar h2 {
  font-size: 2.35cqw;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.boring-top-bar p {
  font-size: 1.05cqw;
  color: #d9e2f3;
  margin-top: 0.35cqw;
}

.boring-body {
  flex: 1;
  padding: 2.6cqw 4.2cqw;
  position: relative;
}

.boring-textbox {
  border: 1.5px dashed #b4c7e7;
  padding: 1.7cqw 2.4cqw;
  position: relative;
  background: #fdfeff;
}

/* Cliché PowerPoint Resize Handles */
.ppt-handle {
  position: absolute;
  width: 0.55cqw;
  height: 0.55cqw;
  background: #ffffff;
  border: 1.5px solid #4472c4;
}
.ppt-handle.tl { top: -0.3cqw; left: -0.3cqw; }
.ppt-handle.tr { top: -0.3cqw; right: -0.3cqw; }
.ppt-handle.bl { bottom: -0.3cqw; left: -0.3cqw; }
.ppt-handle.br { bottom: -0.3cqw; right: -0.3cqw; }

.boring-list {
  list-style: disc;
  padding-left: 1.8cqw;
  display: flex;
  flex-direction: column;
  gap: 1.15cqw;
}

.boring-item {
  font-size: 1.42cqw;
  color: #333333;
  line-height: 1.35;
  position: relative;
  width: fit-content;
}

.boring-item::after {
  content: "";
  position: absolute;
  left: -0.3cqw;
  right: -0.3cqw;
  top: 52%;
  height: 0.24cqw;
  background: #c8431f;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.boring-item.is-struck {
  color: #9e9e9e;
}

.boring-item.is-struck::after {
  transform: scaleX(1);
}

/* Animated Blue "Select All" Marquee (Direct Echo of The Last Boring Slide) */
.boring-marquee {
  position: absolute;
  top: 2.1cqw;
  left: 3.6cqw;
  width: 0;
  height: 0;
  border: 1.5px solid #0078d4;
  background: rgba(0, 120, 212, 0.11);
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}

.boring-marquee.is-active {
  opacity: 1;
}

.boring-footer {
  height: 3.4cqw;
  background: #f2f2f2;
  border-top: 1px solid #d9d9d9;
  padding: 0 3.8cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92cqw;
  color: #767171;
}

.boring-status-text.is-hijacked {
  color: #c8431f;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Subtle Presenter Trigger Cue on Frame 0 */
.opening-start-cue {
  position: absolute;
  right: 3.8cqw;
  bottom: 4.6cqw;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.55cqw;
  padding: 0.55cqw 1.1cqw;
  border-radius: 999px;
  background: rgba(31, 78, 121, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.24);
  color: #1f4e79;
  font-family: var(--font-mono);
  font-size: 0.85cqw;
  font-weight: 700;
  pointer-events: none;
}

.opening-start-cue.is-hidden {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cue-dot {
  width: 0.55cqw;
  height: 0.55cqw;
  border-radius: 50%;
  background: #c8431f;
}

@media (prefers-reduced-motion: no-preference) {
  .cue-dot {
    animation: cue-pulse 1.8s ease-in-out infinite;
  }
}

@keyframes cue-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Minimal Controls Shown Only While 15s Opening Plays */
.opening-hud {
  position: absolute;
  top: 1.6cqw;
  right: 1.8cqw;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.55cqw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.opening-hud.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.opening-hud-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(24, 20, 16, 0.55);
  color: #faf6ee;
  font-family: var(--font-mono);
  font-size: 0.78cqw;
  font-weight: 700;
  padding: 0.34cqw 0.75cqw;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.opening-hud-btn:hover {
  background: rgba(24, 20, 16, 0.82);
}
