:root {
  --bg: #10100f;
  --surface: #191b18;
  --surface-2: #22251f;
  --ink: #f4f0e8;
  --muted: #b8b0a3;
  --line: #3f4338;
  --red: #d84735;
  --gold: #d6a84f;
  --teal: #2fb7a4;
  --blue: #5d8fd8;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 14%, rgba(216, 71, 53, 0.18), transparent 34%),
    linear-gradient(135deg, #10100f 0%, #171812 52%, #0f1716 100%);
}

button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--surface-2);
  font: 700 15px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

button:hover,
button:focus-visible {
  border-color: var(--gold);
  outline: none;
  transform: translateY(-1px);
}

button:active,
button.pulse {
  transform: translateY(1px) scale(0.99);
}

.coming-soon-body {
  min-height: 100vh;
  overflow: hidden;
}

.coming-soon-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(16, 16, 15, 0.66), rgba(16, 16, 15, 0.9)),
    url("assets/site/collage.jpg") center / cover no-repeat,
    #10100f;
}

.coming-soon-panel {
  width: min(720px, 100%);
  display: grid;
  gap: 16px;
  text-align: center;
}

.coming-soon-panel h1 {
  font-size: clamp(58px, 12vw, 132px);
  line-height: 0.86;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.coming-soon-panel p:not(.kicker) {
  width: min(560px, 100%);
  margin: 0 auto;
  color: #e1dbce;
  font-size: clamp(17px, 2vw, 22px);
}

.coming-soon-entry {
  position: fixed;
  right: clamp(18px, 2.6vw, 32px);
  bottom: clamp(18px, 2.6vw, 32px);
  width: 14px;
  height: 14px;
  display: block;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 50%;
  padding: 0;
  color: transparent;
  background: rgba(244, 240, 232, 0.10);
  font-size: 0;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.coming-soon-entry:hover,
.coming-soon-entry:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
  outline: none;
}

.app-shell {
  width: min(1120px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  align-items: center;
}

.app-shell:has(.body-screen),
.app-shell:has(.movement-screen) {
  padding: 0;
  align-items: start;
}

.app-shell:has(.site-screen) {
  width: 100%;
  padding: 0;
  align-items: start;
}

.screen {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: min(720px, calc(100vh - 56px));
  background: rgba(25, 27, 24, 0.9);
  box-shadow: var(--shadow);
}

.stage {
  min-height: inherit;
  padding: clamp(22px, 4vw, 54px);
  display: grid;
  gap: 24px;
  align-content: center;
}

.hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: center;
}

.logo-frame,
.team-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080807;
}

.logo-frame img,
.team-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-frame {
  padding: 18px;
}

.text-wordmark {
  color: #eef0e8;
  font: 900 clamp(20px, 3.8vw, 38px) / 1 "Segoe UI", Arial, sans-serif;
  text-shadow:
    0 0 0 #eef0e8,
    2px 2px 0 rgba(126, 163, 111, 0.85),
    -1px 1px 0 rgba(126, 163, 111, 0.55);
  white-space: nowrap;
}

.game-wordmark {
  width: clamp(180px, 28vw, 340px);
  font-size: clamp(15px, 2.5vw, 25px);
}

.overlay-wordmark {
  width: min(100%, 380px);
  font-size: clamp(18px, 4vw, 30px);
}

.stack {
  display: grid;
  gap: 18px;
}

.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.selection-note {
  max-width: 620px;
  margin: -4px 0 0;
  color: #d8d0c0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}

h1,
h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.92;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.primary {
  width: fit-content;
  min-width: 170px;
  color: #100f0d;
  background: var(--gold);
}

.compact-button {
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
}

.site-screen {
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #11120f;
  box-shadow: none;
}

.site-page {
  width: min(1320px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 16, 15, 0.68) 0, rgba(16, 16, 15, 0.68) 760px, rgba(16, 16, 15, 0.94) 900px, #10100f 100%),
    url("assets/site/collage.jpg") center top / min(1320px, 100%) auto no-repeat,
    #10100f;
}

.site-hero {
  min-height: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  row-gap: clamp(12px, 2vw, 24px);
  padding: 0 0 clamp(14px, 2.4vw, 28px);
}

.site-top-band {
  padding: clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px) 4px;
  background:
    linear-gradient(135deg, rgba(47, 183, 164, 0.1), transparent 34%),
    rgba(16, 16, 15, 0.52);
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
}

