@font-face {
  font-family: 'Pixelify Sans';
  src: url('fonts/PixelifySans-Variable.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #29281c;
  --wood: #29281c;
  --paper: #fff0cc;
  --linen: #eae1bd;
  --mist: #e8ead5;
  --ink: #30291f;
  --heading: #fff2ca;
  --on-night: #f3ead5;
  --muted: #555846;
  --muted-night: #dfd4b9;
  --line: #b49a66;
  --line-night: #836f4d;
  --gold: #f2c86d;
  --bronze: #80531d;
  --display: 'Pixelify Sans', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 80rem;
  --gutter: clamp(1rem, 5vw, 4rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1rem, .25vw + .925rem, 1.125rem)/1.62 var(--body);
}
img {
  display: block;
  max-inline-size: 100%;
}
p, h1, h2, h3, figure {
  margin: 0;
}
p + p {
  margin-block-start: .75em;
}
a {
  color: inherit;
}
a:hover {
  color: var(--bronze);
}
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}
[id] {
  scroll-margin-block-start: 1.25rem;
}
.wrap {
  inline-size: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.pixel {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 4;
  padding: .75rem;
  background: var(--paper);
}

h2 {
  font: 700 clamp(1.9rem, 2.7vw + .8rem, 3.35rem)/1.08 var(--display);
  font-variant-ligatures: none;
  text-wrap: balance;
}
h3 {
  font: 650 clamp(1.28rem, 1vw + .88rem, 1.75rem)/1.12 var(--display);
  font-variant-ligatures: none;
  text-wrap: balance;
}
.ornament {
  display: block;
  inline-size: 6.5rem;
  block-size: 12px;
  margin: .55rem auto .7rem;
  background:
    url('theme/rule.png') center / 36px 12px no-repeat,
    linear-gradient(90deg, transparent, #986530, transparent) center / 100% 1px no-repeat;
}

.site-header, .hero, .gameplay, .panorama, .site-footer {
  color-scheme: dark;
  color: var(--on-night);
}
.site-header a:hover, .hero a:hover, .site-footer a:hover {
  color: var(--gold);
}
.site-header :focus-visible, .hero :focus-visible, .gameplay :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold);
}

.site-header {
  background: linear-gradient(110deg, #342b1f, var(--wood) 46%, #22251b);
  border-block-end: 2px solid #836343;
  position: relative;
  z-index: 2;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-block-size: 3.5rem;
  text-decoration: none;
}
.brand img {
  inline-size: clamp(7.25rem, 14vw, 11rem);
  block-size: auto;
}
.site-nav {
  order: 1;
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  gap: clamp(.85rem, 4vw, 2.5rem);
  border-block-start: 1px solid #ffffff24;
}
.site-nav a, .language a {
  min-block-size: 2.75rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-nav a {
  position: relative;
  font: 600 .9375rem/1.3 var(--body);
  white-space: nowrap;
}
.site-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 .38rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  scale: .65 1;
  transition: opacity .22s ease, scale .22s ease;
}
.site-nav a:is(:hover, :focus-visible)::after {
  opacity: .9;
  scale: 1 1;
}
.language {
  display: flex;
  align-items: center;
  font: 600 .875rem/1 var(--body);
  color: var(--muted-night);
}
.language a {
  min-inline-size: 2.75rem;
  justify-content: center;
}
.language a[aria-current] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .32em;
}

