/* Source: css/core/tokens.css */
:root {
  color-scheme: dark;
  --forest-950: #06130f;
  --forest-900: #0a2018;
  --forest-800: #12382a;
  --forest-700: #1c533b;
  --moss-500: #83ae68;
  --gold-300: #f8dfa0;
  --gold-400: #e6bd64;
  --gold-500: #c78f35;
  --cream-100: #fff9e9;
  --cream-200: #f5e9c9;
  --ink: #102019;
  --glass: rgba(10, 31, 23, 0.88);
  --glass-light: rgba(255, 249, 233, 0.08);
  --line: rgba(248, 223, 160, 0.28);
  --line-soft: rgba(255, 249, 233, 0.13);
  --shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 1rem 3rem rgba(0, 0, 0, 0.24);
  --radius-small: 0.75rem;
  --radius-medium: 1.25rem;
  --radius-large: 2rem;
  --page-width: 80rem;
  --transition-fast: 180ms ease;
  --transition-slow: 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Source: css/core/reset.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

/* Source: css/core/base.css */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--forest-950);
  color: var(--cream-100);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.panel-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 0.2rem solid var(--gold-300);
  outline-offset: 0.25rem;
}

a {
  text-underline-offset: 0.22rem;
}

code {
  color: var(--gold-300);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-small);
  background: var(--cream-100);
  color: var(--ink);
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.eyebrow {
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}



.button:not(:disabled):hover {
  border-color: rgba(248, 223, 160, 0.66);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-0.12rem);
}









.noscript-message {
  position: fixed;
  z-index: 500;
  inset: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--forest-900);
  color: var(--cream-100);
  font-family: Arial, Helvetica, sans-serif;
}

/* Source: css/core/layout.css */
.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.site-header,
.site-footer {
  width: min(calc(100% - 2rem), var(--page-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(7, 18, 15, 0.5);
  color: var(--gold-300);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 0.35rem 1.4rem rgba(0, 0, 0, 0.2);
}

.brand__mark img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 0.2rem 0.45rem rgba(229, 189, 100, 0.22));
}

.brand__words strong,
.brand__words small {
  display: block;
}

.brand__words strong {
  font-size: 1.04rem;
  line-height: 1.1;
}

.brand__words small {
  margin-top: 0.2rem;
  color: rgba(255, 249, 233, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.69rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 0.15rem;
}

.site-nav button,
.site-footer__legal button {
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 249, 233, 0.76);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.site-nav button:hover,
.site-nav button:focus-visible,
.site-footer__legal button:hover,
.site-footer__legal button:focus-visible {
  background: rgba(255, 249, 233, 0.08);
  color: var(--cream-100);
}











h1 em,
h2 em {
  color: var(--gold-300);
  font-style: normal;
}





























.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading h2 {
  margin-top: 0.38rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.section-heading > p {
  max-width: 22rem;
  color: rgba(255, 249, 233, 0.65);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.87rem;
}















.home-feature__content p:not(.eyebrow) {
  max-width: 28rem;
  color: var(--cream-200);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 1.3rem;
  padding-block: 1.7rem;
  border-top: 1px solid var(--line-soft);
  color: rgba(255, 249, 233, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-footer__brand .brand__mark {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
}

.site-footer__brand .brand__mark img {
  width: 94%;
  height: 94%;
}

.site-footer__brand p {
  display: grid;
  gap: 0.15rem;
}

.site-footer__brand strong {
  color: var(--cream-100);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.93rem;
}

.site-footer__brand span {
  color: rgba(255, 249, 233, 0.55);
  font-size: 0.7rem;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

.site-footer__socials a {
  display: inline-flex;
  width: auto;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  color: var(--gold-300);
}

.site-footer__socials .social-link__icon,
.site-footer__socials .social-link__copy small,
.site-footer__socials .social-link__arrow {
  display: none;
}

.site-footer__socials .social-link__copy strong {
  color: var(--gold-300);
  font-size: 0.7rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  color: rgba(255, 249, 233, 0.46);
  font-size: 0.68rem;
}



/* Source: css/features/entrance.css */
/* JackLight Tales — shared entrance foundation.
   The current visual treatment lives in storybook.css and aurora.css.
   This file keeps only structural behaviour still used by the live markup. */

.entrance {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: end center;
  padding: clamp(1rem, 3vw, 2.25rem);
  background: var(--forest-950);
  text-align: center;
  transition: opacity 220ms ease, visibility 220ms ease;
}

body.entrance-active {
  overflow: hidden;
}

/* Shared firefly positioning/animation. Current theme files override the
   colours, sizes and stacking to suit the live storybook presentation. */
.entrance__fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entrance__fireflies span {
  position: absolute;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0.8rem 0.22rem rgba(248, 223, 160, 0.82);
  opacity: 0.72;
  animation: firefly-drift 5s ease-in-out infinite alternate;
}

.entrance__fireflies span:nth-child(1) { top: 18%; left: 18%; animation-delay: -1.3s; }
.entrance__fireflies span:nth-child(2) { top: 35%; left: 28%; animation-delay: -3.8s; }
.entrance__fireflies span:nth-child(3) { top: 13%; right: 22%; animation-delay: -2.1s; }
.entrance__fireflies span:nth-child(4) { top: 42%; right: 16%; animation-delay: -4.2s; }
.entrance__fireflies span:nth-child(5) { bottom: 26%; left: 12%; animation-delay: -0.8s; }
.entrance__fireflies span:nth-child(6) { bottom: 34%; right: 31%; animation-delay: -2.9s; }
.entrance__fireflies span:nth-child(7) { top: 27%; right: 42%; animation-delay: -4.7s; }
.entrance__fireflies span:nth-child(8) { bottom: 20%; right: 9%; animation-delay: -1.9s; }

.entrance.is-opening .entrance__veil {
  opacity: 0;
}

@keyframes firefly-drift {
  from {
    opacity: 0.28;
    transform: translate3d(-0.25rem, 0.35rem, 0) scale(0.72);
  }
  to {
    opacity: 0.92;
    transform: translate3d(0.4rem, -0.65rem, 0) scale(1.08);
  }
}

@media (max-width: 44rem) {
  .entrance {
    padding: 0.75rem 0.75rem 1.1rem;
  }
}

/* Source: css/features/panels.css */
.panel-layer {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 1rem;
}

.panel-layer--watch {
  place-items: center;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 9, 0.76);
  backdrop-filter: blur(0.75rem);
}

.panel {
  position: relative;
  z-index: 1;
  width: min(100%, 76rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 92% 0%, rgba(229, 189, 100, 0.14), transparent 30rem),
    linear-gradient(145deg, rgba(16, 55, 40, 0.98), rgba(7, 25, 19, 0.98));
  box-shadow: var(--shadow);
  animation: panel-enter var(--transition-slow) both;
}

.panel__close {
  position: sticky;
  z-index: 2;
  top: -0.4rem;
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  margin: -0.35rem -0.35rem 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 22, 16, 0.86);
  color: var(--cream-100);
  font-size: 1.75rem;
  line-height: 1;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.panel__close:hover {
  background: var(--forest-700);
  transform: rotate(4deg);
}

.panel__content {
  display: grid;
  gap: 2.2rem;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 56rem;
}

.panel-heading > div {
  display: grid;
  gap: 0.55rem;
}

.panel-heading h2 {
  max-width: 15ch;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.panel-heading > p,
.panel-heading > div > p:last-child {
  max-width: 47rem;
  color: var(--cream-200);
  font-size: 1.02rem;
}

.panel-heading__link {
  flex: 0 0 auto;
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.panel-heading__link:hover {
  text-decoration: underline;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

.content-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  min-height: 13rem;
  padding: 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
  background: var(--glass-light);
}

.content-card__label {
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.content-card h3,
.content-card h4 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.12;
}

.content-card p,
.content-card span:not(.content-card__label) {
  color: rgba(255, 249, 233, 0.76);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}



.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.65fr);
  gap: 1rem;
}

.watch-feature {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
  background: rgba(5, 18, 13, 0.66);
}

.youtube-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 18rem;
  background: #020706;
}

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

.youtube-placeholder {
  display: grid;
  height: 100%;
  min-height: 18rem;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  padding: 2rem;
  color: rgba(255, 249, 233, 0.67);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.youtube-placeholder span {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-300);
}

.watch-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: rgba(255, 249, 233, 0.6);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
}

.watch-feature__meta a {
  color: var(--gold-300);
  text-decoration: none;
}

.watch-feature__meta a:hover {
  text-decoration: underline;
}

.watch-aside {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
  background: rgba(255, 249, 233, 0.06);
}

.watch-aside img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.3rem;
  border-radius: calc(var(--radius-medium) - 0.25rem);
  object-fit: cover;
}

.watch-aside h3 {
  max-width: 13ch;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.03;
}

.watch-aside > p:not(.content-card__label) {
  color: rgba(255, 249, 233, 0.7);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.83rem;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.series-card {
  display: grid;
  gap: 0.28rem;
  min-height: 8.5rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-small);
  background: rgba(255, 249, 233, 0.045);
}

.series-card > span {
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.series-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.1;
}

.series-card p {
  align-self: end;
  color: rgba(255, 249, 233, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}





























.explore-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
  background: var(--forest-900);
}

.explore-banner img {
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
  object-position: center;
}

.explore-banner__caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.12rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-small);
  background: rgba(5, 18, 13, 0.72);
  backdrop-filter: blur(0.45rem);
}

.explore-banner__caption span {
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.explore-banner__caption strong {
  font-size: 0.98rem;
  font-weight: 500;
}

.explore-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: -0.7rem;
}

.explore-nav a {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 22, 16, 0.7);
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.explore-nav a:hover {
  background: rgba(255, 249, 233, 0.1);
}

.explore-section {
  display: grid;
  gap: 1rem;
  scroll-margin-top: 1rem;
}

.section-heading--compact {
  display: grid;
  align-items: start;
  justify-content: start;
  gap: 0.25rem;
}

.section-heading--compact h3 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.character-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
  background: rgba(255, 249, 233, 0.055);
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.character-card:hover,
.character-card:focus-within,
.character-card.is-open {
  border-color: var(--line);
  transform: translateY(-0.25rem);
}

.character-card__portrait {
  position: relative;
  overflow: hidden;
}

.character-card__portrait > img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: contain;
  object-position: center bottom;
  background: radial-gradient(circle at 50% 20%, rgba(126, 174, 104, 0.25), transparent 65%), rgba(5, 18, 13, 0.46);
}

.character-card__overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.45rem;
  padding: 4.5rem 0.9rem 1rem;
  background: linear-gradient(to top, rgba(4, 15, 11, 0.98) 4%, rgba(4, 15, 11, 0.83) 52%, rgba(4, 15, 11, 0.06) 100%);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.character-card__overlay p {
  color: rgba(255, 249, 233, 0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  line-height: 1.45;
}

.character-card:hover .character-card__overlay,
.character-card:focus-within .character-card__overlay,
.character-card.is-open .character-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.character-card__toggle {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  background: transparent;
  color: var(--cream-100);
  text-align: left;
}

.character-card__toggle-icon {
  position: absolute;
  right: 0.72rem;
  top: 0.72rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 18, 13, 0.68);
  color: var(--gold-300);
  font: 1.15rem/1 Arial, Helvetica, sans-serif;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.character-card.is-open .character-card__toggle-icon,
.character-card:focus-within .character-card__toggle-icon {
  background: var(--gold-400);
  color: var(--ink);
  transform: rotate(45deg);
}

.character-card__identity {
  display: grid;
  gap: 0.2rem;
  min-height: 5.2rem;
  padding: 0.8rem;
}

.character-card__identity h4 {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.05;
}

.character-card__identity span {
  color: rgba(255, 249, 233, 0.63);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
}

.place-card {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
  background: var(--forest-900);
  box-shadow: var(--shadow-soft);
}

.place-card img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.place-card > div {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.32rem;
  padding: 3.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(4, 15, 11, 0.98), rgba(4, 15, 11, 0.05));
}

.place-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
}

.place-card p {
  color: rgba(255, 249, 233, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  line-height: 1.4;
}

.place-card:hover img {
  transform: scale(1.045);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
  background: rgba(255, 249, 233, 0.05);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-item figcaption {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
}

.gallery-item figcaption strong {
  font-size: 1.02rem;
  font-weight: 500;
}

.gallery-item figcaption span {
  color: rgba(255, 249, 233, 0.62);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
}

.game-teaser {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px dashed rgba(248, 223, 160, 0.34);
  border-radius: var(--radius-medium);
  background: linear-gradient(145deg, rgba(229, 189, 100, 0.1), rgba(89, 143, 85, 0.08));
}

.game-teaser--play {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.game-teaser--play:hover,
.game-teaser--play:focus-visible {
  border-color: rgba(248, 223, 160, 0.72);
  background: linear-gradient(145deg, rgba(229, 189, 100, 0.17), rgba(89, 143, 85, 0.14));
  transform: translateY(-2px);
}

.game-teaser__map {
  position: relative;
  width: 6rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 223, 160, 0.14), transparent 65%);
}

.game-teaser__map::before,
.game-teaser__map::after {
  position: absolute;
  inset: 50% 12%;
  height: 1px;
  background: var(--line);
  content: "";
  transform: rotate(35deg);
}

.game-teaser__map::after { transform: rotate(-28deg); }
.game-teaser__map span { position: absolute; color: var(--gold-300); }
.game-teaser__map span:nth-child(1) { top: 13%; left: 42%; }
.game-teaser__map span:nth-child(2) { right: 15%; bottom: 21%; }
.game-teaser__map span:nth-child(3) { left: 14%; bottom: 24%; }

.game-teaser > div:nth-child(2) {
  display: grid;
  gap: 0.35rem;
}

.game-teaser h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
}

.game-teaser > div:nth-child(2) > p:last-child {
  max-width: 43rem;
  color: rgba(255, 249, 233, 0.67);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
}

.game-teaser__badge {
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}







.social-link {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-small);
  background: rgba(255, 249, 233, 0.04);
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--line);
  background: rgba(248, 223, 160, 0.1);
  transform: translateY(-0.1rem);
}

.social-link__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-300);
  font-size: 0.58rem;
  font-weight: 800;
}

.social-link__copy {
  display: grid;
  gap: 0.1rem;
}

.social-link__copy strong {
  color: var(--cream-100);
  font-size: 0.78rem;
}

.social-link__copy small {
  color: rgba(255, 249, 233, 0.54);
  font-size: 0.66rem;
}

.social-link__arrow {
  color: var(--gold-300);
  font-size: 0.85rem;
}







