@font-face {
  font-family: "Anton";
  src: url("./public/fonts/anton-regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("./public/fonts/oswald-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("./public/fonts/oswald-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("./public/fonts/oswald-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("./public/fonts/bodoni-moda.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #09070c;
  --ink-soft: #120a1a;
  --violet: #261036;
  --violet-bright: #4b1764;
  --paper: #f4f0e6;
  --paper-muted: #d8d0c0;
  --pink: #e51b8d;
  --pink-dark: #93105d;
  --gold: #d9a92d;
  --gold-light: #f0ca61;
  --line: rgba(217, 169, 45, 0.35);
  --header-height: 66px;
  --rail-height: 50px;
  --scene-height: calc(100dvh - var(--header-height) - var(--rail-height));
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: "Oswald", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.world-pattern {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 36%, rgba(229, 27, 141, 0.12), transparent 28%),
    linear-gradient(135deg, transparent 25%, rgba(72, 23, 94, 0.34) 25%, rgba(72, 23, 94, 0.34) 50%, transparent 50%, transparent 75%, rgba(72, 23, 94, 0.34) 75%) 0 0 / 76px 76px,
    #0b0710;
}

.world-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.65px, transparent 0.75px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.menace-field {
  position: fixed;
  inset: var(--header-height) 0 var(--rail-height);
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.menace {
  position: absolute;
  width: clamp(250px, 22vw, 430px);
  opacity: 0.5;
  mix-blend-mode: normal;
  filter: brightness(1.06) saturate(1.95) contrast(1.22) drop-shadow(0 0 14px rgba(214, 58, 255, 0.30));
  animation: menace-drift 8s ease-in-out infinite alternate;
}

.menace-a {
  top: -16%;
  right: 3%;
  transform: rotate(-12deg);
}

.menace-b {
  left: -5%;
  bottom: -22%;
  transform: rotate(10deg) scale(0.86);
  animation-delay: -3s;
}

.menace-c {
  right: 24%;
  bottom: -25%;
  transform: rotate(-5deg) scale(0.7);
  animation-delay: -5s;
}

@keyframes menace-drift {
  to { translate: 0 18px; }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 3vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 5, 12, 0.92);
  backdrop-filter: blur(14px);
}

.brand-button {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-seal {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--pink);
  background: var(--ink);
  font-family: "Anton", sans-serif;
  font-size: 17px;
  box-shadow: inset 0 0 0 4px rgba(229, 27, 141, 0.13);
}

.brand-button > span:last-child {
  display: grid;
  line-height: 1;
}

.brand-button b {
  font-size: 15px;
  letter-spacing: 0.09em;
}

.brand-button small {
  margin-top: 4px;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.scene-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 44px);
}

.scene-nav button {
  position: relative;
  padding: 9px 0;
  border: 0;
  color: rgba(244, 240, 230, 0.58);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.scene-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  scale: 0 1;
  background: var(--pink);
  transition: scale 180ms ease;
}

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

.scene-nav button:hover::after,
.scene-nav button.is-active::after {
  scale: 1 1;
}

.header-buy {
  justify-self: end;
  padding: 9px 13px;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: translate 160ms ease, background 160ms ease;
}

.header-buy:hover {
  translate: -2px -2px;
  background: var(--gold-light);
}

.header-buy.is-disabled,
.chart-open.is-disabled,
.cover-link-buttons a.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.horizontal-viewport {
  position: fixed;
  inset: var(--header-height) 0 var(--rail-height);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.horizontal-viewport::-webkit-scrollbar {
  display: none;
}

.scene-track {
  display: flex;
  width: max-content;
  min-height: 100%;
}

.scene {
  position: relative;
  width: 100vw;
  height: var(--scene-height);
  flex: 0 0 100vw;
  padding: clamp(24px, 3vw, 54px);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-right: 1px solid rgba(217, 169, 45, 0.2);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(217, 169, 45, 0.14);
  pointer-events: none;
}

.eyebrow,
.issue-line {
  margin: 0;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.issue-line span {
  display: inline-block;
  margin-right: 8px;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--gold);
}

.scene h2 {
  margin: 10px 0 14px;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(52px, 5.4vw, 94px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.scene h2 i {
  color: var(--pink);
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.07em;
}

.scene-cover {
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 76px);
}

.cover-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
}

.cover-copy h1 {
  display: grid;
  width: min-content;
  margin: 12px 0 10px;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(78px, 7.7vw, 142px);
  font-weight: 400;
  line-height: 0.73;
  letter-spacing: -0.045em;
}

.cover-copy h1 span,
.cover-copy h1 em {
  display: block;
}

.cover-copy h1 em {
  color: var(--pink);
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.08em;
}

.cover-line {
  margin: 0 0 16px;
  max-width: 520px;
  color: var(--paper-muted);
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.35;
}

.cover-contract {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--gold);
  background: rgba(7, 5, 10, 0.8);
  box-shadow: 6px 6px 0 rgba(229, 27, 141, 0.3);
}

.cover-contract span {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.cover-contract code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--paper);
  font-family: "Oswald", sans-serif;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-link-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.cover-link-buttons button,
.cover-link-buttons a {
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid rgba(217, 169, 45, 0.62);
  color: var(--paper);
  background: rgba(12, 8, 17, 0.78);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, translate 160ms ease;
}

.cover-link-buttons b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-link-buttons i {
  flex: 0 0 auto;
  color: var(--pink);
  font-style: normal;
}

.cover-link-buttons button:hover:not(:disabled),
.cover-link-buttons a:hover:not(.is-disabled) {
  translate: 0 -2px;
  color: var(--ink);
  background: var(--gold-light);
}

.cover-link-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.cover-bottom-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 13px;
}

.hard-button {
  min-width: 130px;
  padding: 0 17px;
  border: 1px solid var(--pink);
  color: var(--paper);
  background: var(--pink-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(217, 169, 45, 0.75);
  transition: translate 160ms ease, box-shadow 160ms ease;
}

.hard-button:hover {
  translate: 2px 2px;
  box-shadow: 2px 2px 0 rgba(217, 169, 45, 0.75);
}

.cover-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(217, 169, 45, 0.4);
  background: rgba(9, 6, 13, 0.72);
}

.cover-facts div {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 8px 12px;
}

.cover-facts div + div {
  border-left: 1px solid rgba(217, 169, 45, 0.3);
}

.cover-facts dt {
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.cover-facts dd {
  min-width: 0;
  margin: 2px 0 0;
  overflow: hidden;
  font-family: "Anton", sans-serif;
  font-size: clamp(19px, 1.8vw, 28px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frog-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.frog-stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.58));
}

.frog-halo {
  position: absolute;
  z-index: 0;
  width: min(72%, 620px);
  aspect-ratio: 1;
  border: 2px solid rgba(217, 169, 45, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 27, 141, 0.17), rgba(42, 13, 56, 0.24) 48%, transparent 69%);
  box-shadow: 0 0 0 20px rgba(229, 27, 141, 0.025), 0 0 0 42px rgba(229, 27, 141, 0.018);
}

