/* Cosmic office comedy, a separate opening from the darker cinematic deck. */
.cosmic-slide { position: absolute; overflow: hidden; --cosmic-pink: #f286fb; --cosmic-cyan: #77f5ee; }
.cosmic-slide .kicker { color: var(--cosmic-cyan); }
.cosmic-copy { position: relative; z-index: 3; }
.cosmic-slide .cosmic-copy :is(h1, h2) { font-size: clamp(3.4rem, 7.4vw, 7.5rem); line-height: .94; letter-spacing: -.07em; text-shadow: 0 .7rem 2rem #0009; }
.cosmic-slide .cosmic-copy :is(h1, h2) span { color: var(--cosmic-pink); text-shadow: 0 0 2rem #de59e780; }
.cosmic-copy > p:not(.kicker) { max-width: 38rem; margin-top: 1.8rem; color: #e3dcf0; font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.55; }
.cosmic-copy strong { display: inline-block; margin-top: 1.2rem; padding: .65rem .9rem; border-left: 3px solid var(--cosmic-cyan); color: var(--cosmic-cyan); background: #061b25a6; font: 700 .83rem/1.4 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.cosmic-prompt { background: radial-gradient(circle at 78% 48%, #8020a5 0, #301254 23%, #0a1021 53%, #050912 80%); }
.cosmic-prompt::before, .cosmic-awakening::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #c5e7ff 1px, transparent 2px), radial-gradient(circle, #e5b2ff .7px, transparent 1px); background-size: 73px 79px, 117px 131px; opacity: .35; }
.cosmic-portal { position: absolute; z-index: 1; top: 7%; right: 0; width: min(55vw, 44rem); aspect-ratio: 1; display: grid; place-items: center; border: .3rem solid #dd7dff; border-radius: 50%; box-shadow: 0 0 2rem #d850f9, inset 0 0 3rem #d850f9, 0 0 8rem #793fda; transform: perspective(800px) rotateY(-25deg); animation: portal-hover 7s ease-in-out infinite; }
.cosmic-portal::before, .cosmic-portal::after, .cosmic-portal span { content: ""; position: absolute; border-radius: 50%; }
.cosmic-portal::before { inset: 8%; border: 2px dashed #f2a5ff; animation: cosmic-spin 25s linear infinite; }
.cosmic-portal::after { inset: 20%; border: 2px solid #7bf9f4; box-shadow: 0 0 1.5rem #57eaf3, inset 0 0 1.5rem #57eaf3; }
.cosmic-portal span:first-child { inset: 30%; background: radial-gradient(circle, #d5b8ff 0, #632eca 35%, #0f102b 75%); filter: blur(.4rem); }
.cosmic-portal span:nth-child(2) { inset: -12%; border: 1px solid #95ddff70; transform: rotate(-18deg) scaleY(.65); }
.cosmic-portal span:nth-child(3) { inset: -26%; border: 1px solid #e7b5ff44; transform: rotate(22deg) scaleY(.65); }
.portal-core { position: relative; z-index: 2; color: #fff; font: 700 clamp(7rem, 18vw, 18rem)/1 "Montserrat", sans-serif; text-shadow: 0 0 2rem #ecadff, 0 0 6rem #dc6bf7; }
.cosmic-awakening { background: radial-gradient(circle at 78% 50%, #1b3d65, #161039 40%, #080b1a 78%); }
.cosmic-awakening .cosmic-copy { max-width: 47rem; margin-left: 0; }
.cosmic-ceo { background: radial-gradient(circle at 78% 40%, #5b2b80, #1e173c 44%, #090d1c 80%); }
.cosmic-ceo::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 6rem, #b681fa0b 6rem 6.08rem); transform: perspective(500px) rotateX(58deg) scale(1.5); transform-origin: bottom; }
.cosmic-ceo .cosmic-copy { max-width: 55rem; margin-left: 0; }
.cosmic-slide.cosmic-ceo .cosmic-copy :is(h1, h2) { font-size: clamp(3.7rem, 7.5vw, 7.8rem); }
.toaster-scene { position: absolute; right: 2%; bottom: 0; width: min(45vw, 38rem); height: 82%; }
.toaster { position: absolute; z-index: 2; width: 58%; height: 48%; left: 21%; bottom: 22%; border: .45rem solid #d2b8ef; border-radius: 22% 22% 28% 28%; background: linear-gradient(135deg, #eee4ff, #8880b0 30%, #37365d 64%, #d6c7f0); box-shadow: inset -.7rem -.8rem 1.7rem #211b45, 0 0 4rem #de7bfc66, 0 1rem 2rem #0008; }
.toaster::before { content: ""; position: absolute; width: 72%; height: 12%; left: 14%; top: -8%; border: .4rem solid #9182b6; border-radius: 50%; background: #17162b; }
.toast-slice { position: absolute; z-index: -1; width: 52%; height: 35%; top: -25%; left: 24%; border: .7rem solid #8e511f; border-radius: 42% 42% 12% 12%; background: #eabb73; box-shadow: inset 0 0 1rem #a6632c; }
.toaster-face { position: absolute; inset: 20% 19%; border: .25rem solid #363255; border-radius: 18%; background: radial-gradient(circle at 50% 30%, #453e86, #1e1d3c 68%); }
.toaster-face i { position: absolute; top: 36%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #72f8f1; box-shadow: 0 0 1.2rem #72f8f1, 0 0 2rem #72f8f1; }
.toaster-face i:first-child { left: 20%; } .toaster-face i:nth-child(2) { right: 20%; }
.toaster-face span { position: absolute; bottom: 19%; left: 35%; right: 35%; height: .4rem; border-bottom: .3rem solid #e5a1f6; border-radius: 0 0 50% 50%; }
.toaster-lever { position: absolute; right: -11%; bottom: 20%; width: 12%; height: 8%; border: .2rem solid #e2d2fa; border-radius: 30%; background: #716a91; }
.toaster-crown { position: absolute; z-index: 3; top: -2%; left: 36%; color: #f6d880; font-size: clamp(4rem, 8vw, 8rem); text-shadow: 0 0 2rem #ffe58a; transform: rotate(-7deg); }
.toaster-desk { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; height: 22%; border-top: .7rem solid #f4c283; background: linear-gradient(#49355a, #1a1933); box-shadow: 0 -1rem 3rem #edb9f044; }
@keyframes cosmic-spin { to { transform: rotate(360deg); } }
@keyframes portal-hover { 50% { transform: perspective(800px) rotateY(-20deg) translateY(-.7rem); } }
@media (max-width: 900px) { .cosmic-prompt .cosmic-copy, .cosmic-awakening .cosmic-copy, .cosmic-ceo .cosmic-copy { max-width: 75%; } .cosmic-slide .cosmic-copy :is(h1, h2) { font-size: clamp(3rem, 8vw, 5rem); } .cosmic-portal { right: -20%; width: 68vw; opacity: .8; } .toaster-scene { right: -12%; width: 60vw; } }
@media (max-width: 680px) { .cosmic-prompt .cosmic-copy, .cosmic-awakening .cosmic-copy, .cosmic-ceo .cosmic-copy { max-width: 100%; } .cosmic-slide .cosmic-copy :is(h1, h2), .cosmic-slide.cosmic-ceo .cosmic-copy :is(h1, h2) { font-size: clamp(3rem, 13vw, 5rem); } .cosmic-copy > p:not(.kicker) { max-width: 22rem; font-size: .95rem; } .cosmic-portal { top: 24%; right: -33%; width: 78vw; opacity: .45; } .toaster-scene { right: -31%; width: 88vw; opacity: .45; } .cosmic-ceo .cosmic-copy { align-self: start; } }
@media (prefers-reduced-motion: reduce) { .cosmic-portal, }

/* Fit the same scenes inside the beginner deck's inline slide frame. */
.deck-page .cosmic-slide {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: min(480px, 68svh);
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--ci-radius-panel);
}
.deck-page .cosmic-copy { max-width: 68%; }
.deck-page .cosmic-slide .cosmic-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.25vw, 7.5rem);
}
.paused .cosmic-slide .cosmic-portal,
.paused .cosmic-slide .cosmic-portal::before {
  animation-play-state: paused;
}
@media (max-width: 680px) {
  .deck-page .cosmic-slide { min-height: 360px; }
  .deck-page .cosmic-copy { max-width: 100%; }
  .deck-page .cosmic-slide .cosmic-copy h1 { font-size: clamp(1.8rem, 9vw, 3.65rem); }
}
@media (prefers-reduced-motion: reduce) {
  .cosmic-portal::before { animation: none; }
}

.deck-page .cosmic-slide.cosmic-awakening {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 48px);
}
.deck-page .cosmic-awakening .cosmic-copy { max-width: none; }
.deck-page .cosmic-awakening .cosmic-copy h1 {
  font-size: clamp(2.2rem, 4.8vw, 6rem);
}
.office-printer {
  position: relative;
  display: block;
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
}
@media (max-width: 760px) {
  .deck-page .cosmic-slide.cosmic-awakening { grid-template-columns: minmax(0, 1fr); }
  .deck-page .cosmic-awakening .cosmic-copy h1 { font-size: clamp(1.8rem, 8vw, 3.65rem); }
  .office-printer { max-width: 380px; }
}
@media (prefers-reduced-motion: no-preference) {
  .printer-paper { animation: printer-feed 4s ease-in-out infinite; }
  .paused .printer-paper { animation-play-state: paused; }
}
@keyframes printer-feed {
  0%, 70%, 100% { transform: translateY(0); }
  45% { transform: translateY(-7px); }
}
