/* One stage, eight chapters. The default flow is readable without motion or JS. */
.arcade-journey {
  background: var(--paper);
  position: relative;
}
.arcade-journey .arcade-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 35%, #8c50da09, transparent 60%),
    var(--paper);
}
.arcade-journey .story-beats {
  position: relative;
  z-index: 2;
}
.arcade-journey .story-beat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 6vw;
  min-height: 780px;
  padding: 100px var(--gutter);
  background: transparent;
}
.arcade-journey .story-beat--intro {
  min-height: 100svh;
  padding-block: 130px;
}
:root:not(.journey-enabled) .arcade-journey .story-beat--cabinet,
:root:not(.journey-enabled) .arcade-journey .story-beat--payment {
  min-height: 480px;
}
:root:not(.journey-enabled) .arcade-journey .story-beat--cabinet .story-copy,
:root:not(.journey-enabled) .arcade-journey .story-beat--payment .story-copy {
  grid-column: 1 / -1;
  max-width: 700px;
  margin-inline: auto;
}
.arcade-journey .story-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 540px;
}
.arcade-journey .hero-copy {
  max-width: 650px;
}
.arcade-journey h1 {
  font-size: clamp(44px, 4.65vw, 68px);
}
.arcade-journey .story-copy h2 {
  font-size: clamp(34px, 3.65vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.arcade-journey .story-copy h2 span {
  color: #bca2df;
}
.arcade-journey .story-beat--cabinet h2 > span {
  font-size: 0.8em;
}
.arcade-journey .keep-together {
  white-space: nowrap;
}
.arcade-journey .story-copy > p:not(.section-label):not(.intro-label) {
  max-width: 430px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.arcade-journey .story-copy > .story-lead {
  color: var(--ink) !important;
  font-weight: 500;
}
.arcade-journey .story-copy > .story-note {
  font-size: 14px !important;
  color: #c5b0df !important;
}
.arcade-journey .hero-description {
  max-width: 390px !important;
}
.arcade-journey .story-copy .text-link {
  margin-top: 24px;
  gap: 10px;
}
.arcade-journey .story-beat--cabinet .story-copy,
.arcade-journey .story-beat--payment .story-copy,
.arcade-journey .story-beat--pixgo .story-copy,
.arcade-journey .story-beat--pixcon .story-copy {
  grid-column: 2;
}
.arcade-journey .cabinet-visual {
  position: absolute;
  top: 0;
  right: -5%;
  width: 66%;
  height: 100svh;
  min-height: 600px;
  pointer-events: none;
  z-index: 1;
}
.arcade-journey .cabinet-visual--alternate {
  display: none;
}
.arcade-journey .cabinet-ground {
  bottom: 8%;
}
.arcade-journey .story-media {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 760px;
  margin: 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid #2a2a2f;
  border-radius: 12px;
  box-shadow: 0 20px 70px #0005;
  overflow: visible;
}
.arcade-journey .story-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  aspect-ratio: 960 / 602;
  object-fit: cover;
}
.arcade-journey .story-media figcaption {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  padding: 0;
}
.arcade-journey .story-phone {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: 290px;
  max-width: 100%;
  aspect-ratio: 9 / 19;
  padding: 8px;
  background: #0a0a0d;
  border: 2px solid #35323d;
  border-radius: 35px;
  box-shadow:
    0 24px 85px #0009,
    inset 0 0 0 2px #1f1d25;
}
.arcade-journey .story-phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 25px;
  background: #08090d;
}
.arcade-journey .story-phone video {
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}
.arcade-journey .people-section {
  overflow: visible;
}
.arcade-journey .people-film {
  inset: auto;
}
.arcade-journey .people-film:after {
  display: none;
}
.arcade-journey .people-film video {
  aspect-ratio: 4 / 3;
  object-position: 50% 42%;
}
.arcade-journey .story-beat--variants {
  display: block;
  text-align: center;
}
.arcade-journey .story-beat--variants .story-copy {
  max-width: 900px;
  margin: auto;
}
.arcade-journey .story-beat--variants .story-copy > p {
  margin-inline: auto;
}
.arcade-journey .variant-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 20px auto 0;
}
.arcade-journey .variant-gallery img {
  width: 100%;
  height: auto;
}
.arcade-journey .variant-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 14px;
}
.arcade-journey .variant-labels small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.story-anchor {
  position: absolute;
  top: 0;
}

