@font-face {
  font-family: "Pretendard";
  src: url("./assets/Pretendard-home.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Galmuri14";
  src: url("./assets/Galmuri14-home.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #060811;
  --ink-soft: #0b0e19;
  --paper: #f7f7fb;
  --muted: #a7aabd;
  --pink: #ff4fa3;
  --pink-soft: #ff9acb;
  --violet: #9b7bff;
  --cyan: #73e9ff;
  --line: rgb(115 233 255 / 22%);
  --hairline: 1px;
  --shell: min(1180px, calc(100vw - 96px));
  --ease-rift: cubic-bezier(.77, 0, .18, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    linear-gradient(rgb(255 255 255 / 1.5%) 1px, transparent 1px) 0 0 / 100% 7px,
    var(--ink);
  font-family: "Pretendard", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #070812;
  background: var(--pink-soft);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.system-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: "Galmuri14", monospace;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.floor-rail {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: max(22px, 2.6vw);
  display: grid;
  grid-template-columns: auto 3px;
  grid-template-rows: auto auto 148px auto;
  gap: 8px 12px;
  align-items: start;
  color: var(--cyan);
  font-family: "Galmuri14", monospace;
  pointer-events: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 8px #000);
}

.floor-rail__caption {
  grid-column: 1;
  font-size: 9px;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.floor-rail__number {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  color: var(--paper);
  font-size: 17px;
  line-height: 1;
}

.floor-rail__line {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  width: 1px;
  height: 100%;
  justify-self: center;
  overflow: hidden;
  background: rgb(115 233 255 / 22%);
}

.floor-rail__line::before,
.floor-rail__line::after {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 1px;
  content: "";
  background: var(--cyan);
  transform: translateX(-50%);
}

.floor-rail__line::before { top: 0; }
.floor-rail__line::after { bottom: 0; }

.floor-rail__line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--cyan), var(--violet));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

.floor-rail__label {
  grid-column: 1 / 3;
  grid-row: 4;
  max-width: 72px;
  color: rgb(247 247 251 / 62%);
  font-size: 9px;
  line-height: 1.35;
  text-align: right;
}

.sound-toggle {
  position: fixed;
  z-index: 39;
  right: max(70px, 6.8vw);
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  min-width: 92px;
  height: 34px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: rgb(247 247 251 / 72%);
  background: rgb(6 8 17 / 78%);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: var(--paper);
  border-color: var(--cyan);
}

.sound-toggle > i {
  display: flex;
  width: 17px;
  height: 13px;
  align-items: end;
  justify-content: space-between;
}

.sound-toggle > i b {
  display: block;
  width: 3px;
  background: var(--cyan);
  animation: audio-meter 800ms ease-in-out infinite alternate;
}

.sound-toggle > i b:nth-child(1) { height: 45%; }
.sound-toggle > i b:nth-child(2) { height: 100%; animation-delay: -360ms; }
.sound-toggle > i b:nth-child(3) { height: 68%; animation-delay: -180ms; }

.sound-toggle[aria-pressed="false"] > i b {
  height: 2px;
  animation: none;
  background: rgb(247 247 251 / 42%);
}

.sound-toggle span {
  font-family: "Galmuri14", monospace;
  font-size: 7px;
  letter-spacing: .08em;
}

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: #05070d;
}

.hero::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(6 8 17 / 94%) 0%, rgb(6 8 17 / 76%) 32%, rgb(6 8 17 / 12%) 67%, rgb(6 8 17 / 46%) 100%),
    linear-gradient(0deg, rgb(6 8 17 / 88%) 0%, transparent 42%);
}

.hero__scenes,
.hero-scene {
  position: absolute;
  inset: 0;
}

.hero__scenes {
  z-index: 0;
  touch-action: pan-y;
}

.hero-scene {
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  transition: opacity 520ms ease, visibility 0s 520ms;
}

.hero-scene.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.scene-backdrop,
.scene-backdrop img {
  width: 100%;
  height: 100%;
}

.scene-backdrop img {
  object-fit: cover;
  object-position: center 52%;
  image-rendering: pixelated;
  filter: saturate(.76) brightness(.64) contrast(1.06);
}

.hero-scene--shelter::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 77% 59%, rgb(255 79 163 / 16%), transparent 27%);
}

.character-sprite {
  display: block;
  aspect-ratio: 243 / 246;
  background: url("./assets/hero-idle-strip.webp") 0 0 / 900% 100% no-repeat;
  image-rendering: pixelated;
  animation: homepage-idle 1.8s steps(9) infinite;
}

.hero-cat {
  position: absolute;
  z-index: 2;
  right: clamp(62px, 13vw, 238px);
  bottom: 8.5%;
  width: min(31vw, 486px);
  min-width: 239px;
  filter: drop-shadow(0 24px 28px rgb(0 0 0 / 70%)) drop-shadow(0 0 28px rgb(255 79 163 / 22%));
}

.scene-coordinate {
  position: absolute;
  z-index: 3;
  right: max(76px, 7vw);
  bottom: 6.5%;
  padding-left: 42px;
  color: rgb(247 247 251 / 55%);
  font-family: "Galmuri14", monospace;
  font-size: 10px;
  letter-spacing: .12em;
}