.archive-page-hero {
  display: grid;
  gap: clamp(48px, 8vw, 96px);
  padding: clamp(16px, 3vw, 34px) clamp(16px, 4vw, 42px) clamp(58px, 8vw, 104px);
  background:
    linear-gradient(180deg, rgba(16, 16, 15, 0.42), rgba(16, 16, 15, 0.86)),
    url("assets/site/IMG_4666.jpg") center 36% / cover no-repeat;
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
}

.archive-hero-copy {
  display: grid;
  gap: 18px;
  align-content: end;
}

.archive-hero-copy h1 {
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.86;
}

.archive-hero-copy p:not(.kicker) {
  max-width: 760px;
  color: #e1dbce;
  font-size: clamp(18px, 2vw, 24px);
}

.site-nav {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-nav a,
.site-link-button,
.site-brand {
  color: var(--ink);
  text-decoration: none;
}

.site-brand {
  max-width: 52vw;
  font-weight: 900;
  font-size: clamp(21px, 2.35vw, 34px);
  line-height: 1.05;
}

.site-brand-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
}

.site-brand span,
.site-hero h1 span,
.story-copy h2 span,
.story-title-row h2 span {
  display: block;
  color: var(--gold);
}

.site-nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible,
.site-link-button:hover,
.site-link-button:focus-visible {
  color: var(--gold);
  outline: none;
}

.site-hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
}

.site-hero-copy {
  display: grid;
  gap: 16px;
}

.anniversary-mark {
  margin: 0;
  width: min(100%, 430px);
}

.hero-anniversary {
  width: min(100%, 430px);
  margin: -3px 0 0 -16px;
}

.hero-anniversary img {
  max-width: min(100%, 430px);
}

.anniversary-mark img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.36));
}

.site-hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.88;
}

.site-hero-copy p {
  max-width: 670px;
  color: #e1dbce;
  font-size: clamp(17px, 1.75vw, 22px);
  line-height: 1.45;
}

.site-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.site-link-button {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, 0.26);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
}

.site-hero-media,
.site-photo,
.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.site-hero-media {
  width: min(100%, 552px);
  align-self: center;
  justify-self: end;
}

.site-hero-media img,
.site-photo img,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-hero-media img {
  aspect-ratio: 16 / 10;
  max-height: 330px;
}

.site-section,
.site-band {
  padding: clamp(44px, 6vw, 78px) clamp(16px, 4vw, 42px);
}

.site-band {
  background:
    linear-gradient(135deg, rgba(47, 183, 164, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.035);
  border-block: 1px solid rgba(244, 240, 232, 0.08);
}

.site-audio {
  padding-block: clamp(28px, 3.7vw, 44px);
  background:
    linear-gradient(135deg, rgba(47, 183, 164, 0.1), transparent 34%),
    rgba(16, 16, 15, 0.52);
}

.site-section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.story-grid,
.sequence-grid,
.performance-grid,
.music-grid,
.host-grid,
.audio-layout {
  display: grid;
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.story-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
}

.sequence-grid {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.performance-grid {
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
}

.music-grid {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.08fr);
  align-items: center;
}

.host-grid {
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
  align-items: center;
}

.host-photo-stack {
  display: grid;
  gap: 12px;
}

.host-photo {
  max-width: 420px;
}

.host-photo img {
  aspect-ratio: 4 / 5;
  object-position: center 24%;
}

.host-photo-wide img {
  aspect-ratio: 4 / 3;
  object-position: center 24%;
}

.video-showcase {
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.video-showcase iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-grid {
  display: grid;
  gap: 18px;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  padding: clamp(14px, 3vw, 24px);
  background: rgba(255, 255, 255, 0.04);
}

.video-card h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.video-card p {
  margin: 0 0 16px;
  color: #d2cabd;
  line-height: 1.45;
}

.music-photo {
  background: #10100f;
}

.music-photo img {
  object-fit: contain;
  background: #10100f;
}

.audio-layout {
  min-height: 154px;
  grid-template-columns: minmax(320px, 0.82fr) minmax(260px, auto);
  grid-template-areas:
    "copy copy"
    "player player";
  align-content: space-between;
  align-items: end;
  gap: 16px clamp(18px, 3.5vw, 36px);
}

.audio-copy {
  grid-area: copy;
  max-width: 920px;
  display: grid;
  gap: 12px;
}

.story-copy {
  display: grid;
  gap: 18px;
}

.story-title-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(16px, 3.2vw, 36px);
  align-items: center;
}

.story-anniversary {
  width: min(100%, 720px);
  margin: 0;
  justify-self: end;
}

.story-copy h2,
.section-heading h2,
.site-audio h2 {
  font-size: clamp(34px, 5vw, 70px);
}

.story-copy p,
.section-heading p,
.site-audio p,
.game-list p {
  color: #d2cabd;
}

.tall-photo {
  aspect-ratio: 4 / 3;
}

.tall-photo img {
  object-position: center 36%;
}

.wide-photo {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.wide-photo img[src*="IMG_4724"] {
  object-position: center 20%;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 26px;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-list article {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.game-list h3 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 32px);
}

.site-wide-cta {
  margin-top: 24px;
}

.audio-panel {
  grid-area: player;
  display: grid;
}

.site-audio-player {
  width: 100%;
  min-width: 320px;
  accent-color: var(--gold);
}

.site-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  min-height: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  box-shadow: none;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--gold);
  transform: none;
}

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 8px 9px;
  color: var(--ink);
  background: rgba(8, 8, 7, 0.74);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.18;
  text-align: left;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img[src*="IMG_4724"] {
  object-position: center 20%;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.role-card {
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.role-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 36%;
}

.role-card img[src*="histochoreographic-order-seal"] {
  object-fit: contain;
  padding: 18px;
  background: #10100f;
}

.role-card div {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.role-card h3,
.performer-panel h3 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(20px, 2.4vw, 29px);
  overflow-wrap: anywhere;
  line-height: 1.08;
}

.order-feature-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(214, 168, 79, 0.36);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(214, 168, 79, 0.08);
  text-decoration: none;
}

