.four-page-home {
  --crystal-gold: #f5d58d;
  --crystal-pink: #ff6fe2;
  --crystal-cyan: #74ecff;
  height: auto;
  min-height: 660px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  background: #090613;
}

.four-page-home .site-header {
  position: fixed;
  z-index: 120;
  border-bottom: 1px solid #f2d58b52;
  background: linear-gradient(90deg, #08040df4, #221027e8 48%, #08040df4);
  box-shadow: 0 10px 36px #0008, 0 1px 18px #ff6fe21c;
  backdrop-filter: blur(14px) saturate(1.25);
}

.four-page-home .site-header nav {
  gap: clamp(12px, 1.6vw, 26px);
}

.four-page-home .site-header nav a {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 10px #000;
}

.four-page-home .logo-copy b,
.universe-page .logo-copy b {
  text-transform: uppercase;
}

.four-page-home .logo-copy small,
.universe-page .logo-copy small {
  color: #efcde9;
  text-transform: uppercase;
}

.home-page-stack {
  height: auto;
  min-height: 660px;
}

.home-chapter {
  position: relative;
  height: auto;
  min-height: max(660px, 100svh);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-margin-top: 0;
  padding-bottom: 104px;
  animation: chapter-arrive 0.45s ease both;
}

.home-chapter::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 10px;
  border: 1px solid #f5d58d24;
  box-shadow: inset 0 0 80px #ff6fe20b;
  pointer-events: none;
}

.home-chapter[hidden] {
  display: none;
}

.chapter-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.2) saturate(1.18) contrast(1.035);
  image-rendering: auto;
  backface-visibility: hidden;
}

.lobby-chapter,
.zayden-chapter,
.bongo-chapter {
  isolation: isolate;
  background-color: #05030a;
  background-position: center;
  background-size: cover;
}

.lobby-chapter {
  background-image: linear-gradient(#16071e55, #09040cb3);
}

.zayden-chapter {
  background-image: linear-gradient(#0207127a, #020712ad), url('performance-assets/zayden-black-ice-v2-4k-960.webp');
}

.lobby-chapter::before,
.zayden-chapter::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -28px;
  background: inherit;
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(1.15);
  opacity: .58;
}

.zayden-chapter > .chapter-background {
  inset: 82px 0 92px;
  width: 100%;
  height: calc(100% - 174px);
  object-fit: contain !important;
  object-position: center !important;
  filter: brightness(1.22) contrast(1.025) saturate(1.18) drop-shadow(0 18px 36px #0009);
}

html[data-site-theme='velvet-crown'] #four-page-hero {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  filter: brightness(1.2) contrast(1.015) saturate(1.16);
}

html[data-site-theme='couture-universe'] #four-page-hero {
  inset: 82px 0 92px;
  width: 100%;
  height: calc(100% - 174px);
  object-fit: contain !important;
  object-position: center !important;
}

.chapter-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #08040ddb 0%, #25102a96 39%, transparent 70%), linear-gradient(0deg, #08040da8 0%, transparent 43%);
}