.scene-coordinate::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 32px;
  height: 1px;
  content: "";
  background: var(--cyan);
}

.hero-scene--awaken {
  background:
    radial-gradient(circle at 70% 52%, rgb(255 79 163 / 24%), transparent 33%),
    linear-gradient(112deg, #090712, #160b1d 64%, #080913);
}

.hero-scene--beyond {
  background: #100a20;
}

.hero-scene--beyond .scene-backdrop img {
  filter: saturate(.9) brightness(.48) contrast(1.05);
}

.cinema-frame {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(70px, 5.5vw, 120px);
  width: min(67vw, 1024px);
  height: min(42vw, 644px);
  overflow: hidden;
  clip-path: polygon(9% 0, 100% 14%, 91% 100%, 0 84%);
  transform: translateY(-50%);
  filter: drop-shadow(0 28px 34px rgb(0 0 0 / 60%));
}

.cinema-frame::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 2px solid var(--pink);
  clip-path: polygon(9% 0, 100% 14%, 91% 100%, 0 84%);
  box-shadow: inset 0 0 30px rgb(255 79 163 / 24%);
}

.cinema-frame--violet::before {
  border-color: var(--violet);
  box-shadow: inset 0 0 30px rgb(155 123 255 / 28%);
}

.cinema-frame--pink {
  height: min(38vw, 572px);
}

.cinema-frame picture,
.cinema-frame img {
  width: 1024px;
  max-width: none;
  height: auto;
}

.cinema-frame picture {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cinema-frame img {
  image-rendering: pixelated;
}

.page-rift {
  position: absolute;
  z-index: 15;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-rift i {
  position: absolute;
  inset: -12%;
  display: block;
  background:
    linear-gradient(120deg, transparent 42%, rgb(255 255 255 / 90%) 42.3%, var(--pink) 42.8%, transparent 43.6%),
    #070913;
  transition: transform 410ms var(--ease-rift);
}

.page-rift i:first-child {
  clip-path: polygon(0 0, 67% 0, 43% 100%, 0 100%);
  transform: translateX(-112%);
}

.page-rift i:last-child {
  background:
    linear-gradient(120deg, transparent 56%, var(--violet) 56.5%, rgb(255 255 255 / 82%) 57%, transparent 57.5%),
    #070913;
  clip-path: polygon(67% 0, 100% 0, 100% 100%, 43% 100%);
  transform: translateX(112%);
}

.hero__scenes.is-rifting .page-rift {
  visibility: visible;
}

.hero__scenes.is-rifting .page-rift i {
  transform: translateX(0);
}

.hero__topline {
  position: absolute;
  z-index: 6;
  top: max(24px, env(safe-area-inset-top));
  left: max(30px, 4.2vw);
  display: flex;
  align-items: center;
  gap: 34px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark span {
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -.06em;
}

.wordmark small {
  margin-top: 6px;
  color: var(--pink-soft);
  font-family: "Galmuri14", monospace;
  font-size: 8px;
  letter-spacing: .05em;
}

.hero__platform {
  position: relative;
  padding-left: 38px;
  color: rgb(247 247 251 / 42%);
  font-family: "Galmuri14", monospace;
  font-size: 8px;
  letter-spacing: .1em;
}

.hero__platform::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 1px;
  content: "";
  background: var(--line);
}

.hero__copy {
  position: absolute;
  z-index: 6;
  top: 49%;
  left: max(30px, 8vw);
  width: min(640px, 52vw);
  transform: translateY(-50%);
}

.hero__copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(58px, 6.4vw, 110px);
  font-weight: 880;
  line-height: .94;
  letter-spacing: -.075em;
  text-wrap: balance;
  text-shadow: 0 12px 38px rgb(0 0 0 / 56%);
}

.hero__copy h1::first-line {
  color: var(--paper);
}

.hero__description {
  margin: 28px 0 30px;
  color: rgb(247 247 251 / 72%);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.65;
}

.game-start {
  position: relative;
  display: grid;
  grid-template-columns: auto 42px;
  grid-template-rows: auto auto;
  width: min(100%, 334px);
  min-height: 82px;
  padding: 17px 22px 15px 25px;
  overflow: hidden;
  color: #080810;
  background: var(--pink);
  box-shadow: 0 14px 45px rgb(255 79 163 / 22%);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.game-start::before {
  position: absolute;
  top: 0;
  left: -50%;
  width: 35%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 42%), transparent);
  transform: skewX(-18deg);
  transition: left 360ms ease;
}

.game-start:hover,
.game-start:focus-visible {
  color: #080810;
  background: #ff70b5;
  box-shadow: 0 16px 52px rgb(255 79 163 / 38%);
  transform: translateY(-3px);
}

.game-start:hover::before,
.game-start:focus-visible::before {
  left: 120%;
}

.game-start span {
  grid-column: 1;
  grid-row: 1;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: .03em;
}

.game-start small {
  grid-column: 1;
  grid-row: 2;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.game-start i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  font-size: 29px;
  font-style: normal;
}