.order-feature-card:hover,
.order-feature-card:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.order-feature-card img {
  width: 132px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #10100f;
}

.order-feature-card div {
  display: grid;
  gap: 7px;
}

.order-feature-card h3 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1;
  white-space: nowrap;
}

.order-feature-card p {
  color: #d2cabd;
}

.order-feature-card span {
  color: var(--ink);
  font-weight: 900;
}

.small-text-link,
.performer-panel a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.small-text-link {
  width: fit-content;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.small-text-link:hover,
.small-text-link:focus-visible,
.performer-panel a:hover,
.performer-panel a:focus-visible {
  color: var(--ink);
  outline: none;
}

.archive-section {
  background:
    linear-gradient(160deg, rgba(214, 168, 79, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.018);
}

.archive-bio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-bio-card,
.archive-fact-list p,
.sequence-panel,
.special-thanks-card {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.042);
}

.archive-bio-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  scroll-margin-top: 78px;
}

.archive-bio-heading {
  display: grid;
  gap: 4px;
}

.archive-bio-card h3,
.special-thanks-card h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.05;
}

.sequence-panel h3 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
}

.archive-bio-heading span,
.archive-bio-card small,
.sequence-panel li,
.archive-fact-list p,
.special-thanks-card p,
.special-thanks-card blockquote {
  color: #d2cabd;
}

.archive-bio-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.archive-bio-card small {
  font-weight: 850;
}

.archive-record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.48fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.archive-fact-list {
  display: grid;
  gap: 10px;
}

.archive-fact-list p {
  margin: 0;
  padding: 14px 16px;
  line-height: 1.45;
}

.sequence-panel {
  padding: 14px;
}

.sequence-panel ol {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.sequence-panel li {
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.lore-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(16, 16, 15, 0.52), #10100f 520px),
    url("assets/site/histochoreographic-order-seal.svg") right -120px top -160px / min(720px, 78vw) auto no-repeat,
    #10100f;
}

.lore-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px) 0 clamp(56px, 8vw, 96px);
  display: grid;
  gap: 28px;
}

.lore-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.lore-nav a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.lore-hero-grid,
.lore-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

.lore-hero h1 {
  max-width: 880px;
  font-size: clamp(44px, 5.7vw, 76px);
  line-height: 0.94;
}

.lore-seal {
  width: min(100%, 420px);
  justify-self: end;
  border: 1px solid rgba(214, 168, 79, 0.38);
  border-radius: 8px;
  background: #050505;
  box-shadow: var(--shadow);
}

.lore-section {
  padding: clamp(52px, 7vw, 92px) clamp(16px, 4vw, 42px);
  border-top: 1px solid rgba(244, 240, 232, 0.08);
}

.lore-section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.lore-panel-grid,
.sphere-grid,
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lore-panel,
.sphere-card,
.member-card {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.sphere-card {
  overflow: hidden;
  padding: 0;
}

.sphere-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #10100f;
}

.sphere-card div {
  padding: 18px;
}

.lore-panel h3,
.sphere-card h3,
.member-card h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.08;
}

.member-card.is-primary {
  border-color: rgba(214, 168, 79, 0.5);
  background: rgba(214, 168, 79, 0.08);
}

.member-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  margin: -18px -18px 16px;
  width: calc(100% + 36px);
  max-width: none;
  border-bottom: 1px solid rgba(244, 240, 232, 0.14);
}