.hero {
  isolation: isolate;
  display: grid;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 15%, #56442d, transparent 65%),
    linear-gradient(125deg, #352b1d, #26291d);
  border-block-end: 1px solid var(--line-night);
}
.hero-scene {
  position: relative;
  grid-row: 2;
  inline-size: 100%;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 9%);
}
.hero-art {
  inline-size: 100%;
  block-size: auto;
  clip-path: inset(0 0 .75% 0);
  filter: brightness(1.14) saturate(1.08);
}
.portal-halo, .hero-motes {
  position: absolute;
  pointer-events: none;
}
.portal-halo {
  inset: 1% auto auto 43%;
  inline-size: 47%;
  block-size: 55%;
  background: radial-gradient(ellipse at 51% 34%, #ffc76f90, #ffc76f30 30%, transparent 68%);
  mix-blend-mode: screen;
  opacity: .36;
}
.hero-motes {
  inset: 0;
}
.hero-motes span {
  position: absolute;
  inset: var(--mote-y) auto auto var(--mote-x);
  width: 3px;
  height: 3px;
  background: #ffe8a4;
  box-shadow: 0 0 7px 2px #ffbd5d80;
  opacity: 0;
}
.hero-motes span:nth-child(1) { --mote-x: 59%; --mote-y: 50%; --mote-delay: 0s; }
.hero-motes span:nth-child(2) { --mote-x: 72%; --mote-y: 36%; --mote-delay: .35s; }
.hero-motes span:nth-child(3) { --mote-x: 83%; --mote-y: 64%; --mote-delay: .55s; }
.hero-motes span:nth-child(4) { --mote-x: 49%; --mote-y: 71%; --mote-delay: .15s; }
.hero-motes span:nth-child(5) { --mote-x: 64%; --mote-y: 20%; --mote-delay: .7s; }
.hero-motes span:nth-child(6) { --mote-x: 91%; --mote-y: 48%; --mote-delay: .25s; }

.hero-inner {
  grid-row: 1;
  padding-block: clamp(1.65rem, 5vw, 4rem) 1.15rem;
  display: flex;
  justify-content: center;
  text-align: center;
}
.hero-content {
  max-inline-size: 34rem;
}
.hero h1 {
  margin-block-end: .6rem;
}
.hero h1 img {
  inline-size: min(92%, 31rem);
  block-size: auto;
  margin-inline: auto;
}
.hero-tagline {
  color: var(--heading);
  font: 700 clamp(1.8rem, 3vw, 3.1rem)/1.08 var(--display);
  font-variant-ligatures: none;
  text-wrap: balance;
}
.hero-description {
  max-inline-size: 32rem;
  margin-inline: auto;
  text-wrap: pretty;
}
.hero-description + .hero-description {
  margin-block-start: .55rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem .9rem;
  margin-block-start: 1rem;
}
.hero-status {
  margin-block-start: .85rem;
  font-size: .875rem;
  color: var(--muted-night);
}
.button {
  display: inline-grid;
  place-items: center;
  min-block-size: 2.85rem;
  padding: .55rem 1.1rem;
  border: 6px solid #a47b4f;
  border-image: url('theme/button.png') 6;
  background: #392e20;
  image-rendering: pixelated;
  color: var(--heading);
  text-decoration: none;
  font: 650 .9375rem/1.35 var(--body);
  transition: background-color .2s ease, filter .2s ease, translate .2s ease;
}
.hero .button:hover {
  background: #4a3e29;
  color: var(--heading);
}
.button-primary {
  background: var(--gold);
  border-color: var(--gold);
  border-image: url('theme/button_primary.png') 6;
  color: #2e2116;
}
.hero .button-primary:hover {
  background: #ffe0a0;
  color: #2e2116;
}
.button:active {
  border-image-source: url('theme/button_pressed.png');
}
.button-primary:active {
  border-image-source: url('theme/button_primary_pressed.png');
}
.button-primary:is(:hover, :focus-visible) {
  filter: drop-shadow(0 0 .7rem #f7bf665e);
  translate: 0 -2px;
}
.button-primary:active {
  translate: 0 1px;
}

.world-content {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 3.5vw, 3.25rem) clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse at 50% 8%, #f5e9c3, transparent 60%),
    linear-gradient(180deg, #e3d5aa, #dee6ca);
}
.foliage {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 auto auto 0;
  inline-size: min(32vw, 18rem);
  opacity: .65;
}
.foliage-right {
  inset: 0 0 auto auto;
  transform: scaleX(-1);
}
.world-content .foliage {
  opacity: .62;
}
.faq .foliage {
  opacity: .27;
}
.frame {
  --frame-color: #84633c;
  position: relative;
  border: 2px solid var(--frame-color);
  box-shadow: 0 4px 0 #40304428;
  overflow: hidden;
}
.frame::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--frame-color), var(--frame-color)) left top / 12px 3px no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) left top / 3px 12px no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) right top / 12px 3px no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) right top / 3px 12px no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) left bottom / 12px 3px no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) left bottom / 3px 12px no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) right bottom / 12px 3px no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) right bottom / 3px 12px no-repeat;
}
.intro {
  background: radial-gradient(ellipse at 50% 5%, #fff6d9, var(--paper) 85%);
  text-align: center;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 6px solid var(--frame-color);
  border-image: url('theme/panel.png') 6;
  image-rendering: pixelated;
}
.intro::before {
  content: none;
}
.intro p {
  max-inline-size: 46rem;
  margin-inline: auto;
}
.intro p + p {
  margin-block-start: .4rem;
}

.gameplay {
  isolation: isolate;
  position: relative;
  display: grid;
  gap: 1.35rem;
  align-items: center;
  margin-block: clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(1rem, 4vw, 3.5rem);
  border: 2px solid #8b7047;
  background:
    radial-gradient(ellipse at 73% 48%, #6c653d, transparent 57%),
    radial-gradient(ellipse at 12% 20%, #5d452d, transparent 62%),
    #292b1e;
  box-shadow: inset 0 0 0 4px #fff0c512, 0 5px 0 #3827123d, 0 1rem 2rem #47372029;
}
.gameplay::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('theme/stone.png');
  filter: sepia(1);
  mix-blend-mode: soft-light;
  opacity: .38;
  pointer-events: none;
}
.gameplay::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid #c4a16b4d;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 12px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 1px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 1px 12px no-repeat;
  pointer-events: none;
}
.gameplay-copy {
  text-align: center;
}
.gameplay-copy h2 {
  color: var(--heading);
}
.gameplay-copy p {
  max-inline-size: 29rem;
  margin-inline: auto;
}
.gameplay-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.7rem, 2.8vw, 2.3rem);
  inline-size: min(100%, 34rem);
  margin-inline: auto;
}
.gameplay-screens figure:nth-child(2) {
  margin-block-start: clamp(.7rem, 3vw, 2.25rem);
}
.game-phone {
  position: relative;
  display: block;
  padding: clamp(.7rem, 1.6vw, 1.1rem) .3rem .7rem;
  border: 2px solid #c3a16a;
  border-radius: clamp(.85rem, 2.3vw, 1.65rem);
  background: linear-gradient(145deg, #584a34, #232318 62%, #332a1f);
  box-shadow: 0 13px 20px #171309a6, inset 0 0 0 2px #251e15, inset 0 0 0 4px #ddad6526;
}
.game-phone::before, .game-phone::after {
  content: '';
  position: absolute;
  inset-inline-start: 50%;
  translate: -50% 0;
  border-radius: 1rem;
  pointer-events: none;
}
.game-phone::before {
  inset-block-start: .24rem;
  inline-size: 22%;
  block-size: .18rem;
  background: #1d180e;
}
.game-phone::after {
  inset-block-end: .25rem;
  inline-size: 30%;
  block-size: .12rem;
  background: #b8b1a8;
}
.game-phone img {
  inline-size: 100%;
  block-size: auto;
  border-radius: clamp(.55rem, 1.5vw, 1rem);
}
.gameplay-screens figcaption {
  margin-block-start: .65rem;
  text-align: center;
  font: 650 .875rem/1.35 var(--body);
  color: var(--heading);
}

.features {
  margin-block-start: clamp(1.75rem, 3.75vw, 3rem);
}
.features > h2 {
  text-align: center;
  margin-block-end: 1.3rem;
}
.feature-grid {
  display: grid;
  gap: 1.2rem;
}
.feature {
  min-inline-size: 0;
  --frame-color: #61744a;
  --feature-heading: #29452d;
  background: #edf0d6;
  box-shadow: 0 4px 0 #40304428, 0 .7rem 1.4rem #443b2622;
}
.feature:nth-child(2) {
  --frame-color: #865746;
  --feature-heading: #632f27;
  background: #f3e1d3;
}
.feature:nth-child(3) {
  --frame-color: #9e6d3b;
  --feature-heading: #5f391b;
  background: var(--paper);
}
.feature-shot {
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--wood);
  border-block-end: 2px solid var(--frame-color);
}
.feature-shot img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.game-phone img, .feature-shot img {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.feature-shot--world img {
  object-position: center 30%;
}
.feature-shot--battle img {
  object-position: center 44%;
}
.feature-shot--progression {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.feature-shot--progression img {
  min-block-size: 0;
  object-position: center 37%;
}
.feature-shot--progression img + img {
  object-position: center top;
}
.feature-copy {
  padding: 1.15rem clamp(1.05rem, 2vw, 1.6rem) 1.4rem;
  background: linear-gradient(160deg, #fff9dd40, transparent 65%);
}
.feature-copy h3 {
  color: var(--feature-heading);
}
.feature-copy .ornament {
  inline-size: 2.75rem;
  margin: .68rem auto .75rem 0;
}
.art-credit {
  margin-block-start: .8rem;
  text-align: center;
  color: var(--muted);
  font-size: .9375rem;
}

.panorama {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: start center;
  text-align: center;
  min-block-size: clamp(17.5rem, 28vw, 25rem);
  padding-block: clamp(1.5rem, 3.75vw, 3rem);
  border-block: 1px solid var(--line-night);
  background: var(--wood);
  overflow: hidden;
}
.panorama img {
  position: absolute;
  z-index: -2;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 67%;
  filter: brightness(1.36) saturate(1.18);
}
.panorama::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, #352b1a73, transparent 84%),
    radial-gradient(ellipse at 54% 78%, #f4ac4e4f, transparent 62%);
}
.panorama .wrap {
  max-inline-size: 53rem;
  padding: clamp(.85rem, 2vw, 1.7rem) clamp(1rem, 3vw, 2.75rem);
  background: #322c20ed;
  border: 2px solid #ae8b56a8;
  box-shadow: inset 0 0 0 3px #e9d2a516, 0 .5rem 1.5rem #2118104d;
}
.panorama h2 {
  color: var(--heading);
}
.panorama p {
  max-inline-size: 40rem;
  margin-inline: auto;
}
.story-block {
  isolation: isolate;
  position: relative;
  padding-block: clamp(1.65rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, #d4ddba, var(--mist));
  overflow: hidden;
}
.foreground {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: auto 0 0 auto;
  inline-size: min(33vw, 17rem);
  opacity: .78;
  transform: scaleX(-1);
}
.hero-foreground, .faq-foreground {
  inset: auto auto 0 0;
  transform: none;
}
.story-block .foreground, .faq-foreground {
  opacity: .45;
}
.story {
  display: grid;
  background: linear-gradient(142deg, var(--paper) 54%, #f1deb1);
}
.story-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.45;
}
.story-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 51% 36%, #ffc45d52, transparent 55%);
  mix-blend-mode: screen;
  opacity: .4;
}
.story-art img {
  block-size: 100%;
  inline-size: 100%;
  object-fit: cover;
  object-position: 20% center;
  transform: scale(1.13);
  transform-origin: left center;
  filter: brightness(1.15) saturate(1.25);
}
.story-copy {
  padding: clamp(1.3rem, 4vw, 2.75rem);
}
.story-copy .ornament {
  margin-inline: 0;
}
.story-signoff {
  color: var(--bronze);
  font-weight: 650;
}
.story-cta {
  margin-block-start: 1rem;
}
.story-cta:hover {
  background: #ffe0a0;
  color: #2e2116;
}

.faq {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 4.25rem);
  background: var(--mist);
}
.faq h2 {
  text-align: center;
}
.faq .ornament {
  margin-block-end: 1.25rem;
}
.faq-list {
  max-inline-size: 53rem;
  margin-inline: auto;
  display: grid;
  gap: .5rem;
}
.faq details {
  background: #f5efda;
  border: 1px solid #b2a678;
  box-shadow: inset 3px 0 #8d936b;
  transition: background-color .22s ease, box-shadow .22s ease;
}
.faq details[open] {
  background: #faf0d4;
  box-shadow: inset 3px 0 #ad7942, 0 .25rem .55rem #654e2d19;
}
.faq summary {
  display: grid;
  grid-template-columns: 1fr 1.1em;
  gap: .75rem;
  align-items: center;
  padding: .6rem 1rem;
  min-block-size: 3.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--bronze);
  text-align: end;
}
.faq details[open] summary::after {
  content: '−';
}
.faq summary:hover {
  color: var(--bronze);
}
.faq details p {
  padding: .1rem 1rem 1rem;
}

.site-footer {
  padding-block: 1.35rem;
  border-block-start: 1px solid var(--line-night);
  background: var(--wood);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .8rem 2rem;
}
.footer-brand {
  display: grid;
  gap: .55rem;
}
.footer-brand img {
  inline-size: 9rem;
  block-size: auto;
}
.footer-brand p, .privacy-status {
  color: var(--muted-night);
  font-size: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  align-items: center;
}
.footer-links > a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  text-underline-offset: .15em;
}