.hero__actions {
  display: grid;
  max-width: 600px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero__actions .game-start {
  width: 100%;
  min-height: 78px;
}

.game-start--direct {
  color: var(--paper);
  background: rgb(6 8 17 / 72%);
  border: 1px solid rgb(255 79 163 / 58%);
  box-shadow: none;
  backdrop-filter: blur(9px);
}

.game-start--direct:hover,
.game-start--direct:focus-visible {
  color: var(--paper);
  background: rgb(255 79 163 / 16%);
  border-color: var(--pink);
  box-shadow: 0 16px 44px rgb(255 79 163 / 16%);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.download-actions[hidden] {
  display: none;
}

.download-actions a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.hero-controls {
  position: absolute;
  z-index: 7;
  bottom: max(34px, env(safe-area-inset-bottom));
  left: max(30px, 8vw);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-arrow,
.scene-dot {
  border: 0;
  cursor: pointer;
}

.scene-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: rgb(247 247 251 / 66%);
  background: rgb(6 8 17 / 62%);
  border: 1px solid var(--line);
}

.scene-arrow:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.scene-dots {
  display: flex;
  gap: 6px;
}

.scene-dot {
  position: relative;
  width: 40px;
  height: 38px;
  padding: 0;
  color: rgb(247 247 251 / 42%);
  background: transparent;
  font-family: "Galmuri14", monospace;
  font-size: 9px;
}

.scene-dot::before {
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 1px;
  content: "";
  background: rgb(247 247 251 / 20%);
}

.scene-dot::after {
  position: absolute;
  bottom: 1px;
  left: 4px;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--cyan);
  opacity: 0;
  transform: translateX(0);
  transition: width 260ms ease, opacity 180ms ease;
}

.scene-dot.is-active {
  color: var(--paper);
}

.scene-dot.is-active::after {
  width: calc(100% - 8px);
  opacity: 1;
}

.scroll-cue {
  position: absolute;
  z-index: 6;
  right: max(90px, 8vw);
  bottom: max(38px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(247 247 251 / 48%);
  font-family: "Galmuri14", monospace;
  font-size: 8px;
  letter-spacing: .12em;
}

.scroll-cue > span {
  display: grid;
  gap: 4px;
}

.scroll-cue b {
  color: rgb(247 247 251 / 76%);
  font-weight: 400;
}

.scroll-cue small {
  color: var(--cyan);
  font-size: 7px;
}

.scroll-cue i {
  position: relative;
  width: 48px;
  height: 1px;
  background: var(--line);
}

.scroll-cue i::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--cyan);
  animation: scan-line 1.8s ease-in-out infinite;
}

main {
  position: relative;
  z-index: 1;
  background: var(--ink);
}

