@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Carlito';
  src: url('fonts/Carlito-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #1a1a1a;
  overflow: hidden;
}

#viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.slide.active {
  display: block;
}

/* Touch drag navigation: the neighbouring slide is shown alongside while the
   finger moves and both slides are translated; the stage clips the overflow. */
.slide.peek {
  display: block;
}
#stage.dragging {
  overflow: hidden;
}
#stage.dragging .slide.active,
#stage.dragging .slide.peek {
  will-change: transform;
}

.slide .bg {
  position: absolute;
  inset: 0;
}

.shp {
  position: absolute;
}

.shp .geom {
  position: absolute;
  inset: 0;
}

.shp a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.grp-inner {
  position: absolute;
  transform-origin: 0 0;
}

.cell {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
}

.cell .cellbg {
  position: absolute;
  inset: 0;
}

.txt-l {
  position: absolute;
  overflow: visible;
}

.txt-l .run {
  position: absolute;
  white-space: pre;
}
/* Run-level hyperlinks: the anchor IS the run box (not a full-shape block). */
.txt-l a.run {
  width: auto;
  height: auto;
  cursor: pointer;
}
.shp a.run-link {
  display: contents;
  cursor: pointer;
}

/* Video play badge: shown while paused; the player toggles .playing. Click-through
   so the click reaches the shape (which toggles playback). Large frames hand
   over to the native controls' own button while hovered. */
.media .play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  max-width: 64px;
  min-width: 28px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.media .play-badge::after {
  content: "";
  position: absolute;
  inset: 28% 24% 28% 38%;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.media.playing .play-badge {
  display: none;
}
/* Hover hand-off only where hover exists: on touch devices :hover sticks to the
   last tapped element, which hid the badge on a paused clip after one tap. */
@media (hover: hover) {
  .media:not(.small):hover .play-badge {
    display: none;
  }
}

/* Unfilled shapes: the interior passes clicks through to what's beneath;
   painted strokes and text still receive them (PowerPoint hit-testing). */
.shp.nofill {
  pointer-events: none;
}
.shp.nofill > svg.geom,
.shp.nofill > a > svg.geom {
  pointer-events: none;
}
.shp.nofill svg.geom * {
  pointer-events: visiblePainted;
}
/* Only the glyph boxes are hit-testable, not the whole text frame: a noFill
   text box overlapping a linked picture must not swallow its clicks
   (internal_links slide 3). */
.shp.nofill .txt-l .run,
.shp.nofill .txt-l .run-link,
.shp.nofill .txt,
.shp.nofill .txt-warp text {
  pointer-events: auto;
}
/* ...except a hyperlinked unfilled shape: PowerPoint hit-tests its whole box
   in the show, which is how "invisible hotspot" decks work (music.pptx lays
   noFill ovals over the hidden ghosts to jump to the found-it slide). */
.shp.nofill > a[data-nav],
.shp.nofill > a[href] {
  pointer-events: auto;
}
/* Media with "Hide During Show": plays, never paints. */
.shp.media.media-hidden {
  display: none;
}

/* WordArt warp: text fitted to the shape box along an SVG path */
.txt-warp {
  position: absolute;
  overflow: visible;
}
.txt-warp text {
  white-space: pre;
}

.txt {
  position: absolute;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.txt p {
  margin: 0;
  line-height: 1.2;
}