.frog-stage--hero {
  height: min(100%, 700px);
}

.frog-stage--hero img {
  width: 82%;
  height: 82%;
}

.frog-stage--hero .frog-halo {
  width: min(60%, 520px);
}

.scene-comic {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(640px, 1.72fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 52px);
  padding-top: 26px;
  padding-bottom: 22px;
}

.comic-heading {
  align-self: center;
  min-width: 0;
}

.comic-heading h2 {
  font-size: clamp(48px, 4.2vw, 76px);
}

.comic-heading > p:not(.eyebrow) {
  max-width: 260px;
  margin: 0;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.45;
}

.comic-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.comic-toolbar button {
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: rgba(8, 6, 12, 0.86);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  cursor: pointer;
}

.comic-toolbar button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold);
}

.comic-reader {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 44px;
  gap: 9px;
}

.comic-book-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 2200px;
}

.comic-book {
  width: 100%;
  height: 100%;
  margin: auto;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.48));
}

.comic-book.is-cover-transition {
  pointer-events: none;
  animation: comic-cover-swap 640ms cubic-bezier(0.65, 0, 0.35, 1) both;
  transform-origin: center center;
}

@keyframes comic-cover-swap {
  0% {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg) scaleX(1);
  }
  46% {
    opacity: 0.42;
    transform: perspective(1400px) rotateY(-8deg) scaleX(0.08);
  }
  54% {
    opacity: 0.42;
    transform: perspective(1400px) rotateY(8deg) scaleX(0.08);
  }
  100% {
    opacity: 1;
    transform: perspective(1400px) rotateY(0deg) scaleX(1);
  }
}

