@font-face {
  font-family: 'Roboto';
  src: url('assets/fonts/roboto-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --sans: 'Roboto', system-ui, sans-serif;
  --petfi-purple: #7825bf;
}
.topbar {
  min-height: 74px;
  background: rgba(251, 253, 247, .94);
  border-bottom: 1px solid rgba(31, 66, 61, .14);
}
.brand { color: var(--petfi-purple); font-weight: 900; font-size: 28px; letter-spacing: -1.4px; }
.brand svg { fill: currentColor; width: 25px; }
.chapter.active .chapter-number { background: #255750; border-color: #255750; }
.story h2, dialog h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(2.15rem, 3.4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.047em;
  text-wrap: balance;
}
.story h2 em { font-style: normal; font-weight: inherit; }
.story h1 { text-wrap: balance; }
.story .lead { max-width: 355px; line-height: 1.65; }
.eyebrow, .intro-kicker { text-transform: uppercase; }
.primary { background: var(--petfi-purple); border-color: var(--petfi-purple); font-weight: 700; }
.primary:hover { background: #6620a4; border-color: #6620a4; }
button:focus-visible, a:focus-visible, input:focus-visible, [role=button]:focus-visible {
  outline: 3px solid #62209e; outline-offset: 4px;
}
.scene-caption span { font: 700 18px/1.15 var(--sans); letter-spacing: -.02em; }
.scene-caption { text-shadow: 0 1px 7px #fffbec; }
#stage-badge { display: none; }
.game:not([data-screen=intro]) .scene-caption { display: none; }
.bottom-bar { border-top: 1px solid rgba(38,76,66,.1); }
#footer-note { display: none; }
.bottom-title { color: #345e58; }
.game[data-screen=intro] .scene-caption {
  background: rgba(251,250,237,.87); border: 0; border-radius: 5px;
  padding: 10px 12px; font-size: 10px; letter-spacing: .11em;
}
.game[data-screen=intro] .scene-caption span { margin-bottom: 3px; }
@media(max-width:800px) {
  .topbar { padding-top: 12px; padding-bottom: 6px; gap: 6px; }
  .game[data-screen=intro] .stage { height: clamp(215px,32svh,300px); min-height: 0; }
  .game[data-screen=intro] .actor { width: clamp(218px,32svh,305px); }
  .game[data-screen=intro] .scene-caption { top: 10%; right: 0; max-width: 99px; }
  .game[data-screen=intro] .scene-caption span { font-size: 16px; }
  .game[data-screen=intro] .story { min-height: 0; }
  .game[data-screen=intro] .story h1 { font-size: clamp(3.7rem,13.8vw,5rem); }
  .story h2 { font-size: clamp(2.05rem,8.5vw,3rem); }
  .stage { min-height: 0; height: 250px; }
  .story { min-height: 0; }
}
.game[data-screen="complete"] .actor {
  width: min(19%, 102px);
  bottom: 47%;
  opacity: .83;
  animation: none;
}
.game[data-screen="complete"] .character-shadow { display: none; }
