:root {
  --progress: 0;
  --room-base-height: 190px;
  --room-fox-delta: 0px;
  --room-otter-delta: 0px;
  --room-deer-delta: 0px;
  --users-opacity: 0;
  --user-scale: .45;
  --signals-opacity: 0;
  --rooms-opacity: 0;
  --rooms-y: 42px;
  --rooms-scale: .96;
  --agent-top: 48%;
  --agent-scale: 1;
  --fox-left: 14%;
  --fox-top: 38%;
  --otter-left: 78%;
  --otter-top: 39%;
  --deer-left: 50%;
  --deer-top: 76%;
  --walk-bob: 0px;
  --walk-tilt: 0deg;
  --details-opacity: 0;
  --details-y: 8px;
  --shield-opacity: 0;
  --deny-mark-opacity: 0;
  --shield-y: 12px;
  --shield-scale: .92;
  --room-glow-opacity: 0;
  --extra-snack-opacity: 0;
  --less-snack-opacity: 1;
  --snacks-opacity: 0;
  --snack-01-opacity: 0;
  --snack-02-opacity: 0;
  --snack-03-opacity: 0;
  --snack-04-opacity: 0;
  --snack-05-less-opacity: 0;
  --snack-06-opacity: 0;
  --snack-07-opacity: 0;
  --snack-08-opacity: 0;
  --capacity-opacity: 0;
  --capacity-y: 10px;
  --capacity-scale: .92;
  --held-key-opacity: 0;
  --stage-lift: 0px;
  --welcome-opacity: 1;
  --welcome-y: 0px;
  --story-opacity: 0;
  --story-y: 22px;
  --story-scale: .965;
  --scale-user-01-opacity: 0;
  --scale-user-02-opacity: 0;
  --scale-user-03-opacity: 0;
  --scale-user-04-opacity: 0;
  --scale-user-05-opacity: 0;
  --scale-user-y: 18px;
  --scale-user-scale: .82;
  --ink: #111317;
  --muted: #6a7280;
  --line: rgba(17, 19, 23, .1);
  --blue: #1976ff;
  --cyan: #68dcff;
  --gold: #d7a436;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #f7f8fb;
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, .95), transparent 36rem),
    linear-gradient(180deg, #fbfbfd 0%, #eef2f7 50%, #f9fafc 100%);
}

.story {
  position: relative;
  min-height: 720vh;
}

.progress {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(17, 19, 23, .06);
}

.progress span {
  display: block;
  width: calc(var(--progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, #16181d, var(--blue), var(--cyan));
  box-shadow: 0 0 20px rgba(25, 118, 255, .38);
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr);
  align-items: stretch;
  gap: clamp(14px, 2.6vh, 26px);
  width: min(1060px, calc(100vw - 44px));
  margin: 0 auto;
  padding: clamp(34px, 5vh, 58px) 0 clamp(24px, 4vh, 38px);
  transform: translateY(var(--stage-lift));
}

.welcome-panel {
  position: absolute;
  z-index: 9;
  inset: clamp(34px, 5vh, 58px) 0 clamp(24px, 4vh, 38px);
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
  opacity: var(--welcome-opacity);
  transform: translateY(var(--welcome-y));
  pointer-events: none;
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1);
}

.welcome-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(58vh, 520px);
}

.welcome-visual:before {
  content: "";
  position: absolute;
  width: min(34vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 38%, rgba(255,255,255,.96), rgba(255,255,255,.62) 44%, rgba(104,220,255,.18) 68%, rgba(25,118,255,.1));
  filter: blur(.2px);
  box-shadow: 0 34px 90px rgba(33, 54, 83, .16), inset 0 0 0 1px rgba(255,255,255,.9);
}

.welcome-visual img {
  position: relative;
  z-index: 1;
  width: min(28vw, 310px);
  max-width: 78%;
  object-fit: contain;
  filter: drop-shadow(0 28px 32px rgba(21, 36, 58, .2));
  animation: welcomeFloat 3.8s ease-in-out infinite;
}

.welcome-copy {
  justify-self: start;
  max-width: 620px;
}

.welcome-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 7.2vw, 86px);
  line-height: .96;
  letter-spacing: 0;
}

.welcome-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.welcome-copy span {
  display: inline-flex;
  margin-top: 30px;
  color: rgba(17, 19, 23, .58);
  font-size: 15px;
  font-weight: 700;
}