/* Scrolling drives a single pinned stage, including on tall phone screens. */
.journey-enabled .arcade-journey .arcade-stage {
  height: 100svh;
  min-height: 600px;
}
.journey-enabled .arcade-journey .story-beats {
  position: absolute;
  inset: 0;
}
.journey-enabled .arcade-journey .story-beat {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.journey-enabled .arcade-journey .story-beat--intro {
  opacity: 1;
  visibility: visible;
}
.journey-enabled .arcade-journey .story-copy {
  position: absolute;
  left: 57%;
  top: 50%;
  transform: translateY(-50%);
  width: calc(43% - var(--gutter));
  max-width: 560px;
  pointer-events: auto;
}
.journey-enabled .arcade-journey .story-beat--intro .story-copy,
.journey-enabled .arcade-journey .story-beat--pixos .story-copy,
.journey-enabled .arcade-journey .story-beat--community .story-copy {
  left: var(--gutter);
  width: 39%;
}
.journey-enabled .arcade-journey .story-beat--intro .story-copy {
  width: 47%;
  max-width: 680px;
}
.journey-enabled .arcade-journey .story-media {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 49%;
  width: calc(51% - var(--gutter));
  pointer-events: auto;
}
.journey-enabled .arcade-journey .story-phone {
  left: calc(29% - 140px);
  width: min(290px, 28svh);
}
.journey-enabled .arcade-journey .people-film {
  left: 49%;
  width: calc(51% - var(--gutter));
}
.journey-enabled .arcade-journey .cabinet-visual--alternate {
  display: block;
  visibility: hidden;
  opacity: 0;
}
.journey-enabled .arcade-journey .story-beat--variants .story-copy {
  top: 12%;
  left: 15%;
  width: 70%;
  max-width: none;
  transform: none;
}
.journey-enabled .arcade-journey .story-beat--variants .story-copy h2 {
  font-size: clamp(32px, 3.3vw, 48px);
}
.journey-enabled
  .arcade-journey
  .story-beat--variants
  .story-copy
  > p:not(.section-label) {
  max-width: 600px;
  font-size: 14px;
  margin-top: 16px;
}
.journey-enabled .arcade-journey .variant-gallery {
  display: none;
}
.journey-enabled .arcade-journey .variant-labels {
  position: absolute;
  left: 25%;
  right: 17%;
  bottom: 13%;
  max-width: none;
  margin: 0;
}

@media (max-width: 1100px) {
  .arcade-journey .story-copy h2 {
    font-size: 38px;
  }
  .arcade-journey .story-copy > p:not(.section-label):not(.intro-label) {
    font-size: 14px;
  }
  .arcade-journey h1 {
    font-size: 52px;
  }
}
@media (max-width: 700px) {
  .arcade-journey .story-beat {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 44px;
    min-height: 0;
    padding: 64px 24px;
  }
  .arcade-journey .story-beat--intro {
    min-height: 990px;
    padding-top: 130px;
  }
  .arcade-journey .hero-copy {
    max-width: 100%;
  }
  .arcade-journey h1 {
    font-size: clamp(37px, 9.5vw, 52px);
  }
  .arcade-journey .story-copy h2 {
    font-size: 34px;
  }
  .arcade-journey .story-copy > p:not(.section-label):not(.intro-label) {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
  }
  .arcade-journey .section-label {
    font-size: 11px;
    margin-bottom: 16px;
  }
  .arcade-journey .cabinet-visual {
    top: 440px;
    right: -8%;
    width: 116%;
    height: 520px;
    min-height: 0;
  }
  .arcade-journey .story-phone {
    width: 260px;
    align-self: center;
  }
  .arcade-journey .story-media {
    margin-bottom: 36px;
  }
  .arcade-journey .story-beat--variants {
    display: block;
  }
  .arcade-journey .variant-labels {
    font-size: 12px;
    gap: 12px;
  }
  .arcade-journey .variant-labels small {
    font-size: 10px;
  }
  .journey-enabled .arcade-journey .story-beat {
    padding: 0;
  }
  .journey-enabled .arcade-journey .story-copy,
  .journey-enabled .arcade-journey .story-beat--intro .story-copy,
  .journey-enabled .arcade-journey .story-beat--pixos .story-copy,
  .journey-enabled .arcade-journey .story-beat--community .story-copy {
    left: 24px;
    top: 112px;
    width: calc(100% - 48px);
    max-width: 540px;
    transform: none;
  }
  .journey-enabled .arcade-journey .story-copy h2 {
    font-size: clamp(29px, 7.6vw, 36px);
  }
  .journey-enabled .arcade-journey .cabinet-visual {
    top: 35%;
    height: 59svh;
  }
  .journey-enabled .arcade-journey .story-media {
    left: 24px;
    top: 51%;
    width: calc(100% - 48px);
    margin: 0;
    padding: 6px;
    transform: none;
  }
  .journey-enabled .arcade-journey .story-phone {
    left: 16%;
    top: 47%;
    width: min(170px, 19svh);
    padding: 6px;
    border-radius: 25px;
  }
  .journey-enabled .arcade-journey .story-phone-screen {
    border-radius: 17px;
  }
  .journey-enabled .arcade-journey .story-copy .text-link {
    margin-top: 12px;
    font-size: 12px;
  }
  .journey-enabled .arcade-journey .story-media figcaption {
    top: calc(100% + 10px);
    font-size: 10px;
  }
  .journey-enabled .arcade-journey .story-phone figcaption {
    white-space: nowrap;
    width: max-content;
    left: 50%;
    transform: translateX(-50%);
  }
  .journey-enabled .arcade-journey .people-film {
    left: 24px;
    top: 48%;
    width: calc(100% - 48px);
  }
  .journey-enabled .arcade-journey .people-film video {
    aspect-ratio: 16 / 10;
  }
  .journey-enabled .arcade-journey .story-beat--variants .story-copy {
    top: 112px;
    left: 24px;
    width: calc(100% - 48px);
  }
  .journey-enabled .arcade-journey .story-beat--variants .story-copy h2 {
    font-size: 30px;
  }
  .journey-enabled
    .arcade-journey
    .story-beat--variants
    .story-copy
    > p:not(.section-label) {
    font-size: 12px;
  }
  .journey-enabled .arcade-journey .variant-labels {
    left: 7%;
    right: 7%;
    bottom: 11%;
  }
  .journey-enabled .arcade-journey .variant-labels small {
    display: none;
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  .journey-enabled .arcade-journey .story-copy,
  .journey-enabled .arcade-journey .story-beat--intro .story-copy,
  .journey-enabled .arcade-journey .story-beat--pixos .story-copy,
  .journey-enabled .arcade-journey .story-beat--community .story-copy,
  .journey-enabled .arcade-journey .story-beat--variants .story-copy {
    top: 90px;
  }
  .journey-enabled .arcade-journey h1 {
    font-size: 34px;
  }
  .journey-enabled .arcade-journey .story-copy h2 {
    font-size: 28px;
  }
  .journey-enabled .arcade-journey .section-label,
  .journey-enabled .arcade-journey .intro-label {
    margin-bottom: 12px;
  }
  .journey-enabled
    .arcade-journey
    .story-copy
    > p:not(.section-label):not(.intro-label) {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 12px;
  }
  .journey-enabled .arcade-journey .hero-actions {
    margin-top: 18px;
  }
  .journey-enabled .arcade-journey .story-copy .text-link {
    margin-top: 8px;
  }
  .journey-enabled .arcade-journey .story-media {
    top: 52%;
  }
  .journey-enabled .arcade-journey .story-phone {
    top: 49%;
    width: min(150px, 17svh);
  }
  .journey-enabled .arcade-journey .people-film {
    top: 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-journey .cabinet-visual {
    will-change: auto;
  }
}

/* Open compositions: the cabinet and software share the same space. */
.arcade-journey .story-beats {
  pointer-events: none;
}
.arcade-journey .story-copy,
.arcade-journey .story-media {
  pointer-events: auto;
}
.arcade-journey .cabinet-ground {
  display: none;
}
.arcade-journey
  .arcade-stage[data-scene="intro"]
  .cabinet-visual--primary
  canvas {
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}
.arcade-journey .arcade-stage[data-scene="intro"] canvas.is-dragging {
  cursor: grabbing;
}
.arcade-journey .story-media,
.arcade-journey .story-phone,
.journey-enabled .arcade-journey .story-media {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.arcade-journey .story-media video {
  border-radius: 20px;
}
.arcade-journey .story-phone {
  aspect-ratio: 450 / 970;
}
.arcade-journey .story-phone-screen {
  border-radius: 22px;
  background: none;
}
.arcade-journey .story-phone video {
  border-radius: 22px;
}
.arcade-journey .story-media figcaption {
  display: none;
}
.journey-enabled
  .arcade-journey
  :is(.story-beat--pixos, .story-beat--community)
  .story-copy {
  left: 8%;
  width: 39%;
  max-width: 580px;
}
.arcade-journey :is(.story-beat--pixos, .story-beat--community) .screen-reveal,
.journey-enabled
  .arcade-journey
  :is(.story-beat--pixos, .story-beat--community)
  .screen-reveal {
  position: relative;
  inset: auto;
  width: 100%;
  margin: 26px 0 0;
  transform: none;
}
.arcade-journey
  :is(.story-beat--pixos, .story-beat--community)
  .story-copy
  > p:not(.section-label) {
  max-width: 100%;
}
.journey-enabled .arcade-journey .story-beat--pixgo .story-copy,
.journey-enabled .arcade-journey .story-beat--pixcon .story-copy {
  left: 65%;
  width: calc(35% - var(--gutter));
}
.journey-enabled .arcade-journey .story-beat--pixgo h2,
.journey-enabled .arcade-journey .story-beat--pixcon h2 {
  font-size: clamp(30px, 3.1vw, 48px);
}
.journey-enabled .arcade-journey .story-phone {
  left: 41%;
  top: 51%;
  width: min(240px, 25svh);
}
.journey-enabled .arcade-journey .story-beat--payment .story-copy {
  top: 30%;
}
.payment-demo {
  position: relative;
  width: 260px;
  height: 325px;
  border-radius: 24px;
  background: #f9f7fd;
  color: #231c30;
  box-shadow: 0 20px 65px #0003;
  overflow: hidden;
  margin: 24px auto 0;
  font-size: 12px;
}
.journey-enabled .payment-demo {
  position: absolute;
  top: 54%;
  left: 62%;
  margin: 0;
}
.payment-demo-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 19px 20px;
  font-weight: 600;
}
.payment-demo-header small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #655d72;
  margin-top: 3px;
}
.payment-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7850b4;
  color: #fff;
  width: 31px;
  height: 31px;
}
.upi-wordmark {
  margin-left: auto;
  font-weight: 700;
  font-style: italic;
  color: #514361;
}
.payment-scan,
.payment-processing,
.payment-success {
  position: absolute;
  inset: 69px 12px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.payment-amount {
  font-size: 25px;
  font-weight: 600;
  text-align: center;
}
.payment-amount span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 400;
  color: #655d72;
}
.qr-window {
  width: 122px;
  height: 122px;
  position: relative;
  padding: 7px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}
.qr-window svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #24202b;
}
.scan-light {
  position: absolute;
  inset: 10% 0 auto;
  height: 18px;
  background: linear-gradient(transparent, #9661da90);
  animation: upi-scan 2s ease-in-out infinite alternate;
}
.payment-status {
  font-size: 10px;
  color: #655d72;
}
.payment-demo-caption {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  color: #736b7c;
  font-size: 9px;
}
.payment-processing strong,
.payment-success strong {
  font-size: 16px;
  font-weight: 600;
}
.payment-processing > span:last-child,
.payment-success > span {
  color: #655d72;
  font-size: 11px;
}
.payment-spinner {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 3px solid #e6dfef;
  border-top-color: #8250b9;
  border-radius: 50%;
  animation: upi-spin 1s linear infinite;
}
.payment-success svg {
  width: 65px;
  height: 65px;
  margin-bottom: 12px;
}
.payment-success circle {
  fill: #e1f3e9;
}
.payment-success path {
  fill: none;
  stroke: #277d50;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.payment-success small {
  margin-top: 14px;
  border-radius: 100px;
  background: #eee6f6;
  color: #65418c;
  padding: 9px 17px;
}
.payment-scan {
  animation: upi-scanning 9s infinite;
}
.payment-processing {
  opacity: 0;
  animation: upi-processing 9s infinite;
}
.payment-success {
  opacity: 0;
  animation: upi-success 9s infinite;
}
.journey-enabled .arcade-stage:not([data-scene="payment"]) .payment-demo * {
  animation-play-state: paused;
}
@keyframes upi-scan {
  to {
    top: 80%;
  }
}
@keyframes upi-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes upi-scanning {
  0%,
  31% {
    opacity: 1;
    transform: translateY(0);
  }
  38%,
  94% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes upi-processing {
  0%,
  35%,
  63%,
  100% {
    opacity: 0;
  }
  41%,
  56% {
    opacity: 1;
  }
}
@keyframes upi-success {
  0%,
  60%,
  97%,
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
  67%,
  92% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (min-width: 701px) and (max-height: 800px) {
  .journey-enabled .payment-demo {
    top: 55%;
    transform: scale(0.8);
    transform-origin: top center;
  }
  .journey-enabled .arcade-journey .story-beat--payment .story-copy {
    top: 31%;
  }
  .journey-enabled .arcade-journey .story-beat--payment .story-copy > p {
    margin-top: 14px;
  }
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    .story-copy {
    width: 35%;
    left: 9%;
  }
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    h2 {
    font-size: 36px;
  }
}
@media (max-width: 700px) {
  .journey-enabled .arcade-journey .story-beat--pixgo .story-copy,
  .journey-enabled .arcade-journey .story-beat--pixcon .story-copy,
  .journey-enabled .arcade-journey .story-beat--payment .story-copy {
    top: 112px;
    left: 24px;
    width: calc(100% - 48px);
  }
  .journey-enabled .arcade-journey .story-phone {
    left: 9%;
    top: 48%;
    width: min(155px, 19svh);
  }
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    .story-copy {
    top: 112px;
    left: 24px;
    width: calc(100% - 48px);
    transform: none;
  }
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    .screen-reveal {
    margin-top: 28px;
    width: 60%;
  }
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    .story-copy
    > p:not(.section-label) {
    width: 52%;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 18px;
  }
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    .section-label {
    margin-bottom: 16px;
  }
  .journey-enabled .payment-demo {
    left: 7%;
    top: 54%;
    width: 182px;
    height: 276px;
    transform: scale(0.85);
    transform-origin: top left;
  }
  .payment-demo-header {
    padding: 15px 12px;
    gap: 6px;
  }
  .payment-demo-header small {
    font-size: 8px;
  }
  .payment-avatar {
    width: 25px;
    height: 25px;
  }
  .payment-scan,
  .payment-processing,
  .payment-success {
    inset: 54px 8px 25px;
  }
  .qr-window {
    width: 98px;
    height: 98px;
  }
  .payment-processing strong,
  .payment-success strong {
    font-size: 13px;
  }
  .journey-enabled .arcade-journey .story-beat--pixgo h2,
  .journey-enabled .arcade-journey .story-beat--pixcon h2 {
    font-size: 32px;
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    .story-copy,
  .journey-enabled .arcade-journey .story-beat--pixgo .story-copy,
  .journey-enabled .arcade-journey .story-beat--pixcon .story-copy,
  .journey-enabled .arcade-journey .story-beat--payment .story-copy {
    top: 90px;
  }
  .journey-enabled .arcade-journey .story-phone {
    top: 51%;
    width: min(140px, 18svh);
  }
  .journey-enabled .arcade-journey .story-beat--pixgo h2,
  .journey-enabled .arcade-journey .story-beat--pixcon h2 {
    font-size: 28px;
  }
  .journey-enabled .payment-demo {
    top: 56%;
    transform: scale(0.76);
  }
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    .story-copy
    > p:not(.section-label) {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .payment-demo * {
    animation: none;
  }
  .payment-scan,
  .payment-processing {
    opacity: 0;
  }
  .payment-success {
    opacity: 1;
  }
}
@media (min-width: 701px) {
  .journey-enabled .arcade-journey .variant-labels {
    left: 18%;
    right: 14%;
    bottom: 5%;
  }
}

/* A separate shell keeps phone perspective independent of scroll transforms. */
.arcade-journey .phone-shell {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 6px;
  border: 2px solid #6b6376;
  border-radius: 30px;
  background: linear-gradient(
    120deg,
    #5c5368,
    #151219 32%,
    #29232f 82%,
    #82758d
  );
  transform: perspective(1000px) rotateY(-14deg) rotateZ(-3deg);
  box-shadow:
    2px 1px 0 #625a6c,
    5px 2px 0 #3c3545,
    8px 3px 0 #211c28,
    20px 25px 40px #0006;
}
.arcade-journey .story-phone--pixcon .phone-shell {
  transform: perspective(1000px) rotateY(14deg) rotateZ(3deg);
  box-shadow:
    -2px 1px 0 #625a6c,
    -5px 2px 0 #3c3545,
    -8px 3px 0 #211c28,
    20px 25px 40px #0006;
}
.arcade-journey .phone-shell::before,
.arcade-journey .phone-shell::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #81778d;
  left: -4px;
  top: 18%;
  height: 8%;
}
.arcade-journey .phone-shell::after {
  top: 29%;
  height: 11%;
}
.arcade-journey .phone-shell .story-phone-screen {
  border-radius: 22px;
  background: #08090d;
}
.arcade-journey .phone-shell video {
  height: 100%;
  object-fit: cover;
}
.arcade-journey .people-film video {
  aspect-ratio: 960 / 602;
}
@media (max-width: 700px) {
  .arcade-journey .phone-shell {
    padding: 4px;
    border-radius: 22px;
  }
  .arcade-journey .phone-shell .story-phone-screen,
  .arcade-journey .phone-shell video {
    border-radius: 15px;
  }
}
/* Both designs can be explored without overlapping canvas hit areas. */
.arcade-journey .arcade-stage[data-scene="variants"] .cabinet-visual {
  clip-path: inset(0 24%);
}
.arcade-journey .arcade-stage[data-scene="variants"] canvas {
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}
.arcade-journey .arcade-stage[data-scene="variants"] canvas.is-dragging {
  cursor: grabbing;
}
@media (max-width: 700px) {
  .arcade-journey h1,
  .journey-enabled .arcade-journey h1 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.14;
  }
  .arcade-journey .story-copy h2,
  .journey-enabled .arcade-journey .story-copy h2 {
    font-size: clamp(23px, 6.2vw, 28px);
    line-height: 1.18;
  }
  .arcade-journey .story-copy > p:not(.section-label):not(.intro-label),
  .journey-enabled
    .arcade-journey
    .story-copy
    > p:not(.section-label):not(.intro-label) {
    font-size: 12px;
    line-height: 1.55;
    margin-top: 12px;
  }
  .arcade-journey .story-copy .section-label,
  .arcade-journey .story-copy .intro-label {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .arcade-journey .story-copy > .story-note {
    font-size: 11px !important;
  }
  .journey-enabled
    .arcade-journey
    :is(
      .story-beat--intro,
      .story-beat--cabinet,
      .story-beat--pixgo,
      .story-beat--pixcon
    )
    .story-copy {
    top: 62%;
    left: 24px;
    width: calc(100% - 48px);
    transform: none;
  }
  .journey-enabled .arcade-journey .story-beat--intro .hero-actions {
    margin-top: 18px;
    gap: 20px;
  }
  .journey-enabled .arcade-journey .story-beat--intro .button {
    font-size: 11px;
    padding: 13px 17px;
  }
  .journey-enabled .arcade-journey .story-beat--intro .text-link {
    font-size: 11px;
  }
  .journey-enabled .arcade-journey .story-phone {
    top: 16%;
    left: 9%;
    width: min(155px, 20svh);
  }
  .journey-enabled .arcade-journey .story-beat--payment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: max(90px, 13svh) 0 0 24px;
  }
  .journey-enabled .arcade-journey .story-beat--payment .story-copy {
    position: relative;
    left: auto;
    top: auto;
    width: 47%;
    transform: none;
    flex: 0 0 auto;
  }
  .journey-enabled .arcade-journey .payment-demo {
    position: relative;
    top: auto;
    left: auto;
    margin: 14px 0 0;
    width: 46%;
    height: 235px;
    transform: none;
    flex: 0 0 auto;
  }
  .journey-enabled .arcade-journey .story-beat--payment .story-copy > p {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 10px;
  }
  .journey-enabled .arcade-journey .story-beat--payment .section-label {
    font-size: 9px;
  }
  .journey-enabled .arcade-journey .payment-demo-header {
    padding: 12px 9px;
    font-size: 10px;
  }
  .journey-enabled .arcade-journey .payment-demo-header small {
    font-size: 7px;
  }
  .journey-enabled .arcade-journey .payment-avatar {
    width: 21px;
    height: 21px;
  }
  .journey-enabled .arcade-journey .payment-amount {
    font-size: 22px;
  }
  .journey-enabled .arcade-journey .payment-scan {
    gap: 6px;
    inset: 44px 6px 22px;
  }
  .journey-enabled .arcade-journey .qr-window {
    width: 86px;
    height: 86px;
  }
  .journey-enabled .arcade-journey .payment-success strong {
    font-size: 12px;
  }
  .journey-enabled .arcade-journey .story-beat--pixos .screen-reveal {
    width: 56%;
  }
  .journey-enabled
    .arcade-journey
    :is(.story-beat--pixos, .story-beat--community)
    .story-copy
    > p:not(.section-label) {
    font-size: 11px;
  }
  :root:not(.journey-enabled) .arcade-journey .story-beat--intro {
    padding-top: 600px;
    min-height: 900px;
  }
  :root:not(.journey-enabled) .arcade-journey .cabinet-visual--primary {
    top: 65px;
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  .journey-enabled
    .arcade-journey
    :is(
      .story-beat--intro,
      .story-beat--cabinet,
      .story-beat--pixgo,
      .story-beat--pixcon
    )
    .story-copy {
    top: 61%;
  }
  .journey-enabled .arcade-journey .story-beat--payment {
    padding-top: 86px;
  }
  .journey-enabled .arcade-journey .payment-demo {
    height: 220px;
    margin-top: 12px;
  }
}
@media (max-width: 700px) {
  .journey-enabled .arcade-journey .story-beat--payment {
    gap: 0;
  }
  .journey-enabled
    .arcade-journey
    .arcade-stage:is([data-scene="payment"], [data-scene="pixos"])
    .cabinet-visual--primary {
    mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  }
}