.panel-note {
  color: rgba(255, 249, 233, 0.55);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

.panel-error {
  padding: 1rem;
  border: 1px solid rgba(229, 189, 100, 0.55);
  border-radius: var(--radius-small);
  background: rgba(229, 189, 100, 0.08);
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Launch-state watch collection emphasis, consolidated from launch-polish.css. */
.series-card--current {
  border-color: rgba(248, 223, 160, .52) !important;
  background: rgba(248, 223, 160, .11) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 .8rem 1.8rem rgba(0, 0, 0, .12);
}

.series-card--current > span {
  color: var(--gold-300) !important;
}

.series-card--coming {
  opacity: .58;
}

/* Source: css/features/audio-player.css */










.audiobook-series {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.audiobook-series__button {
  display: grid;
  align-content: start;
  gap: 0.24rem;
  min-height: 7.6rem;
  padding: 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-small);
  background: rgba(255, 249, 233, 0.045);
  color: var(--cream-100);
  text-align: left;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.audiobook-series__button:hover,
.audiobook-series__button:focus-visible,
.audiobook-series__button.is-active {
  border-color: var(--line);
  background: rgba(248, 223, 160, 0.11);
  transform: translateY(-0.12rem);
}

.audiobook-series__number {
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audiobook-series__button strong {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.05;
}

.audiobook-series__button small {
  align-self: end;
  margin-top: auto;
  color: rgba(255, 249, 233, 0.5);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
}











.audiobook-episodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.audiobook-episode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.58rem;
  min-height: 4.65rem;
  padding: 0.65rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  background: rgba(255, 249, 233, 0.045);
  color: var(--cream-100);
  text-align: left;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.audiobook-episode:disabled {
  cursor: default;
  opacity: 0.53;
}

.audiobook-episode.is-checking {
  animation: audio-checking 1.3s ease-in-out infinite alternate;
}

.audiobook-episode.is-ready:hover,
.audiobook-episode.is-ready:focus-visible,
.audiobook-episode.is-active {
  border-color: rgba(248, 223, 160, 0.62);
  background: rgba(248, 223, 160, 0.12);
}

.audiobook-episode__number {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--gold-300);
  font: 800 0.6rem/1 Arial, Helvetica, sans-serif;
}

.audiobook-episode__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.audiobook-episode__copy strong {
  font-size: 0.82rem;
  font-weight: 500;
}

.audiobook-episode__copy small {
  overflow: hidden;
  color: rgba(255, 249, 233, 0.5);
  font: 0.62rem/1.2 Arial, Helvetica, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audiobook-episode__play {
  color: var(--gold-300);
  font-size: 0.7rem;
  opacity: 0.24;
}

.audiobook-episode.is-ready .audiobook-episode__play {
  opacity: 1;
}







.audio-player__status {
  color: var(--gold-300);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.audio-player__title {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.05;
}

.audiobook-player__copy p {
  color: rgba(255, 249, 233, 0.61);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.73rem;
}







.audiobook-player__nav button:disabled {
  cursor: default;
  opacity: 0.35;
}



@keyframes audio-checking {
  from { opacity: 0.38; }
  to { opacity: 0.62; }
}

/* Launch-state audiobook availability, consolidated from launch-polish.css. */
.audiobook-series__button:disabled,
.audiobook-series__button.is-coming {
  cursor: default;
  opacity: .45;
  filter: saturate(.7);
  transform: none !important;
}

.audiobook-series__button:disabled:hover,
.audiobook-series__button:disabled:focus-visible {
  border-color: var(--line-soft);
  background: rgba(255, 249, 233, .045);
  transform: none;
}

.audiobook-series__button.is-coming small {
  color: rgba(255, 249, 233, .42);
}

/* Source: css/features/sound-control.css */
.sound-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.55rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 18, 15, 0.58);
  color: var(--cream-200);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast);
}

.sound-control:hover:not(:disabled) {
  border-color: rgba(248, 223, 160, 0.7);
  background: rgba(255, 249, 233, 0.08);
}

.sound-control[aria-pressed="true"] {
  border-color: rgba(248, 223, 160, 0.78);
  color: var(--gold-300);
}

.sound-control:disabled {
  cursor: default;
  color: rgba(255, 249, 233, 0.46);
  opacity: 1;
}

/* Source: css/features/responsive.css */
@media (max-width: 70rem) {
  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audiobook-series {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 62rem) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .watch-layout {
    grid-template-columns: 1fr;
  }

  .watch-aside {
    grid-template-columns: 10rem 1fr;
    align-items: center;
  }

  .watch-aside img {
    grid-row: span 4;
    width: 10rem;
  }

  .watch-aside .button {
    width: fit-content;
  }


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

}

@media (max-width: 48rem) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .audiobook-episodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-teaser {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .game-teaser__badge {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 44rem) {
  .site-shell::before {
    background-image: var(--home-background-mobile, url("../assets/images/site/entrance-woods-mobile.webp"));
  }

  .site-header {
    align-items: flex-start;
  }

  .brand__words small,
  .sound-control [data-sound-label] {
    display: none;
  }

  .sound-control {
    margin-left: auto;
  }

  .section-heading,
  .panel-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-footer {
    width: min(calc(100% - 1.25rem), var(--page-width));
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer__socials {
    order: 2;
  }

  .site-footer__legal {
    order: 3;
    justify-content: flex-start;
  }

  .site-footer__copyright {
    order: 4;
  }

  .panel-layer {
    padding: 0;
  }

  .panel {
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius-large) var(--radius-large) 0 0;
  }

  .youtube-frame,
  .youtube-placeholder {
    min-height: 12rem;
  }

  .watch-aside {
    grid-template-columns: 1fr;
  }

  .watch-aside img {
    grid-row: auto;
    width: min(100%, 15rem);
  }

  .series-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .explore-banner img {
    min-height: 10rem;
  }

  .explore-banner__caption {
    right: 0.55rem;
    bottom: 0.55rem;
  }

  .audiobook-series,
  .audiobook-episodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-teaser {
    grid-template-columns: 1fr;
  }

  .game-teaser__map {
    width: 4.8rem;
  }

  .game-teaser__badge {
    grid-column: auto;
  }

  .audiobook-series__button {
    min-height: 6.7rem;
  }

}

@media (max-width: 30rem) {
  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-card__portrait > img {
    aspect-ratio: 1 / 1.02;
  }
}

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

/* Source: css/features/storybook.css */
/*
 * JackLight Tales — illustrated woodland-map prototype.
 * This final stylesheet intentionally replaces the dark shop-like shell while
 * leaving the existing content engines and panel markup intact.
 */

:root {
  color-scheme: light;
  --storybook-ink: #244735;
  --storybook-deep: #153d2e;
  --storybook-leaf: #3c7b45;
  --storybook-leaf-bright: #6ca64d;
  --storybook-sun: #ffd85d;
  --storybook-cream: #fff9df;
  --storybook-paper: #fffdf0;
  --storybook-berry: #d85055;
  --storybook-sky: #78cfee;
  --storybook-turquoise: #3eb7b7;
  --storybook-wood: #79502e;
  --storybook-line: rgba(58, 82, 51, 0.2);
  --storybook-shadow: 0 1.35rem 3.5rem rgba(71, 73, 38, 0.22);
  --storybook-display: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

.storybook-body {
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 218, 93, 0.34), transparent 28rem),
    radial-gradient(circle at 92% 30%, rgba(120, 207, 238, 0.25), transparent 32rem),
    #fff9df;
  color: var(--storybook-ink);
  font-family: var(--storybook-display);
}

.storybook-body button,
.storybook-body a {
  color: inherit;
}

.storybook-body button:focus-visible,
.storybook-body a:focus-visible {
  outline: 0.24rem solid #1b6150;
  outline-offset: 0.22rem;
}

.storybook-body .eyebrow {
  color: var(--storybook-berry);
  font: 900 0.72rem/1.3 var(--storybook-display);
  letter-spacing: 0.13em;
}

.storybook-body .site-shell::before,
.storybook-body .site-shell::after,
.storybook-body .entrance::before,
.storybook-body .entrance::after {
  display: none;
  content: none;
}

.storybook-body .site-shell {
  display: block;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.64), transparent 38rem),
    linear-gradient(#fffbed, #f7efc9 68%, #e8e1b7);
}

.story-button {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.82rem 1.35rem;
  border: 0.2rem solid rgba(74, 62, 30, 0.3);
  border-radius: 1.15rem 1.4rem 1rem 1.45rem;
  font: 900 0.9rem/1.1 var(--storybook-display);
  box-shadow: 0 0.4rem 0 rgba(92, 67, 27, 0.28), 0 0.8rem 1.5rem rgba(72, 65, 32, 0.2);
  transform: rotate(-0.6deg);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.story-button:hover,
.story-button:focus-visible {
  filter: saturate(1.06) brightness(1.04);
  transform: translateY(-0.2rem) rotate(0.4deg) scale(1.025);
  box-shadow: 0 0.55rem 0 rgba(92, 67, 27, 0.22), 0 1rem 2rem rgba(72, 65, 32, 0.22);
}

.story-button--sun {
  background: linear-gradient(155deg, #fff18a, var(--storybook-sun));
  color: #4a3a17;
}

.story-button--berry {
  border-color: rgba(112, 40, 42, 0.28);
  background: linear-gradient(145deg, #ee7375, var(--storybook-berry));
  color: #fffdf0;
  text-shadow: 0 0.1rem 0.1rem rgba(87, 29, 29, 0.3);
}

/* Storybook entrance */

.storybook-body .entrance {
  z-index: 300;
  display: block;
  overflow: hidden;
  padding: 0;
  background: #bde5f2;
  color: var(--storybook-ink);
  text-align: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.entrance__scene,
.entrance__scene img,
.entrance__portal,
.entrance__portal picture,
.entrance__portal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entrance__scene img,
.entrance__portal img {
  object-fit: cover;
}

.entrance__scene img {
  filter: saturate(1.04) brightness(1.02);
  animation: storybook-scene-drift 16s ease-in-out infinite alternate;
}

.entrance__story {
  position: absolute;
  z-index: 6;
  top: clamp(1.4rem, 4vh, 3.5rem);
  left: 50%;
  display: grid;
  width: min(48rem, calc(100% - 4rem));
  justify-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  animation: entrance-story-arrive 900ms 180ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.entrance__story h1 {
  max-width: none;
  margin: 0;
  color: var(--storybook-deep);
  font: 900 clamp(2.6rem, 6.4vw, 6rem)/0.86 var(--storybook-display);
  letter-spacing: -0.075em;
  text-shadow:
    0 0.12rem 0 #fff8d7,
    0 0.22rem 0 rgba(255, 255, 255, 0.85),
    0 0.45rem 1.2rem rgba(255, 255, 255, 0.85);
}

.entrance__welcome {
  max-width: 38rem !important;
  color: #315541 !important;
  font: 800 clamp(0.92rem, 1.4vw, 1.12rem)/1.35 var(--storybook-display) !important;
  text-shadow: 0 0.1rem 0.35rem #fffdf1;
}

.entrance__story .story-button {
  margin-top: 0.2rem;
  font-size: clamp(0.86rem, 1.5vw, 1.06rem);
}

.storybook-body .entrance__hint {
  color: rgba(33, 79, 57, 0.82);
  font: 800 0.69rem/1.3 var(--storybook-display);
  text-shadow: 0 0.1rem 0.3rem #fff;
}

.storybook-body .entrance__hint span {
  color: #d85055;
}

.storybook-body .entrance__fireflies {
  z-index: 4;
}

.storybook-body .entrance__fireflies span {
  width: 0.38rem;
  height: 0.38rem;
  background: #fff15f;
  box-shadow: 0 0 0.85rem 0.25rem rgba(255, 235, 76, 0.95);
}

.entrance__fireflies span:nth-child(9) { top: 53%; left: 45%; animation-delay: -3.1s; }
.entrance__fireflies span:nth-child(10) { top: 62%; right: 39%; animation-delay: -1.1s; }

.storybook-body .entrance__skip {
  z-index: 9;
  top: 1rem;
  right: 1rem;
  bottom: auto;
  padding: 0.62rem 0.85rem;
  border: 0.12rem solid rgba(41, 94, 63, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 232, 0.88);
  color: #28553e;
  font: 900 0.72rem/1 var(--storybook-display);
  box-shadow: 0 0.35rem 1rem rgba(65, 72, 38, 0.15);
  backdrop-filter: blur(0.35rem);
}

.entrance__portal {
  z-index: 12;
  clip-path: circle(0 at 50% 54%);
  pointer-events: none;
  transition: clip-path 1350ms cubic-bezier(0.65, 0, 0.2, 1);
}

.entrance__portal img {
  filter: saturate(1.04);
}

.storybook-body .entrance.is-opening {
  opacity: 1;
  visibility: visible;
}

.entrance.is-opening .entrance__portal {
  clip-path: circle(155% at 50% 54%);
}

.entrance.is-opening .entrance__story,
.entrance.is-opening .entrance__fireflies,
.entrance.is-opening .entrance__skip {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 340ms ease, transform 650ms ease;
}

.storybook-body .entrance.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Navigation ribbon */

.storybook-body .site-header {
  position: relative;
  z-index: 30;
  display: flex;
  width: min(calc(100% - 2rem), 92rem);
  min-height: 5.2rem;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  border: 0.16rem solid rgba(74, 88, 44, 0.17);
  border-top: 0;
  border-radius: 0 0 2rem 2rem;
  background: rgba(255, 252, 226, 0.94);
  box-shadow: 0 0.8rem 2rem rgba(72, 74, 35, 0.13);
  backdrop-filter: blur(0.8rem);
}

.storybook-body .brand__mark {
  width: 3.35rem;
  height: 3.35rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.storybook-body .brand__mark img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0.25rem 0.3rem rgba(53, 82, 41, 0.2));
}

.storybook-body .brand__words strong {
  color: var(--storybook-deep);
  font: 900 1.08rem/1 var(--storybook-display);
}

.storybook-body .brand__words small {
  color: #6b7045;
  font: 800 0.66rem/1.2 var(--storybook-display);
}

.storybook-body .site-nav {
  gap: 0.2rem;
}

.storybook-body .site-nav button,
.storybook-body .site-footer__legal button {
  color: #315841;
  font: 900 0.73rem/1 var(--storybook-display);
}

.storybook-body .site-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.68rem 0.78rem;
  border: 0.12rem solid transparent;
}

.storybook-body .site-nav button span {
  color: var(--storybook-berry);
}

.storybook-body .site-nav button:hover,
.storybook-body .site-nav button:focus-visible,
.storybook-body .site-footer__legal button:hover,
.storybook-body .site-footer__legal button:focus-visible {
  border-color: rgba(66, 112, 72, 0.17);
  background: #eef4c9;
  color: #174833;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

.storybook-body .sound-control,
.welcome-replay {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.42rem;
  padding: 0.55rem 0.72rem;
  border: 0.13rem solid rgba(48, 100, 66, 0.18);
  border-radius: 999px;
  background: #fffdf0;
  color: #28573d;
  font: 900 0.7rem/1 var(--storybook-display);
}

.storybook-body .sound-control:hover:not(:disabled),
.welcome-replay:hover {
  border-color: rgba(48, 100, 66, 0.35);
  background: #fff2aa;
}

.storybook-body .sound-control:disabled {
  color: #78765d;
}

/* The explorable map */

.map-heading {
  display: grid;
  width: min(calc(100% - 2rem), 72rem);
  justify-items: center;
  gap: 0.45rem;
  margin: clamp(2.4rem, 5vw, 5rem) auto clamp(1.2rem, 2.5vw, 2rem);
  text-align: center;
}

.map-heading h1 {
  color: var(--storybook-deep);
  font: 900 clamp(2.35rem, 5.6vw, 5.3rem)/0.95 var(--storybook-display);
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.map-heading > p:last-child {
  max-width: 39rem;
  color: #60705a;
  font: 700 clamp(0.88rem, 1.4vw, 1.05rem)/1.45 var(--storybook-display);
}

.woodland-map {
  --map-pointer-x: 0px;
  --map-pointer-y: 0px;
  position: relative;
  width: min(calc(100% - 2rem), 94rem);
  aspect-ratio: 1672 / 941;
  margin-inline: auto;
  overflow: hidden;
  border: clamp(0.38rem, 0.8vw, 0.72rem) solid #fffbea;
  border-radius: clamp(1.5rem, 3.5vw, 3.25rem);
  background: #bce7ed;
  box-shadow:
    0 0 0 0.12rem rgba(73, 104, 58, 0.17),
    0 1.8rem 4.5rem rgba(75, 81, 36, 0.25);
  isolation: isolate;
}

.woodland-map__art,
.woodland-map__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.woodland-map__art {
  transform: translate(var(--map-pointer-x), var(--map-pointer-y)) scale(1.015);
  transition: transform 320ms ease-out;
}

.woodland-map__art img {
  object-fit: cover;
}

.map-stop {
  --stop-color: var(--storybook-berry);
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  background: transparent;
  color: var(--storybook-deep);
  text-align: left;
  opacity: 0;
  transform: translateY(1rem) scale(0.88);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.2, 1.2, 0.3, 1);
}

.woodland-map.is-ready .map-stop {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.woodland-map.is-ready .map-stop--characters { transition-delay: 90ms; }
.woodland-map.is-ready .map-stop--listen { transition-delay: 180ms; }
.woodland-map.is-ready .map-stop--artwork { transition-delay: 270ms; }

.map-stop--watch {
  --stop-color: #d84f55;
  top: 23%;
  left: 8.5%;
}

.map-stop--characters {
  --stop-color: #3aa87e;
  top: 24%;
  right: 7%;
  flex-direction: row-reverse;
  text-align: right;
}

.map-stop--listen {
  --stop-color: #e5aa31;
  top: 66%;
  left: 7.5%;
}

.map-stop--artwork {
  --stop-color: #368fc2;
  top: 68%;
  right: 6.5%;
  flex-direction: row-reverse;
  text-align: right;
}

.map-stop__marker {
  position: relative;
  display: grid;
  width: clamp(2.85rem, 4.8vw, 4.5rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: clamp(0.18rem, 0.35vw, 0.3rem) solid #fffbea;
  border-radius: 50%;
  background: var(--stop-color);
  color: white;
  font: 900 clamp(1rem, 1.8vw, 1.55rem)/1 var(--storybook-display);
  text-shadow: 0 0.12rem 0.12rem rgba(70, 43, 30, 0.3);
  box-shadow:
    0 0 0 0.13rem rgba(79, 74, 37, 0.25),
    0 0.35rem 0 rgba(74, 61, 31, 0.25),
    0 0.8rem 1.2rem rgba(68, 69, 33, 0.28);
  animation: marker-pulse 2.8s ease-in-out infinite;
}

.map-stop__marker::after {
  position: absolute;
  inset: -0.6rem;
  border: 0.13rem solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  content: "";
  opacity: 0;
  animation: marker-ring 2.8s ease-out infinite;
}

.map-stop__sign {
  position: relative;
  display: grid;
  min-width: clamp(9.5rem, 14vw, 13.5rem);
  gap: 0.08rem;
  padding: 0.58rem 0.82rem 0.62rem;
  border: 0.14rem solid rgba(95, 66, 35, 0.34);
  border-radius: 0.85rem 1.15rem 0.8rem 1.1rem;
  background: rgba(255, 251, 220, 0.95);
  box-shadow: 0 0.35rem 0 rgba(93, 64, 34, 0.2), 0 0.6rem 1.2rem rgba(62, 62, 33, 0.17);
  transform: rotate(-1.5deg);
  transition: transform 180ms ease, background 180ms ease;
  backdrop-filter: blur(0.3rem);
}

.map-stop--characters .map-stop__sign,
.map-stop--artwork .map-stop__sign {
  transform: rotate(1.5deg);
}

.map-stop__sign::before {
  position: absolute;
  top: 0.32rem;
  bottom: 0.32rem;
  left: -0.3rem;
  width: 0.28rem;
  border-radius: 999px;
  background: var(--stop-color);
  content: "";
}

.map-stop--characters .map-stop__sign::before,
.map-stop--artwork .map-stop__sign::before {
  right: -0.3rem;
  left: auto;
}

.map-stop__sign strong {
  font: 900 clamp(0.78rem, 1.3vw, 1.02rem)/1.15 var(--storybook-display);
}

.map-stop__sign small {
  overflow: hidden;
  max-height: 0;
  color: #667059;
  font: 800 clamp(0.62rem, 0.9vw, 0.75rem)/1.25 var(--storybook-display);
  opacity: 0;
  transition: max-height 220ms ease, margin 220ms ease, opacity 180ms ease;
}

.map-stop:hover,
.map-stop:focus-visible {
  z-index: 12;
}

.map-stop:hover .map-stop__sign,
.map-stop:focus-visible .map-stop__sign {
  background: #fffefa;
  transform: translateY(-0.22rem) rotate(0.4deg) scale(1.04);
}

.map-stop:hover .map-stop__marker,
.map-stop:focus-visible .map-stop__marker {
  animation-play-state: paused;
  transform: translateY(-0.2rem) rotate(-5deg) scale(1.08);
}

.map-stop:hover .map-stop__sign small,
.map-stop:focus-visible .map-stop__sign small {
  max-height: 2.4rem;
  margin-top: 0.18rem;
  opacity: 1;
}

/* Latest tale and footer */

.latest-tale {
  display: grid;
  width: min(calc(100% - 2rem), 78rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.8rem);
  margin: clamp(4rem, 8vw, 7rem) auto;
}

.latest-tale__art {
  position: relative;
  overflow: hidden;
  border: 0.55rem solid #fffdf0;
  border-radius: 46% 54% 48% 52% / 8% 9% 8% 9%;
  box-shadow: var(--storybook-shadow);
  transform: rotate(-1.5deg);
}

.latest-tale__art::after {
  position: absolute;
  inset: 0;
  border: 0.12rem solid rgba(62, 97, 54, 0.2);
  border-radius: inherit;
  content: "";
}

.latest-tale__art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.latest-tale__copy {
  display: grid;
  gap: 0.9rem;
}

.latest-tale__copy h2 {
  color: var(--storybook-deep);
  font: 900 clamp(2rem, 4.6vw, 4rem)/0.98 var(--storybook-display);
  letter-spacing: -0.055em;
}

.latest-tale__copy > p:not(.eyebrow) {
  color: #62705c;
  font: 700 0.95rem/1.5 var(--storybook-display);
}

.latest-tale__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.text-path {
  padding: 0.65rem;
  background: transparent;
  color: #286047;
  font: 900 0.78rem/1.2 var(--storybook-display);
  text-decoration: underline;
  text-decoration-color: rgba(40, 96, 71, 0.35);
  text-decoration-thickness: 0.12rem;
  text-underline-offset: 0.25rem;
}

.storybook-body .site-footer {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(16rem, 1.1fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 2rem max(1rem, calc((100vw - 88rem) / 2));
  border: 0;
  border-top: 0.4rem solid rgba(72, 111, 63, 0.16);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 224, 105, 0.15), transparent 20rem),
    #1f5b43;
  color: #fffbe7;
  font-family: var(--storybook-display);
}

.storybook-body .site-footer__brand strong {
  color: #fffbe7;
  font: 900 0.95rem/1 var(--storybook-display);
}

.storybook-body .site-footer__brand span,
.storybook-body .site-footer__copyright {
  color: rgba(255, 251, 231, 0.68);
}

.storybook-body .site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.storybook-body .site-footer__socials .social-link {
  display: inline-flex;
  width: auto;
  min-width: 0;
  grid-template-columns: none;
  gap: 0.35rem;
  padding: 0.48rem 0.68rem;
  border: 0.1rem solid rgba(255, 251, 231, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fffbe7;
}

.storybook-body .site-footer__socials .social-link__icon {
  width: 1.7rem;
  height: 1.7rem;
  background: #ffdb64;
  color: #214e39;
}

.storybook-body .site-footer__socials .social-link__copy strong {
  color: #fffbe7;
}

.storybook-body .site-footer__legal button {
  color: #fffbe7;
}

/* Light, playful story rooms */

.storybook-body .panel-backdrop {
  background: rgba(21, 61, 46, 0.72);
  backdrop-filter: blur(0.55rem) saturate(0.9);
}

.storybook-body .panel {
  color: var(--storybook-ink);
  border: 0.45rem solid #fff9de;
  background:
    radial-gradient(circle at 94% 2%, rgba(255, 215, 86, 0.25), transparent 21rem),
    radial-gradient(circle at 6% 95%, rgba(94, 179, 143, 0.17), transparent 22rem),
    repeating-linear-gradient(0deg, transparent 0 2.2rem, rgba(86, 88, 51, 0.025) 2.25rem),
    var(--storybook-paper);
  box-shadow: 0 2rem 6rem rgba(14, 54, 39, 0.42);
}

.storybook-body .panel__close {
  top: 0;
  width: 3rem;
  height: 3rem;
  border: 0.15rem solid #fff;
  background: var(--storybook-leaf);
  color: white;
  box-shadow: 0 0.3rem 0 rgba(31, 74, 39, 0.25);
}

.storybook-body .panel__close:hover {
  background: var(--storybook-berry);
}

.storybook-body .panel-heading h2,
.storybook-body .section-heading--compact h3,
.storybook-body .game-teaser h3 {
  color: var(--storybook-deep);
  font-family: var(--storybook-display);
  font-weight: 900;
}

.storybook-body .panel-heading h2 {
  letter-spacing: -0.05em;
}

.storybook-body .panel-heading > p,
.storybook-body .panel-heading > div > p:last-child {
  color: #64715e;
  font-family: var(--storybook-display);
  font-weight: 700;
}

.storybook-body .panel-heading__link,
.storybook-body .watch-feature__meta a,
.storybook-body .content-card__label,
.storybook-body .audiobook-series__number,
.storybook-body .audio-player__status {
  color: #b94a4f;
}

.storybook-body .watch-feature,
.storybook-body .watch-aside,
.storybook-body .series-card,
.storybook-body .content-card,
.storybook-body .gallery-item,
.storybook-body .audiobook-series__button,
.storybook-body .audiobook-episode,
.storybook-body .social-link {
  border-color: rgba(61, 104, 69, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--storybook-ink);
  box-shadow: 0 0.45rem 1.2rem rgba(66, 76, 40, 0.08);
}

.storybook-body .watch-aside > p:not(.content-card__label),
.storybook-body .series-card p,
.storybook-body .content-card p,
.storybook-body .content-card span:not(.content-card__label),
.storybook-body .gallery-item figcaption span,
.storybook-body .audiobook-series__button small,
.storybook-body .audiobook-episode__copy small,
.storybook-body .panel-note {
  color: #6a7563;
  font-family: var(--storybook-display);
}

.storybook-body .watch-feature__meta {
  background: #f2f2d4;
  color: #5b705c;
}

.storybook-body .youtube-placeholder {
  color: #dce7d2;
}

.storybook-body .series-card > span {
  color: var(--storybook-berry);
}









.storybook-body .explore-banner {
  border: 0.35rem solid #fff;
  background: #e9f2c8;
  box-shadow: var(--storybook-shadow);
}

.storybook-body .explore-banner__caption {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 252, 227, 0.9);
  color: var(--storybook-deep);
}

.storybook-body .explore-banner__caption span {
  color: var(--storybook-berry);
}

.storybook-body .explore-nav a {
  border-color: rgba(57, 111, 69, 0.18);
  background: #edf3c9;
  color: #286047;
}

.storybook-body .explore-nav a:hover {
  background: #ffed9a;
}

.storybook-body .character-card {
  border: 0.18rem solid rgba(64, 104, 67, 0.15);
  background: #fff;
  color: var(--storybook-ink);
  box-shadow: 0 0.65rem 1.4rem rgba(69, 76, 41, 0.1);
}

.storybook-body .character-card:nth-child(4n + 1) .character-card__portrait > img { background: #fff1b9; }
.storybook-body .character-card:nth-child(4n + 2) .character-card__portrait > img { background: #d9f0d1; }
.storybook-body .character-card:nth-child(4n + 3) .character-card__portrait > img { background: #d9f0f3; }
.storybook-body .character-card:nth-child(4n + 4) .character-card__portrait > img { background: #f6dfe2; }

.storybook-body .character-card__identity h4 {
  color: var(--storybook-deep);
  font-family: var(--storybook-display);
  font-weight: 900;
}

.storybook-body .character-card__identity span {
  color: #697560;
  font-family: var(--storybook-display);
  font-weight: 700;
}

.storybook-body .character-card__overlay {
  background: linear-gradient(to top, rgba(24, 77, 53, 0.98) 4%, rgba(24, 77, 53, 0.87) 58%, rgba(24, 77, 53, 0.02));
}

.storybook-body .character-card__overlay .content-card__label {
  color: #ffdf72;
}

.storybook-body .character-card__overlay p {
  color: #fffbe8;
  font-family: var(--storybook-display);
}

.storybook-body .character-card__toggle-icon {
  border-color: #fff;
  background: var(--storybook-berry);
  color: white;
  box-shadow: 0 0.2rem 0 rgba(97, 37, 41, 0.25);
}

.storybook-body .character-card.is-open .character-card__toggle-icon,
.storybook-body .character-card:focus-within .character-card__toggle-icon {
  background: #ffdf72;
  color: var(--storybook-deep);
}

.storybook-body .place-card {
  border: 0.28rem solid white;
}

.storybook-body .gallery-item {
  border: 0.22rem solid white;
}

.storybook-body .gallery-item figcaption strong {
  color: var(--storybook-deep);
  font-family: var(--storybook-display);
  font-weight: 900;
}

.storybook-body .game-teaser {
  border-color: rgba(58, 115, 74, 0.3);
  background: linear-gradient(145deg, #edf3c8, #d9f0e0);
}

.storybook-body .game-teaser > div:nth-child(2) > p:last-child {
  color: #62705d;
}

.storybook-body .game-teaser__badge {
  border-color: rgba(55, 107, 68, 0.25);
  background: #fff3ac;
  color: #7a5224;
}

.storybook-body .social-link:hover,
.storybook-body .social-link:focus-visible,
.storybook-body .audiobook-series__button:hover,
.storybook-body .audiobook-series__button:focus-visible,
.storybook-body .audiobook-series__button.is-active,
.storybook-body .audiobook-episode.is-ready:hover,
.storybook-body .audiobook-episode.is-ready:focus-visible,
.storybook-body .audiobook-episode.is-active {
  border-color: rgba(55, 112, 72, 0.35);
  background: #eff5cb;
}

.storybook-body .social-link__icon,
.storybook-body .audiobook-episode__number {
  border-color: rgba(55, 112, 72, 0.2);
  background: #ffdf72;
  color: #23583e;
}

.storybook-body .social-link__copy strong,
.storybook-body .audio-player__title,
.storybook-body .audiobook-series__button strong,
.storybook-body .audiobook-episode__copy strong {
  color: var(--storybook-deep);
  font-family: var(--storybook-display);
  font-weight: 900;
}

.storybook-body .social-link__copy small {
  color: #6c7664;
}

.storybook-body .audiobook-series__button {
  color: var(--storybook-ink);
}









/* Motion */

@keyframes storybook-scene-drift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(0, -0.45rem, 0); }
}

@keyframes entrance-story-arrive {
  from { opacity: 0; transform: translate(-50%, -1.1rem) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}











@keyframes marker-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.045; }
}

@keyframes marker-ring {
  0% { opacity: 0.68; transform: scale(0.72); }
  60%, 100% { opacity: 0; transform: scale(1.28); }
}

/* Responsive map — one site, purpose-built compositions */

@media (max-width: 75rem) {
  .storybook-body .site-header {
    flex-wrap: wrap;
  }

  .storybook-body .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .map-stop--watch { left: 5%; }
  .map-stop--characters { right: 4%; }
  .map-stop--listen { left: 4%; }
  .map-stop--artwork { right: 3.5%; }
}

@media (max-width: 58rem) {

  .map-stop__sign {
    min-width: 8.7rem;
  }

  .latest-tale {
    grid-template-columns: 1fr;
  }

  .latest-tale__art {
    width: min(100%, 44rem);
    margin-inline: auto;
  }

  .latest-tale__copy {
    width: min(100%, 44rem);
    margin-inline: auto;
    text-align: center;
  }

  .latest-tale__actions {
    justify-content: center;
  }
}

@media (max-width: 44rem) {
  .storybook-body .entrance {
    padding: 0;
  }

  .entrance__story {
    top: 1.15rem;
    width: calc(100% - 1.4rem);
    gap: 0.38rem;
  }

  .entrance__story h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .entrance__welcome {
    max-width: 22rem !important;
    font-size: clamp(0.76rem, 3.4vw, 0.94rem) !important;
  }

  .entrance__story .story-button {
    min-height: 3rem;
    padding: 0.72rem 1rem;
  }

  .storybook-body .entrance__skip {
    top: auto;
    right: 50%;
    bottom: 0.6rem;
    font-size: 0.62rem;
    transform: translateX(50%);
  }

  .storybook-body .site-header {
    width: calc(100% - 0.7rem);
    min-height: 4.5rem;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0 0 1.35rem 1.35rem;
  }

  .storybook-body .brand__mark {
    width: 2.7rem;
    height: 2.7rem;
  }

  .storybook-body .brand__words strong {
    font-size: 0.92rem;
  }

  .storybook-body .site-nav {
    margin-inline: -0.2rem;
  }

  .storybook-body .site-nav button {
    flex: 0 0 auto;
    padding: 0.58rem 0.62rem;
    font-size: 0.66rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .welcome-replay span:last-child,
  .storybook-body .sound-control [data-sound-label] {
    display: none;
  }

  .welcome-replay,
  .storybook-body .sound-control {
    width: 2.55rem;
    min-height: 2.55rem;
    justify-content: center;
    padding: 0;
  }

  .map-heading {
    width: min(calc(100% - 1.3rem), 32rem);
    margin-top: 2.5rem;
  }

  .map-heading h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .woodland-map {
    width: min(calc(100% - 0.75rem), 34rem);
    aspect-ratio: 941 / 1672;
    border-width: 0.32rem;
    border-radius: 1.55rem;
  }

  .map-stop {
    gap: 0.32rem;
  }

  .map-stop--watch {
    top: 14%;
    left: 5%;
  }

  .map-stop--characters {
    top: 34%;
    right: 3%;
  }

  .map-stop--listen {
    top: 59%;
    left: 4%;
  }

  .map-stop--artwork {
    top: 79%;
    right: 2%;
  }

  .map-stop__marker {
    width: clamp(2.55rem, 12vw, 3.7rem);
    border-width: 0.18rem;
  }

  .map-stop__sign {
    min-width: clamp(8rem, 36vw, 10.5rem);
    padding: 0.48rem 0.58rem;
  }

  .map-stop__sign strong {
    font-size: clamp(0.68rem, 3.1vw, 0.88rem);
  }

  .map-stop__sign small {
    font-size: clamp(0.56rem, 2.5vw, 0.7rem);
  }

  .map-stop__sign small {
    max-height: 2.2rem;
    margin-top: 0.12rem;
    opacity: 1;
  }

  .latest-tale {
    width: min(calc(100% - 1.25rem), 36rem);
    gap: 1.7rem;
    margin-block: 3.5rem;
  }

  .latest-tale__art {
    border-width: 0.35rem;
  }

  .storybook-body .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 1.5rem 1rem;
  }

  .storybook-body .site-footer__socials {
    justify-content: flex-start;
  }

  .storybook-body .site-footer__legal {
    justify-content: flex-start;
  }

  .storybook-body .panel {
    max-height: 95vh;
    border-width: 0.35rem 0 0;
    border-radius: 1.5rem 1.5rem 0 0;
  }
}

@media (max-width: 26rem) {
  .entrance__welcome,
  .entrance__hint {
    display: none;
  }

  .entrance__story h1 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .map-stop__sign {
    min-width: 7.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entrance__scene img,
  .map-stop__marker,
  .map-stop__marker::after {
    animation: none !important;
  }
}

/* Source: css/features/aurora.css */
/*
 * JackLight Tales — Lanternlight redesign
 *
 * The supplied artwork stays the heart of the site, but the presentation is
 * now a darker, calmer woodland at night: warm lantern pools, deep green
 * glass, soft mist and a clear single-video cinema stage.
 */

:root {
  color-scheme: dark;
  --night-950: #040c0b;
  --night-900: #071714;
  --night-850: #0b211b;
  --night-800: #103128;
  --lantern: #f6c95f;
  --lantern-soft: #ffe6a2;
  --moss: #8fbd76;
  --mist: #dcebd7;
  --ink-light: #f8f1d9;
  --ink-muted: rgba(248, 241, 217, 0.7);
  --berry: #df6b68;
  --line-night: rgba(255, 232, 159, 0.25);
  --line-night-soft: rgba(220, 235, 215, 0.14);
  --night-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.55);
  --night-shadow-soft: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
  --display: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

.storybook-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 13% 5%, rgba(246, 201, 95, 0.08), transparent 26rem),
    radial-gradient(circle at 88% 37%, rgba(79, 135, 104, 0.14), transparent 34rem),
    var(--night-950);
  color: var(--ink-light);
  font-family: var(--display);
}

.storybook-body .skip-link {
  z-index: 500;
  border: 1px solid var(--line-night);
  border-radius: 999px;
  background: var(--night-850);
  color: var(--lantern-soft);
}

.storybook-body .site-shell {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(4, 12, 11, 0.1), rgba(4, 12, 11, 0.85) 72%),
    radial-gradient(circle at 50% 13%, rgba(240, 204, 112, 0.06), transparent 36rem),
    var(--night-950);
}

.storybook-body .site-shell::before,
.storybook-body .site-shell::after {
  display: block;
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.storybook-body .site-shell::before {
  inset: 0 0 auto;
  height: 45rem;
  background: url("../assets/images/site/entrance-woods-desktop.webp") center top / cover;
  opacity: 0.13;
  mask-image: linear-gradient(#000, transparent);
}

.storybook-body .site-shell::after {
  inset: auto 0 0;
  height: 28rem;
  background: radial-gradient(ellipse at 50% 100%, rgba(55, 103, 68, 0.19), transparent 70%);
}

.storybook-body .eyebrow {
  color: var(--lantern);
  font: 900 0.7rem/1.3 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}.storybook-body button:focus-visible,
.storybook-body a:focus-visible {
  outline: 0.18rem solid var(--lantern-soft);
  outline-offset: 0.22rem;
}

.story-button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(40, 28, 11, 0.28);
  border-radius: 999px;
  font: 900 0.88rem/1.1 var(--display);
  box-shadow: 0 0.35rem 0 rgba(37, 25, 8, 0.32), 0 1rem 2rem rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.story-button:hover,
.story-button:focus-visible {
  filter: brightness(1.07) saturate(1.05);
  transform: translateY(-0.15rem);
  box-shadow: 0 0.48rem 0 rgba(37, 25, 8, 0.25), 0 1.25rem 2.3rem rgba(0, 0, 0, 0.32);
}

.story-button--sun {
  background: linear-gradient(135deg, #fff0a4, var(--lantern));
  color: #2d2410;
}

.story-button--berry {
  border-color: rgba(255, 231, 197, 0.25);
  background: linear-gradient(135deg, #e9867a, var(--berry));
  color: #fff8ed;
}

/* Entrance */

.storybook-body .entrance {
  z-index: 300;
  display: block;
  overflow: hidden;
  padding: 0;
  background: var(--night-950);
  color: var(--ink-light);
  text-align: center;
}.entrance__scene img {
  filter: brightness(0.75) saturate(0.76) contrast(1.12);
  transform: scale(1.035);
  animation: lanternland-drift 18s ease-in-out infinite alternate;
}

.entrance__veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(246, 201, 95, 0.18), transparent 17rem),
    linear-gradient(180deg, rgba(2, 7, 7, 0.24), rgba(3, 13, 11, 0.2) 38%, rgba(2, 8, 8, 0.94) 100%),
    linear-gradient(90deg, rgba(2, 8, 8, 0.48), transparent 34% 66%, rgba(2, 8, 8, 0.48));
  pointer-events: none;
}

.entrance__story {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(53rem, calc(100% - 2rem));
  justify-items: center;
  gap: clamp(0.6rem, 1.5vh, 1.05rem);
  transform: translate(-50%, -49%);
  animation: lanternland-arrive 1000ms 140ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.entrance__brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem 0.45rem 0.58rem;
  border: 1px solid rgba(255, 230, 162, 0.28);
  border-radius: 999px;
  background: rgba(4, 14, 12, 0.58);
  box-shadow: 0 0 2rem rgba(246, 201, 95, 0.1);
  color: var(--lantern-soft);
  font: 900 clamp(0.78rem, 1.6vw, 1rem)/1 var(--display);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.entrance__brand-lockup img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: drop-shadow(0 0 0.75rem rgba(246, 201, 95, 0.55));
}

.storybook-body .entrance__story .eyebrow {
  color: rgba(255, 230, 162, 0.78);
}

.entrance__story h1 {
  max-width: 12ch;
  color: var(--ink-light);
  font: 900 clamp(2.8rem, 7.5vw, 7.2rem)/0.88 var(--display);
  letter-spacing: -0.075em;
  text-shadow: 0 0.2rem 0.2rem rgba(0, 0, 0, 0.3), 0 1rem 3rem rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.entrance__story h1 em {
  color: var(--lantern-soft);
  font-style: normal;
}

.entrance__welcome {
  width: min(34rem, 100%);
  color: rgba(248, 241, 217, 0.82) !important;
  font: 700 clamp(0.95rem, 1.6vw, 1.17rem)/1.45 var(--display) !important;
  text-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.5);
}

.storybook-body .entrance__hint {
  color: rgba(248, 241, 217, 0.58);
  font: 700 0.7rem/1.3 var(--display);
}

.storybook-body .entrance__hint span {
  color: var(--lantern);
}

.entrance__portal {
  z-index: 10;
  clip-path: circle(0 at 50% 52%);
  pointer-events: none;
  transition: clip-path 1350ms cubic-bezier(0.65, 0, 0.2, 1);
}

.entrance__portal img {
  filter: brightness(0.48) saturate(0.72) contrast(1.12);
}

.entrance.is-opening .entrance__portal {
  clip-path: circle(155% at 50% 52%);
}.storybook-body .entrance__skip {
  position: absolute;
  z-index: 12;
  top: 1.25rem;
  right: 1.25rem;
  bottom: auto;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(255, 230, 162, 0.26);
  border-radius: 999px;
  background: rgba(4, 14, 12, 0.62);
  color: rgba(248, 241, 217, 0.78);
  font: 800 0.72rem/1 var(--display);
  backdrop-filter: blur(0.6rem);
}

.storybook-body .entrance__skip:hover {
  border-color: var(--lantern);
  color: var(--lantern-soft);
}.storybook-body .entrance__fireflies span {
  width: 0.25rem;
  height: 0.25rem;
  background: var(--lantern-soft);
  box-shadow: 0 0 0.85rem 0.22rem rgba(246, 201, 95, 0.72);
}

/* Header and navigation */

.storybook-body .site-header {
  position: relative;
  z-index: 30;
  display: flex;
  width: min(calc(100% - 2rem), 92rem);
  min-height: 5.6rem;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line-night);
  border-top: 0;
  border-radius: 0 0 1.5rem 1.5rem;
  background: rgba(5, 17, 14, 0.82);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(1rem);
}

.storybook-body .brand {
  gap: 0.72rem;
}

.storybook-body .brand__mark {
  width: 3.65rem;
  height: 3.65rem;
  border: 1px solid rgba(246, 201, 95, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 201, 95, 0.16), rgba(4, 14, 12, 0.6));
  box-shadow: 0 0 1.5rem rgba(246, 201, 95, 0.16);
}

.storybook-body .brand__mark img {
  width: 88%;
  height: 88%;
  filter: drop-shadow(0 0 0.8rem rgba(246, 201, 95, 0.46));
}

.storybook-body .brand__words strong {
  color: var(--ink-light);
  font: 900 1.18rem/1 var(--display);
  letter-spacing: -0.025em;
}

.storybook-body .brand__words small {
  margin-top: 0.28rem;
  color: rgba(248, 241, 217, 0.58);
  font: 700 0.68rem/1.2 var(--display);
  letter-spacing: 0.035em;
}

.storybook-body .site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 0.2rem;
}

.storybook-body .site-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 241, 217, 0.68);
  font: 800 0.75rem/1 var(--display);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.storybook-body .site-nav button span {
  color: var(--lantern);
}

.storybook-body .site-nav button:hover,
.storybook-body .site-nav button:focus-visible {
  border-color: var(--line-night);
  background: rgba(246, 201, 95, 0.1);
  color: var(--ink-light);
}.storybook-body .sound-control,
.storybook-body .welcome-replay {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-night);
  border-radius: 999px;
  background: rgba(246, 201, 95, 0.06);
  color: rgba(248, 241, 217, 0.8);
  font: 800 0.7rem/1 var(--display);
}

.storybook-body .sound-control:hover:not(:disabled),
.storybook-body .welcome-replay:hover {
  background: rgba(246, 201, 95, 0.14);
  color: var(--lantern-soft);
}

/* Map home */

.map-heading {
  display: grid;
  width: min(calc(100% - 2rem), 72rem);
  justify-items: center;
  gap: 0.62rem;
  margin: clamp(3rem, 7vw, 6.3rem) auto clamp(1.4rem, 3vw, 2.4rem);
  text-align: center;
}

.map-heading h1 {
  color: var(--ink-light);
  font: 900 clamp(2.4rem, 5.8vw, 5.5rem)/0.92 var(--display);
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.map-heading > p:last-child {
  max-width: 40rem;
  color: var(--ink-muted);
  font: 700 clamp(0.9rem, 1.4vw, 1.08rem)/1.5 var(--display);
}

.woodland-map {
  --map-pointer-x: 0px;
  --map-pointer-y: 0px;
  position: relative;
  width: min(calc(100% - 2rem), 94rem);
  aspect-ratio: 1672 / 941;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(246, 201, 95, 0.34);
  border-radius: clamp(1.3rem, 3.5vw, 2.8rem);
  background: #091b16;
  box-shadow: 0 0 0 0.25rem rgba(246, 201, 95, 0.04), var(--night-shadow);
  isolation: isolate;
}

.woodland-map__art,
.woodland-map__art img,
.woodland-map__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.woodland-map__art {
  transform: translate(var(--map-pointer-x), var(--map-pointer-y)) scale(1.03);
  transition: transform 320ms ease-out;
}

.woodland-map__art img {
  object-fit: cover;
  filter: brightness(0.80) saturate(0.75) contrast(1.12);
}

.woodland-map__veil {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 4%, rgba(3, 12, 10, 0.18) 48%, rgba(3, 10, 9, 0.63) 100%),
    linear-gradient(180deg, rgba(3, 10, 9, 0.38), transparent 32%, rgba(3, 10, 9, 0.55));
}

.woodland-map__mist {
  position: absolute;
  z-index: 2;
  width: 38%;
  height: 22%;
  border-radius: 50%;
  background: rgba(187, 224, 194, 0.12);
  filter: blur(1.5rem);
  pointer-events: none;
  animation: mist-drift 12s ease-in-out infinite alternate;
}

.woodland-map__mist--one {
  bottom: 8%;
  left: -5%;
}

.woodland-map__mist--two {
  top: 14%;
  right: -7%;
  animation-delay: -4s;
}

.map-stop {
  --stop-color: var(--berry);
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  background: transparent;
  color: var(--ink-light);
  text-align: left;
  opacity: 0;
  transform: translateY(0.8rem) scale(0.95);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.2, 1.2, 0.3, 1);
}.map-stop--watch { --stop-color: #da6d67; top: 24%; left: 7%; }
.map-stop--characters { --stop-color: #78b77c; top: 24%; right: 6%; flex-direction: row-reverse; text-align: right; }
.map-stop--listen { --stop-color: #e3b35d; top: 66%; left: 6.5%; }
.map-stop--artwork { --stop-color: #6aa9c5; top: 67%; right: 5.5%; flex-direction: row-reverse; text-align: right; }

.map-stop__marker {
  position: relative;
  display: grid;
  width: clamp(2.8rem, 4.6vw, 4.4rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 244, 202, 0.8);
  border-radius: 50%;
  background: color-mix(in srgb, var(--stop-color) 88%, #071714);
  color: #fff8e1;
  font: 900 clamp(0.95rem, 1.7vw, 1.4rem)/1 var(--display);
  box-shadow: 0 0 0 0.22rem rgba(255, 242, 190, 0.08), 0 0 1.4rem color-mix(in srgb, var(--stop-color) 45%, transparent);
  animation: marker-pulse-night 3.4s ease-in-out infinite;
}

.map-stop__sign {
  position: relative;
  display: grid;
  min-width: clamp(11rem, 16vw, 15.5rem);
  gap: 0.2rem;
  padding: 0.72rem 0.85rem 0.78rem;
  border: 1px solid rgba(255, 230, 162, 0.25);
  border-radius: 0.6rem 1rem 0.7rem 0.9rem;
  background: rgba(4, 16, 13, 0.74);
  box-shadow: 0 0.75rem 1.8rem rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(0.7rem);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.map-stop--characters .map-stop__sign,
.map-stop--artwork .map-stop__sign {
  border-radius: 1rem 0.6rem 0.9rem 0.7rem;
}

.map-stop__sign strong {
  color: var(--ink-light);
  font: 900 clamp(0.82rem, 1.25vw, 1rem)/1.15 var(--display);
}

.map-stop__sign small {
  color: rgba(248, 241, 217, 0.64);
  font: 700 clamp(0.66rem, 0.92vw, 0.76rem)/1.25 var(--display);
}

.map-stop__sign b {
  margin-top: 0.2rem;
  color: var(--lantern);
  font: 800 0.63rem/1 var(--display);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(0.2rem);
  transition: opacity 180ms ease, transform 180ms ease;
}.map-stop:hover .map-stop__marker,
.map-stop:focus-visible .map-stop__marker {
  animation-play-state: paused;
  transform: scale(1.08);
}

.map-stop:hover .map-stop__sign,
.map-stop:focus-visible .map-stop__sign {
  border-color: rgba(255, 230, 162, 0.58);
  background: rgba(8, 29, 23, 0.9);
  transform: translateY(-0.18rem);
}

.map-stop:hover .map-stop__sign b,
.map-stop:focus-visible .map-stop__sign b {
  opacity: 1;
  transform: translateY(0);
}

/* Home introduction and latest story */

.home-ribbon {
  display: grid;
  width: min(calc(100% - 2rem), 78rem);
  grid-template-columns: auto minmax(0, 1fr) minmax(15rem, 0.9fr);
  align-items: center;
  gap: 1rem;
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line-night);
  border-radius: 1.2rem;
  background: linear-gradient(110deg, rgba(246, 201, 95, 0.1), rgba(5, 22, 17, 0.68) 34%, rgba(5, 22, 17, 0.86));
  box-shadow: var(--night-shadow-soft);
}

.home-ribbon__mark {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(246, 201, 95, 0.3);
  border-radius: 50%;
  background: rgba(246, 201, 95, 0.08);
}

.home-ribbon__mark img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 0 0.6rem rgba(246, 201, 95, 0.42));
}

.home-ribbon h2 {
  margin-top: 0.28rem;
  color: var(--ink-light);
  font: 900 clamp(1.45rem, 3vw, 2.45rem)/1 var(--display);
  letter-spacing: -0.045em;
}

.home-ribbon > p {
  color: var(--ink-muted);
  font: 700 0.88rem/1.45 var(--display);
}

.latest-tale {
  display: grid;
  width: min(calc(100% - 2rem), 78rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.92fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: clamp(3.5rem, 8vw, 7rem) auto;
}

.latest-tale__art {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 201, 95, 0.3);
  border-radius: 1.1rem;
  background: var(--night-850);
  box-shadow: var(--night-shadow);
}

.latest-tale__art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(3, 11, 9, 0.62));
  content: "";
  pointer-events: none;
}

.latest-tale__art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.82);
}

.latest-tale__copy {
  display: grid;
  gap: 0.95rem;
}

.latest-tale__copy h2 {
  color: var(--ink-light);
  font: 900 clamp(2rem, 4.5vw, 4rem)/0.95 var(--display);
  letter-spacing: -0.06em;
}

.latest-tale__copy > p:not(.eyebrow) {
  color: var(--ink-muted);
  font: 700 0.95rem/1.5 var(--display);
}.text-path {
  padding: 0.65rem;
  background: transparent;
  color: var(--lantern-soft);
  font: 800 0.78rem/1.2 var(--display);
  text-decoration: underline;
  text-decoration-color: rgba(255, 230, 162, 0.3);
  text-underline-offset: 0.22rem;
}

/* Footer */

.storybook-body .site-footer {
  display: grid;
  width: min(calc(100% - 2rem), 92rem);
  grid-template-columns: minmax(16rem, 1.1fr) minmax(14rem, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line-night-soft);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.storybook-body .site-footer__brand .brand__mark {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  box-shadow: none;
}

.site-footer__brand p {
  display: grid;
  gap: 0.2rem;
}

.site-footer__brand strong {
  color: var(--ink-light);
  font: 900 0.9rem/1 var(--display);
}

.site-footer__brand span {
  color: rgba(248, 241, 217, 0.55);
  font: 700 0.67rem/1.2 var(--display);
}

.storybook-body .site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.storybook-body .site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.storybook-body .site-footer__socials a,
.storybook-body .site-footer__legal button {
  padding: 0.5rem 0.68rem;
  border: 1px solid var(--line-night-soft);
  border-radius: 999px;
  background: rgba(246, 201, 95, 0.04);
  color: rgba(248, 241, 217, 0.68);
  font: 800 0.68rem/1 var(--display);
  text-decoration: none;
}

.storybook-body .site-footer__socials a:hover,
.storybook-body .site-footer__legal button:hover {
  border-color: var(--line-night);
  color: var(--lantern-soft);
}

.storybook-body .site-footer__copyright {
  grid-column: 1 / -1;
  color: rgba(248, 241, 217, 0.42);
  font: 700 0.67rem/1.3 var(--display);
}

/* Panels and the Watch room */

.storybook-body .panel-layer {
  padding: 1rem;
}

.storybook-body .panel-backdrop {
  background: rgba(1, 7, 6, 0.88);
  backdrop-filter: blur(0.85rem);
}

.storybook-body .panel {
  width: min(100%, 86rem);
  max-height: calc(100vh - 2rem);
  padding: clamp(1.25rem, 3.5vw, 2.8rem);
  border: 1px solid var(--line-night);
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(246, 201, 95, 0.1), transparent 28rem),
    linear-gradient(145deg, rgba(11, 36, 28, 0.98), rgba(3, 13, 11, 0.99));
  box-shadow: var(--night-shadow);
}

.storybook-body .panel__close {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line-night);
  background: rgba(3, 12, 10, 0.86);
  color: var(--lantern-soft);
}