@keyframes welcomeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.copy {
  position: relative;
  z-index: 3;
  text-align: center;
  justify-self: center;
  width: min(900px, 100%);
  opacity: var(--story-opacity);
  transform: translateY(var(--story-y)) scale(var(--story-scale));
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1);
}

.eyebrow,
.caption-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .96;
  letter-spacing: 0;
  max-width: 12em;
}

.lede {
  margin: 16px auto 0;
  max-width: 45rem;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.scene {
  position: relative;
  z-index: 2;
  width: 100%;
  height: min(48vh, 520px);
  min-height: 320px;
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .92), transparent 17rem),
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(236, 241, 247, .86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .82),
    inset 0 -1px 0 rgba(17, 19, 23, .08),
    0 30px 80px rgba(26, 36, 52, .13);
  opacity: var(--story-opacity);
  transform: translateY(var(--story-y)) scale(var(--story-scale));
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1);
}

.scene:before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(24, 31, 44, .13), transparent);
  transform: scaleX(.7);
  opacity: .5;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: .52;
  pointer-events: none;
}

.ambient-one {
  width: 260px;
  height: 260px;
  left: 7%;
  top: 10%;
  background: rgba(104, 220, 255, .24);
}

.ambient-two {
  width: 310px;
  height: 310px;
  right: 0;
  bottom: 0;
  background: rgba(25, 118, 255, .12);
}

.agent {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: var(--agent-top);
  width: 138px;
  height: 138px;
  transform: translate(-50%, -50%) scale(var(--agent-scale));
  transition: left .75s cubic-bezier(.2, .8, .2, 1), top .75s cubic-bezier(.2, .8, .2, 1), transform .75s cubic-bezier(.2, .8, .2, 1);
}

.agent img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(11, 18, 30, .18));
}

.agent-face {
  position: absolute;
  left: 9px;
  top: 18px;
  width: 84px;
  height: 66px;
  border-radius: 24px;
  background: linear-gradient(145deg, #111827, #3a4353);
  box-shadow: 0 18px 34px rgba(11, 18, 30, .25);
}

.agent-face:before {
  content: "";
  position: absolute;
  inset: 18px 15px 24px;
  border-radius: 999px;
  border: 1px solid rgba(120, 225, 255, .35);
  background: linear-gradient(90deg, rgba(104, 220, 255, .09), rgba(255, 255, 255, .04));
}

.agent-face span {
  position: absolute;
  z-index: 2;
  top: 29px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8aeaff;
  box-shadow: 0 0 14px rgba(104, 220, 255, .95);
}

.agent-face span:first-child {
  left: 28px;
}

.agent-face span:last-child {
  right: 28px;
}

.agent-body {
  position: absolute;
  left: 19px;
  top: 78px;
  width: 64px;
  height: 38px;
  border-radius: 18px 18px 22px 22px;
  background: linear-gradient(180deg, #ffffff, #dfe5ed);
  box-shadow: inset 0 0 0 1px rgba(17, 19, 23, .08), 0 16px 26px rgba(28, 39, 54, .14);
}

.agent-antenna {
  position: absolute;
  left: 49px;
  top: 0;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #222b39;
}

.agent-antenna:before {
  content: "";
  position: absolute;
  left: -5px;
  top: -9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(104, 220, 255, .9);
}

.agent-tool {
  position: absolute;
  right: -2px;
  bottom: 14px;
  width: 26px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  transform: rotate(-35deg);
  opacity: .95;
}

.user {
  position: absolute;
  z-index: 7;
  width: 86px;
  height: 124px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: var(--users-opacity);
  transform: translate(-50%, calc(-50% + var(--walk-bob))) rotate(var(--walk-tilt)) scale(var(--user-scale));
  transition: left .78s cubic-bezier(.2, .8, .2, 1), top .78s cubic-bezier(.2, .8, .2, 1), transform .78s cubic-bezier(.2, .8, .2, 1);
}

.user img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(25, 36, 54, .18));
}

.user img.held-key {
  position: absolute;
  right: -20px;
  top: 45%;
  width: 42px;
  height: 32px;
  display: block;
  object-fit: contain;
  opacity: var(--held-key-opacity);
  transform: rotate(-10deg);
  filter: drop-shadow(0 10px 12px rgba(152, 109, 12, .24));
}

