@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  color-scheme: dark;
  --void: #020207;
  --magenta: #ff2bd6;
  --blue: #197cff;
  --signal: #f0edf0;
  --muted: #8f899c;
  --hairline: rgba(240, 237, 240, 0.2);
  --header-height: 5.75rem;
  background: var(--void);
  color: var(--signal);
  font-family: "IBM Plex Mono", "PingFang SC", monospace;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: var(--void);
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--void);
}

html[data-enhanced] body {
  height: 100dvh;
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(rgba(240, 237, 240, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 237, 240, 0.025) 1px, transparent 1px),
    var(--void);
  background-size: 7rem 7rem;
}

.magenta-beacon,
.blue-beacon {
  position: absolute;
  width: min(48rem, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(6rem);
  opacity: 0.2;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 700ms ease;
}

.magenta-beacon {
  top: -34rem;
  left: -9rem;
  background: var(--magenta);
}

.blue-beacon {
  right: -18rem;
  bottom: -34rem;
  background: var(--blue);
}

html[data-scene="signals"] .magenta-beacon {
  transform: translate(18vw, 12vh);
  opacity: 0.28;
}

html[data-scene="signals"] .blue-beacon {
  transform: translate(-22vw, -18vh);
  opacity: 0.3;
}

html[data-scene="entroswipe"] .magenta-beacon {
  transform: translate(4vw, 34vh) scale(0.72);
}

html[data-scene="entroswipe"] .blue-beacon {
  transform: translate(-12vw, -30vh) scale(1.15);
  opacity: 0.34;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 5px,
    rgba(240, 237, 240, 0.035) 6px
  );
  opacity: 0.36;
}

.coordinate-grid {
  position: absolute;
  inset: 16% 9%;
  border: 1px solid rgba(240, 237, 240, 0.07);
  clip-path: polygon(0 0, 13% 0, 13% 1px, 87% 1px, 87% 0, 100% 0, 100% 100%, 80% 100%, 80% calc(100% - 1px), 20% calc(100% - 1px), 20% 100%, 0 100%);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 1.25rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(240, 237, 240, 0.08);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  color: rgba(240, 237, 240, 0.76);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid var(--magenta);
  color: var(--signal);
  box-shadow: -0.18rem 0 0 rgba(255, 43, 214, 0.32), 0.18rem 0 0 rgba(25, 124, 255, 0.32);
  font-size: 0.57rem;
}

.scene-navigation {
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3.5rem);
}

html[data-enhanced] .scene-navigation {
  display: flex;
}

.scene-nav {
  position: relative;
  padding: 0.7rem 0;
  background: none;
  color: rgba(240, 237, 240, 0.48);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: color 180ms ease;
}

.scene-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.25rem;
  height: 1px;
  background: var(--magenta);
  box-shadow: 0 0 0.7rem var(--magenta);
  transition: right 220ms ease;
}

.scene-nav:hover,
.scene-nav.is-active {
  color: var(--signal);
}

.scene-nav.is-active::after {
  right: 0;
}

.system-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(240, 237, 240, 0.44);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.system-status i {
  width: 0.38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0.8rem var(--blue);
}

.homepage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  overflow: clip;
}

.scene-stack {
  position: relative;
  z-index: 2;
  overflow: clip;
}

.scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.42fr);
  align-items: end;
  min-height: 100svh;
  padding: calc(var(--header-height) + 6vh) clamp(1.25rem, 4vw, 4.5rem) clamp(8rem, 14vh, 10rem);
  overflow: hidden;
}

html[data-enhanced] .scene {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition:
    opacity 580ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 580ms;
}

html[data-enhanced] .scene:not(.is-active) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html[data-enhanced] .scene.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0ms;
}

.scene::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 18% auto auto 4vw;
  width: 6rem;
  height: 1px;
  background: var(--magenta);
  box-shadow: calc(92vw - 6rem) 0 0 var(--blue);
  opacity: 0.7;
}