.book-page {
  position: relative;
  overflow: hidden;
  border: 1px solid #7b756b;
  color: #111;
  background: var(--paper);
  cursor: grab;
}

.book-page:active {
  cursor: grabbing;
}

.comic-page-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.comic-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.book-page--cover {
  border-color: #3e321d;
  background: #050505;
}

.book-page--blank {
  border-color: transparent;
  opacity: 0;
  background: transparent;
  box-shadow: none;
}

.comic-endpaper {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  overflow: hidden;
  color: rgba(229, 27, 141, 0.34);
  background:
    radial-gradient(circle at 50% 50%, rgba(229, 27, 141, 0.12), transparent 48%),
    linear-gradient(135deg, transparent 25%, rgba(63, 22, 79, 0.5) 25%, rgba(63, 22, 79, 0.5) 50%, transparent 50%, transparent 75%, rgba(63, 22, 79, 0.5) 75%) 0 0 / 54px 54px,
    #0b0710;
}

.comic-endpaper span {
  font-family: "Anton", sans-serif;
  font-size: clamp(42px, 5vw, 84px);
  transform: rotate(-12deg);
}

.comic-endpaper span:nth-child(2) {
  color: rgba(217, 169, 45, 0.26);
  transform: translateY(18%) rotate(6deg);
}

.comic-endpaper span:nth-child(3) {
  transform: translateY(-22%) rotate(15deg);
}

.comic-cover-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 68%, rgba(229, 27, 141, 0.26), transparent 38%),
    linear-gradient(145deg, #1c0c29, #08070b 72%);
}

.comic-cover-page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: repeating-linear-gradient(135deg, transparent 0 26px, rgba(217, 169, 45, 0.4) 27px 28px);
}

.comic-cover-page img {
  position: absolute;
  inset: 23% 1% 6%;
  z-index: 1;
  width: 98%;
  height: 71%;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.58));
  user-select: none;
}

.comic-cover-top {
  position: absolute;
  z-index: 3;
  top: 3%;
  right: 4%;
  left: 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold-light);
  font-size: clamp(8px, 0.7vw, 12px);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.comic-cover-page h3 {
  position: absolute;
  z-index: 3;
  top: 7%;
  left: 5%;
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(32px, 3.1vw, 58px);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.04em;
}

.comic-cover-page h3 i {
  color: var(--pink);
  font-family: "Bodoni Moda", serif;
  font-style: normal;
  letter-spacing: -0.08em;
}

.comic-cover-page > strong {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 3%;
  left: 4%;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--gold);
  font-size: clamp(8px, 0.8vw, 13px);
  letter-spacing: 0.1em;
  text-align: center;
}

.page-flip-missing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.page-flip-missing .book-page {
  min-height: 100%;
}

.page-flip-missing .book-page:nth-child(n + 3) {
  display: none;
}

.comic-controls {
  position: relative;
  z-index: 30;
  pointer-events: auto;
  justify-self: center;
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  border: 1px solid rgba(217, 169, 45, 0.55);
  background: rgba(7, 5, 10, 0.9);
  box-shadow: 6px 6px 0 rgba(229, 27, 141, 0.2);
}

.comic-controls button {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  border: 0;
  color: var(--gold-light);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.comic-controls button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--gold);
}

.comic-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.comic-controls div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid rgba(217, 169, 45, 0.25);
  border-left: 1px solid rgba(217, 169, 45, 0.25);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.comic-controls b,
.comic-controls span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comic-controls span {
  color: var(--gold-light);
}

.scene-dex {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(650px, 1.7fr);
  align-items: center;
  gap: clamp(28px, 3.5vw, 64px);
}

.dex-copy {
  min-width: 0;
}

.dex-copy h2 {
  font-size: clamp(54px, 5vw, 88px);
}