.user .face {
  position: absolute;
  inset: 12px 14px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
}

.user .face i {
  position: absolute;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #21252e;
}

.user .face i:first-child {
  left: 10px;
}

.user .face i:last-child {
  right: 10px;
}

.ear {
  position: absolute;
  top: -10px;
  width: 22px;
  height: 25px;
  border-radius: 16px 16px 7px 7px;
  background: inherit;
}

.ear-left {
  left: 6px;
  transform: rotate(-22deg);
}

.ear-right {
  right: 6px;
  transform: rotate(22deg);
}

.tail {
  position: absolute;
  right: -18px;
  bottom: 5px;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: inherit;
  transform: rotate(-30deg);
}

.muzzle {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 26px;
  height: 16px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .72);
}

.muzzle:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 5px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(18, 22, 30, .8);
}

.user-fox {
  left: var(--fox-left);
  top: var(--fox-top);
  width: 88px;
  height: 126px;
}

.user-fox .ear {
  width: 21px;
  height: 28px;
  border-radius: 4px 18px 6px 18px;
}

.user-fox .ear-left {
  left: 7px;
  transform: rotate(-35deg);
}

.user-fox .ear-right {
  right: 7px;
  transform: rotate(35deg) scaleX(-1);
}

.user-fox .tail {
  right: -26px;
  bottom: 3px;
  width: 42px;
  height: 24px;
  border-radius: 70% 35% 70% 35%;
}

.user-fox .tail:after {
  content: "";
  position: absolute;
  right: 1px;
  top: 3px;
  width: 13px;
  height: 17px;
  border-radius: 60%;
  background: rgba(255, 255, 255, .82);
}

.user-otter {
  left: var(--otter-left);
  top: var(--otter-top);
  width: 82px;
  height: 126px;
}

.user-otter .ear {
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.user-otter .face {
  inset: 10px 18px 10px;
}

.user-otter .tail {
  right: -22px;
  bottom: 0;
  width: 34px;
  height: 15px;
  border-radius: 999px;
  transform: rotate(18deg);
}

.whisker {
  position: absolute;
  top: 35px;
  width: 20px;
  height: 1px;
  background: rgba(17, 19, 23, .34);
}

.whisker-left {
  left: 13px;
  transform: rotate(10deg);
}

.whisker-right {
  right: 13px;
  transform: rotate(-10deg);
}

.user-deer {
  left: var(--deer-left);
  top: var(--deer-top);
  width: 104px;
  height: 130px;
}

.user-deer .ear {
  top: -7px;
  width: 18px;
  height: 27px;
  border-radius: 50% 50% 8px 8px;
  background: #c9965d;
}

.user-deer .muzzle {
  bottom: 9px;
  width: 24px;
  height: 18px;
  background: rgba(246, 219, 177, .9);
}

.scale-user {
  position: absolute;
  z-index: 6;
  width: 112px;
  height: 166px;
  opacity: 0;
  transform: translate(-50%, calc(-50% + var(--scale-user-y))) scale(var(--scale-user-scale));
  transition: opacity .42s cubic-bezier(.2, .8, .2, 1), transform .42s cubic-bezier(.2, .8, .2, 1);
}

.scale-user img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(25, 36, 54, .16));
}

.scale-user-01 {
  left: 22%;
  top: 47%;
  opacity: var(--scale-user-01-opacity);
}

.scale-user-02 {
  left: 34%;
  top: 76%;
  width: 124px;
  opacity: var(--scale-user-02-opacity);
}

.scale-user-03 {
  left: 75%;
  top: 78%;
  width: 118px;
  opacity: var(--scale-user-03-opacity);
}

.scale-user-04 {
  left: 85%;
  top: 44%;
  width: 126px;
  opacity: var(--scale-user-04-opacity);
}

.scale-user-05 {
  left: 94%;
  top: 61%;
  width: 92px;
  height: 136px;
  opacity: var(--scale-user-05-opacity);
}

.antler {
  position: absolute;
  top: -24px;
  width: 19px;
  height: 28px;
  border: 3px solid #ad7d44;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.antler:after {
  content: "";
  position: absolute;
  top: 7px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: #ad7d44;
}

.antler-left:after {
  left: -8px;
  transform: rotate(-30deg);
}