.scene-copy {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scene-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  margin: 0 0 clamp(1.25rem, 3vh, 2.5rem);
  color: rgba(240, 237, 240, 0.66);
  font-size: clamp(0.63rem, 0.72vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.scene-eyebrow span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  color: var(--magenta);
  letter-spacing: 0;
}

.scene h2 {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  margin: 0;
  color: var(--signal);
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(5.5rem, 13vw, 14rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.78;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: -0.045em 0 rgba(255, 43, 214, 0.4), 0.045em 0 rgba(25, 124, 255, 0.4);
}

.scene-body {
  position: absolute;
  left: 0;
  bottom: clamp(0.5rem, 2vh, 1.5rem);
  max-width: 29rem;
  margin: 0;
  color: rgba(240, 237, 240, 0.68);
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  line-height: 1.8;
}

.scene-actions {
  position: absolute;
  right: 0;
  bottom: clamp(0.25rem, 1.6vh, 1.25rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.scene-action,
.static-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 9rem;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(240, 237, 240, 0.36);
  background: rgba(2, 2, 7, 0.76);
  color: var(--signal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(1rem);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.scene-action:nth-child(odd),
.static-primary-link:nth-child(odd) {
  border-color: rgba(255, 43, 214, 0.64);
}

.scene-action:nth-child(even),
.static-primary-link:nth-child(even) {
  border-color: rgba(25, 124, 255, 0.7);
}

.scene-action:hover,
.static-primary-link:hover {
  transform: translateY(-0.2rem);
  border-color: var(--signal);
  box-shadow: -0.25rem 0 0 rgba(255, 43, 214, 0.38), 0.25rem 0 0 rgba(25, 124, 255, 0.38);
}

.scene-instrument {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4.5rem);
  top: 24%;
  z-index: 2;
  display: grid;
  grid-template-columns: auto repeat(3, 2.6rem);
  gap: 0.3rem;
  align-items: center;
  color: rgba(240, 237, 240, 0.4);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.scene-instrument i {
  display: block;
  height: 1px;
  background: rgba(240, 237, 240, 0.2);
}

.scene-instrument i:nth-child(2) {
  background: var(--magenta);
}

.scene-instrument i:nth-child(4) {
  background: var(--blue);
}

.character-stage {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  width: min(47vw, 47rem);
  height: calc(100svh - 3.5rem);
  pointer-events: none;
  transform: translateX(-50%);
  transition: left 850ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease, filter 700ms ease;
}

.character-picture {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}

.character-picture img {
  display: block;
  width: auto;
  max-width: none;
  height: 105%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(-1.1rem 0 1.5rem rgba(255, 43, 214, 0.26)) drop-shadow(1.1rem 0 1.5rem rgba(25, 124, 255, 0.25));
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease;
}

.character-halo {
  position: absolute;
  z-index: 1;
  top: 20%;
  width: 28%;
  aspect-ratio: 1 / 2.5;
  border-radius: 50%;
  filter: blur(3.5rem);
  opacity: 0.34;
}

.character-halo--magenta {
  left: 8%;
  background: var(--magenta);
}

.character-halo--blue {
  right: 8%;
  background: var(--blue);
}

.character-baseline {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 0.9rem;
  height: 1px;
  background: var(--magenta);
  box-shadow: 0 0 1.4rem var(--magenta), 7rem 0 0 var(--blue), 7rem 0 1.4rem var(--blue);
  opacity: 0.7;
}

html[data-scene="signals"] .character-picture img {
  transform: translateY(2.5%) scale(1.07);
  filter: drop-shadow(-1.6rem 0 1.8rem rgba(255, 43, 214, 0.36)) drop-shadow(0.65rem 0 1.2rem rgba(25, 124, 255, 0.18));
}

html[data-scene="entroswipe"] .character-stage {
  left: 35%;
  opacity: 0.52;
  filter: saturate(0.72);
}

html[data-scene="entroswipe"] .character-picture img {
  transform: translateY(5%) scale(0.96);
}

html.character-failed .character-picture {
  display: none;
}

html.character-failed .character-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 19%;
  width: 26%;
  aspect-ratio: 0.82;
  border-radius: 46% 46% 42% 42%;
  background: rgba(240, 237, 240, 0.12);
  border: 1px solid rgba(240, 237, 240, 0.26);
  box-shadow: -1.2rem 0 2.5rem rgba(255, 43, 214, 0.62), 1.2rem 0 2.5rem rgba(25, 124, 255, 0.62);
  transform: translateX(-50%);
}

html.character-failed .character-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -5%;
  width: 62%;
  height: 66%;
  border-radius: 48% 48% 12% 12%;
  background: rgba(240, 237, 240, 0.08);
  border: 1px solid rgba(240, 237, 240, 0.18);
  transform: translateX(-50%);
}

.app-visual {
  position: absolute;
  z-index: 7;
  top: 18%;
  right: clamp(2rem, 8vw, 9rem);
  width: min(25vw, 22rem);
  min-width: 17rem;
  aspect-ratio: 0.78;
  display: grid;
  place-items: center;
}

.phone-aura {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(4.5rem);
  opacity: 0.23;
}

.phone-frame {
  position: relative;
  width: 63%;
  aspect-ratio: 0.52;
  border: 1px solid rgba(240, 237, 240, 0.7);
  border-radius: 2.1rem;
  background: #050510;
  box-shadow: -0.55rem 0 0 rgba(255, 43, 214, 0.52), 0.55rem 0 0 rgba(25, 124, 255, 0.54), 0 2rem 5rem rgba(0, 0, 0, 0.7);
  transform: rotate(6deg);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(240, 237, 240, 0.14);
  border-radius: 1.55rem;
  background:
    linear-gradient(rgba(240, 237, 240, 0.045) 1px, transparent 1px),
    #080815;
  background-size: 100% 2.1rem;
}

.phone-sensor {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 50%;
  width: 3rem;
  height: 0.32rem;
  border-radius: 1rem;
  background: rgba(240, 237, 240, 0.28);
  transform: translateX(-50%);
}

.photo-card-stack {
  position: absolute;
  z-index: 2;
  inset: 20% 14% 25%;
}

.photo-card {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(240, 237, 240, 0.34);
  background: #12121d;
  box-shadow: 0 1.1rem 2rem rgba(0, 0, 0, 0.48);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 12% 10% 28%;
  background: repeating-linear-gradient(135deg, rgba(240, 237, 240, 0.14) 0 1px, transparent 1px 1rem);
}

.photo-card::after {
  content: "MEMORY / 0X";
  position: absolute;
  left: 10%;
  bottom: 9%;
  color: rgba(240, 237, 240, 0.62);
  font-size: 0.45rem;
  letter-spacing: 0.14em;
}

.photo-card--one {
  border-color: var(--magenta);
  transform: translate(-18%, 8%) rotate(-11deg);
}

.photo-card--two {
  border-color: var(--blue);
  transform: translate(18%, 5%) rotate(10deg);
}

.photo-card--three {
  transform: rotate(-2deg);
}

.swipe-rail {
  position: absolute;
  z-index: 3;
  left: 16%;
  right: 16%;
  bottom: 10%;
  display: flex;
  gap: 0.28rem;
}

.swipe-rail i {
  flex: 1;
  height: 0.16rem;
  background: rgba(240, 237, 240, 0.24);
}

.swipe-rail i:first-child {
  background: var(--magenta);
}

.swipe-rail i:last-child {
  background: var(--blue);
}

.entropy-readout {
  position: absolute;
  right: -0.5rem;
  bottom: 10%;
  padding: 0.45rem 0.65rem;
  border-left: 1px solid var(--blue);
  background: rgba(2, 2, 7, 0.84);
  color: var(--signal);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.static-links {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 1.25rem 2rem;
}

html[data-enhanced] .static-links { display: none; }

.scene-controller {
  position: fixed;
  z-index: 40;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 1.8rem;
  display: grid;
  grid-template-columns: auto repeat(3, 2.8rem);
  align-items: center;
  gap: 0.42rem;
  padding: 0.45rem;
  border: 1px solid rgba(240, 237, 240, 0.2);
  background: rgba(2, 2, 7, 0.78);
  backdrop-filter: blur(1rem);
}

.scene-controller[hidden] {
  display: none;
}

[data-scene-playback][hidden] {
  display: none;
}

.scene-controller button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(240, 237, 240, 0.16);
  background: rgba(240, 237, 240, 0.04);
  color: var(--signal);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.scene-controller button:hover {
  border-color: var(--blue);
  background: rgba(25, 124, 255, 0.14);
}

.scene-counter {
  min-width: 4.6rem;
  padding-inline: 0.55rem;
  color: rgba(240, 237, 240, 0.56);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.scene-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: rgba(240, 237, 240, 0.12);
}

.scene-progress i {
  display: block;
  width: var(--scene-progress, 33.333%);
  height: 100%;
  background: var(--magenta);
  box-shadow: 0 0 0.65rem var(--magenta);
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 64rem) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .system-status {
    display: none;
  }

  .scene h2 {
    font-size: clamp(5rem, 14vw, 9.6rem);
  }

  .character-stage {
    width: min(58vw, 40rem);
  }

  .app-visual {
    right: 3vw;
  }
}

@media (max-width: 48rem) {
  :root {
    --header-height: 7.1rem;
  }

  .site-header {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
  }

  .site-name {
    justify-self: center;
  }

  .site-name,
  .scene-nav,
  .scene-action,
  .static-primary-link,
  .scene-controller button {
    min-inline-size: 44px;
    min-block-size: 44px;
  }

  .site-name > span:last-child {
    display: none;
  }

  .site-mark {
    width: 1.9rem;
  }

  .scene-navigation {
    gap: clamp(0.8rem, 6vw, 2rem);
  }

  .scene-nav {
    font-size: 0.6rem;
  }

  .scene {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: calc(var(--header-height) + 2.5vh) 1rem 8.5rem;
  }

  .scene-stack {
    z-index: auto;
  }

  html[data-enhanced] .scene,
  html[data-enhanced] .scene.is-active,
  html[data-enhanced] .scene:not(.is-active) {
    transform: none;
  }

  .scene-copy {
    z-index: auto;
    justify-content: flex-start;
    padding-top: 5vh;
  }

  .scene-eyebrow {
    margin-bottom: 1.1rem;
    font-size: 0.57rem;
  }

  .scene h2 {
    max-width: 100%;
    font-size: clamp(4.7rem, 22.5vw, 7.2rem);
    line-height: 0.82;
  }

  .scene-body {
    z-index: 6;
    left: auto;
    right: 0;
    bottom: 2.7rem;
    width: min(72vw, 20rem);
    padding: 0.45rem 0.55rem;
    border-right: 1px solid var(--blue);
    background: rgba(2, 2, 7, 0.78);
    text-align: right;
  }

  .scene-actions {
    z-index: 6;
    right: auto;
    left: 0;
    bottom: -1.2rem;
    justify-content: flex-start;
  }

  .scene-action {
    min-width: 7.4rem;
    min-height: 44px;
    gap: 1rem;
    padding: 0.6rem 0.7rem;
  }

  .character-stage {
    left: 50%;
    width: min(112vw, 35rem);
    height: 68svh;
  }

  .character-picture img {
    height: 104%;
  }

  html[data-scene="signals"] .character-picture img {
    transform: translateY(3%) scale(1.04);
  }

  html[data-scene="entroswipe"] .character-stage {
    left: 30%;
    opacity: 0.34;
  }

  .scene-instrument {
    display: none;
  }

  .app-visual {
    top: 39%;
    right: -1.4rem;
    width: 14rem;
    min-width: 0;
  }

  .phone-frame {
    width: 61%;
    border-radius: 1.5rem;
  }

  .phone-frame::before {
    inset: 0.5rem;
    border-radius: 1.1rem;
  }

  .scene-controller {
    right: 50%;
    bottom: 1.25rem;
    grid-template-columns: auto repeat(3, 44px);
    transform: translateX(50%);
  }

  .scene-controller button {
    width: 44px;
  }

  .static-links {
    justify-content: center;
  }
}

@media (max-width: 25rem) {
  .scene h2 {
    font-size: clamp(4.2rem, 21vw, 5.3rem);
  }

  .scene-counter {
    display: none;
  }

  .scene-controller {
    grid-template-columns: repeat(3, 44px);
  }
}

@media (max-height: 34rem) {
  html[data-enhanced] body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .homepage {
    min-height: 34rem;
  }

  .scene-stack {
    min-height: 34rem;
  }

  html[data-enhanced] .scene {
    inset: 0 0 auto;
  }

  .scene {
    min-height: 34rem;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 8rem;
  }

  .scene-copy {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 7rem;
  }

  .scene-eyebrow {
    margin-bottom: 1rem;
  }

  .scene h2 {
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 0.84;
  }

  .scene-body {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 1.25rem;
  }

  .scene-actions {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .character-stage {
    height: 31rem;
  }
}

@media (max-height: 34rem) and (max-width: 48rem) {
  .scene-controller {
    right: 1rem;
    transform: none;
  }

  html.character-failed .character-stage::before,
  html.character-failed .character-stage::after {
    left: 76%;
  }

  html.character-failed .character-stage::after {
    width: 50%;
  }
}

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

  html[data-enhanced] .scene,
  html[data-enhanced] .scene.is-active,
  html[data-enhanced] .scene:not(.is-active) {
    transform: none !important;
    transition:
      opacity 160ms ease,
      visibility 0s linear 160ms !important;
  }

  html[data-enhanced] .scene.is-active {
    transition-delay: 0ms !important;
  }
}