.dex-copy > p:not(.eyebrow) {
  max-width: 270px;
  margin: 0 0 20px;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.45;
}

.dex-copy b {
  color: var(--gold-light);
}

.chart-open {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: rgba(8, 6, 12, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.chart-open:hover:not(.is-disabled) {
  color: var(--ink);
  background: var(--gold);
}

.dex-frame {
  min-width: 0;
  height: min(680px, calc(var(--scene-height) - 56px));
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #08070b;
  box-shadow: 12px 12px 0 rgba(229, 27, 141, 0.28);
}

.dex-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.chart-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(229, 27, 141, 0.12), transparent 38%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(217, 169, 45, 0.06) 40px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(217, 169, 45, 0.05) 60px);
}

.chart-placeholder::before {
  content: "";
  width: min(38vw, 370px);
  aspect-ratio: 1;
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  border: 1px solid rgba(217, 169, 45, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(229, 27, 141, 0.025), 0 0 0 68px rgba(229, 27, 141, 0.018);
}

.chart-placeholder span,
.chart-placeholder strong,
.chart-placeholder p {
  position: relative;
  z-index: 1;
}

.chart-placeholder span {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.chart-placeholder strong {
  color: var(--pink);
  font-family: "Anton", sans-serif;
  font-size: clamp(48px, 6vw, 104px);
  font-weight: 400;
  line-height: 1;
}

.chart-placeholder p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
}

.scene-poses {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(720px, 1.72fr);
  align-items: center;
  gap: clamp(24px, 3vw, 54px);
}

.poses-heading h2 {
  font-size: clamp(50px, 4.5vw, 80px);
}

.pose-gallery {
  min-width: 0;
  height: min(670px, calc(var(--scene-height) - 60px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(10px, 1.2vw, 22px);
}

.pose-card {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(217, 169, 45, 0.52);
  background:
    radial-gradient(circle at 50% 52%, rgba(229, 27, 141, 0.18), transparent 48%),
    rgba(9, 6, 13, 0.64);
  box-shadow: 8px 8px 0 rgba(229, 27, 141, 0.16);
  isolation: isolate;
}

.pose-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 169, 45, 0.5);
  border-radius: 50%;
}

.pose-card > span {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--gold-light);
  font-family: "Anton", sans-serif;
  font-size: 20px;
}

.pose-card img {
  width: 100%;
  height: 100%;
  padding: 20px 4px 4px;
  object-fit: contain;
  filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.58));
}

.pose-card--one {
  transform: rotate(-1.8deg) translateY(8px);
}

.pose-card--two {
  transform: translateY(-8px);
}

.pose-card--three {
  transform: rotate(1.8deg) translateY(8px);
}

.back-cover {
  position: absolute;
  right: 32px;
  bottom: 20px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.rail-controls {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  height: var(--rail-height);
  display: grid;
  grid-template-columns: 46px minmax(110px, 210px) auto 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: rgba(8, 5, 12, 0.94);
  backdrop-filter: blur(14px);
}

.rail-controls > button {
  width: 38px;
  height: 34px;
  border: 1px solid rgba(217, 169, 45, 0.45);
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
}

.rail-controls > button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--gold);
}

.rail-controls > button:disabled {
  cursor: not-allowed;
  opacity: 0.24;
}

.rail-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.rail-progress button {
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(244, 240, 230, 0.2);
  cursor: pointer;
}

.rail-progress button.is-active {
  background: var(--pink);
}

#scene-status {
  min-width: 128px;
  color: rgba(244, 240, 230, 0.7);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.magnifier-lens {
  position: fixed;
  z-index: 120;
  width: 220px;
  aspect-ratio: 1;
  display: none;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background-color: var(--paper);
  background-repeat: no-repeat;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.56), 0 0 0 2px var(--ink);
  pointer-events: none;
}

.magnifier-lens.is-visible {
  display: block;
}

.page-lightbox {
  width: min(92vw, 900px);
  max-width: none;
  height: min(92vh, 1240px);
  max-height: none;
  padding: 34px;
  overflow: hidden;
  border: 2px solid var(--gold);
  color: var(--paper);
  background: rgba(7, 5, 10, 0.97);
  box-shadow: 16px 16px 0 rgba(229, 27, 141, 0.3);
}