.antler-right:after {
  right: -8px;
  transform: rotate(30deg);
}

.antler-left {
  left: 8px;
  transform: rotate(-22deg);
}

.antler-right {
  right: 8px;
  transform: rotate(22deg);
}

.signal {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 48%;
  width: 2px;
  height: 180px;
  opacity: var(--signals-opacity);
  transform-origin: top;
  background: linear-gradient(180deg, rgba(25, 118, 255, .55), rgba(104, 220, 255, 0));
  transition: none;
}

.signal-fox {
  transform: rotate(-58deg);
}

.signal-otter {
  transform: rotate(54deg);
}

.signal-deer {
  transform: rotate(0deg);
}

.rooms {
  position: absolute;
  z-index: 5;
  left: 8%;
  right: 8%;
  bottom: 8%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  opacity: var(--rooms-opacity);
  transform: translateY(var(--rooms-y)) scale(var(--rooms-scale));
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.room {
  position: relative;
  height: var(--room-base-height);
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(239, 246, 251, .93)),
    linear-gradient(90deg, rgba(255, 214, 116, .12), rgba(104, 220, 255, .1));
  border: 1px solid rgba(25, 118, 255, .16);
  box-shadow: 0 24px 42px rgba(31, 43, 60, .14);
  transition: height .85s cubic-bezier(.2, .8, .2, 1), box-shadow .85s cubic-bezier(.2, .8, .2, 1);
}

.room:before {
  content: "";
  position: absolute;
  inset: 48px 16px 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,.22)),
    repeating-linear-gradient(180deg, transparent 0 38px, rgba(17, 19, 23, .08) 39px 40px);
  border: 1px solid rgba(17, 19, 23, .08);
}

.room-fox {
  height: calc(var(--room-base-height) + var(--room-fox-delta));
}

.room-otter {
  height: calc(var(--room-base-height) + var(--room-otter-delta));
}

.room-deer {
  height: calc(var(--room-base-height) + var(--room-deer-delta));
}

.room-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: var(--room-glow-opacity);
  box-shadow: inset 0 0 0 2px rgba(25, 118, 255, .22), inset 0 0 38px rgba(104, 220, 255, .24);
  transition: none;
}

.room-label {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 7px 10px;
  background: #151a23;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.snack-shelf {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 56px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(48px, 1fr));
  align-content: center;
  justify-items: center;
  gap: 8px 12px;
  transform: translateY(var(--details-y));
}

.capacity-number {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 44px;
  color: rgba(18, 24, 34, .72);
  font-size: clamp(58px, 5.8vw, 82px);
  line-height: .9;
  font-weight: 900;
  opacity: var(--capacity-opacity);
  transform: translateY(var(--capacity-y)) scale(var(--capacity-scale));
  text-shadow: 0 2px 0 rgba(255, 255, 255, .78), 0 16px 28px rgba(36, 43, 58, .18);
  pointer-events: none;
}

.snack {
  width: clamp(34px, 4.5vw, 48px);
  height: clamp(38px, 5vw, 48px);
  object-fit: contain;
  opacity: var(--snack-appear-opacity, 0);
  filter: drop-shadow(0 10px 10px rgba(34, 40, 52, .15));
}

.snack-seq-01 {
  --snack-appear-opacity: var(--snack-01-opacity);
}

.snack-seq-02 {
  --snack-appear-opacity: var(--snack-02-opacity);
}

.snack-seq-03 {
  --snack-appear-opacity: var(--snack-03-opacity);
}

.snack-seq-04 {
  --snack-appear-opacity: var(--snack-04-opacity);
}

.snack-seq-06 {
  --snack-appear-opacity: var(--snack-06-opacity);
}

.snack-seq-07 {
  --snack-appear-opacity: var(--snack-07-opacity);
}

.snack-seq-08 {
  --snack-appear-opacity: var(--snack-08-opacity);
}

.extra-snack {
  opacity: var(--extra-snack-opacity);
}

.less-snack {
  opacity: var(--snack-05-less-opacity);
}

.door {
  display: none;
}

.door:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 38px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.deny-mark {
  position: absolute;
  z-index: 11;
  right: 22%;
  bottom: 30%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ff3b30;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  opacity: var(--deny-mark-opacity);
  transform: translateY(var(--shield-y)) scale(var(--shield-scale));
  box-shadow: 0 18px 34px rgba(255, 59, 48, .28);
}