.member-card img[src*="The-Notator"] {
  object-position: center 24%;
}

.member-card img[src*="Carbonneau"] {
  object-position: center 28%;
}

.credits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: start;
}

.credit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.credit-list p,
.performer-panel {
  min-width: 0;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.credit-list strong,
.credit-list span {
  display: block;
}

.credit-list a {
  color: var(--gold);
}

.credit-list span {
  margin-top: 4px;
  color: var(--muted);
}

.performer-panel {
  display: grid;
  gap: 14px;
}

.performer-panel p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

.archive-link-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.archive-link-list a {
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.archive-link-list a:hover,
.archive-link-list a:focus-visible {
  color: var(--gold);
  outline: none;
}

.special-thanks-card {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 38px);
}

.thanks-groups {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
}

.thanks-groups article {
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.thanks-groups h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(20px, 2.4vw, 28px);
}

.special-thanks-card blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  line-height: 1.52;
}

.external-video {
  width: fit-content;
}

.danger {
  background: #3a1815;
  border-color: rgba(216, 71, 53, 0.45);
}

.ghost {
  background: transparent;
  border-color: var(--line);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.choice-grid button {
  min-height: 124px;
  display: grid;
  gap: 8px;
  align-content: center;
  text-align: left;
  border-color: var(--line);
}

.character-choice {
  overflow: hidden;
  align-content: stretch;
  padding: 0;
  background: rgba(255, 255, 255, 0.035);
}

.character-choice img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 36%;
  pointer-events: none;
}

.character-card,
.character-choice {
  overflow: hidden;
}

.character-eboni img {
  object-position: center center;
}

.character-amy img,
.character-jeff img {
  object-position: center center;
}

.character-sarah img {
  object-position: center center;
}

.character-choice .choice-name,
.character-choice .choice-sub {
  padding-inline: 14px;
}

.character-choice .choice-sub {
  padding-bottom: 14px;
}

.choice-name {
  font-size: 24px;
}

.choice-sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.topbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 0;
}

.status-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.game-screen .status-line {
  flex: 1;
  column-gap: 36px;
  row-gap: 10px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.temp-skip {
  border-color: rgba(214, 168, 79, 0.45);
  color: var(--gold);
}

.chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 800;
}

.game-layout {
  min-height: calc(min(720px, 100vh - 56px) - 78px);
  padding-top: 24px;
  align-content: center;
}

.timer-wrap {
  display: grid;
  gap: 12px;
}

.timer {
  font-size: clamp(74px, 16vw, 168px);
  line-height: 0.9;
  font-weight: 900;
}

.meter {
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0d0f0d;
}

.meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
  transition: width 100ms linear;
}

.meter-0 { width: 0%; }
.meter-1 { width: 5%; }
.meter-2 { width: 10%; }
.meter-3 { width: 15%; }
.meter-4 { width: 20%; }
.meter-5 { width: 25%; }
.meter-6 { width: 30%; }
.meter-7 { width: 35%; }
.meter-8 { width: 40%; }
.meter-9 { width: 45%; }
.meter-10 { width: 50%; }
.meter-11 { width: 55%; }
.meter-12 { width: 60%; }
.meter-13 { width: 65%; }
.meter-14 { width: 70%; }
.meter-15 { width: 75%; }
.meter-16 { width: 80%; }
.meter-17 { width: 85%; }
.meter-18 { width: 90%; }
.meter-19 { width: 95%; }
.meter-20 { width: 100%; }

.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-row button {
  min-height: 88px;
  font-size: 18px;
}

.body-playfield {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(170px, 0.35fr);
  gap: 18px;
  align-items: stretch;
}

.puzzle-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #080807;
}

.puzzle-board.is-complete {
  box-shadow:
    0 0 0 3px rgba(214, 168, 79, 0.7),
    0 0 38px rgba(214, 168, 79, 0.34);
  animation: complete-glow 1050ms ease-in-out infinite alternate;
}

.puzzle-board.is-complete::before,
.puzzle-board.is-complete::after {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  content: "";
}

.puzzle-board.is-complete::before {
  inset: 8px;
  border: 4px solid rgba(214, 168, 79, 0.96);
  border-radius: 7px;
  box-shadow:
    0 0 0 999px rgba(8, 8, 7, 0.08),
    0 0 34px rgba(214, 168, 79, 0.56),
    inset 0 0 28px rgba(47, 183, 164, 0.34);
  animation: complete-ring 900ms ease-in-out infinite alternate;
}