@media (max-width: 47.999rem) {
  .hero .foliage {
    opacity: .34;
  }
  .faq-foreground {
    display: none;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  .footer-brand .brand {
    justify-content: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 63.999rem) {
  .hero-foreground {
    display: none;
  }
}

@media (min-width: 48rem) {
  .header-inner {
    min-block-size: 4.15rem;
    flex-wrap: nowrap;
  }
  .site-nav {
    order: 0;
    flex: 0 1 auto;
    border: 0;
    margin-inline-start: auto;
  }
  .hero-scene {
    position: absolute;
    z-index: -3;
    grid-row: auto;
    inset: 0 0 0 auto;
    inline-size: 79%;
    block-size: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 15%);
  }
  .hero-art {
    block-size: 100%;
    object-fit: cover;
    object-position: 76% top;
    transform: translate(var(--scene-x, 0), var(--scene-y, 0)) scale(1.022);
    transition: transform .3s ease-out;
  }
  .portal-halo {
    inset-block-start: 4%;
  }
  .hero::before {
    content: '';
    z-index: -2;
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, #433724f0 17%, #403623f5 32%, #3b3322e8 46%, #342e20b3 54%, #2d291d40 64%, transparent 76%),
      linear-gradient(0deg, #2925185c, transparent 25%);
  }
  .hero-inner {
    min-block-size: clamp(29rem, 40vw, 39rem);
    align-items: center;
    justify-content: flex-start;
    padding-block: 2.25rem;
  }
  .hero-content {
    inline-size: min(47%, 34rem);
    margin-inline-start: clamp(0rem, 2vw, 2.5rem);
  }
  .gameplay {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 4vw, 3.4rem);
  }
  .gameplay-copy {
    text-align: start;
  }
  .gameplay-copy .ornament, .gameplay-copy p {
    margin-inline-start: 0;
  }
  .gameplay-screens figure:first-child .game-phone {
    rotate: -3deg;
  }
  .gameplay-screens figure:nth-child(2) .game-phone {
    rotate: 3deg;
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .story {
    grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  }
  .story-art {
    position: relative;
    aspect-ratio: auto;
  }
  .story-art img {
    position: absolute;
    object-position: 68% center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready {
    scroll-behavior: smooth;
  }
  .ambient-visible .portal-halo, .ambient-visible.story-block .story-art::after {
    animation: portal-glow 4.6s ease-in-out;
  }
  .ambient-visible .hero-motes span {
    animation: mote 4s var(--mote-delay) ease-in-out;
  }
  .ambient-visible .game-phone {
    animation: phone-drift 4.3s ease-in-out;
  }
  .ambient-visible .gameplay-screens figure:nth-child(2) .game-phone {
    animation-delay: .45s;
  }
  .section-enter {
    animation: section-enter .55s both ease-out;
  }
  .feature.section-enter:nth-child(2) { animation-delay: .09s; }
  .feature.section-enter:nth-child(3) { animation-delay: .18s; }
  .faq details[open] > p {
    animation: section-enter .23s both ease-out;
  }
}

@keyframes portal-glow {
  0%, 100% { opacity: .35; scale: .94; }
  50% { opacity: .82; scale: 1.09; }
}
@keyframes mote {
  0%, 100% { opacity: 0; translate: 0 7px; }
  28% { opacity: .88; }
  72% { opacity: .48; translate: -7px -17px; }
}
@keyframes phone-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
@keyframes section-enter {
  from { opacity: .82; translate: 0 .65rem; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.hero-art, .button, .faq details), .site-nav a::after {
    transition: none;
  }
  .hero-art {
    transform: none;
  }
  .button-primary {
    translate: none;
  }
}