.section-heading {
  max-width: 840px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.section-heading h2,
.girl-intro h2,
.queen-reveal h2,
.final-call h2 {
  margin: 0;
  font-size: clamp(42px, 5.3vw, 82px);
  font-weight: 820;
  line-height: 1.04;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading--split {
  display: grid;
  max-width: none;
  grid-template-columns: 1.4fr .7fr;
  gap: 70px;
  align-items: end;
}

.section-heading--split > p {
  margin: 0 0 8px;
  color: var(--muted);
}

.story-glimpse {
  padding-block: clamp(110px, 12vw, 180px);
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.story-beat {
  position: relative;
  margin: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.story-beat:last-child {
  border-right: 0;
}

.story-beat picture,
.story-beat img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.story-beat picture {
  display: block;
  overflow: hidden;
  background: #0a0c15;
}

.story-beat img {
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(.72) brightness(.7);
  transition: filter 300ms ease, transform 500ms ease;
}

.story-beat:hover img {
  filter: saturate(.95) brightness(.86);
  transform: scale(1.025);
}

.story-beat figcaption {
  display: flex;
  gap: 14px;
  padding: 17px 2px 2px;
  align-items: center;
}

.story-beat figcaption b {
  color: var(--cyan);
  font-family: "Galmuri14", monospace;
  font-size: 9px;
  font-weight: 400;
}

.story-beat figcaption span {
  font-size: 16px;
  font-weight: 720;
}

.run-rules {
  padding-block: clamp(110px, 13vw, 190px);
}

.rules-ledger {
  border-top: 1px solid var(--line);
}

.rule-row {
  display: grid;
  grid-template-columns: 120px minmax(260px, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 4vw, 64px);
  min-height: 190px;
  padding: 34px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.rule-row__number {
  align-self: start;
  padding-top: 7px;
  color: var(--cyan);
  font-family: "Galmuri14", monospace;
  font-size: 10px;
}

.rule-row__copy h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.rule-row__copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.rule-flow,
.rule-state,
.difficulty-readout {
  font-family: "Galmuri14", monospace;
  font-size: 9px;
}

.rule-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 15px;
  color: rgb(247 247 251 / 66%);
  background: linear-gradient(90deg, rgb(115 233 255 / 4%), rgb(155 123 255 / 7%));
  border-block: 1px solid var(--line);
}

.rule-flow i {
  color: var(--cyan);
  font-style: normal;
}

.rule-state,
.difficulty-readout {
  display: grid;
  gap: 10px;
}

.rule-state span,
.difficulty-readout span {
  display: flex;
  min-height: 44px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  color: rgb(247 247 251 / 48%);
  border-bottom: 1px solid var(--line);
}

.rule-state b,
.difficulty-readout b {
  color: var(--paper);
  font-weight: 400;
}

.rule-state span:first-child {
  text-decoration-color: var(--pink);
  text-decoration-line: line-through;
  text-decoration-thickness: 1px;
}

.girl-intro {
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(112deg, rgb(255 79 163 / 9%) 0 49.8%, transparent 50.2%),
    var(--ink-soft);
  border-block: 1px solid rgb(255 79 163 / 18%);
}

.girl-intro__grid {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, .8fr);
  gap: clamp(54px, 9vw, 140px);
  align-items: center;
  padding-block: 100px;
}

.girl-intro__art {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: end center;
}

.pink-signal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 42vw);
  aspect-ratio: 1;
  border: 1px solid rgb(255 79 163 / 50%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgb(255 79 163 / 14%) 0 2%, transparent 2.4% 42%, rgb(255 79 163 / 8%) 42.3% 42.6%, transparent 43%),
    repeating-conic-gradient(from 25deg, rgb(255 79 163 / 0%) 0 14deg, rgb(255 79 163 / 16%) 14.2deg 14.5deg);
}

.pink-signal::before,
.pink-signal::after {
  position: absolute;
  content: "";
  background: var(--pink);
}

.pink-signal::before {
  top: 50%;
  left: -24px;
  width: calc(100% + 48px);
  height: 1px;
}

.pink-signal::after {
  top: -24px;
  left: 50%;
  width: 1px;
  height: calc(100% + 48px);
}

.character-sprite--profile {
  position: relative;
  z-index: 2;
  width: 486px;
  max-width: 80%;
  filter: drop-shadow(0 30px 24px rgb(0 0 0 / 65%)) drop-shadow(0 0 30px rgb(255 79 163 / 26%));
}

.character-index {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 0;
  color: var(--pink-soft);
  font-family: "Galmuri14", monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.girl-intro__copy {
  position: relative;
  z-index: 3;
}

.girl-intro__copy h2 {
  color: #fff;
  font-size: clamp(64px, 7vw, 110px);
}

.character-role {
  margin: 16px 0 26px;
  color: var(--pink-soft);
  font-weight: 680;
}

.girl-intro__copy > p:not(.system-kicker, .character-role),
.queen-reveal__copy > p:not(.system-kicker, .character-role) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.character-stats {
  margin: 44px 0 0;
  border-top: 1px solid rgb(255 79 163 / 26%);
}

.character-stats div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid rgb(255 79 163 / 16%);
}

.character-stats dt {
  color: var(--pink-soft);
  font-family: "Galmuri14", monospace;
  font-size: 9px;
}

.character-stats dd {
  margin: 0;
  font-size: 14px;
}

.deck-builder {
  padding-block: clamp(120px, 14vw, 210px);
}

.deck-stage {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 320px;
  gap: 54px;
  align-items: center;
  min-height: 580px;
  background:
    linear-gradient(110deg, rgb(115 233 255 / 4%), transparent 46%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgb(115 233 255 / 5%) 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgb(115 233 255 / 5%) 120px);
  border-block: 1px solid var(--line);
}

.deck-hand {
  position: relative;
  height: 540px;
  overflow: visible;
}

.deck-card {
  position: absolute;
  z-index: 4;
  bottom: 38px;
  left: 50%;
  width: 190px;
  aspect-ratio: 262 / 435;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  color: var(--paper);
  background: transparent;
  border: 0;
  filter: drop-shadow(0 20px 16px rgb(0 0 0 / 62%));
  transform: translateX(calc(-50% + var(--card-x))) rotate(var(--card-rotate));
  transform-origin: 50% 110%;
  transition: transform 220ms ease, filter 220ms ease;
}

.deck-card:nth-child(1) { --card-x: -236px; }
.deck-card:nth-child(2) { --card-x: -118px; }
.deck-card:nth-child(3) { --card-x: 0px; }
.deck-card:nth-child(4) { --card-x: 118px; }
.deck-card:nth-child(5) { --card-x: 236px; }

.deck-card::after {
  position: absolute;
  z-index: 1;
  inset: 3.68% 6.11%;
  content: "";
  pointer-events: none;
  border-radius: 15%;
  background: linear-gradient(180deg, transparent 48%, rgb(5 6 14 / 72%) 67%, #05060e 100%);
}

.deck-card:hover,
.deck-card:focus-visible {
  filter: brightness(1.13);
}

.deck-card.is-selected {
  z-index: 20;
  filter: drop-shadow(0 28px 24px rgb(0 0 0 / 72%)) drop-shadow(0 0 13px rgb(255 79 163 / 30%));
  transform: translateX(calc(-50% + var(--card-x))) translateY(-48px) rotate(0) scale(1.06);
}

.deck-card__art,
.deck-card__frame {
  position: absolute;
  display: block;
}

.deck-card__art {
  z-index: 0;
  inset: 3.68% 6.11%;
  overflow: hidden;
  border-radius: 15%;
  background: #0b0d1a;
}

.deck-card__frame {
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.deck-card__art img,
.deck-card__frame img {
  width: 100%;
  height: 100%;
}

.deck-card__art img {
  object-fit: cover;
  image-rendering: pixelated;
}

.deck-card__art--awaken img {
  object-position: 33% 46%;
}

.deck-card__frame img {
  object-fit: contain;
}

.deck-card__cost,
.deck-card__name,
.deck-card small {
  position: absolute;
  z-index: 3;
}

.deck-card__cost {
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #080913;
  background: var(--paper);
  font-family: "Galmuri14", monospace;
  font-size: 12px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.deck-card__name {
  right: 12px;
  bottom: 34px;
  left: 12px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-card small {
  right: 12px;
  bottom: 13px;
  left: 12px;
  color: var(--cyan);
  font-family: "Galmuri14", monospace;
  font-size: 8px;
  text-align: left;
}

.card-readout {
  padding: 30px 0 30px 28px;
  border-left: 1px solid var(--line);
}

.card-readout > span {
  color: var(--pink-soft);
  font-family: "Galmuri14", monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.card-readout h3 {
  margin: 14px 0 16px;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -.04em;
}

.card-readout p {
  min-height: 78px;
  margin: 0;
  color: var(--muted);
}

.card-readout > div {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  color: rgb(247 247 251 / 62%);
  font-family: "Galmuri14", monospace;
  font-size: 8px;
}

.card-readout > div i {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.descent {
  position: relative;
  padding-block: clamp(120px, 13vw, 190px);
  background: #080a13;
  border-top: 1px solid var(--line);
}

.floor-stack {
  position: relative;
  display: grid;
  gap: 72px;
  margin: 0;
  padding: 0 0 0 36px;
  list-style: none;
}

.floor-stack::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(var(--cyan), var(--violet));
}

.floor-stop {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 420px;
  overflow: hidden;
  background: #0a0c15;
  border-block: 1px solid var(--line);
}

.floor-stop::before {
  position: absolute;
  z-index: 3;
  top: -1px;
  left: -42px;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--ink);
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

.floor-stop:nth-child(even) {
  grid-template-columns: 1fr 240px;
}

.floor-stop:nth-child(even) .floor-stop__readout {
  grid-column: 2;
  grid-row: 1;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.floor-stop:nth-child(even) picture {
  grid-column: 1;
  grid-row: 1;
}

.floor-stop__readout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgb(6 8 17 / 42%), #080a13);
  border-right: 1px solid var(--line);
}

.floor-stop__readout b {
  margin-bottom: auto;
  color: var(--cyan);
  font-family: "Galmuri14", monospace;
  font-size: 20px;
  font-weight: 400;
}

.floor-stop__readout span {
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}

.floor-stop__readout small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.floor-stop > picture,
.floor-stop > picture img {
  width: 100%;
  height: 100%;
}

.floor-stop > picture {
  overflow: hidden;
}

.floor-stop > picture img {
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
  filter: saturate(.74) brightness(.72) contrast(1.06);
  transition: filter 500ms ease, transform 800ms ease;
}

.floor-stop:hover > picture img {
  filter: saturate(.94) brightness(.84) contrast(1.04);
  transform: scale(1.025);
}

.floor-stop .pixel-scene img {
  width: 960px;
  max-width: none;
  height: 540px;
  object-fit: fill;
  image-rendering: pixelated;
}

.floor-stop--prism {
  border-color: rgb(155 123 255 / 34%);
}

.floor-stop--prism .floor-stop__readout b {
  color: var(--violet);
}

.descent-loop {
  display: flex;
  gap: 18px;
  margin: 54px 0 0 36px;
  padding: 17px 20px;
  align-items: center;
  color: var(--muted);
  border-block: 1px solid var(--line);
}

.descent-loop b {
  color: var(--violet);
  font-family: "Galmuri14", monospace;
  font-size: 11px;
  font-weight: 400;
}

.event-preview {
  padding-block: clamp(120px, 14vw, 200px);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.event-card {
  position: relative;
  overflow: hidden;
  background: #090b15;
  border: 1px solid var(--line);
}

.event-card picture,
.event-card picture img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.event-card picture {
  display: block;
  overflow: hidden;
}

.event-card picture img {
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(.76) brightness(.72);
  transition: filter 300ms ease, transform 500ms ease;
}

.event-card:hover picture img {
  filter: saturate(.98) brightness(.88);
  transform: scale(1.03);
}

.event-card > div {
  padding: 25px 24px 27px;
  border-top: 1px solid var(--line);
}

.event-card span {
  color: var(--cyan);
  font-family: "Galmuri14", monospace;
  font-size: 8px;
}

.event-card h3 {
  margin: 7px 0 5px;
  font-size: 23px;
  line-height: 1.2;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.queen-offer {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  overflow: hidden;
  align-items: center;
  isolation: isolate;
  border-block: 1px solid rgb(155 123 255 / 25%);
}

.queen-offer__background,
.queen-offer__background img,
.queen-offer__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.queen-offer__background {
  z-index: -2;
}

.queen-offer__background img {
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(.8) brightness(.68);
}

.queen-offer__shade {
  z-index: -1;
  background: linear-gradient(90deg, #080611 0 25%, rgb(8 6 17 / 78%) 39%, rgb(8 6 17 / 8%) 68%, rgb(8 6 17 / 36%));
}

.queen-offer__content {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  padding-block: 100px;
  justify-content: center;
}

.queen-offer__content h2 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 830;
  line-height: 1.02;
  letter-spacing: -.065em;
  text-shadow: 0 8px 38px #000;
}

.queen-offer__content > p:not(.system-kicker) {
  max-width: 470px;
  margin: 24px 0 0;
  color: rgb(247 247 251 / 72%);
  font-size: 17px;
}

.variant-sample {
  position: absolute;
  right: clamp(44px, 7vw, 112px);
  bottom: 7%;
  width: clamp(150px, 15vw, 218px);
  aspect-ratio: 262 / 435;
  filter: drop-shadow(0 24px 24px rgb(0 0 0 / 60%)) drop-shadow(0 0 16px rgb(155 123 255 / 34%));
  transform: rotate(4deg);
}

.variant-sample__art,
.variant-sample__frame {
  position: absolute;
  display: block;
}

.variant-sample__art {
  inset: 4% 6.3%;
  overflow: hidden;
  border-radius: 16%;
}

.variant-sample__art img,
.variant-sample__frame img {
  width: 100%;
  height: 100%;
}

.variant-sample__art img {
  object-fit: cover;
  object-position: 33% 46%;
}

.variant-sample__frame {
  z-index: 2;
  inset: 0;
}

.variant-sample__frame img {
  object-fit: contain;
}

.variant-sample > span {
  position: absolute;
  z-index: 3;
  right: 10%;
  bottom: 5%;
  left: 10%;
  color: #fff;
  font-family: "Galmuri14", monospace;
  font-size: clamp(6px, .65vw, 9px);
  letter-spacing: .12em;
  text-align: center;
  text-shadow: 0 2px 5px #000;
}

.queen-reveal {
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 75% 50%, rgb(155 123 255 / 18%), transparent 37%),
    #080611;
  border-block: 1px solid rgb(155 123 255 / 25%);
}

.queen-reveal__rift {
  position: absolute;
  inset: -30% 42% -30% 48%;
  background: linear-gradient(90deg, transparent, rgb(155 123 255 / 18%), rgb(247 247 251 / 80%), rgb(155 123 255 / 18%), transparent);
  clip-path: polygon(45% 0, 63% 0, 55% 47%, 70% 48%, 44% 100%, 29% 100%, 45% 53%, 31% 51%);
  filter: blur(.3px) drop-shadow(0 0 28px var(--violet));
}

.queen-reveal__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(340px, .7fr) minmax(520px, 1fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
  padding-block: 110px;
}

.queen-reveal__copy h2 {
  color: #fff;
  font-size: clamp(62px, 7vw, 108px);
  text-shadow: 0 0 35px rgb(155 123 255 / 25%);
}

.queen-reveal .character-role {
  color: #bdaaff;
}

.queen-warning {
  display: block;
  width: fit-content;
  margin-top: 42px;
  padding: 11px 14px;
  color: var(--violet);
  font-family: "Galmuri14", monospace;
  font-size: 9px;
  border-block: 1px solid rgb(155 123 255 / 32%);
}

.queen-reveal__art {
  position: relative;
  min-height: 610px;
}

.queen-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1024px, 75vw);
  height: min(644px, 55vw);
  overflow: hidden;
  clip-path: polygon(7% 0, 100% 13%, 92% 100%, 0 84%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 35px rgb(0 0 0 / 70%));
}

.queen-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 2px solid var(--violet);
  clip-path: inherit;
  box-shadow: inset 0 0 40px rgb(155 123 255 / 28%);
}

.queen-frame picture,
.queen-frame img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.queen-frame picture {
  position: absolute;
  inset: 0;
}

.queen-frame img {
  object-fit: cover;
  object-position: center;
}

.final-call {
  position: relative;
  min-height: 88svh;
  display: grid;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.final-call::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(circle, rgb(6 8 17 / 28%), rgb(6 8 17 / 82%) 70%);
}

.final-call__background,
.final-call__background img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.final-call__background img {
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(.82) brightness(.54);
}

.final-call__crack {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(112deg, transparent 48.8%, rgb(247 247 251 / 80%) 49.3%, var(--violet) 49.6%, transparent 50.2%);
  filter: drop-shadow(0 0 22px var(--violet));
}

.final-call__content {
  width: min(900px, calc(100vw - 48px));
  text-align: center;
}

.final-call h2 {
  margin-bottom: 42px;
  font-size: clamp(56px, 8vw, 124px);
  text-shadow: 0 8px 45px #000;
}

.game-start--final {
  margin-inline: auto;
  background: var(--violet);
  box-shadow: 0 14px 45px rgb(155 123 255 / 24%);
}

.game-start--final:hover,
.game-start--final:focus-visible {
  background: #b19aff;
  box-shadow: 0 16px 52px rgb(155 123 255 / 38%);
}

.site-footer {
  display: grid;
  min-height: 180px;
  padding: 44px max(32px, 5vw);
  grid-template-columns: 1fr auto;
  gap: 12px 40px;
  align-items: center;
  color: rgb(247 247 251 / 42%);
  background: #04050a;
  border-top: 1px solid var(--line);
}

.wordmark--footer {
  width: fit-content;
  color: var(--paper);
}

.site-footer p {
  grid-column: 1;
  margin: 0;
  font-size: 13px;
}

.site-footer > small {
  grid-column: 2;
  grid-row: 1 / 3;
  font-family: "Galmuri14", monospace;
  font-size: 7px;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes homepage-idle {
  from { background-position-x: 0%; }
  to { background-position-x: 112.5%; }
}

@keyframes scan-line {
  0%, 100% { transform: translateX(-43px); opacity: .35; }
  50% { transform: translateX(0); opacity: 1; }
}

@keyframes audio-meter {
  from { transform: scaleY(.35); }
  to { transform: scaleY(1); }
}

@media (max-width: 1120px) {
  :root {
    --shell: min(980px, calc(100% - 64px));
  }

  .rule-row {
    grid-template-columns: 90px 1fr;
  }

  .rule-flow,
  .rule-state,
  .difficulty-readout {
    grid-column: 2;
    max-width: 540px;
  }

  .deck-stage {
    grid-template-columns: minmax(520px, 1fr) 280px;
  }

  .deck-card {
    width: 166px;
  }

  .deck-card:nth-child(1) { --card-x: -196px; }
  .deck-card:nth-child(2) { --card-x: -98px; }
  .deck-card:nth-child(3) { --card-x: 0px; }
  .deck-card:nth-child(4) { --card-x: 98px; }
  .deck-card:nth-child(5) { --card-x: 196px; }

  .deck-card.is-selected { transform: translateX(calc(-50% + var(--card-x))) translateY(-44px) rotate(0) scale(1.06); }
}

@media (max-width: 860px) {
  :root {
    --shell: calc(100% - 40px);
  }

  .floor-rail {
    right: 10px;
    grid-template-columns: 2px;
    grid-template-rows: auto 100px;
    gap: 8px;
  }

  .floor-rail__caption,
  .floor-rail__label {
    display: none;
  }

  .floor-rail__number {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    font-size: 12px;
    writing-mode: vertical-rl;
  }

  .floor-rail__line {
    grid-column: 1;
    grid-row: 2;
  }

  .hero__copy {
    width: 62vw;
  }

  .section-heading--split,
  .girl-intro__grid,
  .queen-reveal__inner {
    grid-template-columns: 1fr;
  }

  .section-heading--split {
    gap: 28px;
  }

  .girl-intro__art {
    min-height: 460px;
  }

  .pink-signal {
    width: min(520px, 78vw);
  }

  .girl-intro__copy {
    max-width: 620px;
  }

  .deck-stage {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .deck-hand {
    height: 490px;
  }

  .card-readout {
    margin: 0 20px 36px;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .queen-reveal__inner {
    gap: 20px;
  }

  .queen-reveal__art {
    min-height: 520px;
  }

  .queen-frame {
    width: calc(100vw - 40px);
    height: 480px;
  }

  .event-grid {
    gap: 12px;
  }

  .queen-offer__content {
    min-height: 760px;
  }

  .variant-sample {
    right: 2vw;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 36px);
  }

  body {
    font-size: 15px;
  }

  .hero {
    min-height: max(680px, 100svh);
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgb(6 8 17 / 78%) 0%, rgb(6 8 17 / 36%) 36%, rgb(6 8 17 / 82%) 74%, #060811 100%),
      linear-gradient(90deg, rgb(6 8 17 / 76%), transparent 75%);
  }

  .scene-backdrop img {
    object-position: 58% center;
  }

  .hero-cat {
    right: -26px;
    bottom: 7%;
    width: 243px;
    min-width: 243px;
    opacity: .74;
  }

  .sound-toggle {
    right: 18px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .scene-coordinate {
    display: none;
  }

  .cinema-frame {
    top: 45%;
    right: 12px;
    width: calc(100vw - 24px);
    height: 48vh;
    min-height: 340px;
  }

  .cinema-frame--pink {
    height: 48vh;
  }

  .hero__topline {
    top: max(18px, env(safe-area-inset-top));
    left: 18px;
  }

  .hero__platform {
    display: none;
  }

  .hero__copy {
    top: 17%;
    left: 18px;
    width: calc(100% - 36px);
    transform: none;
  }

  .system-kicker {
    margin-bottom: 13px;
    font-size: 10px;
  }

  .hero__copy h1 {
    max-width: 410px;
    font-size: clamp(48px, 15vw, 68px);
    line-height: .96;
  }

  .hero__description {
    max-width: 345px;
    margin: 20px 0 22px;
    font-size: 15px;
  }

  .wide-only {
    display: none;
  }

  .game-start {
    width: min(100%, 314px);
    min-height: 72px;
    padding: 14px 19px 13px 21px;
  }

  .game-start span { font-size: 18px; }
  .game-start small { font-size: 11px; }

  .hero__actions {
    max-width: 100%;
    gap: 7px;
  }

  .hero__actions .game-start {
    min-height: 66px;
    padding: 12px 11px 11px 14px;
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .hero__actions .game-start span {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__actions .game-start small {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__actions .game-start i {
    font-size: 18px;
  }

  .hero-controls {
    bottom: max(22px, env(safe-area-inset-bottom));
    left: 18px;
  }

  .scroll-cue {
    right: 18px;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px));
    display: flex;
    font-size: 7px;
  }

  .scroll-cue b {
    display: none;
  }

  .scroll-cue i {
    width: 34px;
  }

  .section-heading h2,
  .girl-intro h2,
  .queen-reveal h2,
  .final-call h2 {
    font-size: clamp(40px, 13vw, 60px);
  }

  .story-glimpse,
  .run-rules,
  .event-preview,
  .deck-builder,
  .descent {
    padding-block: 100px;
  }

  .story-strip,
  .event-grid {
    grid-template-columns: repeat(3, minmax(252px, 78vw));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .story-beat,
  .event-card {
    scroll-snap-align: start;
  }

  .story-beat {
    border-right: 1px solid var(--line);
  }

  .rule-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }

  .rule-row__number,
  .rule-flow,
  .rule-state,
  .difficulty-readout {
    grid-column: 1;
  }

  .rule-row__copy p {
    font-size: 14px;
  }

  .rule-flow {
    min-height: 58px;
    padding-inline: 9px;
    font-size: 7px;
  }

  .girl-intro__grid {
    gap: 28px;
    padding-block: 84px;
  }

  .girl-intro__art {
    min-height: 410px;
  }

  .character-sprite--profile {
    width: 365px;
    max-width: 88%;
  }

  .character-index {
    left: 8px;
  }

  .character-stats div {
    grid-template-columns: 96px 1fr;
  }

  .section-heading--split > p,
  .section-heading > p:last-child,
  .girl-intro__copy > p:not(.system-kicker, .character-role),
  .queen-reveal__copy > p:not(.system-kicker, .character-role) {
    font-size: 15px;
  }

  .deck-stage {
    min-height: 0;
  }

  .deck-hand {
    height: 350px;
    overflow: hidden;
  }

  .deck-card {
    bottom: 28px;
    width: 122px;
    border-width: 1px;
  }

  .deck-card:nth-child(1) { --card-x: -98px; }
  .deck-card:nth-child(2) { --card-x: -49px; }
  .deck-card:nth-child(3) { --card-x: 0px; }
  .deck-card:nth-child(4) { --card-x: 49px; }
  .deck-card:nth-child(5) { --card-x: 98px; }

  .deck-card.is-selected { transform: translateX(calc(-50% + var(--card-x))) translateY(-28px) rotate(0) scale(1.04); }

  .deck-card__cost {
    top: 7px;
    right: 7px;
    width: 27px;
    height: 27px;
    font-size: 9px;
  }

  .deck-card__name {
    right: 8px;
    bottom: 25px;
    left: 8px;
    font-size: 13px;
  }

  .deck-card small {
    right: 8px;
    bottom: 8px;
    left: 8px;
    font-size: 6px;
  }

  .card-readout {
    margin-inline: 14px;
  }

  .floor-stack {
    gap: 44px;
    padding-left: 20px;
  }

  .floor-stop,
  .floor-stop:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-rows: auto 300px;
    min-height: 0;
  }

  .floor-stop:nth-child(even) .floor-stop__readout,
  .floor-stop__readout {
    grid-column: 1;
    grid-row: 1;
    min-height: 116px;
    padding: 19px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .floor-stop:nth-child(even) picture,
  .floor-stop > picture {
    grid-column: 1;
    grid-row: 2;
  }

  .floor-stop__readout b {
    position: absolute;
    top: 19px;
    right: 18px;
    margin: 0;
    font-size: 13px;
  }

  .floor-stop__readout span {
    margin-top: auto;
    font-size: 24px;
  }

  .floor-stop .pixel-scene img {
    width: 640px;
    height: 360px;
  }

  .descent-loop {
    margin: 34px 0 0 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    font-size: 14px;
  }

  .queen-offer {
    min-height: 760px;
  }

  .queen-offer__background img {
    object-position: 62% center;
  }

  .queen-offer__shade {
    background: linear-gradient(180deg, #080611 0 25%, rgb(8 6 17 / 72%) 46%, rgb(8 6 17 / 12%) 72%, rgb(8 6 17 / 44%));
  }

  .queen-offer__content {
    min-height: 760px;
    padding-block: 84px 70px;
    justify-content: flex-start;
  }

  .queen-offer__content h2 {
    max-width: 430px;
    font-size: clamp(42px, 12vw, 58px);
  }

  .queen-offer__content > p:not(.system-kicker) {
    max-width: 330px;
    margin-top: 18px;
    font-size: 14px;
  }

  .variant-sample {
    right: 8px;
    bottom: 4%;
    width: 146px;
  }

  .queen-reveal__inner {
    padding-block: 90px;
  }

  .queen-reveal__rift {
    inset: -20% 26% -20% 43%;
  }

  .queen-reveal__art {
    min-height: 390px;
  }

  .queen-frame {
    width: calc(100vw - 24px);
    height: 330px;
  }

  .queen-frame img {
    object-position: 55% center;
  }

  .queen-warning {
    font-size: 7px;
  }

  .final-call {
    min-height: 78svh;
  }

  .final-call__content {
    width: calc(100vw - 36px);
  }

  .final-call h2 {
    margin-bottom: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 36px 22px;
  }

  .site-footer > small {
    grid-column: 1;
    grid-row: auto;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .character-sprite {
    background-position: 0 0;
    animation: none !important;
  }

  .sound-toggle > i b {
    animation: none;
  }
}