.puzzle-board.is-complete::after {
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 34%,
      rgba(255, 255, 255, 0.34) 46%,
      rgba(214, 168, 79, 0.32) 50%,
      rgba(255, 255, 255, 0.12) 55%,
      transparent 68%,
      transparent 100%
    );
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: complete-sweep 1500ms ease-in-out infinite;
}

.puzzle-tile {
  position: relative;
  z-index: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(244, 240, 232, 0.22);
  border-radius: 0;
  padding: 0;
  background-color: #141511;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.puzzle-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.puzzle-tile:hover,
.puzzle-tile:focus-visible {
  border-color: var(--gold);
  transform: none;
}

.puzzle-tile.is-empty {
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.025) 0 10px,
    rgba(255, 255, 255, 0.065) 10px 20px
  );
}

.puzzle-tile.is-selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 4px rgba(214, 168, 79, 0.55);
}

.puzzle-tile.is-available {
  border-color: var(--teal);
  background:
    radial-gradient(circle, rgba(47, 183, 164, 0.42), rgba(47, 183, 164, 0.12) 48%, rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 0 0 4px rgba(47, 183, 164, 0.75),
    0 0 0 5px rgba(47, 183, 164, 0.18);
}

.body-playfield.is-complete .puzzle-tile {
  pointer-events: none;
}

.char-amy.mini-preview {
  background-image: url("assets/characters/amy-solved.png");
}

.char-eboni.mini-preview {
  background-image: url("assets/characters/ebony-solved.png");
}

.char-jeff.mini-preview {
  background-image: url("assets/characters/jeff-solved.png");
}

.char-sarah.mini-preview {
  background-image: url("assets/characters/sarah-solved.png");
}

.tile-source-0 { background-position: 0% 0%; }
.tile-source-1 { background-position: 50% 0%; }
.tile-source-2 { background-position: 100% 0%; }
.tile-source-3 { background-position: 0% 50%; }
.tile-source-4 { background-position: 50% 50%; }
.tile-source-5 { background-position: 100% 50%; }
.tile-source-6 { background-position: 0% 100%; }
.tile-source-7 { background-position: 50% 100%; }
.tile-source-8 { background-position: 100% 100%; }

.puzzle-side {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.mini-preview {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #080807;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.mini-preview.is-complete {
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(214, 168, 79, 0.25),
    0 0 30px rgba(214, 168, 79, 0.28);
  animation: complete-glow 1050ms ease-in-out infinite alternate;
}

.complete-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(214, 168, 79, 0.55);
  border-radius: 8px;
  padding: 18px;
  background: rgba(214, 168, 79, 0.08);
}

.complete-time {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
}

.body-screen {
  min-height: calc(100vh - 20px);
}

.body-screen .topbar {
  padding: 12px 14px 0;
}

.movement-screen .topbar {
  padding: 12px 14px 0;
}

.body-screen .stage {
  min-height: auto;
  padding: clamp(12px, 2vh, 22px) clamp(14px, 3vw, 30px);
  gap: 12px;
  align-content: start;
}

.movement-screen .stage {
  min-height: auto;
  padding: 12px clamp(14px, 3vw, 30px);
  gap: 12px;
  align-content: start;
}

.body-screen .game-layout {
  min-height: auto;
  padding-top: 12px;
}

.movement-screen .game-layout {
  min-height: auto;
  padding-top: 12px;
}

.body-screen .stack {
  gap: 8px;
}

.movement-screen .stack {
  gap: 8px;
}

.body-screen h2 {
  font-size: clamp(28px, 6vh, 48px);
}

.movement-screen h2 {
  font-size: clamp(28px, 6vh, 48px);
}

.body-screen .timer-wrap {
  gap: 7px;
}

.movement-screen .timer-wrap {
  gap: 7px;
}

.body-screen .timer {
  font-size: clamp(44px, 9vh, 82px);
}

.movement-screen .timer {
  font-size: clamp(44px, 9vh, 82px);
}

.body-screen .meter {
  height: 10px;
}

.movement-screen .meter {
  height: 10px;
}

.body-screen .body-playfield {
  grid-template-columns: minmax(240px, min(36vw, 380px)) minmax(150px, 220px);
  gap: 14px;
  align-items: start;
}

.body-screen .puzzle-board {
  width: clamp(240px, min(36vw, calc((100vh - 300px) * 0.75)), 380px);
  max-width: 100%;
  justify-self: start;
}

.body-screen .puzzle-side {
  gap: 10px;
}

.body-screen .score-tile,
.body-screen .complete-panel {
  padding: 12px;
}

.body-screen .score-value {
  font-size: clamp(38px, 8vh, 58px);
}

.body-screen .mini-preview {
  min-height: 148px;
  background-position: center;
}

.body-screen .complete-time {
  font-size: clamp(24px, 4vh, 34px);
}

.body-screen .message {
  min-height: 22px;
}

.movement-screen .message {
  display: none;
}

.body-screen.is-complete .puzzle-board {
  animation:
    complete-glow 1050ms ease-in-out infinite alternate,
    complete-lift 520ms ease-out both;
}

.message {
  min-height: 28px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
}

.instruction-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 8, 7, 0.48);
}