.storybook-body .panel__close:hover {
  border-color: var(--lantern);
  background: rgba(246, 201, 95, 0.12);
}

.storybook-body .panel-heading h2 {
  color: var(--ink-light);
  font: 900 clamp(2rem, 4.7vw, 4.4rem)/0.94 var(--display);
  letter-spacing: -0.06em;
}

.storybook-body .panel-heading > p,
.storybook-body .panel-heading > div > p:last-child {
  color: var(--ink-muted);
  font-family: var(--display);
}

.storybook-body .panel-heading__link,
.storybook-body .watch-feature__meta a {
  color: var(--lantern-soft);
}

.storybook-body .watch-layout {
  display: block;
}

.watch-feature {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
}

.watch-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem;
  border: 1px solid var(--line-night-soft);
  border-radius: 999px;
  background: rgba(2, 11, 9, 0.7);
}

.watch-mode-switch button {
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 241, 217, 0.6);
  font: 800 0.72rem/1 var(--display);
}

.watch-mode-switch button.is-active,
.watch-mode-switch button:hover,
.watch-mode-switch button:focus-visible {
  border-color: rgba(246, 201, 95, 0.34);
  background: rgba(246, 201, 95, 0.12);
  color: var(--lantern-soft);
}

.watch-stage {
  display: grid;
  min-height: 20rem;
  place-items: center;
  padding: clamp(0.6rem, 2vw, 1.2rem);
  border: 1px solid var(--line-night-soft);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(246, 201, 95, 0.08), transparent 45%),
    #020807;
}