.universe-seal {
  position: absolute;
  z-index: 4;
  left: 7vw;
  bottom: 115px;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  border: 1px solid #efd28a;
  border-radius: 50%;
  color: #f8dfaa;
  background: #0b0710c7;
  box-shadow: 0 0 0 5px #0b071099, 0 0 0 6px #efd28a4f, 0 15px 40px #0009;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg);
}
.universe-seal::before,
.universe-seal::after { content: '✦'; position: absolute; top: 44px; color: #ff57d2; }
.universe-seal::before { left: 9px; }
.universe-seal::after { right: 9px; }
.universe-seal span,
.universe-seal small { font-size: .48rem; letter-spacing: .13em; }
.universe-seal b { display:block;margin:3px 0;font:400 1.12rem/1 Italiana,serif;letter-spacing:.06em;white-space:nowrap }
.universe-seal small { color:#f3ce86;font-weight:700 }

.gallery-selector {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 9px 11px 10px;
  border: 1px solid #efd28a38;
  border-radius: 2px 13px 2px 13px;
  background: linear-gradient(135deg, #0b0710d1, #241020bd);
  box-shadow: 0 14px 34px #0008;
  backdrop-filter: blur(10px) saturate(1.1);
}
.gallery-selector-group { min-width: 0; }
.gallery-selector-group p {
  margin: 0 0 6px;
  color: #f4d99f;
  font: 400 .66rem/1 Italiana, serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gallery-selector-divider {
  align-self: stretch;
  width: 1px;
  min-height: 57px;
  background: linear-gradient(transparent, #f5d99e73 25% 75%, transparent);
}
.couture-strip {
  display: grid;
  grid-template-columns: repeat(8, 34px);
  gap: 5px;
}
.band-strip {
  grid-template-columns: repeat(4, 34px);
}
.couture-strip button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.couture-strip img {
  display: block;
  width: 34px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 16%;
  border: 1px solid #efcc8b66;
  border-radius: 2px 7px 2px 7px;
  box-shadow: 0 7px 18px #0009;
  filter: brightness(1.16) saturate(1.13);
  transition: .25s ease;
}
.couture-strip button:hover img,
.couture-strip button:focus-visible img,
.couture-strip button.is-selected img { transform: translateY(-3px) scale(1.04); border-color: #ff8cdf; box-shadow:0 0 0 1px #ff73da5c,0 0 14px #ff4fd854,0 9px 21px #000a; }
.couture-strip button:focus-visible { outline:2px solid #fff;outline-offset:5px }
.chica-portrait-panel > img { transition: opacity .28s ease, transform .38s ease, filter .28s ease; }
.chica-portrait-panel > img.is-changing { opacity:.18;transform:scale(.985);filter:blur(4px) saturate(.75) }

.lobby-intro {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 7vw;
  width: min(560px, 40vw);
  transform: translateY(-47%);
}

.lobby-intro h1,
.character-chapter-copy h2,
.chica-title-block h2 {
  margin: 0;
  font: 400 clamp(4.3rem, 7vw, 7.5rem) / 0.8 Italiana, serif;
  letter-spacing: -0.045em;
}

.lobby-intro h1 em,
.character-chapter-copy h2 em,
.chica-title-block h2 em,
.album-panel h3 em {
  color: #efb8ff;
  font-weight: 400;
}

.lobby-intro h1 .hero-welcome,
.lobby-intro h1 .hero-star {
  display: block;
}

.lobby-intro h1 .hero-welcome {
  margin-bottom: 12px;
  color: #f3dca8;
  font: 600 clamp(.62rem, .9vw, .82rem)/1.2 'DM Sans', sans-serif;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.lobby-intro h1 .hero-star {
  color: #fff;
  font-size: clamp(4.7rem, 7.4vw, 8rem);
  line-height: .76;
  text-shadow: 0 6px 30px #0009, 0 0 36px #ff8cdf24;
}

.lobby-intro h1 > em {
  display: block;
  margin-top: 14px;
  font: 400 clamp(1.45rem, 2.7vw, 2.7rem)/1 Italiana, serif;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.lobby-intro > .hero-world-copy {
  max-width: 470px;
  margin: 14px 0 18px;
  color: #ded3df;
  font-size: .86rem;
  line-height: 1.55;
}

.universe-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  color: #fff4fd;
  font: 500 .7rem/1.5 'DM Sans', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.universe-pill i { color: var(--gold); }

.brand-belief {
  margin: 8px 0 0;
  color: #efb8ff;
  font: 400 1.08rem/1.35 Italiana, serif;
}

.lobby-mantra {
  display: flex;
  gap: 12px;
  color: #eadde9;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

.lobby-mantra i {
  color: var(--gold);
}

.compact-directory {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 4vw;
  width: min(480px, 42vw);
  transform: translateY(-46%);
  padding: 18px;
  border: 1px solid #f5d58da3;
  border-radius: 4px 24px 4px 24px;
  background: linear-gradient(145deg, #170a1edb, #381438bd 52%, #091322d1);
  box-shadow: 0 25px 70px #0008, 0 0 34px #ff6fe226, inset 0 0 30px #74ecff0d;
  backdrop-filter: blur(20px) saturate(1.3);
}

.directory-label {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.58rem;
}

.directory-label b,
.directory-label span { display: block; }
.directory-label b { margin-bottom: 5px; color: #fff4fd; font: 400 1rem/1 Italiana, serif; letter-spacing: .12em; }
.directory-label span { color: var(--gold); }

.compact-room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.compact-room-grid a {
  position: relative;
  isolation: isolate;
  min-height: 82px;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f4d7ff3d;
  border-radius: 2px 12px 2px 12px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, #0b0710d9 0%, #26102ba9 42%, #1d10203d 100%),
    var(--room-photo);
  background-position: center, var(--room-position, center);
  background-size: cover;
  box-shadow: inset 0 0 28px #0007, inset 0 0 18px #ff6fe20d;
  transition: 0.22s ease;
}

.compact-room-grid a:hover,
.compact-room-grid a:focus-visible {
  transform: translateY(-2px) scale(1.015);
  border-color: #e9c987a0;
  box-shadow: inset 0 0 20px #0004, 0 10px 26px #0008, 0 0 20px #ff6fe23d;
  outline: none;
}

.compact-room-grid a > span {
  position: relative;
  z-index: 1;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid #e9c98770;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff9, #ff6fe23d 28%, #100913cf 60%);
  box-shadow: 0 5px 18px #0008, 0 0 13px #ff6fe247;
  color: var(--gold);
}

.compact-room-grid a > div {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 7px #000, 0 0 18px #000;
}

.compact-room-grid small,
.compact-room-grid b {
  display: block;
}

.compact-room-grid small {
  margin-bottom: 4px;
  color: #f2dcae;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.52rem;
}

.compact-room-grid b {
  font: 400 1rem Italiana, serif;
}

.compact-room-grid .ice-room {
  border-color: #72e6ff4f;
  background-image:
    linear-gradient(90deg, #040b13f2 0%, #071527d2 42%, #0a203276 100%),
    var(--room-photo);
}

.compact-room-grid .ice-room > span {
  color: #7ceaff;
  border-color: #72e6ff70;
}

.chica-chapter {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  padding-top: 96px;
  padding-bottom: 86px;
  background: radial-gradient(circle at 75% 8%, #ff6fe247, transparent 34%), radial-gradient(circle at 95% 75%, #74ecff24, transparent 28%), #120817;
}

.chica-portrait-panel {
  position: relative;
  align-self: center;
  overflow: hidden;
  height: min(720px, calc(100svh - 190px));
  min-height: 520px;
  margin: 22px 0 0 4vw;
  border: 1px solid #f5d58d8a;
  border-radius: 4px 24px 4px 24px;
  isolation: isolate;
  background: #08050d url('performance-assets/lady-chica-flagship-v2-4k-960.webp') center / cover;
  box-shadow: 0 22px 70px #0008, 0 0 40px #ff6fe226, inset 0 0 35px #74ecff12;
}

.chica-portrait-panel::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -18px;
  background: inherit;
  filter: blur(18px) brightness(.55) saturate(1.15);
}

.chica-portrait-panel > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.17) contrast(1.025) saturate(1.14) drop-shadow(0 16px 34px #0009);
}

.chica-portrait-panel > img.is-cover-photo {
  object-fit: cover;
  object-position: 57% center;
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #08050df2 0%, transparent 62%);
}

.chica-title-block {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 174px;
  left: auto;
  width: min(320px, 44%);
  padding: 18px 20px 17px;
  border: 1px solid #efd28a45;
  border-left-color: #ff8cdf8f;
  border-radius: 3px 16px 3px 16px;
  background: linear-gradient(135deg, #160c1ba8, #2b10278f);
  box-shadow: 0 16px 38px #0008, inset 0 0 24px #ff79dc0b;
  backdrop-filter: blur(12px) saturate(1.15);
  text-shadow: 0 2px 10px #000;
}

.chica-title-block h2 {
  font-size: clamp(2.45rem, 4vw, 4.4rem);
  line-height: .85;
}

.chica-title-block > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #fff2fc;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
}

.album-panel {
  align-self: center;
  padding: 24px 5vw 20px 4vw;
}

.album-panel h3 {
  margin: 0;
  font: 400 clamp(2.8rem, 4.2vw, 4.9rem) / 0.86 Italiana, serif;
}

.album-intro {
  max-width: 620px;
  margin: 17px 0 18px;
  color: #cfc2d0;
  line-height: 1.65;
}

.four-page-platforms {
  margin: 0 0 18px;
}

.crystal-player {
  position: relative;
  max-width: 690px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #ffd9ff9c;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #fff9 0 1px, transparent 1px 17%, #efb8ff24 17% 18%, transparent 18% 82%, #ff79dc24 82% 83%, transparent 83%),
    radial-gradient(circle at 12% 0%, #ffeaff2b, transparent 34%),
    linear-gradient(145deg, #321539f5, #100817f8 48%, #220d2cf5);
  box-shadow: 0 0 0 1px #ff74d42c, inset 0 0 32px #f7b9ff1c, 0 20px 55px #0009, 0 0 35px #d64ecf22;
}

.crystal-player::before,
.crystal-player::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 70px;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(135deg, #fff8, #f067d932 45%, transparent 46%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.crystal-player::before { top: -40px; left: -35px; }
.crystal-player::after { right: -38px; bottom: -40px; transform: rotate(28deg); }

.crystal-player-display,
.crystal-player-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.crystal-player-display {
  min-height: 55px;
  gap: 11px;
  padding: 3px 8px 10px;
  color: #fff5ff;
}

.crystal-player-gem {
  color: #ff8ee6;
  font-size: 1.45rem;
  filter: drop-shadow(0 0 8px #ff50d8);
}

.crystal-player-display div { min-width: 0; }
.crystal-player-display small,
.crystal-player-display strong { display: block; }
.crystal-player-display small {
  color: #e7bded;
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.crystal-player-display strong {
  overflow: hidden;
  font: 400 1rem/1.25 Italiana, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crystal-player-count {
  margin-left: auto;
  color: #f4d58d;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.crystal-equalizer {
  height: 22px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 0 5px;
}
.crystal-equalizer i {
  width: 2px;
  height: var(--bar, 60%);
  border-radius: 4px;
  background: linear-gradient(#fff, #ff58d3);
  box-shadow: 0 0 6px #ff4fce;
}
.crystal-equalizer i:nth-child(2) { --bar: 100%; }
.crystal-equalizer i:nth-child(3) { --bar: 45%; }
.crystal-equalizer i:nth-child(4) { --bar: 82%; }
.crystal-equalizer i:nth-child(5) { --bar: 32%; }

.four-page-spotify {
  --spotify-scale: .6;
  position: relative;
  z-index: 1;
  height: 456px;
  overflow: hidden;
  border: 1px solid #f1c7ff52;
  border-radius: 14px;
  background: #100916;
  box-shadow: inset 0 0 28px #000a;
}

.four-page-spotify iframe {
  display: block;
  width: 166.67%;
  height: 760px;
  border: 0;
  border-radius: 16px;
  transform: scale(var(--spotify-scale));
  transform-origin: top left;
}

.crystal-player-footer {
  justify-content: center;
  gap: 10px;
  padding: 9px 8px 1px;
  color: #cfaed2;
  font-size: .52rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.crystal-player-footer b { color: #f4d58d; }

.zayden-chapter .chapter-background {
  object-position: 65% 30%;
}

.zayden-chapter .chapter-shade {
  background: linear-gradient(90deg, #02060ddc 0%, #08132aae 39%, transparent 70%), linear-gradient(0deg, #02050baa, transparent 45%);
}

.zayden-chapter .eyebrow,
.zayden-chapter h2 em {
  color: #7ceaff;
}

.character-chapter-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 8vw;
  width: min(650px, 46vw);
  transform: translateY(-46%);
}

.character-chapter-copy > p:not(.eyebrow):not(.character-role) {
  max-width: 590px;
  color: #c4c5d0;
  line-height: 1.72;
}

.character-role {
  margin: 22px 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
}

.zayden-chapter .character-role {
  color: #bcefff;
}

.chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.zayden-chapter .button.primary {
  color: #02060d;
  background: linear-gradient(135deg, #d6fbff, #5fe4ff 55%, #7192ff);
}

.character-mini-gallery {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 115px;
  display: flex;
  gap: 9px;
}

.character-mini-gallery button {
  width: clamp(62px, 7vw, 96px);
  aspect-ratio: 3 / 4;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #ffffff55;
  border-radius: 10px;
  background: #08050dcf;
  box-shadow: 0 12px 30px #0008;
  cursor: pointer;
}

.character-mini-gallery button.is-selected {
  border-color: #efd28a;
  box-shadow: 0 0 18px #f06bd866;
}

.character-mini-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.17) saturate(1.14);
}

.zayden-mini-gallery button { border-color: #7ceaff74; }
.max-bebo-mini-gallery { right: 6vw; }

.max-bebo-chapter .chapter-background {
  object-position: 64% center;
  filter: brightness(1.23) saturate(1.2) contrast(1.025);
}

.max-bebo-chapter .character-chapter-copy > p:not(.eyebrow):not(.character-role),
.zayden-chapter .character-chapter-copy > p:not(.eyebrow):not(.character-role) {
  color: #f2eaf3;
  text-shadow: 0 2px 12px #000, 0 1px 2px #000;
}

.max-bebo-chapter .chapter-shade {
  background: linear-gradient(90deg, #08040dde 0%, #351038a6 39%, transparent 70%), linear-gradient(0deg, #08040da8, transparent 45%);
}

.max-bebo-marquee {
  position: absolute;
  z-index: 3;
  right: 6vw;
  bottom: 118px;
  width: clamp(150px, 17vw, 245px);
  margin: 0;
  padding: 7px;
  border: 1px solid #efd28a;
  background: #0d0712d9;
  box-shadow: 0 18px 45px #000a, 0 0 24px #ffb73524;
  transform: rotate(2deg);
}
.max-bebo-marquee img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; object-position: center; background:#07040a; }
.max-bebo-marquee figcaption {
  padding: 7px 4px 1px;
  color: #f5dca0;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}

.chapter-youtube-section {
  position: relative;
  z-index: 5;
  width: min(780px, 88vw);
  margin: max(650px, calc(100svh - 20px)) auto 110px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #e9c98770;
  background: #0b0710e8;
  box-shadow: 0 28px 75px #000a;
  backdrop-filter: blur(15px);
}

.chapter-youtube-section[hidden] {
  display: none;
}

.bongo-chapter { background:#100616; }
.bongo-chapter > .chapter-background { object-position:center 32%; filter:brightness(1.05) saturate(1.08); }
.bongo-chapter .chapter-shade { background:linear-gradient(90deg,#07040df0 0%,#351039b7 40%,transparent 70%),linear-gradient(0deg,#07040db5,transparent 48%); }
.bongo-chapter .eyebrow,.bongo-chapter .character-role,.bongo-chapter h2 em { color:#f7d47f; }
.bongo-chapter .button.primary { background:linear-gradient(135deg,#ff4fcd,#9139d0); }
.bongo-mini-gallery button { border-color:#f7d47f73; }

.chica-chapter .chapter-youtube-section {
  grid-column: 1 / -1;
  margin: 35px auto 40px;
}

.chapter-youtube-section .eyebrow {
  margin-bottom: 8px;
}

.chapter-youtube-section h2 {
  margin: 0 0 18px;
  font: 400 clamp(1.8rem, 3.5vw, 3rem) / 1 Italiana, serif;
}

.youtube-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #ffffff2b;
  border-radius: 12px;
  background: #000;
}

.youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chapter-navigation {
  position: fixed;
  z-index: 130;
  right: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(50%);
  padding: 8px;
  border: 1px solid #f5d58da3;
  border-radius: 999px;
  background: linear-gradient(120deg, #100716f0, #331137e9 52%, #07131eec);
  box-shadow: 0 16px 45px #0008, 0 0 26px #ff6fe22e, inset 0 0 20px #74ecff0b;
  backdrop-filter: blur(16px) saturate(1.35);
}

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

.chapter-dots button,
.chapter-direction {
  border: 0;
  color: #e9dce8;
  background: transparent;
  cursor: pointer;
}

.chapter-dots button {
  min-width: 98px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  text-align: left;
}

.chapter-dots button .chapter-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: block;
  overflow: hidden;
  border: 1px solid #ffffff3d;
  border-radius: 50%;
  background: #08050d;
}

.chapter-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  filter: brightness(1.18) saturate(1.16);
}

.chapter-dots button small {
  font-size: 0.57rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.chapter-dots button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #d347b5, #7541b1 55%, #247eac);
  box-shadow: inset 0 0 16px #fff2, 0 0 18px #ff6fe238;
}

.chapter-dots button.is-active .chapter-icon {
  border-color: #e9c987;
  box-shadow: 0 0 15px #ff70dc8c;
}

.chapter-direction {
  min-height: 38px;
  padding: 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.56rem;
}

.chapter-direction:disabled {
  opacity: 0.25;
  cursor: default;
}

.chapter-dots button:focus-visible,
.chapter-direction:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.four-page-home .site-back-button {
  top: 106px;
}

@keyframes chapter-arrive {
  from { opacity: 0; transform: scale(1.012); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 960px) {
  .four-page-home .site-header nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
    background: #0b0710f8;
  }

  .four-page-home .site-header.menu-open nav { display: flex; }
  .four-page-home .menu-toggle { display: block; margin-left: auto; }
  .lobby-intro { left: 5vw; width: 43vw; }
  .compact-directory { right: 3vw; width: 49vw; }
  .chapter-dots button { min-width: 46px; padding: 4px; }
  .chapter-dots button small { display: none; }
  .character-mini-gallery { opacity: 0.92; }
}

@media (max-width: 640px) {
  .four-page-home {
    min-height: 680px;
    overflow-y: auto;
  }

  .home-page-stack,
  .home-chapter {
    height: auto;
    min-height: 100svh;
  }

  html[data-site-theme='couture-universe'] #four-page-hero,
  .zayden-chapter > .chapter-background {
    inset: 76px 0 96px;
    height: calc(100% - 172px);
  }

  .zayden-chapter > .chapter-background {
    filter: brightness(1.18) contrast(1.06) saturate(1.08);
  }

  .character-mini-gallery,
  .max-bebo-mini-gallery {
    right: auto;
    left: 5vw;
    bottom: 106px;
    width: 90vw;
    gap: 7px;
  }

  .character-mini-gallery button {
    width: 49px;
    flex: 0 0 49px;
    border-radius: 8px;
  }

  .home-chapter {
    padding-bottom: 100px;
  }

  .chapter-shade {
    background: linear-gradient(0deg, #08050df9 0%, #130a16d9 62%, transparent 100%);
  }

  .lobby-chapter {
    min-height: 920px;
  }

  .lobby-intro {
    top: 130px;
    left: 6vw;
    width: 88%;
    transform: none;
  }

  .lobby-intro h1 { font-size: 4rem; }
  .lobby-intro h1 .hero-star { font-size: 3.7rem; }
  .lobby-intro h1 > em { margin-top: 9px; font-size: 1.35rem; letter-spacing: .24em; }
  .lobby-intro h1 .hero-welcome { margin-bottom: 9px; font-size: .58rem; }
  .universe-pill { margin-top: 15px; font-size: .59rem; gap: 5px; }
  .brand-belief { margin-top: 6px; font-size: .95rem; }
  .lobby-intro > .hero-world-copy { margin: 9px 0 12px; font-size: .76rem; }
  .universe-seal { display: none; }

  .compact-directory {
    top: auto;
    right: 4vw;
    bottom: 92px;
    width: 92vw;
    transform: none;
    padding: 15px;
  }

  .compact-room-grid { gap: 7px; }
  .compact-room-grid a {
    min-height: 78px;
    padding: 9px;
    background-image:
      linear-gradient(90deg, #0b0710f2 0%, #160c1bdb 48%, #1d10206b 100%),
      var(--room-photo);
  }
  .compact-room-grid b { font-size: 0.86rem; }

  .chica-chapter {
    grid-template-columns: 1fr;
    padding: 88px 0 98px;
  }

  .chica-portrait-panel {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    margin: 10px 4vw 0;
  }

  .chica-portrait-panel > img {
    order: 1;
    height: min(68svh, 560px);
    min-height: 390px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
    background: radial-gradient(circle at 50% 42%, #36153d, #0b0710 72%);
  }

  .chica-portrait-panel > img.is-cover-photo {
    height: min(52vw, 330px);
    min-height: 205px;
    object-fit: contain;
    object-position: center;
  }

  .chica-portrait-panel .portrait-shade { display: none; }

  .chica-title-block {
    position: relative;
    order: 0;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 0 0 10px;
    padding: 14px 16px 13px;
    border-radius: 3px 14px 3px 14px;
    background: linear-gradient(135deg, #130a18a8, #2a102792);
  }
  .chica-title-block h2 { font-size: 2.45rem; line-height: .95; }
  .chica-title-block h2 br { display: none; }
  .chica-title-block > p:not(.eyebrow) { margin-top: 8px; font-size: .78rem; }
  .chica-title-block .eyebrow { margin-bottom: 10px; }
  .chica-title-block .text-link { margin-top: 7px; }
  .gallery-selector {
    position: relative;
    order: 2;
    right: auto;
    bottom: auto;
    left: auto;
    gap: 10px;
    margin: 10px 0 0;
    padding: 8px 9px 9px;
  }
  .gallery-selector-group p { margin-bottom: 5px; font-size: .58rem; }
  .gallery-selector-divider { min-height: 92px; }
  .lady-chica-selector .couture-strip { grid-template-columns: repeat(4, 29px); }
  .band-strip { grid-template-columns: repeat(2, 29px); }
  .couture-strip { gap: 4px; }
  .couture-strip img { width: 29px; }
  .max-bebo-marquee { right: 5vw; bottom: 105px; width: 112px; }

  .album-panel { padding: 32px 5vw 10px; }
  .album-panel h3 { font-size: 3.2rem; }
  .album-intro { margin: 12px 0; font-size: 0.9rem; }
  .crystal-player { padding: 8px; border-radius: 17px; }
  .crystal-player-display { min-height: 50px; gap: 8px; padding: 2px 5px 8px; }
  .crystal-player-count { font-size: .5rem; letter-spacing: .1em; }
  .crystal-equalizer { display: none; }
  .four-page-spotify { --spotify-scale: .56; height: 426px; }
  .four-page-spotify iframe { width: 178.58%; height: 760px; }
  .crystal-player-footer { gap: 7px; font-size: .47rem; letter-spacing: .1em; }

  .zayden-chapter,
  .max-bebo-chapter,
  .bongo-chapter {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    padding: 154px 4vw 112px;
    overflow: visible;
    background: radial-gradient(circle at 50% 52%, #32123b, #08050d 72%);
  }

  .zayden-chapter {
    background: radial-gradient(circle at 50% 52%, #102c43, #03070d 72%);
  }

  .character-chapter-copy {
    position: relative;
    order: 1;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
    padding: 14px 15px;
    border: 1px solid #ffffff2c;
    border-radius: 3px 14px 3px 14px;
    background: linear-gradient(135deg, #07050dd9, #1d0e20bd);
    box-shadow: 0 16px 36px #0007;
    backdrop-filter: blur(10px);
  }

  .character-chapter-copy h2 { font-size: 2.75rem; line-height: .88; }
  .character-chapter-copy h2 br { display: none; }
  .character-chapter-copy .character-role { margin: 12px 0 8px; }
  .character-chapter-copy > p:not(.eyebrow):not(.character-role) { margin: 8px 0; font-size: .78rem; line-height: 1.45; }
  .character-chapter-copy .chapter-actions { margin-top: 12px; gap: 6px; }
  .character-chapter-copy .button { min-height: 36px; padding: 9px 11px; font-size: .52rem; }

  .zayden-chapter > .chapter-background,
  .max-bebo-chapter > .chapter-background,
  .bongo-chapter > .chapter-background {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    margin-top: 12px;
    object-fit: contain !important;
    object-position: center !important;
    border: 1px solid #efd28a66;
    border-radius: 3px 16px 3px 16px;
    background: #08050d;
    box-shadow: 0 18px 40px #0009, 0 0 24px #ff6fe21c;
  }

  .zayden-chapter > .chapter-background {
    border-color: #7ceaff6b;
    background: #02070e;
    box-shadow: 0 18px 40px #0009, 0 0 24px #54dcff1f;
  }

  .zayden-chapter .chapter-shade,
  .max-bebo-chapter .chapter-shade,
  .bongo-chapter .chapter-shade { display: none; }

  .character-mini-gallery,
  .max-bebo-mini-gallery {
    position: relative;
    order: 3;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 10px;
    gap: 7px;
    justify-content: flex-start;
  }

  .zayden-mini-gallery { display: flex; }
  .character-mini-gallery button {
    width: 46px;
    flex: 0 0 46px;
  }

  .chapter-navigation {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    justify-content: space-between;
    gap: 4px;
    padding: 7px;
  }

  .chapter-direction { padding: 0 8px; font-size: 0.68rem; }
  .chapter-direction span { display: none; }
  .chapter-dots { gap: 3px; }
  .chapter-dots button { min-width: 44px; }
  .chapter-dots button .chapter-icon { width: 38px; height: 38px; flex-basis:38px; }
  .chapter-youtube-section { width: 92vw; margin-top: max(780px, calc(100svh - 10px)); padding: 15px; }
  .zayden-chapter .chapter-youtube-section,
  .max-bebo-chapter .chapter-youtube-section,
  .bongo-chapter .chapter-youtube-section {
    order: 4;
    width: 100%;
    margin: 24px 0 0;
  }
  .chica-chapter .chapter-youtube-section { margin-top: 25px; }
  .four-page-home .site-back-button { top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-chapter { animation: none; }
}

@media (min-width: 641px) {
  .chica-portrait-panel .gallery-selector {
    bottom: 88px;
  }
}

/* Phone layout: keep each cinematic chapter readable without overlapping layers. */
@media (max-width: 640px) {
  .lobby-chapter {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    padding: 126px 4vw 112px;
    overflow: visible;
  }

  .lobby-intro {
    position: relative;
    z-index: 4;
    order: 1;
    top: auto;
    left: auto;
    width: 100%;
    padding: 18px 17px;
    border: 1px solid #f5d58d55;
    border-radius: 4px 18px 4px 18px;
    background: linear-gradient(135deg, #08040ee8, #2b112acb);
    box-shadow: 0 18px 46px #0009, inset 0 0 30px #ff7be914;
    backdrop-filter: blur(12px) saturate(1.15);
  }

  .lobby-intro h1 { font-size: clamp(3.15rem, 15vw, 3.7rem); }
  .lobby-intro h1 .hero-star { font-size: clamp(2.95rem, 14vw, 3.5rem); }
  .lobby-intro h1 > em { font-size: 1.12rem; }

  .compact-directory {
    position: relative;
    z-index: 4;
    order: 2;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
    transform: none;
  }

  .lobby-chapter .chapter-youtube-section {
    position: relative;
    z-index: 4;
    order: 3;
    width: 100%;
    margin: 22px 0 0;
  }


  .character-chapter-copy > p:not(.eyebrow):not(.character-role) {
    font-size: 1rem;
    line-height: 1.55;
  }

  .character-chapter-copy .button {
    min-height: 44px;
    padding: 11px 13px;
    font-size: 0.66rem;
  }

  .chica-title-block > p:not(.eyebrow),
  .album-intro {
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 390px) {
  .lobby-chapter { padding-inline: 3vw; }
  .compact-directory { padding: 12px; }
  .compact-room-grid a { min-height: 72px; }
  .compact-room-grid b { font-size: 0.78rem; }
  .chapter-dots button { min-width: 42px; }
  .chapter-dots button .chapter-icon { width: 35px; height: 35px; flex-basis: 35px; }
}


/* Tablet navigation stays calm and uncluttered in both orientations. */
@media (min-width: 641px) and (max-width: 1100px) {
  .four-page-home .site-header { height: 78px; }
  .four-page-home .site-header nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 16px 6vw 24px;
    border-bottom: 1px solid #f5d58d55;
    background: #0b0710f8;
    box-shadow: 0 20px 50px #000a;
    backdrop-filter: blur(16px);
  }

  .four-page-home .site-header.menu-open nav { display: flex; }
  .four-page-home .site-header nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffffff12;
    font-size: .78rem;
  }
  .four-page-home .menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }
  .four-page-home .menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    margin: 7px auto;
    background: #fff;
  }
  .chapter-dots button { min-width: 52px; padding: 5px; }
  .chapter-dots button small { display: none; }
}

/* Portrait tablets receive a spacious stacked composition instead of squeezed desktop columns. */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  .home-page-stack,
  .home-chapter { height: auto; min-height: 100svh; }

  .lobby-chapter {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    padding: 128px 6vw 120px;
    overflow: visible;
  }
  .lobby-intro,
  .compact-directory {
    position: relative;
    z-index: 4;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
  }
  .lobby-intro {
    order: 1;
    padding: 24px 26px;
    border: 1px solid #f5d58d55;
    border-radius: 4px 20px 4px 20px;
    background: linear-gradient(135deg, #08040ee8, #2b112acb);
    box-shadow: 0 20px 50px #0009;
    backdrop-filter: blur(12px);
  }
  .lobby-intro h1 { font-size: clamp(4.3rem, 10vw, 6rem); }
  .lobby-intro h1 .hero-star { font-size: clamp(4.4rem, 10.5vw, 6.2rem); }
  .compact-directory { order: 2; margin-top: 20px; padding: 20px; }
  .compact-room-grid a { min-height: 88px; }
  .universe-seal { display: none; }

  .chica-chapter {
    grid-template-columns: 1fr;
    padding: 104px 0 118px;
  }
  .chica-portrait-panel {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    margin: 18px 6vw 0;
  }
  .chica-portrait-panel > img {
    order: 1;
    height: min(65svh, 660px);
    min-height: 500px;
    object-fit: contain;
    background: radial-gradient(circle at 50% 42%, #36153d, #0b0710 72%);
  }
  .chica-title-block {
    position: relative;
    order: 0;
    inset: auto;
    width: 100%;
    margin-bottom: 12px;
  }
  .gallery-selector {
    position: relative;
    order: 2;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 12px;
  }
  .album-panel { padding: 42px 8vw 24px; }
  .four-page-spotify { --spotify-scale: .58; height: 441px; }
  .four-page-spotify iframe { width: 172.42%; }

  .zayden-chapter,
  .max-bebo-chapter,
  .bongo-chapter {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    padding: 142px 6vw 122px;
    overflow: visible;
  }
  .character-chapter-copy {
    position: relative;
    order: 1;
    inset: auto;
    width: 100%;
    transform: none;
    padding: 24px 26px;
    border: 1px solid #ffffff2c;
    border-radius: 4px 18px 4px 18px;
    background: linear-gradient(135deg, #07050dd9, #1d0e20bd);
    backdrop-filter: blur(10px);
  }
  .zayden-chapter > .chapter-background,
  .max-bebo-chapter > .chapter-background,
  .bongo-chapter > .chapter-background {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-top: 16px;
    object-fit: contain !important;
    border: 1px solid #efd28a66;
    border-radius: 4px 18px 4px 18px;
    background: #08050d;
  }
  .zayden-chapter > .chapter-background { border-color: #7ceaff6b; background: #02070e; }
  .zayden-chapter .chapter-shade,
  .max-bebo-chapter .chapter-shade,
  .bongo-chapter .chapter-shade { display: none; }
  .character-mini-gallery,
  .max-bebo-mini-gallery {
    position: relative;
    order: 3;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 12px;
    justify-content: flex-start;
  }
  .zayden-chapter .chapter-youtube-section,
  .max-bebo-chapter .chapter-youtube-section,
  .bongo-chapter .chapter-youtube-section {
    order: 4;
    width: 100%;
    margin: 28px 0 0;
  }
}

/* Landscape tablets keep the cinematic split with more breathing room. */
@media (min-width: 821px) and (max-width: 1180px) and (orientation: landscape) {
  .lobby-intro { left: 4vw; width: 42vw; }
  .lobby-intro h1 { font-size: clamp(3.8rem, 6.3vw, 5.4rem); }
  .lobby-intro h1 .hero-star { font-size: clamp(4rem, 6.6vw, 5.7rem); }
  .compact-directory { right: 3vw; width: 48vw; padding: 15px; }
  .compact-room-grid a { min-height: 74px; }
  .chica-title-block { right: 14px; width: min(350px, 58%); }
  .album-panel { padding-right: 3vw; padding-left: 3vw; }
  .four-page-spotify { --spotify-scale: .55; height: 418px; }
  .four-page-spotify iframe { width: 181.82%; }
  .character-chapter-copy { left: 6vw; width: min(560px, 48vw); }
}

/* Desktop polish: a tailored cinematic composition for laptop and widescreen displays. */
@media (min-width: 1101px) {
  .four-page-home .site-header {
    height: 92px;
    padding-inline: clamp(34px, 3.5vw, 72px);
  }
  .four-page-home .site-header nav { gap: clamp(13px, 1.45vw, 28px); }
  .four-page-home .site-header nav a {
    position: relative;
    padding-block: 12px;
    font-size: .72rem;
    letter-spacing: .12em;
  }
  .four-page-home .site-header nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff8ee6, #f5d58d, transparent);
    transform: scaleX(0);
    transition: transform .25s ease;
  }
  .four-page-home .site-header nav a:hover::after,
  .four-page-home .site-header nav a:focus-visible::after,
  .four-page-home .site-header nav a[aria-current='page']::after { transform: scaleX(1); }

  .home-chapter { min-height: max(720px, 100svh); }
  .lobby-intro { width: min(610px, 42vw); }
  .lobby-intro > .hero-world-copy { font-size: 1rem; line-height: 1.65; }
  .compact-directory { width: min(520px, 41vw); padding: 20px; }
  .compact-room-grid a {
    min-height: 88px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .compact-room-grid a:hover,
  .compact-room-grid a:focus-visible {
    z-index: 2;
    transform: translateY(-3px);
    border-color: #f5d58da3;
    box-shadow: 0 15px 32px #0008, 0 0 18px #ff6fe22b;
  }

  .chica-chapter {
    grid-template-columns: minmax(470px, .94fr) minmax(540px, 1.06fr);
    gap: clamp(14px, 1.8vw, 36px);
  }
  .chica-portrait-panel { margin-left: clamp(34px, 4vw, 76px); }
  .album-panel { max-width: 790px; padding-right: clamp(40px, 5vw, 92px); padding-left: 2vw; }
  .chica-title-block { width: min(350px, 48%); }
  .gallery-selector {
    box-shadow: 0 20px 45px #000a, inset 0 0 24px #ff7be912;
    transition: border-color .25s ease, box-shadow .25s ease;
  }
  .gallery-selector:hover { border-color: #f5d58d8a; box-shadow: 0 22px 50px #000a, 0 0 24px #ff70dc24; }
  .couture-strip button:hover img,
  .couture-strip button:focus-visible img { transform: translateY(-4px) scale(1.06); }
  .four-page-platforms .platform-link { transition: transform .22s ease, filter .22s ease; }
  .four-page-platforms .platform-link:hover,
  .four-page-platforms .platform-link:focus-visible { transform: translateY(-3px) scale(1.05); filter: drop-shadow(0 0 10px #ff86df88); }
  .crystal-player { max-width: 720px; }

  .character-chapter-copy {
    left: clamp(58px, 7vw, 135px);
    width: min(620px, 43vw);
    padding: 30px 32px;
    border: 1px solid #ffffff2b;
    border-left-color: #f5d58d78;
    border-radius: 4px 24px 4px 24px;
    background: linear-gradient(135deg, #07050dce, #1d0e20a8);
    box-shadow: 0 24px 65px #0008, inset 0 0 30px #ff75dd0b;
    backdrop-filter: blur(12px) saturate(1.12);
  }
  .zayden-chapter .character-chapter-copy {
    border-left-color: #7ceaff8c;
    background: linear-gradient(135deg, #02070ed9, #0a1e31b8);
    box-shadow: 0 24px 65px #0009, inset 0 0 32px #69e8ff0d;
  }
  .character-chapter-copy > p:not(.eyebrow):not(.character-role) { font-size: 1rem; }
  .character-chapter-copy .button { min-height: 44px; font-size: .7rem; }
  .character-mini-gallery button { transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
  .character-mini-gallery button:hover,
  .character-mini-gallery button:focus-visible { transform: translateY(-5px); border-color: #fff0bd; box-shadow: 0 15px 30px #0009, 0 0 18px #ff70dc66; }

  .chapter-navigation { bottom: 22px; padding: 9px 11px; }
  .chapter-dots button { transition: background .22s ease, transform .22s ease; }
  .chapter-dots button:hover,
  .chapter-dots button:focus-visible { transform: translateY(-2px); background: #ffffff0c; }
}

/* 4K cinematic refinement: brighter rooms, readable labels and generous controls. */
.four-page-home .site-header nav a {
  font-size: clamp(.7rem, .68vw, .78rem);
}

.compact-room-grid a {
  background-image:
    linear-gradient(90deg, #0b0710c2 0%, #26102b82 44%, #1d102024 100%),
    var(--room-photo);
}

.compact-room-grid small { font-size: .62rem; }

.compact-room-grid .ice-room {
  background-image:
    linear-gradient(90deg, #040b13d4 0%, #071527aa 44%, #0a20324d 100%),
    var(--room-photo);
}

.chapter-dots button small { font-size: .64rem; }

.four-page-home:not([data-active-page]) .site-back-button,
.four-page-home[data-active-page="1"] .site-back-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .compact-room-grid a {
    background-image:
      linear-gradient(90deg, #0b0710dc 0%, #160c1bb8 50%, #1d10203f 100%),
      var(--room-photo);
  }
  .compact-room-grid small { font-size: .58rem; }
  .compact-room-grid b { font-size: .9rem; }
  .character-mini-gallery button { min-width: 46px; min-height: 58px; }
}

@media (max-width: 390px) {
  .compact-room-grid b { font-size: .84rem; }
}

/* Lighter couture glass lets the artwork remain visible behind the copy. */
.compact-directory {
  background: linear-gradient(145deg, #170a1eaf, #38143897 52%, #091322a7);
}

.chica-title-block {
  background: linear-gradient(135deg, #160c1b86, #2b102772);
  transition: opacity .22s ease, transform .22s ease;
}

.chica-title-block.is-changing {
  opacity: .72;
  transform: translateY(3px);
}

.character-chapter-copy {
  background: linear-gradient(135deg, #07050da5, #1d0e2086);
}

.zayden-chapter .character-chapter-copy {
  background: linear-gradient(135deg, #02070eae, #0a1e3193);
}

.band-strip { grid-template-columns: repeat(5, 34px); }

@media (max-width: 640px) {
  .lobby-intro {
    background: linear-gradient(135deg, #08040eba, #2b112aa2);
  }
  .chica-title-block {
    background: linear-gradient(135deg, #130a1886, #2a102775);
  }
  .character-chapter-copy {
    background: linear-gradient(135deg, #07050dae, #1d0e2097);
  }
  .band-strip { grid-template-columns: repeat(3, 29px); }
}

@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  .lobby-intro {
    background: linear-gradient(135deg, #08040eba, #2b112aa2);
  }
}

/* Responsive finish: preserve the same four chapters at every common screen shape. */
@media (pointer: coarse) {
  .character-mini-gallery button,
  .chapter-direction,
  .chapter-dots button,
  .four-page-platforms .platform-link,
  .compact-room-grid a,
  .universe-connect button {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (pointer: coarse) and (min-width: 641px) {
  .gallery-selector {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .gallery-selector::-webkit-scrollbar { display: none; }
  .lady-chica-selector .couture-strip { grid-template-columns: repeat(8, 44px); }
  .band-strip { grid-template-columns: repeat(5, 44px); }
  .couture-strip button { min-width: 44px; min-height: 52px; display: grid; place-items: center; }
  .couture-strip img { width: 38px; }
}

@media (max-width: 640px) and (orientation: portrait) {
  .chica-portrait-panel > img {
    height: clamp(390px, 62svh, 540px);
  }

  .gallery-selector {
    align-items: stretch;
  }

  .gallery-selector-group {
    min-width: 0;
    flex: 1 1 0;
  }

  .gallery-selector-divider {
    min-height: 72px;
  }

  .lady-chica-selector .couture-strip,
  .band-strip {
    display: flex;
    max-width: 100%;
    gap: 3px;
    padding: 2px 0 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .lady-chica-selector .couture-strip::-webkit-scrollbar,
  .band-strip::-webkit-scrollbar { display: none; }

  .couture-strip button {
    width: 44px;
    min-width: 44px;
    min-height: 50px;
    display: grid;
    place-items: center;
  }

  .couture-strip img { width: 34px; }
  .chapter-direction { min-width: 44px; min-height: 44px; }
}

/* Phones held sideways: use the available width and let height scroll naturally. */
@media (max-height: 520px) and (orientation: landscape) {
  .four-page-home .site-header {
    height: 64px;
    padding-inline: 3vw;
  }

  .four-page-home .site-header nav { inset-block-start: 64px; }
  .four-page-home .crown-mark { width: 38px; height: 38px; }
  .four-page-home .logo-copy b { font-size: .88rem; }
  .four-page-home .logo-copy small { font-size: .42rem; }
  .four-page-home .site-back-button { top: 70px; }

  .home-chapter {
    min-height: 590px;
    padding-bottom: 76px;
  }

  .lobby-chapter {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
    gap: 3vw;
    align-items: center;
    padding: 82px 3vw 78px;
    overflow: visible;
  }

  .lobby-intro,
  .compact-directory {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .lobby-intro {
    padding: 15px 16px;
    border: 1px solid #f5d58d55;
    border-radius: 4px 16px 4px 16px;
    background: linear-gradient(135deg, #08040ed4, #2b112ab8);
    backdrop-filter: blur(10px);
  }

  .lobby-intro h1 { font-size: clamp(2.7rem, 7.5vw, 4.25rem); }
  .lobby-intro h1 .hero-star { font-size: clamp(2.8rem, 7.7vw, 4.4rem); }
  .lobby-intro h1 > em { font-size: .95rem; }
  .lobby-intro .universe-pill,
  .lobby-intro .brand-belief,
  .lobby-intro .hero-world-copy { margin-block: 7px; }
  .universe-seal { display: none; }

  .compact-directory { padding: 12px; }
  .compact-room-grid { gap: 6px; }
  .compact-room-grid a { min-height: 60px; padding: 8px 9px; }
  .compact-room-grid b { font-size: .78rem; }
  .compact-room-grid small { font-size: .5rem; }

  .chica-chapter {
    min-height: 610px;
    padding-top: 70px;
    padding-bottom: 78px;
  }

  .chica-portrait-panel {
    height: 500px;
    min-height: 500px;
    margin-top: 8px;
  }

  .chica-title-block {
    right: 12px;
    bottom: 150px;
    width: min(300px, 58%);
    padding: 14px 16px;
  }
  .chica-title-block h2 { font-size: clamp(2rem, 4.8vw, 3.1rem); }
  .gallery-selector { bottom: 72px; }

  .album-panel { padding: 16px 3vw 10px; }
  .album-panel h3 { font-size: clamp(2.25rem, 5.5vw, 3.6rem); }
  .album-intro { margin-block: 9px; font-size: .86rem; line-height: 1.45; }
  .four-page-platforms { margin-bottom: 9px; }
  .crystal-player { padding: 7px; }
  .crystal-player-display { min-height: 44px; padding-bottom: 6px; }
  .four-page-spotify { --spotify-scale: .48; height: 365px; }
  .four-page-spotify iframe { width: 208.34%; }
  .crystal-player-footer { padding-top: 6px; }

  .zayden-chapter > .chapter-background,
  .max-bebo-chapter > .chapter-background,
  .bongo-chapter > .chapter-background {
    inset: 64px 0 76px;
    height: calc(100% - 140px);
    object-fit: contain !important;
    object-position: center !important;
  }

  .character-chapter-copy {
    left: 4vw;
    width: min(470px, 48vw);
    padding: 18px 20px;
  }
  .character-chapter-copy h2 { font-size: clamp(2.7rem, 6vw, 4rem); }
  .character-chapter-copy > p:not(.eyebrow):not(.character-role) { font-size: .88rem; line-height: 1.48; }
  .character-role { margin: 12px 0 8px; }
  .chapter-actions { margin-top: 12px; }
  .character-chapter-copy .button { min-height: 42px; padding: 10px 12px; }
  .character-mini-gallery { right: 3vw; bottom: 82px; gap: 6px; }
  .character-mini-gallery button { width: 54px; }

  .chapter-navigation {
    bottom: max(5px, env(safe-area-inset-bottom));
    padding: 5px 7px;
  }
  .chapter-dots button { min-width: 42px; padding: 3px; }
  .chapter-dots button .chapter-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .chapter-direction { min-width: 44px; min-height: 44px; }
}

@media (max-width: 640px) and (max-height: 520px) and (orientation: landscape) {
  .chica-chapter {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 2vw;
  }
  .chica-portrait-panel { display: block; }
  .chica-portrait-panel > img,
  .chica-portrait-panel > img.is-cover-photo {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
  }
  .chica-title-block { position: absolute; margin: 0; }
  .gallery-selector {
    position: absolute;
    right: 12px;
    bottom: 72px;
    left: 12px;
    width: auto;
    margin: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .gallery-selector::-webkit-scrollbar { display: none; }
  .gallery-selector-group { flex: 0 0 auto; }
  .lady-chica-selector .couture-strip { grid-template-columns: repeat(8, 44px); }
  .band-strip { grid-template-columns: repeat(5, 44px); }
  .couture-strip button { min-width: 44px; min-height: 50px; }

  .zayden-chapter,
  .max-bebo-chapter,
  .bongo-chapter { display: block; overflow: hidden; padding: 0 0 76px; }
  .zayden-chapter > .chapter-background,
  .max-bebo-chapter > .chapter-background,
  .bongo-chapter > .chapter-background {
    position: absolute;
    inset: 64px 0 76px;
    width: 100%;
    height: calc(100% - 140px);
    margin: 0;
  }
  .character-chapter-copy {
    position: absolute;
    top: 50%;
    left: 4vw;
    width: 48vw;
    transform: translateY(-48%);
  }
  .character-mini-gallery,
  .max-bebo-mini-gallery {
    position: absolute;
    right: 3vw;
    bottom: 82px;
    left: auto;
    width: auto;
    margin: 0;
  }
}

/* Tablet landscape and shorter laptops keep the album and artwork above the dock. */
@media (min-width: 641px) and (max-width: 1180px) and (orientation: landscape) {
  .home-chapter { min-height: max(700px, 100svh); }
  .chica-portrait-panel { height: min(620px, calc(100svh - 170px)); min-height: 500px; }
  .chica-title-block { bottom: 158px; }
  .chica-portrait-panel .gallery-selector { bottom: 76px; }
  .character-mini-gallery { bottom: 100px; }
}

@media (min-width: 1101px) and (max-height: 850px) {
  .chica-portrait-panel { height: calc(100svh - 170px); min-height: 530px; }
  .album-panel { padding-top: 14px; padding-bottom: 8px; }
  .album-intro { margin-block: 10px; }
  .four-page-platforms { margin-bottom: 10px; }
  .four-page-spotify { --spotify-scale: .52; height: 395px; }
  .four-page-spotify iframe { width: 192.31%; }
  .crystal-player-display { min-height: 48px; padding-bottom: 7px; }
  .character-chapter-copy { transform: translateY(-42%); }
}

/* Ultra-wide and 4K screens retain a composed stage rather than drifting apart. */
@media (min-width: 1920px) {
  .four-page-home .site-header { padding-inline: max(4vw, calc((100vw - 1900px) / 2)); }
  .lobby-intro { left: max(7vw, calc((100vw - 1800px) / 2)); }
  .compact-directory { right: max(6vw, calc((100vw - 1800px) / 2)); }
  .chica-chapter { grid-template-columns: minmax(660px, .95fr) minmax(720px, 1.05fr); }
  .chica-portrait-panel { max-width: 820px; justify-self: end; margin-left: 0; }
  .album-panel { max-width: 860px; justify-self: start; }
  .character-chapter-copy { left: max(8vw, calc((100vw - 1800px) / 2)); width: 690px; }
  .character-mini-gallery { right: max(6vw, calc((100vw - 1800px) / 2)); }
  .chapter-dots button { min-width: 112px; }
}

/* Discreet, crystal-integrated chapter cinema. */
.chapter-youtube-section {
  width: min(720px, 88vw);
  padding: 8px;
  border: 1px solid #f3d78a4d;
  border-radius: 4px 20px 4px 20px;
  background: linear-gradient(135deg, #1008179c, #2b0f2b73);
  box-shadow: 0 18px 55px #0008, 0 0 28px #ff66d817;
  backdrop-filter: blur(9px) saturate(1.18);
}
.chapter-youtube-section > .eyebrow,
.chapter-youtube-section > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.youtube-frame { border-color: #f5d58d40; border-radius: 3px 15px 3px 15px; background: radial-gradient(circle at 50% 50%, #35113e, #050208 72%); box-shadow: inset 0 0 34px #ff6fe217; }
.youtube-frame { position: relative; }
.youtube-frame iframe,
.youtube-frame video,
.youtube-poster { display: block; width: 100%; height: 100%; border: 0; }
.youtube-frame video { object-fit: contain; background: #000; }
.youtube-poster { position: relative; padding: 0; overflow: hidden; cursor: pointer; background: #07030a; }
.youtube-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #08030a70, transparent 54%); }
.youtube-poster img,.youtube-poster video { width: 100%; height: 100%; display: block; object-fit: cover; filter: brightness(1.08) saturate(1.08); transition: transform .28s ease, filter .28s ease; }
.youtube-poster > span { position: absolute; z-index: 1; inset: 50% auto auto 50%; width: 54px; height: 54px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 1px solid #ffe8adad; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#d73aadcf,#6236a7d9); box-shadow: 0 0 24px #ff72dc75; }
.youtube-poster:hover img,.youtube-poster:focus-visible img,.youtube-poster:hover video,.youtube-poster:focus-visible video { transform: scale(1.018); filter: brightness(1.16) saturate(1.12); }
.youtube-thumbnails { display: flex; gap: 7px; overflow-x: auto; padding: 8px 1px 1px; scrollbar-width: thin; scrollbar-color: #d874c1 transparent; }
.youtube-thumbnails button { position: relative; flex: 0 0 82px; width: 82px; aspect-ratio: 16 / 9; padding: 2px; overflow: hidden; border: 1px solid #ffffff4b; border-radius: 3px 9px 3px 9px; background: #09050d; cursor: pointer; }
.youtube-thumbnails button.is-selected { border-color: #f4d68a; box-shadow: 0 0 0 1px #ff62d75c, 0 0 13px #ff62d73c; }
.youtube-thumbnails img,.youtube-thumbnails video { display: block; width: 100%; height: 100%; object-fit: cover; }
.youtube-thumbnails small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.youtube-thumb-gem { display: grid; width: 100%; height: 100%; place-items: center; color: #f7c9ef; }
.video-mute-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 4; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid #ffe5a5a3; border-radius: 999px; color: #fff; background: linear-gradient(135deg, rgb(74 20 72 / 88%), rgb(14 7 21 / 92%)); box-shadow: 0 5px 22px #0009, inset 0 0 12px #ff7cdd24; backdrop-filter: blur(8px); cursor: pointer; }
.video-mute-toggle span { font-size: 1rem; line-height: 1; }
.video-mute-toggle b { font: 700 .56rem/1 'DM Sans', sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.video-mute-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.layout-editor-layer { position: fixed; z-index: 9997; inset: 0; pointer-events: none; }
.layout-editor-toolbar { position: fixed; z-index: 10000; top: max(8px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 16px); padding: 8px 10px; border: 1px solid #f7d890; border-radius: 999px; color: #fff; background: #16091df2; box-shadow: 0 10px 35px #000b; transform: translateX(-50%); font: 700 .72rem/1 'DM Sans', sans-serif; }
.layout-editor-toolbar span { color: #f1a9e2; }
.layout-opacity-control { display:flex; align-items:center; gap:6px; color:#f7d890; font:inherit; }
.layout-opacity-control[hidden] { display:none; }
.layout-opacity-control input { width:88px; accent-color:#ff74dd; }
.layout-opacity-control output { min-width:34px; color:#fff; }
.layout-editor-toolbar button { min-height: 38px; padding: 8px 12px; border: 1px solid #f5cf84a8; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#752968,#26102e); font: inherit; cursor: pointer; }
.layout-editor-outline { position: fixed; pointer-events: auto; touch-action: none; border: 2px dashed #ff74dd; border-radius: 8px; background: #ff58d70a; box-shadow: 0 0 0 2px #0b0610a8, 0 0 20px #ff5ad45c; cursor: move; }
.layout-editor-outline.is-selected,.layout-editor-outline.is-active { border-style: solid; border-color: #ffe49c; }
.layout-editor-outline > span { position: absolute; top: 4px; left: 5px; max-width: calc(100% - 42px); padding: 5px 7px; overflow: hidden; border-radius: 5px; color: #fff; background: #14091dea; text-overflow: ellipsis; white-space: nowrap; font: 700 .65rem/1 'DM Sans',sans-serif; }
.layout-editor-outline > button { position: absolute; right: -7px; bottom: -7px; width: 42px; height: 42px; border: 1px solid #ffe59e; border-radius: 50%; color: #fff; background: #8d2878; box-shadow: 0 4px 14px #000a; cursor: nwse-resize; touch-action: none; }
.layout-editor-outline[data-layout-id^="bongo"] > span { display:none; }
.layout-editor-outline[data-layout-id^="bongo"] > button { width:30px; height:30px; right:-5px; bottom:-5px; }
.layout-editing .chapter-navigation { z-index: 9999; }

@media (max-width: 640px) {
  .layout-editor-toolbar { right: 8px; left: 8px; justify-content: center; flex-wrap:wrap; gap:6px; border-radius: 14px; transform: none; }
  .layout-editor-toolbar > b,.layout-editor-toolbar > span { display: none; }
  .layout-editor-toolbar button { min-height: 40px; padding:8px 9px; }
  .layout-opacity-control { order:-1; width:100%; justify-content:center; min-height:30px; }
  .layout-opacity-control input { width:min(180px,48vw); }
}

/* Smaller couture glass panels reveal forty percent of the artwork beneath. */
.lobby-intro,
.chica-title-block,
.character-chapter-copy { border: 1px solid #f0d18a4f; border-radius: 3px 16px 3px 16px; background: linear-gradient(135deg, rgb(8 4 14 / var(--layout-box-opacity,.6)), rgb(43 16 41 / var(--layout-box-opacity,.6))); box-shadow: 0 16px 38px #0007; backdrop-filter: blur(7px) saturate(1.12); }
.lobby-intro { width: min(510px, 38vw); padding: 20px 22px; }
.chica-title-block { width: min(285px, 40%); padding: 15px 17px 14px; }
.character-chapter-copy { width: min(560px, 42vw); padding: 20px 22px; }
.zayden-chapter .character-chapter-copy { background: linear-gradient(135deg, rgb(2 7 14 / var(--layout-box-opacity,.6)), rgb(10 30 49 / var(--layout-box-opacity,.6))); }

@media (max-width: 640px) {
  .lobby-intro,
  .character-chapter-copy { width: 100%; padding: 12px 14px; background: linear-gradient(135deg, rgb(8 4 14 / var(--layout-box-opacity,.6)), rgb(43 16 41 / var(--layout-box-opacity,.6))); }
  .zayden-chapter .character-chapter-copy { background: linear-gradient(135deg, rgb(2 7 14 / var(--layout-box-opacity,.6)), rgb(10 30 49 / var(--layout-box-opacity,.6))); }
  .chapter-youtube-section { padding: 6px; border-radius: 3px 14px 3px 14px; }
  .youtube-thumbnails button { flex-basis: 72px; width: 72px; min-width: 72px; min-height: 43px; }
  .video-mute-toggle { right: 7px; bottom: 7px; padding-inline: 10px; }
}

/* Portrait cinema: Lady Chica videos are created for a 9:16 stage. */
.chapter-youtube-section {
  width: min(430px, 88vw);
}

.youtube-frame {
  aspect-ratio: 9 / 16;
  max-height: min(78svh, 760px);
  margin-inline: auto;
}

.youtube-thumbnails {
  justify-content: center;
}

/* Campaign-first flow and faster, clearer chapter navigation. */
.hero-priority-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 11px;
}

.hero-priority-actions .button {
  min-height: 42px;
  padding: 11px 15px;
  font-size: .66rem;
}

.compact-room-grid a:nth-child(-n + 3) {
  border-color: #f5d58d7a;
  box-shadow: inset 0 0 18px #ff78dd12;
}

.four-page-home .site-header nav {
  gap: clamp(11px, 1.1vw, 20px);
}

.four-page-home .site-header nav a {
  font-size: clamp(.76rem, .73vw, .875rem);
  text-shadow: 0 2px 10px #000;
}

.hero-world-copy,
.album-intro,
.character-chapter-copy > p:not(.eyebrow):not(.character-role) {
  font-size: 1rem;
}

.zayden-chapter > .chapter-background {
  filter: brightness(1.43) contrast(1.045) saturate(1.24);
}

.zayden-chapter .chapter-shade {
  background: linear-gradient(90deg, #02060dcb 0%, #08132a8f 39%, transparent 69%), linear-gradient(0deg, #02050b82, transparent 45%);
}

.character-mini-gallery,
.max-bebo-mini-gallery {
  bottom: 168px;
}

.chapter-navigation {
  transition: transform .28s ease, opacity .28s ease, box-shadow .28s ease;
}

.chapter-navigation.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(50%) translateY(calc(100% + 34px));
}

@media (min-width: 641px) {
  .chapter-youtube-section:not([hidden]) {
    width: min(350px, 88vw);
    margin-bottom: 64px;
  }

  .chapter-youtube-section:not([hidden]) .youtube-frame {
    max-height: min(58svh, 560px);
  }
}

@media (max-width: 1100px) {
  .hero-priority-actions .button {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .hero-priority-actions {
    margin-block: 11px 8px;
  }

  .hero-priority-actions .button {
    flex: 1 1 148px;
    padding-inline: 11px;
    font-size: .61rem;
  }

  .character-mini-gallery,
  .max-bebo-mini-gallery {
    bottom: 132px;
  }

  .zayden-chapter > .chapter-background {
    filter: brightness(1.34) contrast(1.04) saturate(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-navigation { transition: none; }
}

.youtube-thumbnails button {
  flex-basis: 58px;
  width: 58px;
  min-width: 58px;
  aspect-ratio: 9 / 16;
}

@media (max-width: 640px) {
  .chapter-youtube-section {
    width: min(390px, 92vw);
  }

  .youtube-frame {
    max-height: 74svh;
  }

  .youtube-thumbnails {
    justify-content: flex-start;
  }

  .youtube-thumbnails button {
    flex-basis: 52px;
    width: 52px;
    min-width: 52px;
    min-height: 92px;
  }
}

/* Tricky Tazz's vertical gallery artwork should remain fully visible at every size. */
.bongo-chapter > .chapter-background {
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 1024px) and (orientation: portrait) {
  .bongo-chapter > .chapter-background {
    width: min(100%, 560px);
    height: min(68svh, 760px);
    max-height: calc(100svh - 170px);
    aspect-ratio: 9 / 16;
    align-self: center;
  }

  .bongo-mini-gallery {
    justify-content: center;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .bongo-chapter > .chapter-background {
    width: min(100%, 430px);
    height: min(70svh, 680px);
    min-height: 0;
    margin-inline: auto;
  }
}