.instruction-card {
  width: min(540px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(214, 168, 79, 0.72);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(25, 27, 24, 0.88);
  box-shadow: var(--shadow), 0 0 42px rgba(214, 168, 79, 0.16);
}

.instruction-card h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.instruction-card p:not(.kicker) {
  color: var(--ink);
  font-size: 17px;
}

.movement-playfield {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.movement-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.movement-stage {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(47, 183, 164, 0.16), transparent 34%),
    #080807;
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.movement-slots {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
}

.movement-inline-message {
  min-height: 38px;
  border: 1px solid rgba(214, 168, 79, 0.42);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--gold);
  background: rgba(214, 168, 79, 0.08);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.movement-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 162px;
  border: 2px dashed rgba(244, 240, 232, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.movement-slot img {
  width: min(100%, 170px);
  max-height: 138px;
  object-fit: contain;
}

.movement-slot.is-next {
  border-color: var(--teal);
  box-shadow:
    inset 0 0 0 2px rgba(47, 183, 164, 0.38),
    0 0 0 4px rgba(47, 183, 164, 0.12);
}

.movement-slot.is-filled {
  border-style: solid;
  border-color: rgba(214, 168, 79, 0.55);
  background: rgba(214, 168, 79, 0.08);
}

.movement-slot.is-wrong,
.movement-pad.is-wrong {
  border-color: var(--red);
  box-shadow:
    inset 0 0 0 2px rgba(216, 71, 53, 0.35),
    0 0 0 4px rgba(216, 71, 53, 0.12);
}

.movement-slot.is-correct,
.movement-pad.is-correct {
  border-color: var(--teal);
  box-shadow:
    inset 0 0 0 2px rgba(47, 183, 164, 0.28),
    0 0 0 4px rgba(47, 183, 164, 0.1);
}

.movement-order-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 999px;
  color: #100f0d;
  background: var(--gold);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.movement-video {
  display: block;
  width: min(100%, 520px);
  aspect-ratio: 4 / 3;
  max-height: 190px;
  border: 1px solid rgba(214, 168, 79, 0.45);
  border-radius: 8px;
  background: #000;
  object-fit: contain;
  justify-self: start;
  box-shadow: 0 0 28px rgba(214, 168, 79, 0.18);
}

.movement-panel {
  display: grid;
  gap: 12px;
}

.score-tile.compact .score-value {
  font-size: clamp(28px, 4vw, 42px);
}

.pad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.movement-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movement-pad {
  position: relative;
  min-height: 96px;
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.movement-pad img {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: contain;
  pointer-events: none;
}

.movement-pad:not(.is-wrong):not(.is-correct):hover,
.movement-pad:not(.is-wrong):not(.is-correct):focus-visible {
  background: rgba(47, 183, 164, 0.12);
  border-color: var(--teal);
}

.movement-pad:disabled {
  cursor: default;
  opacity: 0.82;
  transform: none;
}

.movement-pad.is-numbered:not(.is-wrong):not(.is-correct) {
  border-color: rgba(214, 168, 79, 0.62);
  background: rgba(214, 168, 79, 0.08);
}

.movement-comments {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(216, 71, 53, 0.5);
  border-radius: 8px;
  padding: 12px;
  background: rgba(216, 71, 53, 0.08);
}

.movement-comments p {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.knowledge-playfield {
  display: grid;
  gap: 16px;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.question-meta {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.question-text {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.35;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-button {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-color: var(--line);
  text-align: left;
  line-height: 1.2;
  white-space: normal;
}

.answer-button:disabled {
  cursor: default;
  opacity: 1;
}

.answer-button:disabled:hover,
.answer-button:disabled:focus-visible {
  transform: none;
}

.answer-letter {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #100f0d;
  background: var(--gold);
}

.answer-button.is-selected {
  border-color: var(--gold);
}

.answer-button.is-correct {
  color: #08110f;
  background: var(--teal);
  border-color: rgba(244, 240, 232, 0.7);
}

.answer-button.is-wrong {
  background: #3a1815;
  border-color: rgba(216, 71, 53, 0.75);
}

.feedback-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 12px;
  align-items: center;
}

.feedback {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.score-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.score-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-value {
  margin-top: 8px;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
}

.score-time {
  margin-top: 8px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.score-stage {
  align-content: start;
}

.knowledge-summary {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.summary-head h3 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
}

.answer-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.review-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.review-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #100f0d;
  background: var(--muted);
  font-weight: 900;
}

.review-item p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.review-item strong,
.review-item em {
  display: block;
}

.review-item strong {
  margin-bottom: 4px;
  color: var(--gold);
  font-style: normal;
}

.review-item em {
  color: var(--muted);
  font-style: normal;
}

.review-item.is-correct span {
  background: var(--teal);
}

.review-item.is-wrong span {
  background: var(--red);
}

.menu-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 8, 7, 0.74);
  backdrop-filter: blur(8px);
}

.gallery-overlay {
  position: fixed;
  z-index: 11000;
  inset: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 72px 24px 24px;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
}

.gallery-full {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.gallery-full img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border: 1px solid rgba(244, 240, 232, 0.25);
  border-radius: 8px;
  object-fit: contain;
  background: #050505;
}

.gallery-full figcaption {
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.gallery-full figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--gold);
}

.gallery-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.gallery-nav {
  min-width: 112px;
  background: rgba(255, 255, 255, 0.08);
}

.pause-menu {
  position: relative;
  z-index: 10001;
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.pause-menu button {
  width: 100%;
}

.final-layout {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: end;
}

.final-team-frame {
  position: relative;
  border-color: rgba(214, 168, 79, 0.78);
  animation: final-arrive 680ms ease-out both, final-glow 1200ms ease-in-out 680ms infinite alternate;
}

.final-team-frame::before,
.final-team-frame::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.final-team-frame::before {
  inset: 10px;
  border: 4px solid rgba(214, 168, 79, 0.86);
  border-radius: 7px;
  animation: complete-ring 950ms ease-in-out infinite alternate;
}

.final-team-frame::after {
  inset: 0;
  background:
    linear-gradient(
      112deg,
      transparent 0%,
      transparent 32%,
      rgba(255, 255, 255, 0.4) 47%,
      rgba(47, 183, 164, 0.34) 53%,
      transparent 68%,
      transparent 100%
    );
  mix-blend-mode: screen;
  transform: translateX(-130%);
  animation: complete-sweep 1600ms ease-in-out infinite;
}

.final-copy {
  align-self: end;
}

.final-heading {
  display: grid;
  gap: 4px;
}

.final-heading span {
  display: block;
}

.final-score-number {
  display: inline-block;
  width: fit-content;
  color: var(--ink);
  font-size: 1.12em;
  line-height: 0.9;
  transform-origin: center;
  animation: final-score-scale 3600ms ease-in-out infinite;
}

.final-callout {
  color: var(--gold);
  font-weight: 900;
}

.final-score-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.final-score-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 3px;
  align-items: center;
  padding: 12px 14px;
}

.final-score-item .score-label {
  min-width: 0;
}

.final-score-item .score-value {
  grid-row: span 2;
  margin-top: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.final-score-item .score-time {
  margin-top: 0;
  font-size: 14px;
}

.flash {
  animation: flash 260ms ease;
}

@keyframes flash {
  0% { box-shadow: 0 0 0 rgba(214, 168, 79, 0); }
  40% { box-shadow: 0 0 0 7px rgba(214, 168, 79, 0.3); }
  100% { box-shadow: 0 0 0 rgba(214, 168, 79, 0); }
}

@keyframes motion-rise {
  from { transform: scaleY(0.78); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes marker-pulse {
  from { transform: scale(0.92); }
  to { transform: scale(1.05); }
}

@keyframes final-score-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes movement-finish {
  from { transform: translateY(0) scale(0.98); filter: saturate(1); }
  to { transform: translateY(-12px) scale(1.04); filter: saturate(1.2) brightness(1.08); }
}

@keyframes complete-glow {
  from { filter: saturate(1); }
  to { filter: saturate(1.18) brightness(1.06); }
}

@keyframes complete-ring {
  from {
    opacity: 0.72;
    transform: scale(0.986);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes complete-sweep {
  0% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 1; }
  58% { transform: translateX(120%); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes complete-lift {
  0% { transform: scale(0.985); }
  65% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@keyframes final-arrive {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes final-glow {
  from { box-shadow: 0 0 0 rgba(214, 168, 79, 0.1); }
  to { box-shadow: 0 0 42px rgba(214, 168, 79, 0.34); }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 18px, 540px);
    padding: 9px 0;
  }

  .app-shell:has(.site-screen) {
    width: 100%;
    padding: 0;
  }

  .screen {
    min-height: calc(100vh - 18px);
  }

  .site-screen {
    min-height: 100vh;
  }

  .site-page {
    background-size: auto 520px, auto, auto;
  }

  .site-hero {
    min-height: auto;
    padding: 0 0 14px;
    row-gap: 14px;
  }

  .site-top-band {
    padding: 14px 14px 4px;
  }

  .site-nav {
    align-items: flex-start;
  }

  .site-brand {
    max-width: 58vw;
    font-size: 16px;
  }

  .site-brand-stack {
    gap: 7px;
  }

  .hero-anniversary {
    width: min(100%, 260px);
    margin: -2px 0 0 -10px;
  }

  .site-nav-links {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav-links a {
    display: none;
  }

  .site-hero-grid,
  .story-grid,
  .sequence-grid,
  .performance-grid,
  .music-grid,
  .video-card,
  .host-grid,
  .audio-layout,
  .game-list,
  .credit-list,
  .role-grid,
  .credits-grid,
  .thanks-groups,
  .archive-bio-grid,
  .archive-record-grid,
  .lore-hero-grid,
  .lore-two-column,
  .lore-panel-grid,
  .sphere-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .site-hero-grid {
    padding-top: 0;
  }

  .story-title-row {
    grid-template-columns: 1fr;
  }

  .story-anniversary {
    width: min(100%, 430px);
    justify-self: start;
  }

  .site-hero h1 {
    font-size: clamp(44px, 15vw, 72px);
  }

  .site-hero-copy p {
    font-size: 18px;
  }

  .site-hero-media img {
    aspect-ratio: 16 / 11;
  }

  .site-section,
  .site-band {
    padding: 38px 14px;
  }

  .tall-photo,
  .wide-photo {
    min-height: 0;
  }

  .audio-layout {
    min-height: auto;
    grid-template-areas:
      "copy"
      "player";
    align-content: start;
    gap: 18px;
  }

  .site-audio-player {
    min-width: 0;
  }

  .site-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .order-feature-card {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
  }

  .order-feature-card img {
    width: 86px;
  }

  .order-feature-card h3 {
    white-space: normal;
    font-size: clamp(21px, 7vw, 30px);
  }

  .lore-seal {
    justify-self: start;
    width: min(100%, 320px);
  }

  .gallery-overlay {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 74px 12px 18px;
  }

  .gallery-nav {
    min-width: 0;
    width: 100%;
  }

  .gallery-full {
    order: -1;
  }

  .gallery-full img {
    max-height: calc(100vh - 250px);
  }

  .hero,
  .final-layout {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .action-row,
  .body-playfield,
  .movement-playfield,
  .feedback-row,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .answer-grid,
  .answer-review {
    grid-template-columns: 1fr;
  }

  .choice-grid button,
  .action-row button {
    min-height: 74px;
  }

  .topbar {
    align-items: flex-start;
  }

  .game-wordmark {
    width: min(100%, 260px);
  }

  .instruction-overlay {
    padding: 12px;
  }

  .body-screen .body-playfield {
    grid-template-columns: 1fr;
  }

  .body-screen .puzzle-board {
    width: min(100%, 360px);
    justify-self: center;
  }

  .body-screen .mini-preview {
    min-height: 132px;
  }

  .movement-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movement-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movement-slot {
    min-height: 152px;
  }

  .movement-video {
    width: 100%;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .final-score-number {
    animation: none;
  }
}


/* Videos: compact layout so the three program videos and the five interviews share one band */
.video-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-card-compact {
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.video-card-compact h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  margin-bottom: 4px;
}

.video-card-compact p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.video-card-compact .site-link-button {
  font-size: 12px;
  padding: 6px 12px;
}

.section-subheading {
  margin: 28px 0 14px;
}

.section-subheading h3 {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
}

.section-subheading p {
  margin: 0;
  color: #d2cabd;
  font-size: 14px;
  line-height: 1.45;
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.interview-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.interview-card .video-showcase {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.interview-card h4 {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 15px;
  line-height: 1.15;
}

.interview-card p {
  margin: 0;
  color: #d2cabd;
  font-size: 12px;
  line-height: 1.4;
}

.interview-card .site-link-button {
  font-size: 11px;
  padding: 5px 10px;
  width: fit-content;
}

.video-pending {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: #d2cabd;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(160deg, #101010, #050505);
}

@media (max-width: 960px) {
  .video-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .interview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .video-grid-compact,
  .interview-grid {
    grid-template-columns: 1fr;
  }
}