.watch-stage--vertical .youtube-frame {
  width: min(100%, 25rem);
  aspect-ratio: 9 / 16;
  min-height: 0;
  max-height: min(72vh, 44rem);
}

.watch-stage--landscape .youtube-frame {
  width: min(100%, 76rem);
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.watch-stage .youtube-placeholder {
  min-height: 0;
  aspect-ratio: inherit;
  border: 1px solid var(--line-night-soft);
  border-radius: 0.65rem;
  background: rgba(4, 17, 13, 0.8);
}

.watch-stage .youtube-placeholder span {
  border-color: var(--line-night);
  color: var(--lantern);
}

.watch-feature__meta {
  padding: 0.8rem 0.25rem;
  color: rgba(248, 241, 217, 0.58);
  font-family: var(--display);
}

.watch-aside {
  display: none;
}

.storybook-body .series-card,
.storybook-body .content-card,
.storybook-body .place-card,
.storybook-body .game-teaser {
  border-color: var(--line-night-soft);
  background: rgba(220, 235, 215, 0.045);
  box-shadow: none;
}

.storybook-body .series-card > span,
.storybook-body .content-card__label {
  color: var(--lantern);
}

.storybook-body .series-card p,
.storybook-body .content-card p,
.storybook-body .place-card p {
  color: var(--ink-muted);
}

/* Character/gallery surfaces retain their existing content engines but gain
   the same lanternlit depth and stronger hover reveal. */

.storybook-body .character-card,
.storybook-body .gallery-item {
  border-color: var(--line-night-soft);
  background: rgba(4, 16, 13, 0.7);
  box-shadow: var(--night-shadow-soft);
}

.storybook-body .character-card__portrait {
  background: linear-gradient(145deg, rgba(246, 201, 95, 0.12), rgba(6, 25, 19, 0.9));
}

.storybook-body .character-card__overlay {
  background: linear-gradient(180deg, transparent 12%, rgba(3, 11, 9, 0.96));
}

.storybook-body .character-card__identity h4,
.storybook-body .gallery-item figcaption strong {
  color: var(--ink-light);
}

.storybook-body .character-card__identity span {
  color: var(--ink-muted);
}

@keyframes lanternland-drift {
  from { transform: scale(1.035) translate3d(-0.6%, -0.3%, 0); }
  to { transform: scale(1.07) translate3d(0.6%, 0.35%, 0); }
}

@keyframes lanternland-arrive {
  from { opacity: 0; transform: translate(-50%, -44%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -49%) scale(1); }
}

@keyframes marker-pulse-night {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes mist-drift {
  from { transform: translate3d(-2%, 0, 0) scale(0.96); opacity: 0.35; }
  to { transform: translate3d(6%, -3%, 0) scale(1.08); opacity: 0.7; }
}

@media (max-width: 70rem) {
  .storybook-body .site-header {
    flex-wrap: wrap;
  }

  .storybook-body .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .home-ribbon {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-ribbon > p {
    grid-column: 2;
  }
}

@media (max-width: 54rem) {
  .latest-tale {
    grid-template-columns: 1fr;
  }

  .latest-tale__art {
    width: min(100%, 52rem);
    margin-inline: auto;
  }

  .latest-tale__copy {
    width: min(100%, 42rem);
    margin-inline: auto;
  }

  .storybook-body .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__socials {
    justify-content: flex-end;
  }
}

@media (max-width: 44rem) {
  .storybook-body .entrance__story {
    top: 48%;
    width: calc(100% - 1.5rem);
  }

  .entrance__brand-lockup {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
  }

  .entrance__brand-lockup img {
    width: 1.9rem;
    height: 1.9rem;
  }

  .entrance__story h1 {
    max-width: 9ch;
    font-size: clamp(2.55rem, 12vw, 4.3rem);
  }

  .entrance__welcome {
    max-width: 21rem;
    font-size: 0.9rem !important;
  }

  .storybook-body .entrance__skip {
    top: auto;
    right: 50%;
    bottom: 0.75rem;
    transform: translateX(50%);
  }

  .storybook-body .site-header {
    width: calc(100% - 0.7rem);
    min-height: 4.7rem;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0 0 1.2rem 1.2rem;
  }

  .storybook-body .brand__mark {
    width: 2.8rem;
    height: 2.8rem;
  }

  .storybook-body .brand__words strong {
    font-size: 0.96rem;
  }

  .storybook-body .brand__words small,
  .storybook-body .sound-control [data-sound-label] {
    display: none;
  }  .welcome-replay span:last-child {
    display: none;
  }

  .storybook-body .sound-control,
  .storybook-body .welcome-replay {
    width: 2.55rem;
    min-height: 2.55rem;
    padding: 0;
  }  .map-heading {
    width: min(calc(100% - 1.4rem), 34rem);
    margin-top: 3rem;
  }

  .map-heading h1 {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
  }

  .map-heading > p:last-child {
    font-size: 0.88rem;
  }

  .woodland-map {
    width: min(calc(100% - 0.8rem), 35rem);
    aspect-ratio: 941 / 1672;
    border-radius: 1.35rem;
  }

  .woodland-map__art img {
    object-position: center;
  }  .map-stop--watch { top: 14%; left: 4%; }  .map-stop--listen { top: 59%; left: 3%; }  .map-stop__marker {
    width: clamp(2.45rem, 11vw, 3.55rem);
  }

  .map-stop__sign {
    min-width: clamp(8.5rem, 37vw, 11rem);
    padding: 0.55rem 0.62rem 0.58rem;
  }

  .map-stop__sign strong {
    font-size: clamp(0.69rem, 3vw, 0.88rem);
  }

  .map-stop__sign small {
    font-size: clamp(0.58rem, 2.5vw, 0.7rem);
  }

  .map-stop__sign b {
    display: none;
  }

  .home-ribbon {
    width: min(calc(100% - 1.25rem), 36rem);
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem;
  }

  .home-ribbon__mark {
    width: 2.8rem;
    height: 2.8rem;
  }

  .home-ribbon h2 {
    font-size: 1.45rem;
  }

  .home-ribbon > p {
    grid-column: 1 / -1;
    font-size: 0.84rem;
  }

  .latest-tale {
    width: min(calc(100% - 1.25rem), 36rem);
    margin-block: 3.6rem;
  }

  .latest-tale__copy {
    text-align: left;
  }

  .storybook-body .site-footer {
    width: min(calc(100% - 1.25rem), 36rem);
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 1.35rem;
  }

  .storybook-body .site-footer__socials,
  .storybook-body .site-footer__legal {
    justify-content: flex-start;
  }

  .storybook-body .site-footer__copyright {
    grid-column: auto;
  }

  .storybook-body .panel-layer {
    padding: 0;
  }

  .storybook-body .panel {
    max-height: 96vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1.3rem 1.3rem 0 0;
  }

  .watch-mode-switch {
    width: 100%;
  }

  .watch-mode-switch button {
    flex: 1 1 0;
    font-size: 0.65rem;
  }

  .watch-stage {
    min-height: 14rem;
    padding: 0.45rem;
  }

  .watch-stage--vertical .youtube-frame {
    width: min(100%, 20rem);
    max-height: 68vh;
  }

  .storybook-body .series-grid,
  .storybook-body .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entrance__scene img,
  .woodland-map__mist,
  .map-stop__marker {
    animation: none !important;
  }
}

/* Source: css/features/polish.css */
.storybook-body [hidden] { display: none !important; }
.storybook-body .explore-banner img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.storybook-body .explore-banner { border: 1px solid #67715a; background: #10251d; }
.storybook-body .explore-banner__caption { position: static; border: 0; border-radius: 0; background: #10251d; color: #f8f1d9; padding: 1rem 1.25rem; }
.storybook-body .explore-banner__caption span { color: #f6c95f; }
.storybook-body .panel-heading:not(.panel-heading--watch) { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.storybook-body .panel-heading h2 { line-height: 1.08; letter-spacing: -0.035em; max-width: 22ch; }
.storybook-body .panel-heading > p { max-width: 65ch; }
.storybook-body .series-card h3,
.storybook-body .content-card h3,
.storybook-body .place-card h3,
.storybook-body .section-heading--compact h3,
.storybook-body .game-teaser h3 { color: #f8f1d9; line-height: 1.3; }
.storybook-body .panel-note { color: #c5cebc; line-height: 1.6; }
.storybook-body .watch-feature__meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1rem; background: #10251d; color: #d7ddcc; }
.storybook-body .watch-feature__meta a { color: #ffe19a; }
.storybook-body .watch-stage { min-height: 0; }
.storybook-body .watch-stage--vertical .youtube-frame { width: min(100%, 25rem, 40.5svh); height: auto; aspect-ratio: 9 / 16; min-height: 0; max-height: none; }
.storybook-body .watch-stage--landscape .youtube-frame { width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 0; max-height: none; }
.storybook-body .youtube-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }



.storybook-body .map-heading h1 { font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.035em; }
.storybook-body .site-footer { background: #0b1c16; border: 1px solid #3d5041; border-radius: 1.5rem; padding: clamp(1.2rem, 3vw, 2rem); color: #d7ddcc; }
.storybook-body .site-footer__copyright { color: #c5cebc; }
.storybook-body .latest-tale__art--portrait { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; padding: 1.5rem; transform: none; background: radial-gradient(ellipse at 30% 65%, #43502a, #0b1c16 75%); }
.storybook-body .latest-tale__art--portrait > img { width: 100%; height: auto; max-height: 25rem; aspect-ratio: auto; object-fit: contain; filter: none; }
.latest-tale__wordmark { display: grid; justify-items: center; text-align: center; gap: .75rem; }
.storybook-body .latest-tale__wordmark img { width: 6rem; height: 6rem; aspect-ratio: 1; object-fit: contain; filter: none; }
.latest-tale__wordmark strong { color: #ffe19a; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; }
.latest-tale__wordmark span { color: #d7ddcc; font-size: .9rem; }
.storybook-body .latest-tale__art--portrait::after { display: none; }
@media (max-width: 44rem) {
  .storybook-body .panel-heading h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .storybook-body .map-heading { margin-top: 2rem; }
  .storybook-body .watch-stage { padding: .4rem; }
  .storybook-body .latest-tale__art--portrait { padding: 1rem; gap: .5rem; }
}
@media (max-height: 700px) {
  .storybook-body .entrance { overflow-y: auto; }
  .storybook-body .entrance__story { position: relative; inset: auto; transform: none; margin: 4rem auto 6rem; animation: none; }
  .storybook-body .entrance__story h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
}

/* --------------------------------------------------------------------------
   Consolidated visual polish — moved from major-update.css.
   Kept after the existing polish rules so the original cascade is preserved.
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Entrance: let the artwork breathe.
   -------------------------------------------------------------------------- */
.storybook-body .entrance {
  background: #203c2e;
}

.storybook-body .entrance__scene img {
  filter: brightness(1.03) saturate(1.02) contrast(1.01);
  transform: scale(1.018);
}

.storybook-body .entrance__veil {
  background:
    radial-gradient(ellipse at 50% 47%, rgba(255, 245, 207, 0.06) 0 24%, transparent 51%),
    linear-gradient(180deg, rgba(7, 22, 17, 0.05) 0%, rgba(7, 22, 17, 0.05) 44%, rgba(7, 22, 17, 0.23) 72%, rgba(5, 16, 13, 0.48) 100%),
    linear-gradient(90deg, rgba(4, 14, 11, 0.2), transparent 23% 77%, rgba(4, 14, 11, 0.2));
}

.storybook-body .entrance__story {
  width: min(55rem, calc(100% - 2rem));
  gap: clamp(0.56rem, 1.25vh, 0.92rem);
}

.storybook-body .entrance__brand-lockup {
  padding: 0.42rem 1.05rem 0.42rem 0.55rem;
  border: 1px solid rgba(255, 239, 180, 0.42);
  background: rgba(13, 39, 29, 0.68);
  box-shadow: 0 0.75rem 2.6rem rgba(8, 23, 18, 0.18);
  backdrop-filter: blur(0.45rem);
}

.storybook-body .entrance__story .eyebrow {
  color: rgba(255, 242, 194, 0.96);
  text-shadow: 0 0.12rem 0.55rem rgba(0, 0, 0, 0.5);
}

.storybook-body .entrance__story h1 {
  color: #fff2bf;
  text-shadow:
    0 0.16rem 0 rgba(53, 38, 12, 0.28),
    0 0.5rem 1.5rem rgba(8, 20, 15, 0.36),
    0 1.5rem 3.5rem rgba(8, 20, 15, 0.22);
}

.storybook-body .entrance__story h1 em {
  color: #ffd86f;
}

.storybook-body .entrance__welcome {
  color: rgba(255, 248, 224, 0.96) !important;
  text-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.62);
}

.storybook-body .entrance__story .story-button--sun {
  min-width: min(20rem, 90vw);
  border: 2px solid rgba(101, 70, 16, 0.42);
  background: linear-gradient(135deg, #ffeaa0 0%, #f6cc62 52%, #efbb3f 100%);
  color: #173126 !important;
  text-shadow: none !important;
  box-shadow:
    0 0.32rem 0 rgba(89, 61, 16, 0.38),
    0 1rem 2.5rem rgba(27, 19, 6, 0.28),
    0 0 2.5rem rgba(255, 214, 104, 0.2);
}

.storybook-body .entrance__story .story-button--sun:hover,
.storybook-body .entrance__story .story-button--sun:focus-visible {
  filter: brightness(1.05) saturate(1.04);
  color: #10271d !important;
}

.storybook-body .entrance__hint {
  color: rgba(255, 246, 214, 0.82);
  text-shadow: 0 0.14rem 0.6rem rgba(0, 0, 0, 0.62);
}

.storybook-body .entrance__portal img {
  filter: brightness(0.9) saturate(0.93) contrast(1.04);
}

.storybook-body .entrance__skip {
  border-color: rgba(255, 239, 180, 0.42);
  background: rgba(10, 31, 23, 0.68);
  color: #fff0bf;
}

/* --------------------------------------------------------------------------
   Main site: keep the lantern atmosphere, lose some of the near-black weight.
   -------------------------------------------------------------------------- */
.storybook-body .site-shell {
  background:
    radial-gradient(circle at 50% 7%, rgba(246, 201, 95, 0.11), transparent 33rem),
    radial-gradient(circle at 14% 48%, rgba(104, 163, 117, 0.09), transparent 28rem),
    linear-gradient(180deg, #10291f 0%, #0a211a 48%, #071914 100%);
}

.storybook-body .woodland-map__art img {
  filter: brightness(0.95) saturate(0.94) contrast(1.04);
}

.storybook-body .woodland-map__veil {
  background:
    radial-gradient(circle at 50% 46%, transparent 8%, rgba(3, 12, 10, 0.08) 50%, rgba(3, 10, 9, 0.34) 100%),
    linear-gradient(180deg, rgba(3, 10, 9, 0.18), transparent 38%, rgba(3, 10, 9, 0.3));
}

.storybook-body .map-stop__sign {
  background: rgba(9, 32, 24, 0.78);
  border-color: rgba(255, 230, 162, 0.38);
}

.storybook-body .panel {
  background:
    radial-gradient(circle at 90% 0%, rgba(246, 201, 95, 0.14), transparent 28rem),
    linear-gradient(145deg, rgba(17, 51, 39, 0.99), rgba(7, 27, 21, 0.99));
}

.storybook-body .character-card,
.storybook-body .gallery-item {
  background: rgba(9, 30, 23, 0.78);
}

.storybook-body .section-intro {
  max-width: 55rem;
  margin-top: 0.25rem;
  color: rgba(248, 241, 217, 0.7);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Artwork panel gets a little more breathing room with the larger library. */
.storybook-body .gallery-grid {
  gap: 1rem;
}

.storybook-body .gallery-item {
  border-color: rgba(246, 201, 95, 0.18);
}

.storybook-body .gallery-item img {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.storybook-body .gallery-item:hover img {
  transform: scale(1.018);
  filter: brightness(1.04) saturate(1.03);
}

/* Purpose / world language reads more clearly without changing the layout. */

@media (max-width: 44rem) {
  .storybook-body .entrance__scene img {
    filter: brightness(0.98) saturate(1.02) contrast(1.01);
  }

  .storybook-body .entrance__veil {
    background:
      linear-gradient(180deg, rgba(6, 19, 15, 0.08), rgba(6, 19, 15, 0.16) 52%, rgba(5, 16, 13, 0.58) 100%);
  }

  .storybook-body .entrance__story .story-button--sun {
    min-width: min(18rem, 88vw);
  }

  .storybook-glimpse,
  .storybook-glimpse img {
    min-height: 14rem;
  }
}

/* Source: css/features/final-rebuild.css */
/*
 * JackLight Tales — final responsive rebuild — 15 Sep 2026
 * This file is intentionally last in main.css. It resolves older prototype
 * rules without forcing the working site to be rewritten from scratch.
 */

/* --------------------------------------------------------------------------
   Wider desktop composition
   -------------------------------------------------------------------------- */
.storybook-body .site-header,
.storybook-body .woodland-map {
  width: min(calc(100% - 2rem), 112rem);
}

.storybook-body .home-ribbon,
.storybook-body .games-path,
.storybook-body .storybook-glimpses,
.storybook-body .latest-tale,
.storybook-body .site-footer {
  width: min(calc(100% - 2rem), 90rem);
}

/* --------------------------------------------------------------------------
   Navigation: no horizontal swiping at any breakpoint
   -------------------------------------------------------------------------- */
.storybook-body .site-nav__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.65rem;
  padding: .68rem .78rem;
  border: .12rem solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #315841;
  font: 900 .73rem/1 var(--storybook-display);
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.storybook-body .site-nav__play span { color: var(--storybook-berry); }


.storybook-body .site-nav__play:hover,
.storybook-body .site-nav__play:focus-visible {
  border-color: rgba(66, 112, 72, .17);
  background: #fff1a8;
  color: #174833;
}

@media (max-width: 75rem) {
  .storybook-body .site-nav {
    order: 3;
    display: grid;
    width: 100%;
    flex: 1 0 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .35rem;
    overflow: visible;
    margin: 0;
    padding: .2rem 0 0;
  }

  .storybook-body .site-nav > button,
  .storybook-body .site-nav__play {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

@media (max-width: 44rem) {
  .storybook-body .site-header {
    width: calc(100% - .65rem);
    gap: .5rem;
    padding: max(.5rem, env(safe-area-inset-top)) .6rem .6rem;
  }

  .storybook-body .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .28rem;
    padding-top: .25rem;
  }

  .storybook-body .site-nav > button,
  .storybook-body .site-nav__play {
    min-height: 2.45rem;
    padding: .5rem .28rem;
    font-size: .65rem;
    line-height: 1.05;
  }
}

/* --------------------------------------------------------------------------
   Short landscape entrance: keep Skip clear of the woodland gate.
   The existing short-screen composition can scroll; a bottom-centred Skip
   otherwise sits directly over the gate on smaller landscape phones.
   -------------------------------------------------------------------------- */
@media (max-width: 44rem) and (orientation: landscape) {
  .storybook-body .entrance__skip {
    top: max(.75rem, env(safe-area-inset-top));
    right: max(.75rem, env(safe-area-inset-right));
    bottom: auto;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Panel shell: safe-area aware close button, especially iPhone Safari
   -------------------------------------------------------------------------- */
.storybook-body .panel-layer {
  overscroll-behavior: none;
}

.storybook-body .panel__close {
  z-index: 20;
  top: .5rem;
  flex: 0 0 auto;
}

@media (max-width: 44rem) {
  .storybook-body .panel-layer {
    place-items: end stretch;
    padding: max(.45rem, env(safe-area-inset-top)) 0 0;
  }

  .storybook-body .panel {
    width: 100%;
    height: calc(100dvh - env(safe-area-inset-top) - .45rem);
    max-height: calc(100dvh - env(safe-area-inset-top) - .45rem);
    padding: 0 .85rem calc(1rem + env(safe-area-inset-bottom));
    border-width: .28rem 0 0;
    border-radius: 1.35rem 1.35rem 0 0;
    scroll-padding-top: 4rem;
  }

  .storybook-body .panel__close {
    position: sticky;
    top: .55rem;
    width: 3rem;
    height: 3rem;
    margin: .55rem .05rem .25rem auto;
    border: 2px solid rgba(255, 226, 145, .55);
    background: rgba(8, 31, 23, .96);
    box-shadow: 0 .55rem 1.3rem rgba(0, 0, 0, .32);
  }

  .storybook-body .panel__content {
    gap: 1.45rem;
    padding-bottom: .35rem;
  }
}

/* --------------------------------------------------------------------------
   Wide visual language. Character portraits stay portraits; story/location
   imagery stays 16:9 on every device.
   -------------------------------------------------------------------------- */
.storybook-body .explore-banner img,
.storybook-body .gallery-item img,
.storybook-body .storybook-glimpse img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.storybook-body .place-card {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.storybook-body .place-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.storybook-body .latest-tale__art--portrait {
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
}

.storybook-body .latest-tale__art--portrait > img {
  width: 100%;
  max-height: none;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 44rem) {
  .storybook-body .brand,
  .storybook-body .brand__words,
  .storybook-body .site-footer__brand,
  .storybook-body .site-footer__brand p,
  .storybook-body .site-footer__legal,
  .storybook-body .site-footer__copyright {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .storybook-body .site-footer__legal a,
  .storybook-body .site-footer__legal button {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .storybook-body .latest-tale__art--portrait {
    aspect-ratio: auto;
  }

  .storybook-body .latest-tale__art--portrait > img {
    height: auto;
  }

  .storybook-body .storybook-glimpse,
  .storybook-body .storybook-glimpse img {
    min-height: 0;
  }

  .storybook-body .place-card > div {
    padding: 2.6rem .8rem .75rem;
  }

  .storybook-body .place-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .storybook-body .explore-banner img {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Games path on the home page
   -------------------------------------------------------------------------- */
.games-path {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, .65fr);
  overflow: hidden;
  margin: clamp(2.2rem, 5vw, 4.5rem) auto 0;
  border: 1px solid rgba(246, 201, 95, .34);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #0d2c21, #092019);
  box-shadow: 0 1.4rem 3.6rem rgba(0, 0, 0, .24);
}

.games-path__media {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
}

.games-path__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.92) saturate(.95);
  transform: scale(1.012);
}

.games-path__media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, transparent 52%, rgba(6, 26, 19, .82) 100%),
              linear-gradient(0deg, rgba(5, 20, 15, .35), transparent 55%);
  content: "";
}

.games-path__friend {
  position: absolute;
  z-index: 3;
  right: 7%;
  bottom: 7%;
  width: clamp(3.5rem, 8vw, 7.8rem);
  max-height: 42%;
  object-fit: contain;
  filter: drop-shadow(0 .6rem .6rem rgba(0, 0, 0, .35));
}

.games-path__glow {
  position: absolute;
  z-index: 2;
  right: 3%;
  bottom: -10%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 218, 112, .28), transparent 70%);
  filter: blur(.2rem);
}

.games-path__copy {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: center;
  gap: .85rem;
  padding: clamp(1.35rem, 3vw, 2.6rem);
  color: var(--ink-light);
}

.games-path__copy h2 {
  color: #fff1c8;
  font: 900 clamp(2rem, 3.7vw, 3.5rem)/.98 var(--display);
  letter-spacing: -.045em;
}

.games-path__copy > p:not(.eyebrow) {
  color: rgba(248, 241, 217, .76);
  font: 700 .9rem/1.55 var(--display);
}

.games-path__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.games-path__actions .text-path { color: #ffe19a; }

.games-path__actions .story-button--sun {
  color: #214b38;
  text-shadow: none;
}

@media (max-width: 58rem) {
  .games-path { grid-template-columns: 1fr; }
  .games-path__media::after {
    background: linear-gradient(0deg, rgba(6, 26, 19, .72), transparent 45%);
  }
}

@media (max-width: 44rem) {
  .games-path {
    width: min(calc(100% - 1.25rem), 38rem);
    margin-top: 2.6rem;
    border-radius: 1.2rem;
  }

  .games-path__copy { padding: 1.1rem; }
  .games-path__copy h2 { font-size: clamp(1.75rem, 8.5vw, 2.45rem); }
  .games-path__actions { align-items: stretch; flex-direction: column; }
  .games-path__actions .story-button,
  .games-path__actions .text-path { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   Games panel
   -------------------------------------------------------------------------- */
.games-panel-heading { max-width: 64rem !important; }
.games-library { display: grid; gap: 1rem; }

.game-card {
  overflow: hidden;
  border: 1px solid rgba(246, 201, 95, .23);
  border-radius: 1.25rem;
  background: rgba(7, 27, 21, .78);
}

.game-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
}

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
}

.game-card__media > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 58%, rgba(5, 20, 15, .38));
  content: "";
}

.game-card__character {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 7%;
  width: clamp(3.2rem, 7vw, 6.8rem) !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 .5rem .7rem rgba(0, 0, 0, .4));
}

.game-card__badge {
  position: absolute;
  z-index: 3;
  top: .8rem;
  left: .8rem;
  padding: .4rem .65rem;
  border: 1px solid rgba(255, 225, 154, .4);
  border-radius: 999px;
  background: rgba(7, 27, 21, .83);
  color: #ffe19a;
  font: 900 .68rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  backdrop-filter: blur(.5rem);
}

.game-card__copy {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.game-card__copy h3,
.game-card--coming h3 {
  margin: .15rem 0 .5rem;
  color: #fff1c8;
  font: 900 clamp(1.75rem, 3.5vw, 3rem)/1 var(--display);
  letter-spacing: -.04em;
}

.game-card__copy p:not(.eyebrow),
.game-card--coming p:not(.eyebrow) {
  color: rgba(248, 241, 217, .72);
  font: 700 .86rem/1.5 var(--display);
}

.game-card__actions { display: grid; gap: .65rem; justify-items: start; }
.game-card__actions .story-button { text-decoration: none; }
.game-card__note { color: rgba(248, 241, 217, .55); font: 800 .7rem/1.3 var(--display); }

.game-card--coming {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  background: rgba(246, 201, 95, .055);
}

.game-card--coming h3 { font-size: clamp(1.25rem, 2.2vw, 1.8rem); }
.game-card__coming-mark {
  display: grid;
  width: 3.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(246, 201, 95, .35);
  border-radius: 50%;
  background: rgba(246, 201, 95, .09);
  color: #ffe19a;
  font-size: 1.3rem;
}

.storybook-body .game-teaser--play {
  width: 100%;
  border-style: solid;
  color: inherit;
  text-align: left;
}

@media (max-width: 52rem) {
  .game-card--featured { grid-template-columns: 1fr; }
  .game-card__media::after { background: linear-gradient(0deg, rgba(5, 20, 15, .42), transparent 45%); }
}

@media (max-width: 44rem) {
  .game-card__copy { padding: 1rem; }
  .game-card__copy h3 { font-size: 1.85rem; }
  .game-card--coming { grid-template-columns: 1fr; }
  .game-card__coming-mark { width: 3rem; }
  .game-card__actions,
  .game-card__actions .story-button { width: 100%; }
}

/* --------------------------------------------------------------------------
   Transition into a game
   -------------------------------------------------------------------------- */
.game-transition-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(246, 201, 95, .22), transparent 23rem),
    rgba(5, 22, 17, .97);
  opacity: 0;
  pointer-events: all;
  transition: opacity .42s ease;
}

.game-transition-screen.is-visible { opacity: 1; }
.game-transition-screen__inner { display: grid; justify-items: center; gap: .7rem; color: #ffe8aa; font: 900 .82rem/1.2 var(--display); letter-spacing: .06em; }
.game-transition-screen__inner img { width: 5.2rem; height: 5.2rem; object-fit: contain; filter: drop-shadow(0 0 1.2rem rgba(246, 201, 95, .4)); }

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

/* --------------------------------------------------------------------------
   Final full-screen panel pass — desktop + landscape phones
   -------------------------------------------------------------------------- */
@media (min-width: 44.01rem) {
  .storybook-body .panel-layer {
    place-items: stretch;
    padding: 0;
  }

  .storybook-body .panel {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    padding:
      max(1rem, env(safe-area-inset-top))
      max(1.35rem, env(safe-area-inset-right))
      max(1.35rem, env(safe-area-inset-bottom))
      max(1.35rem, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 92% 0%, rgba(229, 189, 100, 0.14), transparent 30rem),
      linear-gradient(145deg, rgba(16, 55, 40, 0.995), rgba(7, 25, 19, 0.995));
  }

  .storybook-body .panel__content {
    width: min(100%, 100rem);
    margin-inline: auto;
  }

  .storybook-body .panel__close {
    top: max(.6rem, env(safe-area-inset-top));
    margin-right: max(.1rem, env(safe-area-inset-right));
  }
}

/* iPhones often exceed the portrait breakpoint once rotated. Treat short
   landscape viewports as phones regardless of CSS width. */
@media (orientation: landscape) and (max-height: 42rem) {
  .storybook-body .panel-layer {
    place-items: stretch;
    padding: 0;
  }

  .storybook-body .panel {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding:
      max(.35rem, env(safe-area-inset-top))
      max(.7rem, env(safe-area-inset-right))
      max(.7rem, env(safe-area-inset-bottom))
      max(.7rem, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    scroll-padding-top: 3.2rem;
  }

  .storybook-body .panel__close {
    position: sticky;
    top: max(.25rem, env(safe-area-inset-top));
    width: 2.65rem;
    height: 2.65rem;
    margin: .15rem .05rem .2rem auto;
    background: rgba(8, 31, 23, .97);
    box-shadow: 0 .4rem 1rem rgba(0,0,0,.28);
  }

  .storybook-body .panel__content {
    width: min(100%, 92rem);
    gap: 1rem;
  }

  .storybook-body .panel-heading {
    align-items: center;
    gap: .75rem;
    max-width: none;
  }

  .storybook-body .panel-heading h2 {
    max-width: none;
    font-size: clamp(1.65rem, 7vh, 2.7rem);
    line-height: .98;
  }

  .storybook-body .panel-heading > p,
  .storybook-body .panel-heading > div > p:last-child {
    font-size: .78rem;
    line-height: 1.35;
  }

  .storybook-body .watch-layout {
    gap: .75rem;
  }

  .storybook-body .youtube-frame,
  .storybook-body .youtube-placeholder {
    min-height: 0;
  }
}

/* Let enlarged text reflow inside its available space. */
.storybook-body .site-shell {
  container: site-home / inline-size;
}

.storybook-body .site-header {
  flex-wrap: wrap;
}

.storybook-body .site-nav,
.storybook-body .header-actions {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.storybook-body .site-footer > *,
.storybook-body .site-footer__brand p,
.storybook-body .site-footer__legal a,
.storybook-body .site-footer__legal button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (min-width: 44.01rem) {
  .storybook-body .site-footer {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, auto);
  }
}

.storybook-body .places-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.storybook-body .game-teaser,
.storybook-body .game-teaser > div,
.storybook-body .game-teaser__badge {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.storybook-body .game-teaser__badge {
  white-space: normal;
}

@container site-home (max-width: 60rem) {
  .storybook-body .site-nav {
    order: 3;
    display: grid;
    width: 100%;
    flex: 1 0 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@container site-home (max-width: 44rem) {
  .storybook-body .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.storybook-body .site-nav button {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.storybook-body .games-path {
  min-width: 0;
}

.storybook-body .games-path__copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Keep lazy portrait loading and card focus from moving the scroll position. */
.storybook-body .panel:has(.character-grid) {
  overflow-anchor: none;
}

@media (max-width: 58rem) {
  .storybook-body .games-path { grid-template-columns: minmax(0, 1fr); }
}

@container site-home (max-width: 20rem) {
  .storybook-body .home-ribbon,
  .storybook-body .latest-tale__art--portrait {
    grid-template-columns: minmax(0, 1fr);
    overflow-wrap: anywhere;
  }

  .storybook-body .home-ribbon > p { grid-column: 1; }
  .storybook-body .latest-tale__art--portrait > img { max-height: 12rem; }
}

@container site-home (max-width: 14rem) {
  .storybook-body .site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storybook-body .home-compass__brand { flex-direction: column; }
}

/* Source: css/features/grownups.css */
/* JackLight Tales — magical Grown-ups room */

.storybook-body .panel-layer:has(.grownups-experience) {
  place-items: stretch;
  padding: 0;
}

.storybook-body .panel:has(.grownups-experience) {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #061c14;
  box-shadow: none;
}

.storybook-body .panel:has(.grownups-experience) .panel__close {
  position: absolute;
  z-index: 40;
  top: max(1rem, calc(env(safe-area-inset-top) + .5rem));
  right: max(1rem, calc(env(safe-area-inset-right) + .5rem));
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  border: 1px solid rgba(255, 224, 146, .58);
  background: rgba(7, 27, 20, .92);
  box-shadow: 0 .7rem 1.8rem rgba(0,0,0,.34);
  backdrop-filter: blur(.6rem);
}

.storybook-body .panel:has(.grownups-experience) .panel__content {
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 0;
}

.grownups-experience {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background-color: #10271d;
  background-image:
    linear-gradient(90deg, rgba(5, 17, 13, .06), rgba(5, 17, 13, 0)),
    url("../assets/images/site/entrance-woods-desktop.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.grownups-experience__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 84% 15%, rgba(247, 188, 82, .12), transparent 25rem),
    linear-gradient(90deg, rgba(4, 16, 12, .93) 0%, rgba(4, 16, 12, .72) 34%, rgba(4, 16, 12, .2) 66%, rgba(4, 16, 12, .04) 100%),
    linear-gradient(0deg, rgba(4, 15, 11, .92) 0%, rgba(4, 15, 11, .25) 38%, transparent 63%);
}

.grownups-experience::before,
.grownups-experience::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: .32rem;
  height: .32rem;
  border-radius: 50%;
  background: #ffe2a0;
  box-shadow:
    9vw 7vh 0 rgba(255, 226, 160, .56),
    24vw 16vh 0 rgba(255, 226, 160, .35),
    44vw 9vh 0 rgba(255, 226, 160, .48),
    58vw 24vh 0 rgba(255, 226, 160, .3),
    72vw 13vh 0 rgba(255, 226, 160, .42),
    84vw 31vh 0 rgba(255, 226, 160, .3);
  opacity: .55;
  animation: grownups-fireflies 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.grownups-experience::before { top: 8%; left: 4%; }
.grownups-experience::after { right: 11%; bottom: 19%; animation-delay: -3.5s; }

.grownups-experience__body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: clamp(.8rem, 1.25vw, 1.15rem);
  width: 100%;
  height: 100%;
  padding:
    clamp(2.2rem, 4.2vw, 4.6rem)
    clamp(2rem, 5.3vw, 6.8rem)
    clamp(1.35rem, 2.4vw, 2.6rem);
}

.grownups-hero {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(.72rem, 1.05vw, 1rem);
  width: min(100%, 61rem);
  min-width: 0;
  min-height: 0;
  padding-top: .5rem;
}

.grownups-hero .eyebrow {
  color: #f6d487;
  font-size: clamp(.78rem, .9vw, .98rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.grownups-hero h2 {
  max-width: 14.5ch;
  margin: 0;
  color: #fff8e8;
  font-size: clamp(3.6rem, 6vw, 6.9rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .88;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .62);
}

.grownups-nowrap {
  white-space: nowrap;
}

.grownups-hero__intro {
  max-width: 54rem;
  margin: 0;
  color: rgba(255, 249, 233, .94);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.02rem, 1.2vw, 1.28rem);
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .64);
}

.grownups-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .25rem;
}

.lantern-action {
  position: relative;
  display: inline-flex;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  gap: .68rem;
  overflow: hidden;
  padding: .92rem 1.35rem;
  border: 1px solid rgba(255, 233, 176, .52);
  border-radius: 999px;
  color: #fff9e9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.92rem, 1vw, 1.05rem);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.lantern-action::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 25%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  opacity: 0;
  transition: left 520ms ease, opacity 180ms ease;
}

.lantern-action:hover,
.lantern-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 242, 204, .9);
  filter: brightness(1.05);
}

.lantern-action:hover::before,
.lantern-action:focus-visible::before { left: 115%; opacity: 1; }

.lantern-action--support {
  background: linear-gradient(135deg, #dba531, #f0c75d 58%, #c78e22);
  color: #241608;
  box-shadow: 0 10px 30px rgba(226, 174, 55, .28), inset 0 1px rgba(255,255,255,.38);
}

.lantern-action--support:hover,
.lantern-action--support:focus-visible {
  box-shadow: 0 14px 34px rgba(226, 174, 55, .4), 0 0 22px rgba(255, 218, 130, .16);
}

.lantern-action--contact {
  background: linear-gradient(135deg, rgba(20, 69, 48, .94), rgba(7, 36, 25, .96));
  backdrop-filter: blur(.5rem);
}

.lantern-action--contact:hover,
.lantern-action--contact:focus-visible {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34), 0 0 22px rgba(190, 226, 146, .12);
}

.lantern-action__icon { font-size: 1.08rem; }
.lantern-action__arrow { opacity: .72; }

.grownups-hero__email {
  color: rgba(255, 244, 215, .88);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.82rem, .9vw, .96rem);
  font-weight: 700;
  text-underline-offset: .22rem;
}

.grownups-hero__email:hover,
.grownups-hero__email:focus-visible { color: #fff6dd; }

.grownups-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.72rem, 1vw, 1rem);
}

.grownups-glance__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  min-width: 0;
  padding: clamp(1rem, 1.4vw, 1.35rem);
  border: 1px solid rgba(255, 238, 197, .24);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(7, 29, 20, .82), rgba(13, 45, 32, .68));
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(.72rem);
}

.grownups-glance__card--gold {
  border-color: rgba(244, 201, 101, .4);
  background: linear-gradient(145deg, rgba(66, 47, 18, .78), rgba(17, 45, 31, .74));
}

.grownups-glance__mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(255, 223, 145, .38);
  border-radius: 50%;
  background: rgba(5, 22, 15, .58);
  color: #f2cb6d;
  font-size: 1rem;
}

.grownups-glance__card > div { display: grid; gap: .25rem; min-width: 0; overflow-wrap: anywhere; }

.grownups-glance__card h3 {
  margin: 0;
  color: #fff8e8;
  font-size: clamp(1.08rem, 1.25vw, 1.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.grownups-glance__card p:last-child {
  margin: 0;
  color: rgba(255, 249, 233, .76);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.76rem, .86vw, .9rem);
  line-height: 1.4;
}

.grownups-social-trail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  padding: .8rem .9rem;
  border: 1px solid rgba(255, 233, 176, .2);
  border-radius: 1rem;
  background: rgba(5, 23, 16, .72);
  backdrop-filter: blur(.7rem);
}

.grownups-social-trail__intro {
  display: grid;
  gap: .14rem;
  min-width: 11rem;
  padding-right: .4rem;
}

.grownups-social-trail__intro > span {
  color: rgba(255, 249, 233, .68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
}

.grownups-social-trail__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  min-width: 0;
}

.grownups-social-trail .social-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  min-height: 3rem;
  padding: .6rem .72rem;
  border: 1px solid rgba(255, 236, 189, .2);
  border-radius: .8rem;
  background: rgba(255, 249, 233, .065);
  color: #fff8e8;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.grownups-social-trail .social-link:hover,
.grownups-social-trail .social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 146, .48);
  background: rgba(255, 249, 233, .1);
}

.grownups-social-trail .social-link__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 224, 146, .3);
  border-radius: 50%;
  background: #08281d;
  color: #f4cc70;
  font: 900 .6rem/1 Arial, Helvetica, sans-serif;
}

.grownups-social-trail .social-link__copy {
  display: grid;
  min-width: 0;
}

.grownups-social-trail .social-link__copy strong {
  overflow: hidden;
  color: #fff8e8;
  font: 800 .76rem/1.15 Arial, Helvetica, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grownups-social-trail .social-link__copy small {
  overflow: hidden;
  color: rgba(255, 249, 233, .58);
  font: 600 .62rem/1.15 Arial, Helvetica, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grownups-social-trail .social-link__arrow {
  color: #f4cc70;
  font-size: .76rem;
}

.grownups-experience__closing {
  margin: 0;
  color: rgba(255, 245, 220, .78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}

.grownups-experience__closing span { color: #efc665; }

@keyframes grownups-fireflies {
  from { transform: translate3d(0, 0, 0); opacity: .35; }
  to { transform: translate3d(.35rem, -.45rem, 0); opacity: .72; }
}

@media (max-width: 74rem) and (min-width: 56.01rem) {
  .grownups-experience__body {
    padding-inline: clamp(1.6rem, 3.6vw, 3rem);
  }

  .grownups-hero h2 {
    max-width: 13ch;
    font-size: clamp(3.2rem, 6.6vw, 5.5rem);
  }

  .grownups-social-trail__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grownups-social-trail .social-link__copy small { display: none; }
}

@media (max-width: 56rem) {
  .storybook-body .panel-layer:has(.grownups-experience) {
    padding: 0;
  }

  .storybook-body .panel:has(.grownups-experience) {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    border-radius: 0;
  }

  .storybook-body .panel:has(.grownups-experience) .panel__close {
    position: fixed;
    top: max(.75rem, calc(env(safe-area-inset-top) + .35rem));
    right: max(.75rem, calc(env(safe-area-inset-right) + .35rem));
  }

  .storybook-body .panel:has(.grownups-experience) .panel__content {
    height: auto;
    min-height: 100dvh;
  }

  .grownups-experience {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    background-image:
      linear-gradient(180deg, rgba(5, 17, 13, .01), rgba(5, 17, 13, .28)),
      url("../assets/images/site/entrance-woods-mobile.webp");
    background-position: center top, center top;
  }

  .grownups-experience__body {
    grid-template-rows: auto auto auto auto;
    gap: 1rem;
    min-height: 100dvh;
    padding:
      max(4.6rem, calc(env(safe-area-inset-top) + 4rem))
      clamp(1rem, 5vw, 2rem)
      max(1.4rem, calc(env(safe-area-inset-bottom) + 1rem));
  }

  .grownups-hero {
    min-height: 58dvh;
    align-content: end;
    padding-top: 2rem;
  }

  .grownups-hero h2 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 11vw, 4.7rem);
    overflow-wrap: anywhere;
  }

  .grownups-nowrap { white-space: normal; }

  .grownups-social-trail__intro { min-width: 0; }

  .grownups-hero__intro { font-size: .98rem; }
  .grownups-glance { grid-template-columns: 1fr; }

  .grownups-social-trail {
    grid-template-columns: 1fr;
  }

  .grownups-social-trail__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grownups-experience__veil {
    background:
      linear-gradient(180deg, rgba(5, 17, 13, .07) 0%, rgba(5, 17, 13, .18) 27%, rgba(5, 17, 13, .84) 58%, rgba(5, 17, 13, .97) 100%),
      linear-gradient(90deg, rgba(5, 17, 13, .35), rgba(5, 17, 13, .08));
  }
}

@media (max-width: 36rem) {
  .grownups-hero__actions {
    display: grid;
    width: 100%;
  }

  .lantern-action {
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
  }

  .lantern-action > span:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .grownups-hero__email { justify-self: center; }
  .grownups-social-trail__links { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8rem, 40%)), 1fr)); }
  .grownups-social-trail .social-link__copy small { display: none; }
  .grownups-experience__closing { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grownups-experience::before,
  .grownups-experience::after { animation: none; }
  .lantern-action,
  .grownups-social-trail .social-link { transition: none; }
}

 /* Consolidated from the former grownups-hotfix.css. */
.lantern-action--contact,
.lantern-action--contact:visited,
.lantern-action--contact span {
  color: #fff9e9 !important;
}

/* Use the shipped woodland artwork until a dedicated Grown-ups hero is added. */
.grownups-experience {
  background-image:
    linear-gradient(90deg, rgba(5, 17, 13, .06), rgba(5, 17, 13, 0)),
    url("../assets/images/site/entrance-woods-desktop.webp") !important;
  background-size: cover, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 44rem) {
  .grownups-experience {
    background-image:
      linear-gradient(90deg, rgba(5, 17, 13, .06), rgba(5, 17, 13, 0)),
      url("../assets/images/site/entrance-woods-mobile.webp") !important;
  }
}

/* Source: css/features/listen.css */
/* Collection-first Listen room, with one player on every screen. */
.storybook-body .panel:has(.listen-experience) {
  scroll-padding-top: min(14rem, 40dvh);
  background: radial-gradient(circle at 18% 0%, rgba(245,202,103,.09), transparent 24rem), linear-gradient(145deg, #0b2b20, #051710);
}
/* Keyboard visibility is adjusted for the player; a large native inset clips focus in Safari. */
.storybook-body .panel:has(.listen-experience :focus-visible) { scroll-padding-top: 4rem; }
.storybook-body .panel:has(.listen-experience) .panel__content { gap: 0; }
.listen-experience { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-width: 0; color: #fff8e8; overflow-wrap: anywhere; container: listen-room / inline-size; }
.listen-heading { display: grid; gap: .55rem; padding-right: .5rem; }
.listen-heading h2 { max-width: 28ch; margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.listen-heading > p:last-child { max-width: 58ch; color: rgba(255,249,233,.78); font: .9rem/1.5 Arial, Helvetica, sans-serif; }
.listen-collections { display: grid; gap: .6rem; }
.listen-collections h3, .story-shelf h3 { margin: 0; font-size: 1.25rem; font-weight: 500; }
.listen-collections .audiobook-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.listen-future { color: rgba(255,249,233,.7); font: .8rem/1.4 Arial, Helvetica, sans-serif; }
.listen-future summary { width: fit-content; padding: .35rem 0; cursor: pointer; }
.listen-future .audiobook-series { margin-top: .65rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.listen-player {
  position: sticky; z-index: 1; top: 3.2rem;
  min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem 1rem;
  padding: 1rem; border: 1px solid rgba(248,215,127,.5); border-radius: 1rem;
  background: #08281d; box-shadow: 0 .65rem 1.7rem rgba(0,0,0,.25);
}
.listen-player__copy { display: grid; gap: .25rem; min-width: 0; }
.listen-player.is-focus-unpinned { position: relative; top: auto; }
.listen-player .audio-player__status { margin: 0; color: #f4cf72; font: 700 .68rem/1.35 Arial, Helvetica, sans-serif; letter-spacing: .015em; text-transform: none; }
.listen-player .audio-player__title { margin: 0; color: #fff8e8; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.listen-player__copy > p:last-child { margin: 0; color: rgba(255,249,233,.7); font: .72rem/1.35 Arial, Helvetica, sans-serif; }
.listen-player__controls { display: flex; align-items: center; gap: .4rem; }
.listen-control { display: grid; flex-shrink: 0; width: 2.8rem; height: 2.8rem; padding: 0; place-items: center; border: 1px solid rgba(248,215,127,.35); border-radius: 50%; background: rgba(255,249,233,.05); color: #fff8e8; }
.listen-control--play { width: 3.25rem; height: 3.25rem; border-color: #f4cf72; background: #e2b64d; color: #211807; }
.listen-control:hover:not(:disabled) { border-color: #f4cf72; }
.listen-control:disabled { opacity: .38; cursor: default; }
.listen-player__progress { display: grid; gap: .25rem; grid-column: 1 / -1; }
.listen-player__progress input { width: 100%; min-width: 0; min-height: 1.3rem; margin: 0; accent-color: #e2b64d; cursor: pointer; }
.listen-player__progress input:disabled { cursor: default; opacity: .4; }
.listen-player__times { display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,249,233,.8); font: .72rem/1.3 Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums; }
.story-shelf { display: grid; gap: .9rem; padding-bottom: .5rem; }
.story-shelf__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.story-shelf__heading > div:first-child { display: grid; gap: .3rem; }
.story-shelf [data-audio-count] { margin: 0; color: rgba(255,249,233,.7); font: .76rem/1.3 Arial, Helvetica, sans-serif; }
.listen-queue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.listen-play-all, .listen-continue { min-height: 2.8rem; padding: .6rem .85rem; border: 1px solid rgba(248,215,127,.55); border-radius: .65rem; background: #e2b64d; color: #211807; font: 700 .8rem/1.3 Arial, Helvetica, sans-serif; }
.listen-play-all:disabled { opacity: .4; cursor: default; }
.listen-continue { background: transparent; color: #f4cf72; }
.storybook-body .listen-experience .listen-play-all,
.storybook-body .listen-experience .listen-control--play { color: #211807; }
.listen-ambience { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem; border: 1px solid rgba(248,215,127,.17); border-radius: .7rem; color: #fff8e8; font: .8rem/1.4 Arial, Helvetica, sans-serif; cursor: pointer; }
.listen-ambience input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: #e2b64d; }
.listen-ambience small { display: block; margin-top: .15rem; color: rgba(255,249,233,.67); font-size: .72rem; }
.listen-experience .audiobook-episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.listen-experience .audiobook-episode { scroll-margin-top: 0; scroll-margin-bottom: .4rem; }
.listen-experience :is(button, input, summary):focus-visible { outline: .18rem solid #f4cf72; outline-offset: .2rem; }
@media (max-width: 44rem) {
  .storybook-body .panel:has(.listen-experience) { max-height: calc(100dvh - 1rem); padding: .85rem; }
  .storybook-body .panel:has(.listen-experience) { scroll-padding-top: min(17rem, 40dvh); }
  .listen-experience { gap: .9rem; }
  .listen-heading h2 { font-size: 1.85rem; }
  .listen-heading > p:last-child { font-size: .8rem; }
  .listen-player { top: 3rem; grid-template-columns: auto minmax(0, 1fr); padding: .7rem; gap: .5rem; }
  .listen-player__copy { grid-column: 1 / -1; }
  .listen-player__controls { grid-column: 1; grid-row: 2; }
  .listen-player__progress { grid-column: 2; grid-row: 2; min-width: 0; }
  .listen-player__copy > p:last-child { font-size: .65rem; }
  .listen-control { width: 2.75rem; height: 2.75rem; }
  .listen-control--play { width: 2.9rem; height: 2.9rem; }
  .story-shelf__heading { align-items: flex-start; flex-direction: column; }
  .listen-experience .audiobook-episodes { grid-template-columns: 1fr; }
  .listen-future .audiobook-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (orientation: landscape) and (max-height: 32rem) {
  .storybook-body .panel:has(.listen-experience) { max-height: 100dvh; padding: .6rem 1rem; }
  .listen-player { top: 2.9rem; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .7rem; padding: .6rem .75rem; }
  .listen-player__copy { grid-column: 1; grid-row: 1; }
  .listen-player__controls { grid-column: 2; grid-row: 1; }
  .listen-player__progress { grid-column: 1 / -1; grid-row: 2; }
  .listen-player .audio-player__title { font-size: 1rem; }
  .listen-player__copy > p:last-child { display: none; }
  .listen-player__progress input { min-height: 1rem; }
}

/* Enlarged text needs its own progress row on narrow screens. The query uses
   the listening room's available width, so ordinary phone layouts stay intact. */
@container listen-room (max-width: 27rem) {
  .listen-experience .audiobook-episodes { grid-template-columns: minmax(0, 1fr); }
  @media (orientation: landscape) and (max-height: 38rem) {
    .listen-player { position: relative; top: auto; }
  }
}
@container listen-room (max-width: 15rem) {
  .listen-collections .audiobook-series,
  .listen-future .audiobook-series { grid-template-columns: minmax(0, 1fr); }
  .audiobook-episode { grid-template-columns: auto minmax(0, 1fr); gap: .4rem; }
  .audiobook-episode__number { width: clamp(34px, 2.15rem, 44px); height: clamp(34px, 2.15rem, 44px); }
  .audiobook-episode__play { display: none; }
  .listen-player { grid-template-columns: minmax(0, 1fr); }
  .listen-player__copy { grid-column: 1; grid-row: 1; }
  .listen-player__controls { grid-column: 1; grid-row: 2; justify-content: center; }
  .listen-player__progress { grid-column: 1; grid-row: 3; }
  .listen-control { width: clamp(44px, 2.75rem, 60px); height: clamp(44px, 2.75rem, 60px); }
  .listen-control--play { width: clamp(46px, 2.9rem, 64px); height: clamp(46px, 2.9rem, 64px); }
  @media (max-height: 38rem) {
    /* A large-text player must scroll naturally when it cannot fit below Close. */
    .listen-player { position: relative; top: auto; }
  }
}

/* Keep collection and story rows in the quiet green-and-gold Listen theme. */
.storybook-body .listen-experience .audiobook-series__button,
.storybook-body .listen-experience .audiobook-episode {
  min-height: 4.5rem; border-color: rgba(248,215,127,.23); background: rgba(255,249,233,.035); color: #fff8e8; box-shadow: none;
}
.storybook-body .listen-experience .audiobook-series__button { min-height: 5.6rem; gap: .35rem; padding: .85rem; }
.storybook-body .listen-experience .audiobook-series__button strong,
.storybook-body .listen-experience .audiobook-episode__copy strong { color: #fff8e8; font-weight: 600; }
.storybook-body .listen-experience .audiobook-series__button small,
.storybook-body .listen-experience .audiobook-episode__copy small { color: rgba(255,249,233,.73); font: .72rem/1.35 Arial, Helvetica, sans-serif; white-space: normal; }
.storybook-body .listen-experience .audiobook-episode__number { background: rgba(248,215,127,.08); color: #f4cf72; border-color: rgba(248,215,127,.28); }
.storybook-body .listen-experience .audiobook-episode__play,
.storybook-body .listen-experience .audiobook-series__number { color: #f4cf72; }
.storybook-body .listen-experience .audiobook-series__button.is-active,
.storybook-body .listen-experience .audiobook-series__button:hover:not(:disabled),
.storybook-body .listen-experience .audiobook-episode.is-ready:hover,
.storybook-body .listen-experience .audiobook-episode.is-active { border-color: #e2b64d; background: rgba(226,182,77,.12); }
.storybook-body .listen-experience .audiobook-episode.is-active { box-shadow: inset .22rem 0 #e2b64d; }
.storybook-body .listen-experience .audiobook-series__button:disabled { opacity: .66; }

/* Source: css/features/home-crossroads.css */
/*
 * JackLight Tales — home crossroads
 * The homepage heading stays above the illustrated woodland map.
 * All five destinations live on the map itself, including the Game Paths.
 */

.storybook-body .map-heading--home {
  display: grid;
  width: min(calc(100% - 2rem), 72rem);
  justify-items: center;
  gap: .65rem;
  margin: clamp(3rem, 6vw, 5.5rem) auto clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.storybook-body .home-compass__intro {
  display: grid;
  justify-items: center;
  gap: .7rem;
  min-width: 0;
  width: 100%;
}

.storybook-body .home-compass__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.85rem, 1.6vw, 1.25rem);
  margin-bottom: .2rem;
  max-width: 100%;
}

.storybook-body .home-compass__brand-mark {
  display: grid;
  width: clamp(5rem, 8vw, 7rem);
  height: clamp(5rem, 8vw, 7rem);
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(246, 201, 95, .38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 201, 95, .2), rgba(4, 14, 12, .7));
  box-shadow:
    0 0 2.5rem rgba(246, 201, 95, .16),
    inset 0 0 1.5rem rgba(246, 201, 95, .07);
}

.storybook-body .home-compass__brand-mark img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 0 1rem rgba(246, 201, 95, .5));
}

.storybook-body .home-compass__brand-words {
  display: grid;
  gap: .35rem;
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
}

.storybook-body .home-compass__brand-words strong {
  color: var(--ink-light);
  font: 900 clamp(2rem, 4.1vw, 4rem)/.92 var(--display);
  letter-spacing: -.055em;
}

.storybook-body .home-compass__brand-words small {
  color: rgba(248, 241, 217, .58);
  font: 800 clamp(.7rem, 1.1vw, .88rem)/1.2 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.storybook-body .home-compass__intro h1 {
  max-width: 14ch;
  color: var(--ink-light);
  font: 900 clamp(2.5rem, 5vw, 5.2rem)/.92 var(--display);
  letter-spacing: -.065em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.storybook-body .home-compass__intro > p:last-child {
  max-width: 42rem;
  color: var(--ink-muted);
  font: 700 clamp(.9rem, 1.35vw, 1.08rem)/1.5 var(--display);
}

/* Fifth destination: the Game Paths now lives directly on the illustrated map. */
.storybook-body .woodland-map .map-stop--games {
  --stop-color: #8b5fbf;
  top: 80%;
  left: 50%;
  flex-direction: row;
  text-align: left;
  transform: translateX(-50%) translateY(1rem) scale(.88);
}

.storybook-body .woodland-map.is-ready .map-stop--games {
  transform: translateX(-50%) translateY(0) scale(1);
  transition-delay: 360ms;
}

.storybook-body .woodland-map .map-stop--games .map-stop__sign {
  border-color: rgba(139, 95, 191, .4);
}

.storybook-body .woodland-map .map-stop--games .map-stop__sign::before {
  background: #8b5fbf;
}

.storybook-body .woodland-map .map-stop--games .map-stop__marker {
  box-shadow:
    0 0 0 .13rem rgba(79, 74, 37, .25),
    0 .35rem 0 rgba(74, 61, 31, .25),
    0 .8rem 1.2rem rgba(68, 69, 33, .28),
    0 0 1.5rem rgba(139, 95, 191, .24);
}

@media (max-width: 58rem) {
  .storybook-body .home-compass__brand {
    gap: .7rem;
  }

  .storybook-body .home-compass__brand-words strong {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
}

@media (max-width: 44rem) {
  .storybook-body .map-heading--home {
    width: min(calc(100% - 1.25rem), 38rem);
    margin-top: 2.2rem;
    gap: 1rem;
  }

  .storybook-body .home-compass__brand {
    gap: .7rem;
  }

  .storybook-body .home-compass__brand-mark {
    width: min(4.35rem, 22vw);
    height: min(4.35rem, 22vw);
  }

  .storybook-body .home-compass__brand-words strong {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .storybook-body .home-compass__brand-words small {
    font-size: .62rem;
  }

  .storybook-body .home-compass__intro h1 {
    font-size: clamp(2.25rem, 11vw, 3.55rem);
  }

  .storybook-body .home-compass__intro > p:last-child {
    max-width: 34rem;
  }

  .storybook-body .woodland-map .map-stop--games {
    top: 80%;
    left: 50%;
  }
}

@media (max-width: 26rem) {
  .storybook-body .woodland-map .map-stop--games {
    top: 84%;
  }
}

/* Mobile phone spacing pass — keep all five destinations clearly separated. */
@media (max-width: 44rem) {
  .storybook-body .woodland-map {
    /* At 200% text size the final sign needs about 244px below its 84% stop.
       Grow to 1536px then, while keeping the usual 512px minimum at 16px. */
    min-height: max(32rem, calc(64rem - 512px));
  }

  .storybook-body .woodland-map .map-stop {
    width: max-content;
    max-width: calc(100% - 1rem);
  }

  .storybook-body .woodland-map .map-stop__sign {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .storybook-body .woodland-map .map-stop--watch {
    top: 10%;
  }

  .storybook-body .woodland-map .map-stop--characters {
    top: 29%;
  }

  .storybook-body .woodland-map .map-stop--listen {
    top: 48%;
  }

  .storybook-body .woodland-map .map-stop--artwork {
    top: 67%;
  }

  .storybook-body .woodland-map .map-stop--games {
    top: 84%;
  }
}

/* Homepage ribbon finish — consolidated from major-update.css. */
.storybook-body .home-ribbon {
  background: linear-gradient(110deg, rgba(246, 201, 95, 0.14), rgba(14, 46, 35, 0.82) 34%, rgba(9, 31, 24, 0.9));
}

/* Homepage artwork showcase. */
.storybook-glimpses {
  display: grid;
  width: min(calc(100% - 2rem), 78rem);
  gap: 1.1rem;
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
}

.storybook-glimpses__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.storybook-glimpses__heading > div {
  display: grid;
  gap: 0.4rem;
}

.storybook-glimpses__heading h2 {
  max-width: 18ch;
  color: #fff2cf;
  font: 900 clamp(1.8rem, 4vw, 3.15rem)/1.02 var(--display);
  letter-spacing: -0.045em;
}

.storybook-glimpses__heading .text-path {
  flex: 0 0 auto;
  color: #ffe19a;
}

.storybook-glimpses__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.storybook-glimpse {
  position: relative;
  overflow: hidden;
  min-height: 20rem;
  border: 1px solid rgba(246, 201, 95, 0.28);
  border-radius: 1.35rem;
  background: #10271f;
  box-shadow: 0 1.35rem 3.4rem rgba(0, 0, 0, 0.24);
}

.storybook-glimpse img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

.storybook-glimpse figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.22rem;
  padding: 4.8rem 1.15rem 1.1rem;
  background: linear-gradient(to top, rgba(4, 17, 13, 0.94), rgba(4, 17, 13, 0.05));
}

.storybook-glimpse figcaption strong {
  color: #fff1c6;
  font: 900 1.2rem/1.1 var(--display);
}

.storybook-glimpse figcaption span {
  max-width: 34rem;
  color: rgba(248, 241, 217, 0.78);
  font: 700 0.78rem/1.45 var(--display);
}

.storybook-glimpse:hover img {
  transform: scale(1.025);
  filter: saturate(1.04) brightness(1.02);
}

@media (max-width: 52rem) {
  .storybook-glimpses__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .storybook-glimpses__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storybook-body .woodland-map .map-stop--games {
    transition: none;
  }
}

/* Use the taller map arrangement when text enlargement makes signs wider. */
@container site-home (max-width: 44rem) {
  .storybook-body .woodland-map {
    min-height: max(32rem, calc(64rem - 512px));
  }
  .storybook-body .woodland-map .map-stop {
    width: max-content;
    max-width: calc(100% - 1rem);
  }
  .storybook-body .woodland-map .map-stop__sign {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .storybook-body .woodland-map .map-stop--watch { top: 10%; }
  .storybook-body .woodland-map .map-stop--characters { top: 29%; }
  .storybook-body .woodland-map .map-stop--listen { top: 48%; }
  .storybook-body .woodland-map .map-stop--artwork { top: 67%; }
  .storybook-body .woodland-map .map-stop--games { top: 84%; }
}

/* Source: css/features/image-protection.css */
/* Keep image artwork from being casually dragged or long-pressed as a save target. */
main img,
.panel-layer img,
.storybook-body img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Source: css/features/watch-series.css */
/* JackLight Tales — Woodland Cinema
   Full-viewport cinema on desktop and mobile.
   One landscape player; short portrait phones can scroll to keep it uncropped. */

.storybook-body .panel-layer--watch {
  padding: 0 !important;
  place-items: stretch !important;
  background: #020907;
}

.storybook-body .panel--watch {
  position: relative;
  isolation: isolate;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding:
    max(.7rem, env(safe-area-inset-top))
    max(.9rem, env(safe-area-inset-right))
    max(.65rem, env(safe-area-inset-bottom))
    max(.9rem, env(safe-area-inset-left)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #04110d !important;
  box-shadow: none !important;
}

/* CSS URLs resolve from css/features/. Keep the artwork and dark veil
   below the content, with no pointer interception or layout changes. */
.storybook-body .panel--watch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(3, 12, 10, .30), rgba(3, 12, 10, .52)),
    url("../assets/images/cinema/woodland-cinema-bg-wide.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.storybook-body .panel--watch .panel__close {
  position: fixed !important;
  z-index: 30;
  top: max(.7rem, env(safe-area-inset-top));
  right: max(.8rem, env(safe-area-inset-right));
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 !important;
  border: 1px solid rgba(246, 201, 95, .32);
  background: rgba(2, 13, 10, .9);
  color: var(--lantern-soft);
  box-shadow: 0 .45rem 1.25rem rgba(0,0,0,.28);
}

.storybook-body .panel--watch .panel__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 0;
  container: cinema-room / inline-size;
}


.cinema-room {
  display: grid;
  width: min(100%, 112rem);
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .55rem;
  margin-inline: auto;
}

.cinema-room__top,
.cinema-room__screen-head,
.cinema-room__footer,
.cinema-room__socials,
.cinema-room__links {
  display: flex;
}

.cinema-room__top {
  align-items: end;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  padding-right: 3.4rem;
}

.cinema-room__title {
  display: grid;
  gap: .24rem;
  min-width: 0;
}

.cinema-room__title .eyebrow {
  margin: 0;
}

.cinema-room__title h2 {
  margin: 0;
  color: var(--ink-light);
  font: 900 clamp(1.65rem, 2.65vw, 2.9rem)/.96 var(--display);
  letter-spacing: -.05em;
}

.cinema-room__title > p:last-child {
  max-width: 48rem;
  margin: 0;
  color: var(--ink-muted);
  font: 700 .78rem/1.35 var(--display);
}

.cinema-room__links {
  flex: 0 0 auto;
  gap: .48rem;
}

.cinema-room__links a {
  display: grid;
  min-width: 10rem;
  gap: .14rem;
  padding: .58rem .72rem;
  border: 1px solid var(--line-night-soft);
  border-radius: .8rem;
  background: rgba(2, 13, 10, .64);
  text-decoration: none;
}

.cinema-room__links a:hover,
.cinema-room__links a:focus-visible {
  border-color: rgba(246, 201, 95, .48);
  background: rgba(246, 201, 95, .08);
}

.cinema-room__links span {
  color: var(--ink-muted);
  font: 700 .59rem/1.2 var(--display);
}

.cinema-room__links strong {
  color: var(--lantern-soft);
  font: 900 .69rem/1.2 var(--display);
}

.cinema-room__screen {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .38rem;
}

.cinema-room__screen-head {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: .2rem;
}

.cinema-room__screen-head > div {
  display: grid;
  gap: .04rem;
}

.cinema-room__screen-kicker {
  color: var(--lantern);
  font: 900 .59rem/1.2 var(--display);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cinema-room__screen-head strong {
  color: var(--ink-light);
  font: 900 .9rem/1.15 var(--display);
}

.cinema-room__screen-head a {
  color: var(--lantern-soft);
  font: 900 .66rem/1.2 var(--display);
  text-decoration: none;
}

.cinema-room__screen-head a:hover,
.cinema-room__screen-head a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.cinema-room__player {
  position: relative;
  width: min(100%, calc((100dvh - 11.8rem) * 16 / 9));
  min-width: 0;
  min-height: 0;
  max-height: calc(100dvh - 11.8rem);
  aspect-ratio: 16 / 9;
  align-self: center;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(246, 201, 95, .28);
  border-radius: 1rem;
  background: #020706;
  box-shadow: 0 1rem 2.8rem rgba(0,0,0,.32);
}

.cinema-room__player iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.cinema-room__player .youtube-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.cinema-room__footer {
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  min-width: 0;
  padding-top: .4rem;
  border-top: 1px solid var(--line-night-soft);
}

.cinema-room__socials {
  flex-wrap: wrap;
  gap: .3rem;
}

.cinema-room__socials a,
.cinema-room__support {
  padding: .4rem .58rem;
  border: 1px solid var(--line-night-soft);
  border-radius: 999px;
  background: rgba(2, 13, 10, .64);
  color: rgba(248, 241, 217, .72);
  font: 800 .59rem/1 var(--display);
  text-decoration: none;
}

/* Override the site's inherited anchor color without changing sizing. */
a.cinema-room__support {
  color: rgba(248, 241, 217, .72);
}

.cinema-room__socials a:hover,
.cinema-room__socials a:focus-visible,
.cinema-room__support:hover,
.cinema-room__support:focus-visible {
  border-color: rgba(246, 201, 95, .42);
  color: var(--lantern-soft);
}

.cinema-room__support {
  flex: 0 0 auto;
}

.cinema-room__footer p {
  flex: 0 0 auto;
  margin: 0;
  color: rgba(248, 241, 217, .43);
  font: 700 .57rem/1.2 var(--display);
  white-space: nowrap;
}

/* Desktop / tablet landscape: cinema fills the entire viewport. */
@media (min-width: 45rem) {
  .cinema-room {
    padding: .05rem .2rem;
  }
}

/* Mobile portrait: a deliberate full-page cinema composition.
   The 16:9 film stays uncropped and edge-to-edge; the surrounding typography
   and controls are sized for a portrait phone instead of inheriting desktop scale. */
@media (max-width: 44.99rem) and (orientation: portrait) {
  /* The taller original retains more forest when cover crops to a phone. */
  .storybook-body .panel--watch::before {
    background-image:
      linear-gradient(to bottom, rgba(3, 12, 10, .30), rgba(3, 12, 10, .52)),
      url("../assets/images/cinema/woodland-cinema-bg-landscape.webp");
  }

  .storybook-body .panel--watch {
    padding:
      max(.62rem, env(safe-area-inset-top))
      max(.55rem, env(safe-area-inset-right))
      max(.62rem, env(safe-area-inset-bottom))
      max(.55rem, env(safe-area-inset-left)) !important;
  }

  .storybook-body .panel--watch .panel__close {
    top: max(.58rem, env(safe-area-inset-top));
    right: max(.55rem, env(safe-area-inset-right));
    width: 3rem;
    height: 3rem;
    font-size: 1.6rem;
  }

  .storybook-body .panel--watch .panel__content {
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .cinema-room {
    display: grid !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    gap: clamp(.7rem, 1.7dvh, 1.05rem);
    margin: 0;
  }

  .cinema-room__top {
    display: grid;
    align-items: start;
    gap: clamp(.62rem, 1.35dvh, .9rem);
    padding-right: 0;
  }

  .cinema-room__title {
    gap: .22rem;
    padding-right: 3.45rem;
  }

  .cinema-room__title .eyebrow {
    font-size: clamp(.72rem, 3.2vw, .88rem);
    line-height: 1.1;
    letter-spacing: .15em;
  }

  .cinema-room__title h2 {
    max-width: 29rem;
    font-size: clamp(1.85rem, 8.1vw, 2.45rem);
    line-height: .98;
    letter-spacing: -.045em;
  }

  .cinema-room__title > p:last-child {
    max-width: 31rem;
    font-size: clamp(.78rem, 3.4vw, .94rem);
    line-height: 1.35;
  }

  .cinema-room__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: .55rem;
  }

  .cinema-room__links a {
    min-width: 0;
    min-height: 4.25rem;
    overflow-wrap: anywhere;
    align-content: center;
    gap: .24rem;
    padding: .72rem .78rem;
    border-radius: .95rem;
    border-color: rgba(246, 201, 95, .2);
    background: rgba(2, 13, 10, .72);
  }

  .cinema-room__links span {
    font-size: clamp(.65rem, 2.75vw, .76rem);
  }

  .cinema-room__links strong {
    font-size: clamp(.78rem, 3.2vw, .9rem);
    line-height: 1.15;
  }

  .cinema-room__screen {
    display: grid !important;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto auto;
    align-content: center;
    gap: clamp(.55rem, 1.4dvh, .9rem);
    overflow: hidden;
    padding-block: clamp(.35rem, 1.5dvh, 1rem);
  }

  .cinema-room__screen-head {
    align-items: end;
    flex-wrap: wrap;
    gap: .75rem;
    padding-inline: .18rem;
  }

  .cinema-room__screen-head > div {
    gap: .08rem;
  }

  .cinema-room__screen-kicker {
    font-size: clamp(.64rem, 2.8vw, .74rem);
    letter-spacing: .15em;
  }

  .cinema-room__screen-head strong {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }

  .cinema-room__screen-head a {
    flex: 0 0 auto;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: .62rem .72rem;
    border: 1px solid rgba(246, 201, 95, .2);
    border-radius: 999px;
    background: rgba(2, 13, 10, .62);
    font-size: clamp(.68rem, 2.9vw, .8rem);
    line-height: 1;
  }

  .cinema-room__player {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    align-self: center;
    justify-self: stretch;
    border-radius: 1rem;
    box-shadow: 0 1.1rem 3rem rgba(0,0,0,.34);
  }

  .cinema-room__footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: .5rem;
    padding-top: .62rem;
  }

  .cinema-room__socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 4rem), 1fr));
    gap: .38rem;
  }

  .cinema-room__socials a,
  .cinema-room__support {
    display: grid;
    place-items: center;
    min-height: 2.7rem;
    padding: .6rem .45rem;
    font-size: clamp(.62rem, 2.8vw, .74rem);
    text-align: center;
  }

  .cinema-room__support {
    width: 100%;
    min-height: 2.85rem;
    font-size: clamp(.68rem, 3vw, .8rem);
  }

  .cinema-room__footer p {
    margin-top: .02rem;
    font-size: clamp(.58rem, 2.5vw, .68rem);
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
}

/* Some portrait viewports cannot fit the header, full-width 16:9 film and
   footer at once. Keep the film row's natural minimum and allow scrolling
   only when needed, instead of clipping it over the Now Showing links. */
@media (max-width: 44.99rem) and (orientation: portrait) {
  .storybook-body .panel--watch {
    overflow-y: auto !important;
  }

  .cinema-room {
    grid-template-rows: auto minmax(min-content, 1fr) auto;
  }

  .cinema-room__screen {
    min-height: min-content;
  }
}

/* Mobile landscape: the film gets almost all of the usable height.
   Header, Now Showing row and footer have their own fixed grid rows so the
   YouTube player cannot cover any links or controls. */
@media (max-height: 32rem) and (orientation: landscape) {
  .storybook-body .panel--watch {
    padding:
      max(.22rem, env(safe-area-inset-top))
      max(.48rem, env(safe-area-inset-right))
      max(.2rem, env(safe-area-inset-bottom))
      max(.48rem, env(safe-area-inset-left)) !important;
  }

  .storybook-body .panel--watch .panel__close {
    top: max(.2rem, env(safe-area-inset-top));
    right: max(.36rem, env(safe-area-inset-right));
    width: 2.05rem;
    height: 2.05rem;
    font-size: 1.15rem;
  }

  .storybook-body .panel--watch .panel__content {
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .cinema-room {
    display: grid !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: .12rem;
    margin: 0;
  }

  .cinema-room__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .42rem;
    padding-right: 2.35rem;
  }

  .cinema-room__title {
    gap: .02rem;
  }

  .cinema-room__title .eyebrow {
    font-size: .46rem;
    line-height: 1;
  }

  .cinema-room__title h2 {
    font-size: clamp(1rem, 2.65vw, 1.34rem);
    line-height: .94;
  }

  .cinema-room__title > p:last-child {
    display: none;
  }

  .cinema-room__links {
    display: flex;
    gap: .25rem;
  }

  .cinema-room__links a {
    min-width: 7rem;
    min-height: 2.05rem;
    align-content: center;
    padding: .28rem .4rem;
    border-radius: .58rem;
  }

  .cinema-room__links span {
    font-size: .44rem;
  }

  .cinema-room__links strong {
    font-size: .5rem;
  }

  .cinema-room__screen {
    display: grid !important;
    min-width: 0;
    min-height: 0;
    grid-template-rows: 1.08rem minmax(0, 1fr);
    gap: .08rem;
    overflow: hidden;
  }

  .cinema-room__screen-head {
    min-width: 0;
    min-height: 0;
    padding-inline: .18rem;
  }

  .cinema-room__screen-kicker {
    display: none;
  }

  .cinema-room__screen-head strong {
    font-size: .62rem;
    line-height: 1;
  }

  .cinema-room__screen-head a {
    font-size: .5rem;
    line-height: 1;
  }

  .cinema-room__player {
    width: auto !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    border-radius: .7rem;
  }

  .cinema-room__footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .42rem;
    min-height: 1.65rem;
    padding-top: .16rem;
  }

  .cinema-room__socials {
    display: flex;
    flex-wrap: nowrap;
    gap: .16rem;
  }

  .cinema-room__socials a,
  .cinema-room__support {
    min-height: 1.35rem;
    padding: .27rem .4rem;
    font-size: .47rem;
    white-space: nowrap;
  }

  .cinema-room__support {
    justify-self: center;
  }

  .cinema-room__footer p {
    justify-self: end;
    font-size: .45rem;
    white-space: nowrap;
  }
}

/* Text enlargement can make tablet and landscape controls taller than the
   fixed cinema rows. Let the complete player and controls scroll together. */
@media (min-width: 45rem), (orientation: landscape) {
  @container cinema-room (max-width: 27rem) {
    .cinema-room {
      height: auto;
      min-height: 100%;
      grid-template-rows: auto auto auto;
    }
    .cinema-room__top {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: start;
      gap: .6rem;
    }
    .cinema-room__links {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      width: 100%;
      min-width: 0;
    }
    .cinema-room__links a {
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .cinema-room__screen {
      grid-template-rows: auto auto;
      overflow: visible;
    }
    .cinema-room__screen-head,
    .cinema-room__footer,
    .cinema-room__socials {
      display: flex;
      flex-wrap: wrap;
    }
    .cinema-room__player {
      width: 100% !important;
      height: auto !important;
      max-height: none !important;
      aspect-ratio: 16 / 9 !important;
    }
    .cinema-room__footer p,
    .cinema-room__support {
      min-width: 0;
      max-width: 100%;
      white-space: normal;
      overflow-wrap: anywhere;
    }
  }
}

/* Source: css/features/performance.css */
/* The entrance already covers this decorative background. */
.storybook-body.entrance-active .site-shell::before { background-image: none; }
/* Keep the lantern glow static; only transform/opacity animate. */
.map-stop__marker {
  box-shadow: 0 0 0 0.22rem rgba(255,242,190,.08), 0 0 1.4rem color-mix(in srgb, var(--stop-color) 45%, transparent);
}
.entrance-active .map-stop__marker,
.entrance-active .map-stop__marker::after,
.entrance-active .woodland-map__mist { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .map-stop__marker, .map-stop__marker::after { animation: none; }
}
