html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: var(--font-body); color: var(--wro-black); -webkit-font-smoothing: antialiased; }
#screen { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; background: var(--wro-white); overflow: hidden; transform-origin: center; }
#stage, .scene { position: absolute; inset: 0; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

#blackout { position: fixed; inset: 0; background: #000; z-index: 100; }
#overview { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); padding: 40px; overflow: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-content: start; }
#overview[hidden], #blackout[hidden] { display: none; }
.overview__item { background: #fff; border: 0; border-left: 8px solid var(--wro-yellow); padding: 16px; text-align: left; font: 500 16px var(--font-body); cursor: pointer; }
.overview__item small { display: block; margin-bottom: 6px; color: var(--wro-grey); font-weight: 400; }
.overview__item.is-current { outline: 4px solid var(--wro-yellow); }

.toast { position: fixed; left: 12px; bottom: 8px; z-index: 95; color: #777; font: 12px var(--font-body); opacity: 0; transition: opacity .3s; }
.toast.is-visible { opacity: 1; }
.fatal { padding: 80px; font: 32px/1.4 var(--font-body); }

/* ---- brand elements shared by cover and chapter dividers (designers' template) ---- */
.brand-block { position: absolute; left: 0; top: 0; width: 181px; height: 90px; background: var(--wro-red); z-index: 2; }
.brand-logo { position: absolute; top: 28px; right: 26px; width: 170px; height: auto; z-index: 2; }
.brand-wro { position: absolute; left: 50%; bottom: 21px; transform: translateX(-50%); width: 225px; height: 54px; box-sizing: border-box;
  padding: 6px 12px; background: var(--wro-white); display: flex; align-items: center; justify-content: center; z-index: 2; }
.brand-wro img { max-width: 100%; max-height: 100%; }

/* ---- chapter divider (template page 2) ---- */
.divider { background: var(--wro-black); overflow: hidden; }
.divider__robot { position: absolute; left: 0; top: 180px; width: 850px; height: 660px; object-fit: contain; object-position: left center;
  animation: rise 1s .2s both cubic-bezier(.2,.8,.2,1); }
.divider__box { position: absolute; left: 845px; top: 464px; min-width: 765px; min-height: 249px; box-sizing: border-box; padding: 36px 52px;
  background: var(--wro-white); color: var(--wro-black); z-index: 1; animation: slide-in .8s .1s both cubic-bezier(.2,.8,.2,1); }
.divider__num { font: 600 40px/1 var(--font-display); color: var(--wro-red); }
.divider__title { margin: 14px 0 0; font: 700 110px/1 var(--font-display); text-transform: uppercase; }
.divider__circle { position: absolute; right: -91px; top: 468px; width: 182px; height: 182px; border-radius: 50%; background: var(--wro-blue); }
.divider__slant { position: absolute; left: 1253px; top: 898px; width: 364px; height: 182px; background: var(--wro-navy);
  clip-path: polygon(50% 0, 100% 0, 50% 100%, 0 100%); }

@keyframes slide-in { from { transform: translateX(60px); opacity: 0; } }
@keyframes rise { from { transform: translateY(80px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