.page-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.page-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-lightbox button {
  position: absolute;
  top: 6px;
  right: 9px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: var(--ink);
  cursor: pointer;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(170px, 1fr) auto minmax(130px, 1fr);
  }

  .scene-cover {
    grid-template-columns: minmax(390px, 0.95fr) minmax(400px, 1.05fr);
  }

  .cover-copy h1 {
    font-size: clamp(76px, 9vw, 112px);
  }

  .cover-link-buttons b {
    font-size: 9px;
  }

  .scene-comic,
  .scene-dex,
  .scene-poses {
    grid-template-columns: minmax(190px, 0.26fr) minmax(560px, 1.74fr);
  }

  .comic-heading h2,
  .dex-copy h2,
  .poses-heading h2 {
    font-size: clamp(46px, 5vw, 66px);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 58px;
    --rail-height: 46px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .scene-nav {
    display: none;
  }

  .header-buy {
    padding: 8px 10px;
  }

  .scene {
    height: var(--scene-height);
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .scene::before {
    inset: 8px;
  }

  .scene-cover {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(260px, 1fr);
    align-items: start;
    gap: 18px;
  }

  .cover-copy {
    width: 100%;
  }

  .cover-copy h1 {
    font-size: clamp(68px, 18vw, 104px);
  }

  .frog-stage--hero {
    min-height: 300px;
  }

  .scene-comic,
  .scene-dex,
  .scene-poses {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(430px, 1fr);
    gap: 18px;
  }

  .comic-heading,
  .dex-copy,
  .poses-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 8px 18px;
  }

  .comic-heading .eyebrow,
  .dex-copy .eyebrow,
  .poses-heading .eyebrow {
    grid-column: 1 / -1;
  }

  .comic-heading h2,
  .dex-copy h2,
  .poses-heading h2 {
    margin: 0;
    font-size: clamp(42px, 10vw, 64px);
  }

  .comic-heading > p:not(.eyebrow),
  .dex-copy > p:not(.eyebrow) {
    max-width: 300px;
    margin: 0;
    font-size: 12px;
  }

  .comic-toolbar {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .comic-reader {
    min-height: 480px;
  }

  .comic-book-stage {
    min-height: 420px;
  }

  .scene-dex {
    grid-template-rows: auto minmax(390px, 1fr);
  }

  .chart-open {
    justify-self: end;
  }

  .dex-frame {
    height: 100%;
    min-height: 390px;
  }

  .scene-poses {
    grid-template-rows: auto minmax(390px, 1fr);
  }

  .pose-gallery {
    height: 100%;
    min-height: 390px;
  }

  .back-cover {
    right: 24px;
    bottom: 13px;
  }

  .magnifier-lens {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .brand-button b {
    font-size: 13px;
  }

  .cover-link-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-bottom-row {
    grid-template-columns: 1fr;
  }

  .hard-button {
    min-height: 42px;
  }

  .cover-facts dd {
    font-size: 18px;
  }

  .comic-heading,
  .dex-copy,
  .poses-heading {
    grid-template-columns: 1fr;
  }

  .comic-heading h2 br,
  .dex-copy h2 br,
  .poses-heading h2 br {
    display: none;
  }

  .comic-heading > p:not(.eyebrow),
  .dex-copy > p:not(.eyebrow) {
    max-width: none;
  }

  .comic-toolbar {
    grid-column: auto;
  }

  .chart-open {
    justify-self: start;
  }

  .pose-gallery {
    grid-template-columns: 1fr;
    min-height: 940px;
  }

  .pose-card {
    min-height: 290px;
  }

  .pose-card--one,
  .pose-card--two,
  .pose-card--three {
    transform: none;
  }

  .rail-controls {
    grid-template-columns: 38px minmax(90px, 1fr) 38px;
    gap: 8px;
    padding: 0 8px;
  }

  #scene-status {
    display: none;
  }

  .rail-controls > button {
    width: 34px;
    height: 32px;
  }

  .page-lightbox {
    width: 96vw;
    height: 90vh;
    padding: 28px 12px 12px;
  }
}

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