@font-face {
  font-family: 'Nunito';
  src: url('assets/fonts/nunito.woff') format('woff');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Text';
  src: url('assets/fonts/dm-serif-text.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Text';
  src: url('assets/fonts/dm-serif-text-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fbf7ee;
  --ink: #30223a;
  --muted: #635968;
  --purple: #704293;
  --line: #dcd2c9;
  --serif: 'DM Serif Text', Georgia, serif;
  --sans: 'Nunito', system-ui, sans-serif;
  --header-height: clamp(3.65rem, 9svh, 5.3125rem);
  --strip-height: clamp(3rem, 7.7svh, 4.35rem);
  --footer-height: clamp(4rem, 10svh, 6.45rem);
  --intro-padding: clamp(0.9rem, 3.25svh, 3rem);
  --section-padding: clamp(1.25rem, 4.8svh, 4rem);
  color-scheme: light;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.0625rem/1.6 var(--sans);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #704395;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1,
h2 {
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(4rem, 6.95vw, 7.3rem);
  line-height: 1.01;
}
h2 {
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  line-height: 1.04;
}
h1 em,
h2 em {
  color: var(--purple);
  font-weight: inherit;
}
::selection {
  background: #ead3ff;
  color: #2a183e;
}
.wrap {
  width: min(81rem, 90%);
  margin-inline: auto;
}
.skip {
  position: absolute;
  z-index: 20;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.55rem 1rem;
  background: white;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font: 850 0.77rem/1.45 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
}
.short-rule {
  width: 1.65rem;
  height: 2px;
  background: currentColor;
}
.tile-mark {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  transform: rotate(-9deg);
  background: conic-gradient(currentColor 0 25%, transparent 0 50%, currentColor 0 75%, transparent 0);
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: 100px;
  font: 850 0.98rem/1.25 var(--sans);
  text-align: center;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(1px);
}
.button-primary {
  background: var(--purple);
  color: #fffaf2;
  box-shadow: 0 3px 0 #4c2d65;
}
.button-primary:hover {
  background: #603382;
  box-shadow: 0 5px 0 #432958;
}
.button-outline {
  border-color: #796784;
  color: var(--ink);
  background: transparent;
}
.button-outline:hover {
  background: #ede3ef;
}
.text-link {
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.33em;
  text-decoration-color: #b4a1ba;
}
.text-link:hover {
  color: var(--purple);
  text-decoration-color: currentColor;
}
.play-icon {
  width: 0.66em;
  height: 0.76em;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(7% 0, 100% 50%, 7% 100%);
}

.masthead {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  min-height: calc(var(--header-height) - 1px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.wordmark {
  display: block;
  width: 9.45rem;
}
.wordmark img {
  width: 100%;
  height: auto;
}
.main-nav,
.header-actions {
  display: flex;
  align-items: center;
}
.main-nav {
  gap: clamp(1.5rem, 3vw, 3rem);
}
.main-nav a {
  position: relative;
  padding: 0.65rem 0;
  font-size: 0.97rem;
  font-weight: 750;
}
.main-nav a[aria-current]::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.36rem;
  height: 2px;
  background: #a684bb;
}
.header-actions {
  justify-content: end;
  gap: 0.5rem;
}
.header-play {
  min-height: 2.7rem;
  padding: 0.65rem 1.25rem;
  background: var(--ink);
  color: #fff9f0;
  font-size: 0.91rem;
  white-space: nowrap;
}
.header-play:hover {
  background: #51365e;
}
.mobile-nav {
  display: none;
}
.mobile-nav summary {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.menu-icon {
  width: 1rem;
  height: 0.66rem;
  border-block: 2px solid var(--ink);
}
.mobile-nav[open] summary {
  background: #eee4ed;
}
.mobile-nav nav {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 4.5%;
  width: min(13rem, 90vw);
  max-height: calc(100svh - var(--header-height) - 1rem);
  overflow-y: auto;
  display: grid;
  padding: 0.35rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: 0 7px 18px #402c4920;
}
.mobile-nav nav a {
  padding: 0.65rem 0.2rem;
  font-weight: 750;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

.hero {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100svh - var(--header-height));
  scroll-margin-top: var(--header-height);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at 77% 56%, #f4e9e6 0, transparent 52%), var(--paper);
}
.hero::before {
  position: absolute;
  z-index: -1;
  content: '';
  inset: 0;
  background-image: radial-gradient(#a891a3 0.8px, transparent 0.9px);
  background-size: 12px 12px;
  opacity: 0.24;
  mask-image: radial-gradient(ellipse 40% 65% at 81% 45%, black, transparent 95%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 0.65rem;
  padding-block: var(--intro-padding);
  align-content: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 0.65rem;
}
.hero h1 {
  margin: 0 0 1.25rem;
}
.hero-phrase {
  display: block;
  margin-top: 1.15rem;
}
.lead {
  max-width: 29rem;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.7rem;
  align-items: center;
  margin-top: 1.9rem;
}
.court {
  /* Keep the board's 640:510 projection within the space above its caption. */
  width: min(
    100%,
    max(
      13rem,
      calc(
        (100svh - var(--header-height) - var(--strip-height) - 2 * var(--intro-padding) - 3.5rem) * 640 / 510
      )
    )
  );
  justify-self: center;
  position: relative;
}
.diorama {
  width: 100%;
  aspect-ratio: 640/510;
  position: relative;
  isolation: isolate;
}
.portal {
  position: absolute;
  z-index: -2;
  left: 19.5%;
  top: 4.6%;
  width: 66%;
  height: 75%;
  overflow: hidden;
  border-radius: 50% 50% 43% 43% / 53% 53% 38% 38%;
  border: 5px solid #f4e8d4;
  box-shadow:
    0 0 0 1px #c6afba,
    inset 0 0 0 1px #b29abb;
  background: #dac9e5;
}
.portal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
}
.portal::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 24px #69527b36;
  border-radius: inherit;
  background: linear-gradient(0deg, #c3a3d3aa, transparent 57%);
}
.orbit {
  position: absolute;
  z-index: -3;
  inset: 1.6% 11.5% 15% 16%;
  border: 1px dashed #b6a8b8;
  border-radius: 48%;
  transform: rotate(-15deg);
}
.glint {
  position: absolute;
  display: block;
  width: 5.1%;
  aspect-ratio: 1;
}
.glint::before,
.glint::after {
  content: '';
  display: block;
  position: absolute;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 37%);
}
.glint::before {
  inset: 0;
}
.glint::after {
  width: 35%;
  height: 35%;
  left: 100%;
  top: -14%;
}
.glint-one {
  color: #aa7741;
  left: 14%;
  top: 20%;
  transform: rotate(-8deg);
}
.glint-two {
  width: 4.7%;
  color: #a47cb5;
  right: 1%;
  top: 40%;
  transform: rotate(9deg);
}
.glint-three {
  width: 2.35%;
  left: 12%;
  bottom: 18%;
  color: #ac89bc;
}
.ground-shadow {
  position: absolute;
  inset: 69% 11% 6% 13%;
  border-radius: 50%;
  background: #70596a;
  opacity: 0.22;
  filter: blur(11px);
  transform: rotate(-5deg);
}
/* A square maps onto the tabletop. The pieces stand upright over its cell centres. */
.board-base {
  position: absolute;
  left: 47.65%;
  top: 35%;
  width: 50%;
  aspect-ratio: 1;
  transform-origin: 0 0;
  transform: matrix(0.95, 0.34, -0.81, 0.48, 0, 0);
  border-radius: 4%;
}
.board-bottom {
  top: 39.5%;
  background: #47304f;
}
.board-band {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  background: linear-gradient(90deg, #8d6a99 8%, #a27dad 51%, #684a7e 55%, #906aa5 88%);
  clip-path: polygon(7.2% 64.5%, 47.65% 35%, 95.15% 55.7%, 95.15% 60.5%, 54.65% 90.8%, 7.2% 69.3%);
}
.board-top {
  padding: 1.85%;
  background: linear-gradient(125deg, #dfc6e9, #b991c9 37%, #ae88bd 68%, #d2b5da);
  border: 2px solid #745580;
  box-shadow:
    inset 0 0 0 2px #ead6ee,
    inset 0 0 0 5px #c3a2cc;
}
.board-checks {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #726071;
  border-radius: 2%;
  background-color: #e8d4d2;
  background-image:
    linear-gradient(135deg, #fff7da3b, transparent 55%, #85648618),
    conic-gradient(from 90deg, #918098 25%, #fff0d5 0 50%, #918098 0 75%, #fff0d5 0);
  background-size:
    100% 100%,
    66.66667% 66.66667%;
  box-shadow: inset 0 1px 5px #68576e80;
}
.sculpture {
  --lift: 0px;
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  width: auto;
  line-height: 0;
  transform: translate(-50%, -100%);
  border-radius: 48% 48% 18% 18%;
}
.sculpture {
  transition:
    left 0.28s ease-out,
    top 0.28s ease-out,
    opacity 0.2s;
}
.sculpture img {
  width: auto;
  height: 100%;
  max-width: none;
  position: relative;
  transform: translateY(var(--lift));
  transform-origin: center bottom;
  transition: transform 0.2s cubic-bezier(0.21, 0.7, 0.41, 1.22);
}
.choosing .sculpture[aria-pressed='false'] {
  opacity: 0.68;
}
.choosing .sculpture[aria-pressed='false'] img {
  transform: scale(0.92);
}
.landing-spots {
  position: absolute;
  z-index: 101;
  inset: 0;
  pointer-events: none;
}
.landing-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  min-width: 2.4rem;
  min-height: 2rem;
  padding: 0.25rem 0.4rem;
  border: 2px solid #ffefd8;
  border-radius: 50%;
  box-shadow: 0 2px 4px #37264066;
  background: #623b79;
  color: white;
  font: 850 0.78rem/1 var(--sans);
}
.landing-spot:hover,
.landing-spot:focus-visible {
  background: #3e284c;
}
.court-reset {
  border: 1px solid #b8a3c0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--purple);
  flex: 0 0 2rem;
  height: 2rem;
  padding: 0;
  font: 700 1.22rem/1 var(--sans);
}
.sculpture::before {
  content: '';
  position: absolute;
  left: 6%;
  right: -4%;
  bottom: -1%;
  height: 15%;
  transform: rotate(-8deg);
  border-radius: 50%;
  background: #412c49;
  filter: blur(3px);
  opacity: 0.35;
}
.sculpture:is(:hover, :focus-visible, [aria-pressed='true']) {
  --lift: -5px;
}
.sculpture:focus-visible {
  outline-offset: 0;
}
.king {
  left: 48.9%;
  top: 45%;
  height: 33%;
  z-index: 1;
}
.rook {
  left: 36%;
  top: 55.1%;
  height: 22%;
  z-index: 2;
}
.queen {
  left: 79.3%;
  top: 59.3%;
  height: 29.7%;
  z-index: 3;
}
.knight {
  left: 23%;
  top: 65.1%;
  height: 27.2%;
  z-index: 4;
}
.bishop {
  left: 53.4%;
  top: 78.5%;
  height: 28.3%;
  z-index: 5;
}
.piece-tag {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translate(-50%, 4px);
  white-space: nowrap;
  background: var(--ink);
  color: white;
  padding: 0.32rem 0.68rem;
  border-radius: 100px;
  font: 800 0.8rem/1.2 var(--sans);
  opacity: 0;
  transition:
    opacity 0.16s,
    transform 0.16s;
}
.sculpture:is(:focus-visible, [aria-pressed='true']) .piece-tag {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (hover: hover) {
  .sculpture:hover .piece-tag {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.court-caption {
  margin: -0.2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: #66596a;
  font-weight: 700;
  font-size: 0.91rem;
  line-height: 1.4;
  min-height: 2rem;
}
.caption-spark {
  color: var(--purple);
  font:
    1.65rem/1 Georgia,
    serif;
}
.court-caption strong {
  color: var(--ink);
  font-weight: 850;
}
.chapter-strip {
  background: #35253f;
  color: #fcf5e7;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--strip-height);
}
.strip-inner span:not(.strip-title) {
  text-transform: uppercase;
  font-size: 0.84rem;
  letter-spacing: 0.13em;
  font-weight: 800;
}
.strip-inner .strip-title {
  font: italic 1.5rem/1 var(--serif);
}
.strip-inner i {
  color: #dcc29a;
  font:
    normal 1.07rem/1 Georgia,
    serif;
}

.feature-section {
  overflow: clip;
  display: grid;
  align-content: center;
  padding-block: var(--section-padding);
  background: radial-gradient(ellipse at 18% 35%, #564252, transparent 62%), #2d2334;
  color: #fff6e8;
  border-block: 1px solid #65505e;
}
.gallery-wrap {
  width: min(89%, 82rem, 215svh);
  margin-inline: auto;
}
.capture-wall {
  display: grid;
  grid-template-columns: 2.04fr 1fr 1fr;
  gap: clamp(.85rem, 2vw, 2.2rem);
  align-items: center;
}
.capture {
  --angle: 1.5deg;
  --edge: #f6d59b;
  position: relative;
  display: block;
  min-width: 0;
  padding: clamp(.2rem, .5vw, .52rem);
  background: #fcf2de;
  color: #312335;
  border-radius: .2rem;
  box-shadow: 0 .6rem 1.4rem #180f2480;
  transform: rotate(var(--angle));
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.capture:first-child { grid-row: span 2; --angle: -2deg; }
.capture:nth-child(3) { --angle: -2deg; --edge: #98dfd5; }
.capture:nth-child(4) { --angle: -1deg; --edge: #ebbd8e; }
.capture:nth-child(5) { --angle: 2deg; --edge: #c8bcfa; }
.capture img { width: 100%; height: auto; border-radius: .08rem; }
.capture-label {
  display: block;
  padding: .44em .36em .22em;
  font: italic clamp(1rem, 1.45vw, 1.5rem)/1.15 var(--serif);
}
.capture:first-child .capture-label { font-size: clamp(1.4rem, 2.4vw, 2.35rem); }
.expand-mark {
  position: absolute;
  inset: .68rem .68rem auto auto;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #322539ed;
  color: var(--edge);
  font: 1.35rem/1 system-ui, sans-serif;
}
.capture:focus-visible { z-index: 1; outline: 3px solid #ffe3aa; transform: rotate(0) scale(1.025); }
@media (hover: hover) {
  .capture:hover { z-index: 1; transform: translateY(-.35rem) rotate(0) scale(1.025); box-shadow: 0 1rem 1.8rem #180f24a0; }
}
.gallery-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
  margin-top: clamp(1.5rem, 4vw, 4.5rem);
  padding-top: .8rem;
  border-top: 1px solid #ad98ac66;
  color: #efe2dc;
}
.gallery-footer .text-link { color: #ffdeaa; }
.capture-viewer {
  width: fit-content;
  max-width: 96vw;
  max-height: 96svh;
  padding: 0;
  border: 1px solid #d8c5b7;
  border-radius: .75rem;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.capture-viewer::backdrop { background: #1c1423ec; }
html:has(.capture-viewer[open]) { overflow: hidden; }
.viewer-frame { position: relative; }
.viewer-image {
  width: min(94vw, 1280px, max(16rem, calc((96svh - 7.5rem) * 1.6)));
  height: auto;
}
.viewer-bar, .viewer-controls { display: flex; align-items: center; }
.viewer-bar { justify-content: space-between; gap: .5rem 1.4rem; padding: .85rem clamp(.8rem, 2vw, 1.5rem); }
.viewer-bar h2 { font: italic clamp(1.3rem, 2.4vw, 2rem)/1.1 var(--serif); }
.viewer-bar p { margin-top: .35rem; font-size: .94rem; line-height: 1.35; }
.viewer-controls { gap: .45rem; flex: none; }
.viewer-count { min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer-controls button, .viewer-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #b5a3ba;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 1.4rem/1 system-ui, sans-serif;
}
.viewer-close { position: absolute; right: .5rem; top: .5rem; background: #30223a; color: white; }
.viewer-controls button:hover { background: #ebdfef; }
.language-link {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-weight: 850;
  font-size: .85rem;
  letter-spacing: .045em;
  color: var(--purple);
}
.language-link:hover { text-decoration: underline; }
.language-menu { position: relative; z-index: 5; }
.language-menu summary {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  list-style: none;
  font-size: .85rem;
  font-weight: 900;
  color: var(--purple);
  cursor: pointer;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu nav {
  position: absolute;
  top: calc(100% + .25rem);
  right: 0;
  min-width: 9rem;
  width: max-content;
  max-height: min(65dvh, 27rem);
  overflow-y: auto;
  padding: .3rem;
  background: #fff9ef;
  border: 1px solid #d3c0a8;
  border-radius: .65rem;
  box-shadow: 0 .5rem 1.25rem #32203825;
}
.language-menu .language-link { justify-items: start; padding: 0 .65rem; letter-spacing: 0; }
.language-menu [aria-current="page"] { background: #ede0f2; border-radius: .4rem; }
.game-facts { flex-basis: 100%; display: grid; gap: .25rem; margin: .75rem 0; font-size: .88rem; }
.recording-language { display: block; margin-top: .25rem; }
@media (max-width: 60rem) and (orientation: portrait) {
  .capture-wall { grid-template-columns: 1fr 1fr; }
  .capture:first-child { grid-area: auto / span 2; width: 77%; justify-self: center; }
  .wrap.gallery-wrap { width: min(86%, 60svh, 40rem); }
}
@media (max-width: 32rem) {
  .viewer-bar { flex-wrap: wrap; }
  .viewer-controls { margin-left: auto; }
  .capture-wall { gap: .75rem; }
  .capture-label { font-size: 1rem; }
  .gallery-footer { font-size: .94rem; }
  .masthead .header-inner { gap: .3rem; }
  .masthead .header-actions { gap: .12rem; }
  .masthead .wordmark { width: clamp(5.6rem, 25vw, 7.85rem); }
  .masthead .header-play { white-space: nowrap; padding-inline: .68rem; }
}
.sheet-scene {
  width: 100%;
  height: auto;
  border-radius: 0.65rem;
  box-shadow: 0 1rem 2.3rem #39233e26;
}
.sheet-copy > p:not(.eyebrow),
.demo-copy > p:not(.eyebrow),
.guide-copy p {
  color: var(--muted);
}
.atlas-section {
  background: #eee6f2;
  border-block: 1px solid #d8cbdc;
  padding-block: clamp(3.8rem, 6.5vw, 6.5rem);
}
.atlas-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 2.5rem;
}
.atlas-heading h2 {
  margin-top: 0.65rem;
}
.atlas-heading > p {
  max-width: 27rem;
  color: #65586a;
}
.atlas {
  display: grid;
  grid-template-columns: minmax(14.5rem, 0.75fr) minmax(0, 1.65fr);
  gap: clamp(1.8rem, 4.5vw, 4.7rem);
  align-items: start;
}
.room-list {
  display: grid;
  border-top: 1px solid #cbbbd1;
}
.room-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  border-bottom: 1px solid #cbbbd1;
  padding: 1.03rem 0.65rem;
  font-weight: 750;
  transition: background 0.15s;
}
.room-list a[aria-selected='true'],
.room-list a:hover {
  background: #e1d3e8;
  color: #533463;
}
.room-list a[aria-selected='true']::after {
  content: '✦';
  margin-left: auto;
  color: var(--purple);
}
.room-number {
  color: #60466b;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}
.room-pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 1.2rem;
}
.room-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: end;
  width: 100%;
  min-width: 0;
  min-height: 22.5rem;
  aspect-ratio: 1.96;
  border-radius: 1rem;
  background: #403247;
  color: #fff;
}
.room-page > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.room-page::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(30, 21, 39, 0.96),
    rgba(33, 25, 43, 0.74) 30%,
    rgba(31, 22, 43, 0.06) 76%
  );
}
.room-copy {
  padding: clamp(1.35rem, 3vw, 2.4rem);
}
.room-copy .eyebrow {
  color: #f8ddac;
}
.room-copy h3 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0.35rem 0;
}
.room-copy p:last-child {
  max-width: 36rem;
  line-height: 1.48;
}
.about-section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  scroll-margin-top: var(--header-height);
  background: #f7eff8;
}
.about-content {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.about-intro h2 { margin: .55rem 0 .75rem; }
.about-intro > p:last-child {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}
.about-facts,
.about-game-list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: .8rem 0;
  border-radius: 1rem;
  color: #fffaf3;
  background: #432756;
}
.about-facts li {
  display: grid;
  align-content: start;
  gap: .3rem;
  padding: .65rem clamp(.8rem, 2.5vw, 1.75rem);
}
.about-facts li + li { border-inline-start: 1px solid #fffaf34d; }
.about-facts strong {
  color: #ffe4a8;
  font: 400 clamp(1.85rem, 4vw, 3.35rem)/1.1 var(--serif);
}
.about-facts span { line-height: 1.35; }
.about-section h3 {
  margin: 0 0 .85rem;
  font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.15 var(--serif);
}
.about-game-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .75rem;
}
.about-game-list a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-content: start;
  align-items: center;
  column-gap: .65rem;
  row-gap: .35rem;
  min-height: 100%;
  padding: .85rem;
  border: 1px solid #dfcfe3;
  border-radius: .8rem;
  background: #fffcf8;
}
.about-game-list img { grid-row: span 2; width: 100%; height: auto; }
.about-game-list h4 { margin: 0; color: var(--purple); font-size: 1rem; line-height: 1.3; }
.about-game-list p { margin: 0; color: var(--muted); line-height: 1.45; }
.about-game-list a:is(:hover, :focus-visible) { border-color: var(--purple); }
.about-game-list a:is(:hover, :focus-visible) h4 { text-decoration: underline; }
.about-help {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.about-section :focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
@media (min-width: 67rem) {
  .about-game-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .about-game-list a { grid-template-columns: 1fr; gap: .45rem; }
  .about-game-list img { grid-row: auto; width: 3.5rem; }
}
@media (max-width: 47.5rem) {
  .about-help { grid-template-columns: 1fr; }
}
@media (max-width: 29rem) {
  .about-facts { grid-template-columns: 1fr; padding: 0 .85rem; }
  .about-facts li { grid-template-columns: minmax(5.5rem, auto) 1fr; gap: .85rem; align-items: baseline; padding: .85rem .25rem; }
  .about-facts li + li { border-inline-start: 0; border-top: 1px solid #fffaf34d; }
}
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 800;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.2rem;
  top: 1.05rem;
  width: 1.4rem;
  color: var(--purple);
  text-align: center;
  font: 600 1.3rem/1.4 var(--sans);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  color: var(--muted);
  padding-bottom: 1.1rem;
  max-width: 43rem;
}
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: calc(var(--footer-height) - 1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-inner .wordmark {
  width: 7.2rem;
}
.footer-inner p {
  color: var(--muted);
  font-size: 0.91rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
}
.footer-stores {
  display: flex;
  justify-content: center;
  padding-block: .35rem 1.4rem;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}
.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.sheet-intro {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-rows: auto 1fr;
}
.sheet-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 5.5vw, 5.7rem);
}
.sheet-copy h1 {
  margin: 0.8rem 0 1rem;
}
.sheet-copy .lead {
  max-width: 33rem;
}
.demo-section {
  padding-block: clamp(3.4rem, 6vw, 6rem);
  background: #eee6f2;
  border-block: 1px solid #d8cbdc;
}
.demo-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}
.demo-copy h2 {
  margin: 0.7rem 0 1.2rem;
}
.demo-copy p:not(.eyebrow) {
  max-width: 33rem;
}
.demo-copy .demo-goal {
  margin-top: 1rem;
  color: var(--ink);
}
.trial {
  width: min(100%, 21rem);
  margin-inline: auto;
  text-align: center;
}
.trial-board {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr));
  padding: 0.58rem;
  background: #bc9fca;
  border: 2px solid #7e6689;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow:
    0 5px 0 #80628c,
    0 0.7rem 1.2rem #37234125;
}
.trial-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #908596;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.trial-cell:nth-child(even) {
  background: #fff0d8;
}
.trial-cell img {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px #34243844);
}
.trial-cell[aria-pressed='true'] {
  box-shadow: inset 0 0 0 4px #59356c;
  background: #d9b9de;
}
.trial-cell.legal::before {
  content: '';
  background: #74528c;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff8;
}
.trial-cell:focus-visible {
  z-index: 1;
  outline-offset: -4px;
  outline-color: #382244;
}
.trial-status {
  min-height: 3.1rem;
  padding-top: 0.85rem;
  font-weight: 750;
  color: #51395d;
  font-size: 0.97rem;
}
.trial-reset {
  border: 0;
  background: none;
  padding: 0.35rem 0.7rem;
  color: #59396d;
}
.guide-copy {
  padding-block: clamp(3.4rem, 6vw, 6rem);
}
.guide-copy h2 {
  margin-bottom: 1rem;
}
.guide-copy p {
  max-width: 46rem;
}
.guide-copy p + p {
  margin-top: 0.8rem;
}
.guide-copy .button {
  margin-top: 1.5rem;
}

.series-opening {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  color: #fff6e4;
  background: #29245c linear-gradient(#23154c, #254f70);
  background-image: linear-gradient(180deg, #22163e40, transparent 52%, #17344029), url('assets/series-lagoon-wide.webp');
  background-size: cover;
  background-position: center;
  overflow: clip;
}
.series-opening .series-spread {
  width: min(96%, 100rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.6rem, 1.5svh, 1.25rem);
  padding-block: clamp(.8rem, 2svh, 2rem);
}
.series-story { text-align: center; text-shadow: 0 2px 14px #201436b0; }
.series-story .eyebrow { justify-content: center; color: #ffdfa8; }
.series-story .brand-eyebrow { color: #fff; }
.brand-word { color: inherit; white-space: nowrap; }
.brand-z { color: #ffd447; }
.series-story h1 {
  margin: .28rem auto .4rem;
  font-size: clamp(2.7rem, min(6.4vw, 9svh), 6.7rem);
  line-height: 1.04;
}
.series-story h1 em { color: #ffe0a3; }
.series-story .lead {
  margin: 0 auto;
  max-width: 60ch;
  color: #fff5eb;
  font-size: clamp(.95rem, 1.25vw, 1.25rem);
  line-height: 1.4;
}
.series-island {
  position: relative;
  isolation: isolate;
  width: min(65vw, 58rem, max(16rem, calc((100svh - var(--header-height) - 17rem) * 1.31)));
}
.series-island > img { width: 100%; height: auto; position: relative; }
.series-island::before {
  content: '';
  position: absolute;
  inset: 80% 4% 1%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #102c55ac 14%, #559d9f63 55%, transparent 73%);
  box-shadow: 0 5px 2px -4px #d4fff798, 0 18px 1px -13px #a4ffff65;
}
.island-pin {
  z-index: 3;
  --leader: clamp(1rem, 3.2vw, 4rem);
  position: absolute;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: clamp(7.25rem, 13vw, 14rem);
  min-height: 44px;
  top: 24%;
  transform: translateY(-50%);
  border-radius: .8rem;
}
.island-pin > img { width: 100%; height: auto; filter: drop-shadow(0 3px 4px #1e173eaa); transition: transform .2s; }
.island-pin > span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.island-pin::before, .island-pin::after { content: ''; position: absolute; top: 50%; pointer-events: none; }
.island-pin::before { height: 1px; width: var(--leader); background: #fff2c5; box-shadow: 0 1px 3px #382c50; }
.island-pin::after { width: 7px; height: 7px; border: 1px solid #a37c42; background: #ffedbe; transform: translateY(-50%) rotate(45deg); }
.pin-the-little-royals, .pin-urikito { right: 94%; }
.pin-rope-mess, .pin-cargo-go, .pin-bump-knights { left: 94%; }
.pin-the-little-royals::before, .pin-urikito::before { left: 100%; }
.pin-the-little-royals::after, .pin-urikito::after { left: calc(100% + var(--leader) - 2px); }
.pin-rope-mess::before, .pin-cargo-go::before, .pin-bump-knights::before { right: 100%; }
.pin-rope-mess::after, .pin-cargo-go::after, .pin-bump-knights::after { right: calc(100% + var(--leader) - 2px); }
.pin-urikito, .pin-cargo-go { top: 54%; }
.pin-bump-knights { top: 86%; left: 84%; }
.island-pin:is(:hover, :focus-visible) img { transform: translateY(-4px) scale(1.055); }
.series-island .island-face, .series-island .island-arrows {
  position: absolute;
  pointer-events: none;
}
.island-face { z-index: 1; }
.island-arrows { inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; }
.island-arrows path {
  fill: none;
  stroke: #ffe6aa;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px #49234d);
}
.island-arrows .arrow-tip { fill: #fff1c9; stroke-width: 1; }
.series-island.has-arrows .island-pin::before,
.series-island.has-arrows .island-pin::after { display: none; }
.has-arrows .island-pin > img, .has-arrows .island-pin > span {
  transform: translate(var(--drift-x, 0px), var(--drift-y, 0px)) scale(var(--logo-scale, 1));
  transition: none;
}
.has-arrows .island-pin:is(:hover, :focus-visible) > img {
  transform: translate(var(--drift-x), var(--drift-y)) scale(var(--logo-scale));
}
.series-opening :focus-visible { outline: 3px solid #fff4ba; outline-offset: 3px; }
.store-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  width: min(100%, 22rem);
  gap: .5rem;
  scroll-margin-top: var(--header-height);
}
.store-badge {
  position: relative;
  display: block;
  width: 100%;
  max-height: 2.75rem;
  aspect-ratio: 3.4;
  overflow: clip;
}
.store-badge img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translate(-50%, -50%);
}
/* Scale out the transparent padding in the Google Play PNGs: 192px of
   visible artwork in a 250px image, or 168px in the English badge. */
.store-badge.google-play img { height: calc(100% * 250 / 192); }
.store-badge.google-play:lang(en) img { height: calc(100% * 250 / 168); }
.game-stores { width: min(100%, 16rem); }
.preview-spread .game-stores { margin-top: .75rem; }
@media (orientation: portrait) {
  .series-opening { background-image: linear-gradient(#21154338, transparent 55%, #17344024), url('assets/series-lagoon-tall.webp'); }
  .series-opening .series-spread { justify-content: space-evenly; }
  .series-story { max-width: 90%; }
  .series-story h1 { font-size: clamp(2.55rem, 8.5vw, 5.8rem); }
  .series-story .lead { max-width: 44ch; margin-top: .75rem; }
  .series-island { width: min(78vw, 77svh); }
  .island-pin { width: 15vw; }
  .pin-the-little-royals, .pin-urikito { right: 88%; }
  .pin-rope-mess, .pin-cargo-go, .pin-bump-knights { left: 88%; }
}
@media (max-width: 42rem) {
  .series-story h1 { margin-block: .5rem; font-size: clamp(1.6rem, 8vw, 3.55rem); }
  .series-story .lead { max-width: 33ch; }
  .series-story .eyebrow { font-size: .67rem; }
  .series-island { width: min(100%, 75svh, max(15rem, calc((100svh - var(--header-height) - 12.2rem) * 1.31))); }
  .island-pin { width: auto; transform: translate(-50%, -50%); top: 31%; }
  .pin-the-little-royals, .pin-urikito { right: auto; left: 27%; }
  .pin-rope-mess, .pin-cargo-go, .pin-bump-knights { left: 74%; }
  .pin-urikito, .pin-cargo-go { top: 63%; }
  .pin-bump-knights { top: 94%; left: 50%; }
}
@media (max-width: 19rem) {
  .series-story, .series-story .lead { max-width: 100%; }
  .series-story .lead { font-size: .875rem; }
}
@media (max-width: 42rem), (orientation: landscape) and (max-height: 30rem) {
  .island-pin img, .island-pin::before, .island-pin::after { display: none; }
  .island-pin > span {
    position: static; width: auto; height: auto; overflow: visible; clip-path: none;
    padding: .23rem .64rem; border: 1px solid #f4d7a5; border-radius: 1rem;
    background: #fff1d7; color: var(--pin-ink); box-shadow: 0 2px 5px #49333b80;
    font: 900 clamp(.73rem, 2.6vw, .9rem)/1.35 var(--sans); white-space: nowrap;
  }
  .pin-the-little-royals { --pin-ink: #633d84; }
  .pin-rope-mess { --pin-ink: #115e59; }
  .pin-urikito { --pin-ink: #2058a7; }
  .pin-cargo-go { --pin-ink: #994015; }
  .pin-bump-knights { --pin-ink: #38485e; }
  .island-pin:is(:hover, :focus-visible) span { background: white; text-decoration: underline; }
}
@media (orientation: portrait) and (max-height: 32rem) {
  .series-story .lead { margin-top: .4rem; line-height: 1.3; }
  .series-island { width: min(100%, max(12rem, calc((100svh - var(--header-height) - 16rem) * 1.31))); }
  .island-pin > span { padding-inline: .35rem; font-size: .69rem; }
}
@media (orientation: landscape) and (max-height: 30rem) {
  .series-opening { background-image: linear-gradient(90deg, #211639bd, #21163970 37%, transparent 66%), url('assets/series-lagoon-wide.webp'); }
  .series-opening .series-spread {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto;
    width: min(92%, 66rem);
    justify-items: center;
    align-content: center;
    column-gap: clamp(.6rem, 3vw, 2.4rem);
    row-gap: .65rem;
    padding-block: .65rem;
  }
  .series-story { grid-area: 1 / 1; align-self: end; }
  .series-story .eyebrow { font-size: .64rem; }
  .series-story h1 { margin: .45rem 0; font-size: clamp(1.55rem, min(4.85vw, 8.6svh), 3.25rem); }
  .series-story h1 :is(span, em) { display: block; }
  .series-story .lead { font-size: clamp(.86rem, 3.5svh, 1.05rem); line-height: 1.3; }
  .series-island { grid-area: 1 / 2 / span 2; width: min(100%, calc((100svh - var(--header-height) - 1.7rem) * 1.31)); }
  .island-pin { width: auto; top: 31%; transform: translate(-50%, -50%); }
  .island-pin > span { font-size: .76rem; }
  .pin-the-little-royals, .pin-urikito { right: auto; left: 27%; }
  .pin-rope-mess, .pin-cargo-go { left: 74%; }
  .pin-urikito, .pin-cargo-go { top: 63%; }
  .pin-bump-knights { top: 91%; left: 50%; }
  .series-opening .store-buttons { grid-area: 2 / 1; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .island-pin > img { transition: none; }
  .island-pin:is(:hover, :focus-visible) img { transform: none; }
}
.game-notes { padding-block: clamp(2.2rem,6vw,5.5rem); background: #efe4ef; }
.game-notes h2 { margin-bottom: 1.3rem; }
.game-note-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.game-note-list article { border-top: 2px solid #a984a8; padding-top: .85rem; }
.game-note-list h3 { font-size: 1.55rem; line-height: 1.2; }
.game-note-list p { margin-top: .5rem; }
@media (max-width: 47.5rem) {
  .game-note-list { grid-template-columns: 1fr; }
}
.game-library {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-block: clamp(1.25rem, 4.4svh, 3.5rem);
  background: radial-gradient(ellipse at 8% 45%, #eadcc9, transparent 52%),
    radial-gradient(ellipse at 92% 33%, #f0decc, transparent 50%), #faf4e8;
}
.collection-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.25rem; }
.collection-heading h2 { font-size: clamp(2.15rem, min(4.6vw, 6.7svh), 4.6rem); }
.collection-heading h2 img { display: inline-block; width: 3.6em; height: auto; vertical-align: -.14em; }
.collection-access { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1rem; max-width: 100%; padding: .55rem .65rem; border: 1px solid #cfb7d3; border-radius: .95rem; background: #f3e6f2; }
.collection-access p { max-width: 23ch; color: #4c3651; font: 800 .86rem/1.3 var(--sans); text-wrap: pretty; }
.collection-stores { width: min(100%, 16rem); }
.collection [data-game="the-little-royals"] { --accent: #714293; --wash: #e6d7ed; }
.collection [data-game="rope-mess"] { --accent: #17685c; --wash: #d5e6d5; }
.collection [data-game="urikito"] { --accent: #355e99; --wash: #dbe4f2; }
.collection [data-game="cargo-go"] { --accent: #964a24; --wash: #f5debc; }
.collection [data-game="bump-knights"] { --accent: #45516f; --wash: #dedfe8; }
.game-selector {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .3rem;
  margin-block: clamp(.8rem, 2.5svh, 2rem) clamp(.9rem, 1.9svh, 1.4rem);
  border-bottom: 1px solid #cbbda7;
}
.game-choice {
  display: flex; gap: clamp(.25rem, .8vw, .9rem); align-items: center; justify-content: center;
  position: relative; color: #4b404d; min-height: 48px; padding: .18rem .1rem .62rem;
  font: 850 clamp(.84rem,1.16vw,1.05rem)/1.13 var(--sans); text-align: center;
}
.game-choice::after { content: ''; position: absolute; left: 5%; right: 5%; bottom: -2px; height: 4px; border-radius: 4px; background: transparent; }
.game-choice > span:last-child { min-width: 0; }
.game-choice[aria-selected="true"] { color: var(--accent); }
.game-choice[aria-selected="true"]::after { background: var(--accent); }
.game-token {
  width: clamp(2.8rem, 6.7svh, 4.6rem); aspect-ratio: 1; flex: none; display: grid; place-items: center;
  border: 1px solid #cabaa3; border-radius: 50%; overflow: clip; position: relative;
  background: radial-gradient(circle at 40% 24%, #fffaf0, var(--wash) 80%);
  box-shadow: inset 0 0 0 3px #fff8e9, 0 2px 3px #66463224;
}
.game-token img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.game-choice:is(:hover,:focus-visible,[aria-selected="true"]) .game-token { border-color: var(--accent); }
.game-choice:is(:hover,:focus-visible) .game-token img { transform: scale(1.06); }
.game-display {
  position: relative; isolation: isolate; overflow: clip; display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(1.2rem, 3.5svh, 2.8rem) clamp(1.5rem, 3vw, 3rem);
  border: 1px solid #715440; border-radius: 1.5rem; color: #fff8ed; background: #3e2e40 var(--scene) center/cover;
  box-shadow: 0 .25rem 0 #b8976e, 0 1rem 2rem -.9rem #51385463;
}
.game-display::before {
  content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, #271e30f5 5%, #322435ef 31%, #392b3596 60%, #402a3d29);
}
.game-display + .game-display { margin-top: 1rem; }
.game-display[role="tabpanel"] { margin-top: 0; }
.display-copy { max-width: 27rem; }
.display-copy h3 img { width: min(100%, 15rem, 29svh); height: auto; filter: drop-shadow(0 3px 4px #25132380); }
.display-count { margin-top: .6rem; color: #ffe19e; font: 850 .78rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.display-description { margin-top: .45rem; font-size: clamp(.98rem,1.3vw,1.23rem); line-height: 1.45; text-wrap: pretty; }
.display-links { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.15rem; margin-top: clamp(.7rem, 2.4svh, 1.55rem); }
.display-play { min-height: 44px; max-width: 100%; padding: .55rem 1.12rem; gap: .55rem; background: #ffdfa3; color: #39253a; box-shadow: 0 3px 0 #a77844; }
.display-play .play-icon { flex: none; }
.display-play:hover { background: #fff0d3; }
.display-detail { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font: 800 .94rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: .25em; }
.display-links :focus-visible { outline-color: #ffe096; }
.display-shot { justify-self: center; width: min(100%, 82svh); border: clamp(3px,.4vw,6px) solid #ffebc8; border-radius: .8rem; background: #201929; overflow: hidden; box-shadow: 0 3px 0 #9b754f, 0 .7rem 1.4rem #24182888; }
.game-film { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: #201929; }
.royal-film { padding: .55rem; border: 1px solid #c4af93; border-radius: .75rem; background: #fff8ea; box-shadow: 0 .4rem 1.5rem #533f562e; }
.royal-film video { border-radius: .35rem; }
.royal-film figcaption { padding: .55rem .25rem .1rem; font: italic 1.05rem/1.35 var(--serif); }
.royal-practice { padding-block: clamp(1.8rem,5vw,4.5rem); background: #eee0cc; }
.royal-practice .practice-stage { width: min(100%,46rem); margin-inline: auto; }
@media (max-width: 58rem) {
  .game-choice { flex-direction: column; gap: .33rem; }
  .game-display { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 1rem; padding: 1.25rem; }
}
@media (max-width: 47.5rem) and (orientation: portrait) {
  .collection-heading { flex-direction: column; align-items: stretch; gap: .65rem; }
  .collection-heading h2 { font-size: clamp(1.85rem, 7.4vw, 3.65rem); }
  .collection-access p { font-size: .8rem; }
  .game-selector { align-items: stretch; gap: 0; margin-block: .8rem 1rem; }
  .game-choice { justify-content: flex-start; padding: .1rem .1rem .55rem; font-size: clamp(.66rem,2.5vw,.92rem); }
  .game-token { width: clamp(2.45rem, 11vw, 3.7rem); }
  .game-display { grid-template-columns: minmax(0,1fr); padding: .9rem; gap: .9rem; border-radius: 1rem; }
  .game-display::before { background: linear-gradient(to top,#251b2bed 20%,#322434dc 63%,#43364950); }
  .display-shot { grid-row: 1; width: 100%; }
  .display-copy { max-width: none; padding-inline: .15rem; }
  .display-copy h3 img { width: clamp(7.4rem, 32vw, 11.5rem); }
  .display-count { margin-top: .38rem; font-size: .69rem; }
  .display-description { font-size: .97rem; }
  .display-links { margin-top: .68rem; }
}
@media (orientation: landscape) and (max-height: 30rem) {
  .game-library { padding-block: .65rem; }
  .game-selector { margin-block: .45rem .6rem; }
  .game-choice { flex-direction: row; align-items: center; padding-bottom: .32rem; }
  .game-token { width: 2rem; }
  .collection-heading h2 { font-size: 1.9rem; }
  .display-copy h3 img { width: 7rem; }
  .game-display { padding: .65rem 1rem; }
  .display-description { font-size: .9rem; line-height: 1.32; }
  .display-shot { width: min(100%, 74svh); }
  .display-links, .display-count { margin-top: .3rem; }
}
@media (orientation: landscape) and (max-height: 30rem) and (max-width: 46rem) {
  .game-choice { flex-direction: column; justify-content: flex-start; }
}
@media (orientation: portrait) and (max-width: 22.5rem) {
  .collection-access { flex-wrap: wrap; gap: .4rem; padding: .4rem; }
  .collection-access p { max-width: none; padding-inline: .3rem; }
  .collection-stores { width: 100%; }
  .game-selector { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; border-bottom: 0; }
  .game-choice { grid-column: span 2; justify-content: center; min-height: 3.9rem; padding: .25rem; font-size: .76rem; }
  .game-choice:nth-child(4) { grid-column: 2 / span 2; }
  .game-choice[aria-selected="true"] { border-radius: .65rem; background: var(--wash); }
  .game-choice::after { left: 24%; right: 24%; bottom: 0; height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-token img { transition: none; }
  .game-choice:is(:hover,:focus-visible) .game-token img { transform: none; }
}
@media (orientation: portrait) and (max-height: 42rem) {
  .game-library { padding-block: .7rem; }
  .game-library .collection { width: 94%; }
  .collection-heading { gap: .55rem; }
  .collection-heading h2 { font-size: 1.8rem; }
  .game-selector { margin-block: .4rem .5rem; }
  .game-token { width: 2.15rem; }
  .game-choice { gap: .16rem; padding-bottom: .3rem; }
  .game-display { padding: .65rem; gap: .55rem; }
  .display-copy { display: grid; grid-template-columns: 5.7rem 1fr; align-items: center; gap: .3rem .65rem; }
  .display-copy h3 img { width: 100%; }
  .display-count, .display-description, .display-links { margin: 0; }
  .display-description, .display-links { grid-column: 1 / -1; }
  .display-description { font-size: .88rem; line-height: 1.35; }
  .display-links { gap: .55rem; }
  .display-play { padding: .45rem .75rem; font-size: .84rem; }
  .display-detail { font-size: .83rem; }
}
.preview-stage { min-height: calc(100svh - var(--header-height)); display: grid; align-content: center; padding-block: var(--section-padding); background: radial-gradient(ellipse at 85% 50%,#e8d7e7,transparent 65%), #faf4e8; }
.preview-spread { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(1.25rem,4vw,4.5rem); align-items: center; }
.preview-spread h1 img { width: min(100%, 27rem, 60svh); height: auto; margin-block: 1.3rem; }
.preview-lead { font: italic clamp(1.4rem,2.2vw,2.25rem)/1.18 var(--serif); margin: .75rem 0 1.3rem; }
.preview-photo { padding: .6rem; width: min(100%, 91svh); justify-self: center; background: #fff9ee; border: 1px solid #d4c4ae; border-radius: .75rem; box-shadow: 0 .8rem 1.6rem #46334422; }
.preview-photo video { border-radius: .35rem; }
.preview-photo img { width: 100%; height: auto; }
.preview-photo figcaption { font: italic 1.15rem/1.4 var(--serif); padding: .5rem .3rem .1rem; }
.preview-rules { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 1.5rem; padding-block: clamp(2rem,8vw,8rem); }
.preview-rules p + p { margin-top: .8rem; }
@media (max-width: 55rem) and (orientation: portrait) {
  .preview-spread, .preview-rules { grid-template-columns: minmax(0,1fr); max-width: 40rem; }
  .preview-spread h1 img { width: min(72%, 17rem); margin-block: .65rem; }
  .preview-lead { margin: .55rem 0 .85rem; font-size: clamp(1.18rem, 4.7vw, 1.7rem); }
  .preview-photo figcaption, .royal-film figcaption { font-size: .98rem; }
}

/* The small goal card and the playable board share the garden's proscenium. */
.royal-opening {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-rows: auto 1fr;
  background: radial-gradient(ellipse at 78% 60%, #e8d8b9, transparent 52%), #faf4e8;
}
.royal-stage {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  align-items: center;
  gap: clamp(1.8rem,5vw,5rem);
  padding-block: clamp(1rem,4svh,3rem);
}
.royal-story { max-width: 33rem; }
.royal-story h1 { margin: clamp(.65rem,2.5svh,1.8rem) 0; }
.royal-story h1 img { width: min(100%, 27rem, 61svh); height: auto; }
.royal-pitch { font: italic clamp(1.45rem,2.5vw,2.35rem)/1.15 var(--serif); letter-spacing: -.035em; }
.royal-lead { margin-top: .6rem; color: var(--muted); max-width: 32rem; }
.royal-links, .campaign-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.royal-links { margin-top: clamp(.8rem,2.5svh,1.65rem); gap: .65rem 1rem; }
.royal-links .game-facts { margin: .15rem 0; }
.practice-stage {
  --board: min(23vw, 36svh, 21rem);
  position: relative;
  isolation: isolate;
  text-align: center;
  color: #fff7e8;
  padding: clamp(2rem,5svh,4.5rem) 1rem 1rem;
  min-width: 0;
}
.practice-stage::before, .practice-stage::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: 50% 50% .9rem .9rem / 31% 31% .9rem .9rem;
}
.practice-stage::before {
  background: linear-gradient(180deg,#211d2cd9, #35244438 36%, #2e1c3699 70%, #302036 96%), url('assets/salas/garden.webp') center 55%/cover;
  border: 2px solid #b49965;
  box-shadow: 0 .85rem 2rem #5442242e;
}
.practice-stage::after { inset: .45rem; border: 1px solid #fff1c58c; pointer-events: none; }
.practice-stage h2 { font: italic clamp(1.55rem,3.2vw,3.2rem)/1.12 var(--serif); letter-spacing: -.035em; text-shadow: 0 1px 8px #302035; }
.practice-tables { display: flex; gap: clamp(.6rem,1.7vw,2rem); align-items: center; justify-content: center; margin-block: clamp(.9rem,3.5svh,2.3rem) .4rem; }
.practice-board { width: var(--board); }
.target-card { width: calc(var(--board)*.53); padding: .45rem; background: #fff4d7; border: 1px solid #bc9860; border-radius: .48rem; color: #40253e; transform: rotate(-5deg); box-shadow: 0 .5rem .8rem #1d102952; }
.target-grid { display: grid; grid-template: repeat(3,minmax(0,1fr)) / repeat(3,minmax(0,1fr)); width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: .18rem; }
.target-grid span { min-width: 0; min-height: 0; display: grid; place-items: center; background: #aa9bad; }
.target-grid span:nth-child(even) { background: #f3e5d0; }
.target-grid img { width: 80%; height: 80%; object-fit: contain; }
.target-card figcaption { font: italic clamp(.8rem,1.25vw,1.13rem)/1.3 var(--serif); margin-top: .3rem; }
.practice-stage .trial-status { color: #fff7ed; min-height: 2.5rem; padding: .45rem .3rem 0; text-shadow: 0 1px 4px #281229; }
.practice-stage .trial-reset { color: white; margin: 0 auto; }
.practice-stage { padding-bottom: 2.6rem; }
.practice-stage .trial-reset { position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.royal-campaign { color: #fff6e5; background: radial-gradient(ellipse at 85% 60%, #48334f, transparent 70%), #291e30; padding-block: var(--section-padding); min-height: calc(100svh - var(--footer-height)); display: grid; align-items: center; }
.campaign-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: clamp(1rem,3svh,2rem); }
.campaign-heading h2 { font-size: clamp(2.2rem,4.6vw,4.8rem); }
.campaign-heading em { color: #e8c78e; }
.campaign-heading p { max-width: 26rem; color: #e6d8e4; line-height: 1.45; }
.campaign-index { margin: 0; padding: 0; border: 0; min-width: 0; position: relative; display: grid; grid-template-columns: minmax(12rem,.7fr) minmax(0,1.3fr); column-gap: clamp(1.5rem,4vw,5rem); }
.visually-hidden, .room-choice { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.room-key { grid-area: var(--row) / 1; display: flex; align-items: center; gap: .8rem; padding: .45rem .7rem; border-block-start: 1px solid #78687a; color: #e8dce7; font: 1.2rem/1.2 var(--serif); cursor: pointer; }
.room-key img { width: clamp(2.8rem,5vw,4.9rem); height: clamp(2.3rem,6svh,3.5rem); border-radius: .2rem; object-fit: cover; }
.room-key small { display: block; font: 700 .72rem/1.5 var(--sans); letter-spacing: .04em; }
.room-choice:checked + .room-key { color: #362535; background: #f2d8a6; border-radius: .22rem; }
.room-choice:focus-visible + .room-key { outline: 3px solid #fff; outline-offset: 3px; z-index: 1; }
.chapter-preview { grid-area: 1 / 2 / span 5; display: none; align-self: center; justify-self: end; width: min(100%, 84svh); }
.room-choice:checked + .room-key + .chapter-preview { display: block; }
.chapter-preview > img { width: 100%; height: auto; border: 1px solid #756176; border-radius: .5rem; }
.chapter-preview figcaption { padding-top: .65rem; }
.chapter-name { display: none; }
.chapter-preview h3 { font-size: clamp(1.45rem,2.2vw,2.2rem); line-height: 1.12; }
.chapter-preview p, .campaign-foot p { margin-top: .25rem; color: #e6d8e4; font-size: .97rem; line-height: 1.45; }
.campaign-foot { justify-content: space-between; border-top: 1px solid #726174; margin-top: clamp(.8rem,3svh,2.2rem); padding-top: .7rem; }
.campaign-foot .text-link { color: #ffe2a9; }
@media (max-width: 55rem) and (orientation: portrait) {
  .royal-stage { grid-template-columns: minmax(0,1fr); max-width: 38rem; gap: 1.15rem; padding-block: 1rem; align-content: center; }
  .royal-story { max-width: none; }
  .royal-story h1 img { width: min(57%, 23svh, 18rem); }
  .practice-stage { --board: min(45vw,25svh,16rem); padding-top: 1.7rem; }
  .royal-opening .breadcrumbs { padding-top: .7rem; }
  .royal-lead { line-height: 1.4; }
  .campaign-heading { display: block; }
  .campaign-heading p { margin-top: .7rem; }
  .campaign-index { grid-template-columns: repeat(5, minmax(0,1fr)); gap: .9rem .3rem; }
  .room-key { grid-area: 1 / var(--row); padding: .25rem; border: 1px solid #827483; border-radius: .3rem; }
  .room-key img { width: 100%; height: clamp(2.4rem,8vw,4rem); }
  .room-key span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .chapter-preview { grid-area: 2 / 1 / auto / span 5; width: 100%; }
  .chapter-name { display: block; margin-bottom: .25rem; font-weight: 750; color: #f1ce93; }
  .chapter-preview > img { height: auto; }
}
@media (orientation: landscape) and (max-height: 32rem) {
  .royal-story h1 img { width: min(100%,30svh); }
  .royal-stage { gap: 1rem; padding-block: .5rem; }
  .royal-story h1, .royal-links { margin-block: .4rem; }
  .royal-stage .royal-lead { font-size: .93rem; line-height: 1.35; }
  .practice-stage { --board: min(22vw,39svh); padding-top: 1.6rem; }
  .royal-opening .breadcrumbs { padding-top: .35rem; }
  .royal-campaign { padding-block: .8rem; }
  .campaign-heading { margin-bottom: .6rem; }
  .chapter-preview { width: min(100%, 68svh); }
  .chapter-preview figcaption { padding-top: .3rem; }
  .campaign-foot { margin-top: .5rem; padding-top: .4rem; }
  .room-key { padding: .16rem .45rem; font-size: 1rem; }
  .room-key img { height: 2rem; }
}
@media (max-width: 32rem) and (orientation: portrait) {
  .royal-stage { padding-block: .8rem; gap: 1rem; }
  .royal-story h1 { margin: .6rem 0; }
  .royal-links { margin-top: .8rem; }
  .practice-tables { margin-top: .85rem; }
  .practice-stage { padding-bottom: 2.25rem; }
}

@media (min-width: 1550px) {
  .wrap {
    width: min(84rem, 88%);
  }
}
@media (max-width: 58rem) {
  .header-inner {
    gap: 1rem;
  }
  .main-nav {
    gap: 1.25rem;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
  h1 {
    font-size: clamp(3.5rem, 7.8vw, 4.7rem);
  }
  .hero-actions {
    gap: 0.9rem 1.1rem;
  }
  .atlas {
    gap: 1.4rem;
  }
  .atlas-heading {
    gap: 2rem;
  }
  .atlas-heading > p {
    max-width: 22rem;
  }
}
@media (min-width: 47.501rem) and (max-width: 58rem) {
  .hero h1 {
    font-size: clamp(3.1rem, 6.8vw, 3.9rem);
  }
  .hero-actions .button {
    padding-inline: 1rem;
  }
  .strip-inner {
    gap: 0.6rem;
  }
  .strip-inner span {
    white-space: nowrap;
  }
  .strip-inner .strip-title {
    font-size: 1.2rem;
  }
  .strip-inner span:not(.strip-title) {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
}
@media (max-width: 47.5rem) {
  .wrap {
    width: min(91%, 39rem);
  }
  .header-play {
    min-height: 2.65rem;
    padding: 0.6rem 0.95rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: clamp(0.75rem, 2.2svh, 1.6rem);
    gap: clamp(0.5rem, 1.4svh, 1rem);
  }
  .hero-copy {
    padding: 0;
  }
  h1 {
    font-size: clamp(3.25rem, 10.8vw, 4.9rem);
  }
  .hero h1 {
    margin: 0 0 0.85rem;
  }
  .hero-phrase {
    margin-top: 0.8rem;
  }
  .hero-copy .lead {
    max-width: 31rem;
    line-height: 1.45;
  }
  .hero-actions {
    margin-top: 1.2rem;
  }
  .court {
    width: min(100%, 30rem, max(14rem, calc(100svh - 25rem)));
  }
  .court-caption {
    margin-top: -0.45rem;
    min-height: 2.25rem;
  }
  .strip-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
    padding-block: 0.6rem;
    text-align: center;
  }
  .strip-inner i {
    display: none;
  }
  .strip-inner .strip-title {
    font-size: 1.18rem;
  }
  .strip-inner span:not(.strip-title) {
    font-size: 0.75rem;
    letter-spacing: 0.09em;
  }
  .atlas,
  .sheet-hero,
  .demo-inner {
    grid-template-columns: 1fr;
  }
  .feature-section {
    padding-block: clamp(2rem, 5svh, 3.3rem);
  }
  .atlas-heading {
    display: block;
    margin-bottom: 1.45rem;
  }
  .atlas-heading > p {
    max-width: 34rem;
    margin-top: 0.8rem;
  }
  .atlas {
    gap: 1.1rem;
  }
  .room-list {
    display: flex;
    gap: 0.45rem;
    padding: 0.3rem 0.2rem 0.55rem;
    border: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .room-list a {
    gap: 0.45rem;
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    border: 1px solid #c7b6cd;
    border-radius: 2rem;
    font-size: 0.94rem;
  }
  .room-list a[aria-selected='true'] {
    background: #563e66;
    color: #fff;
  }
  .room-list a[aria-selected='true'] .room-number {
    color: #ecdaef;
  }
  .room-list a[aria-selected='true']::after {
    content: none;
  }
  .room-page {
    width: 100%;
    min-height: 18rem;
    aspect-ratio: 1.5;
  }
  .footer-inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-block: 1.5rem;
    gap: 0.7rem 1.25rem;
  }
  .footer-inner p {
    order: 2;
    width: 100%;
  }
  .footer-links {
    margin-left: auto;
  }
  .sheet-hero {
    gap: 2.25rem;
    align-content: center;
  }
  .demo-inner {
    gap: 1.65rem;
  }
}

@media (orientation: landscape) and (max-height: 32rem) {
  .preview-stage { padding-block: .7rem; }
  .preview-spread, .royal-stage { gap: clamp(.65rem, 2vw, 1.65rem); }
  .preview-rules h2 { font-size: clamp(1.8rem, 5vw, 3.8rem); }
  .preview-spread h1 img, .royal-story h1 img { width: min(100%, 36svh, 12rem); margin-block: .35rem; }
  .preview-spread .eyebrow, .royal-story .eyebrow { font-size: .68rem; }
  .preview-lead, .royal-pitch { font-size: clamp(1rem, 4.4svh, 1.45rem); margin-block: .35rem; }
  .royal-stage .royal-lead { font-size: .86rem; }
  .preview-spread .button, .royal-links .button { padding: .4rem .85rem; min-height: 44px; font-size: .88rem; }
  .preview-stage .game-facts, .royal-links .game-facts { margin: .3rem 0; font-size: .76rem; line-height: 1.35; }
  .preview-photo, .royal-film { width: min(100%, 94svh); justify-self: center; padding: .35rem; }
  .preview-photo figcaption, .royal-film figcaption { font-size: .86rem; line-height: 1.25; padding: .35rem .2rem .1rem; }
  .royal-links .text-link { font-size: .8rem; }
}
@media (orientation: landscape) and (max-height: 32rem) and (max-width: 39rem) {
  .preview-spread, .royal-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-spread > div { font-size: .88rem; line-height: 1.35; }
  .display-play { padding-inline: .7rem; font-size: .86rem; }
}
@media (max-width: 47.5rem),
       (orientation: portrait) and (max-width: 56rem),
       (orientation: landscape) and (max-height: 32rem) and (max-width: 60rem) {
  .header-inner { display: flex; justify-content: space-between; gap: .5rem; }
  .wordmark { width: 7.85rem; }
  .main-nav { display: none; }
  .mobile-nav { display: block; }
}
@media (max-width: 22.5rem) {
  .masthead .header-play { width: 2.75rem; min-height: 2.75rem; padding: 0; font-size: 0; }
  .masthead .header-play .play-icon { width: .66rem; height: .76rem; }
}
/* Include the header and footer in the first and last screen.
   Minimum heights allow enlarged text, open answers and the script-free atlas to grow. */
@media (min-width: 47.501rem) {
  .feature-section,
  .atlas-section,
  .demo-section {
    min-height: 100svh;
  }
  .guide-copy {
    min-height: calc(100svh - var(--footer-height));
  }
  .feature-section,
  .atlas-section,
  .sheet-hero,
  .demo-section,
  .guide-copy {
    padding-block: var(--section-padding);
    align-content: center;
  }
  .atlas-section,
  .demo-section {
    display: grid;
  }
  .guide-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .atlas-heading {
    margin-bottom: clamp(1rem, 3.5svh, 2.5rem);
  }
  .room-page {
    aspect-ratio: auto;
    min-height: clamp(13rem, 49svh, 33rem);
  }
  .sheet-scene {
    width: min(100%, 93svh);
    justify-self: center;
  }
  h1 {
    font-size: clamp(3.15rem, min(6.95vw, 13svh), 7.3rem);
  }
}
@media (min-width: 47.501rem) and (max-width: 68rem) and (orientation: portrait) {
  .hero-inner,
  .sheet-hero,
  .demo-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3svh, 3rem);
    justify-items: center;
  }
  .hero-copy,
  .sheet-copy,
  .demo-copy {
    width: min(100%, 35rem);
  }
  .hero-copy .lead,
  .sheet-copy .lead {
    max-width: none;
  }
  .court {
    width: min(100%, 46svh, 40rem);
  }
  .sheet-scene {
    width: min(100%, 39rem);
  }
}
@media (max-width: 47.5rem) and (orientation: portrait) {
  :root {
    --header-height: clamp(3.5rem, 7.5svh, 4.3rem);
  }
  .court {
    width: min(100%, 30rem, max(13rem, calc(100svh - 26.5rem)));
  }
  .breadcrumbs {
    padding-top: 0.8rem;
  }
  .hero-phrase {
    margin-top: 0.5rem;
  }
  .hero h1 {
    font-size: clamp(2.7rem, min(11vw, 6.8svh), 4.9rem);
    margin-bottom: 0.6rem;
  }
  .hero-actions {
    margin-top: 0.85rem;
  }
  .sheet-hero,
  .atlas-section,
  .demo-section,
  .guide-copy {
    padding-block: clamp(2rem, 5svh, 3.8rem);
  }
  .room-page {
    min-height: clamp(16rem, 40svh, 23rem);
  }
  .sheet-hero {
    gap: clamp(0.8rem, 2.5svh, 1.75rem);
    padding-block: clamp(0.75rem, 2.5svh, 2rem);
  }
  .sheet-copy h1 {
    font-size: clamp(2.6rem, 10.5vw, 4.9rem);
    margin-block: 0.55rem;
  }
  .sheet-copy .lead {
    line-height: 1.45;
  }
  .sheet-scene {
    width: min(100%, 53svh);
    justify-self: center;
  }
  .demo-section {
    padding-block: clamp(1.25rem, 3svh, 2.5rem);
  }
  .trial {
    width: min(100%, 21rem, 40svh);
  }
}
@media (max-width: 26rem) and (max-height: 44rem) and (orientation: portrait) {
  .hero .lead {
    font-size: 1rem;
    line-height: 1.4;
  }
  .hero-actions {
    gap: 0.6rem 0.75rem;
  }
  .hero-actions .button {
    padding-inline: 0.9rem;
  }
}
@media (min-width: 35rem) and (max-height: 32rem) and (orientation: landscape) {
  .wrap.gallery-wrap { width: min(89%, 156svh); }
  .gallery-footer { margin-top: 1.2rem; }
  :root {
    --header-height: 3.35rem;
    --strip-height: 2.5rem;
    --intro-padding: 0.75rem;
  }
  .wrap {
    width: min(92%, 81rem);
  }
  .hero-inner,
  .sheet-hero,
  .demo-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.25rem;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1,
  .sheet-copy h1 {
    font-size: clamp(2.3rem, 6vw, 3.65rem);
    margin-bottom: 0.5rem;
  }
  .hero-phrase {
    margin-top: 0.35rem;
  }
  .lead {
    font-size: 1rem;
    line-height: 1.4;
  }
  .hero-actions {
    margin-top: 0.75rem;
    gap: 0.6rem;
  }
  .court {
    width: min(100%, 68svh);
  }
  .sheet-scene {
    width: 100%;
  }
  .strip-inner {
    display: flex;
    gap: 0.5rem;
    padding-block: 0.4rem;
  }
  .room-list a {
    padding-block: 0.6rem;
  }
  .trial {
    width: min(100%, 60svh);
  }
}
@media (max-width: 24rem) {
  .header-inner {
    gap: 0.4rem;
  }
  .header-play {
    font-size: 0.85rem;
  }
  .hero-actions {
    gap: 0.7rem 1rem;
  }
  .hero-actions .button {
    padding-inline: 1rem;
  }
  .court-caption {
    font-size: 0.83rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .sculpture:is(:hover, :focus-visible, [aria-pressed='true']) {
    --lift: 0px;
  }
}

.main-nav:has(a[href='#trailer']) { gap: clamp(.75rem, 1.9vw, 2rem); }
.series-trailer {
  padding-block: clamp(2rem, 6vw, 6rem);
  color: #fff2df;
  background: radial-gradient(ellipse at 72% 45%, #68415f, #31203d 72%);
  scroll-margin-top: var(--header-height);
}
.trailer-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr);
  grid-template-areas: 'copy film';
  align-content: center;
  align-items: center;
  gap: 1.25rem clamp(1rem, 4vw, 4.5rem);
}
.trailer-copy { grid-area: copy; }
.trailer-copy h2 {
  margin: 0 0 .55rem;
  font: 400 clamp(2.1rem, 4.2vw, 4.6rem)/1 var(--serif);
  text-wrap: balance;
}
.trailer-copy p { font-size: clamp(1rem, 1.4vw, 1.22rem); margin: 0; color: #f1dce9; }
.trailer-copy .text-link { display: inline-block; margin-top: .85rem; color: #ffe0a3; }
.trailer-copy .text-link:hover { color: #fff6e4; }
.trailer-film {
  grid-area: film;
  min-width: 0;
  border: 1px solid #e5b987;
  border-radius: clamp(.65rem, 1.8vw, 1.4rem);
  overflow: hidden;
  background: #22182c;
  box-shadow: 0 .45rem 0 #24172d, 0 1.15rem 3.2rem #150b20b0;
}
.trailer-film iframe { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 0; }
@media (max-width: 44rem) {
  .trailer-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'film'; }
}