.scroll-space {
  height: 720vh;
}

.story-controls {
  position: fixed;
  z-index: 30;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 19, 23, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: rgba(17, 19, 23, .86);
  font: 800 18px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 16px 34px rgba(26, 36, 52, .13);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.play-button {
  color: #fff;
  background: rgba(21, 26, 35, .88);
  box-shadow: 0 16px 34px rgba(26, 36, 52, .16), 0 0 0 7px rgba(104, 220, 255, .12);
}

.play-button[aria-pressed="true"] {
  background: rgba(25, 118, 255, .9);
}

.control-button:active {
  transform: scale(.94);
}

body.scene-final .scene {
  background:
    radial-gradient(circle at 50% 8%, rgba(104, 220, 255, .18), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(235, 241, 248, .9));
}

body.scene-scale .scene {
  background:
    radial-gradient(circle at 50% 20%, rgba(104, 220, 255, .24), transparent 18rem),
    radial-gradient(circle at 74% 78%, rgba(25, 118, 255, .12), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(236, 244, 250, .9));
}

@media (max-width: 900px) {
  :root {
    --room-base-height: 148px;
  }

  .stage {
    grid-template-rows: auto 1fr;
    width: min(100vw - 28px, 620px);
    gap: 18px;
    padding: 42px 0 26px;
  }

  .welcome-panel {
    inset: 36px 0 26px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, .86fr) auto;
    justify-items: center;
    align-content: center;
    gap: 18px;
    text-align: center;
  }

  .welcome-visual {
    min-height: 230px;
  }

  .welcome-visual:before {
    width: min(68vw, 280px);
  }

  .welcome-visual img {
    width: min(52vw, 220px);
  }

  .welcome-copy {
    justify-self: center;
  }

  .welcome-copy h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .welcome-copy p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 16px;
  }

  .welcome-copy span {
    margin-top: 22px;
    font-size: 14px;
  }

  h1 {
    max-width: 10em;
    font-size: clamp(38px, 11vw, 58px);
  }

  .lede {
    margin-top: 14px;
    font-size: 16px;
  }

  .scene {
    min-height: 430px;
    height: min(55vh, 520px);
    border-radius: 30px;
  }

  .agent {
    width: 86px;
    height: 98px;
  }

  .agent-face {
    width: 72px;
    height: 58px;
  }

  .agent-body {
    top: 68px;
  }

  .rooms {
    left: 4%;
    right: 4%;
    gap: 8px;
  }

  .room {
    border-radius: 20px 20px 13px 13px;
  }

  .room-label {
    top: 12px;
    padding: 6px 5px;
    font-size: 8px;
  }

  .door {
    width: 34px;
    height: 58px;
  }

  .snack-shelf {
    left: 8px;
    right: 8px;
    top: 48px;
    bottom: 12px;
    grid-template-columns: repeat(2, minmax(32px, 1fr));
    gap: 6px;
  }

  .capacity-number {
    right: 8px;
    top: 42px;
    font-size: clamp(40px, 14vw, 56px);
  }

  .snack {
    width: clamp(26px, 8vw, 38px);
    height: clamp(30px, 9vw, 42px);
  }

  .user {
    width: 46px;
    height: 46px;
  }

  .scale-user {
    width: 58px;
    height: 88px;
  }

  .scale-user-01 {
    left: 19%;
    top: 57%;
  }

  .scale-user-02 {
    left: 33%;
    top: 80%;
    width: 66px;
  }

  .scale-user-03 {
    left: 72%;
    top: 80%;
    width: 64px;
  }

  .scale-user-04 {
    left: 82%;
    top: 56%;
    width: 68px;
  }

  .scale-user-05 {
    left: 89%;
    top: 68%;
    width: 50px;
    height: 76px;
  }

  .story-controls {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .control-button {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 560px) {
  :root {
    --room-base-height: 136px;
  }

  .copy {
    padding-top: 6px;
  }

  .scene {
    min-height: 400px;
  }

  .rooms {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .story,
  .scroll-space {
    min-height: auto;
    height: auto;
  }

  .stage {
    position: relative;
    min-height: 100vh;
  }

  .user,
  .rooms {
    opacity: 1;
  }
}
