/* lucifer.toy Page 54 route B — scene-as-page. No card fade/slide language. */
body.lt-story-home-active #app-splash { display: none !important; }
body.lt-story-home-active .lt-home-root { position: relative; }
body.lt-story-home-active {
  background: #0b0908;
}

.lt-story {
  color: #f4efe4;
  background: transparent;
}

.lt-story-visual {
  position: relative;
  z-index: 0;
  height: 0;
}

.lt-story-stage {
  position: fixed;
  inset: 0;
  height: 100svh;
  overflow: hidden;
  background: #0b0908;
  z-index: 0;
  pointer-events: none;
}

.lt-story-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.lt-story[data-phase="sealed"] .lt-story-poster[data-poster="sealed"],
.lt-story[data-phase="seam"] .lt-story-poster[data-poster="sealed"],
.lt-story[data-phase="entering"] .lt-story-poster[data-poster="entering"],
.lt-story[data-phase="ribbon-release"] .lt-story-poster[data-poster="lid"],
.lt-story[data-phase="lid-open"] .lt-story-poster[data-poster="lid"],
.lt-story[data-phase="world-reveal"] .lt-story-poster[data-poster="world"],
.lt-story[data-phase="rules-clear"] .lt-story-poster[data-poster="world"],
.lt-story[data-phase="world-explore"] .lt-story-poster[data-poster="world"],
.lt-story[data-phase="series-focus"] .lt-story-poster[data-poster="world"],
.lt-story[data-phase="product-decision"] .lt-story-poster[data-poster="takehome"],
.lt-story[data-phase="take-home"] .lt-story-poster[data-poster="takehome"] {
  opacity: 1;
}

/* GPT cut-texture sequence scrub: canvas visible when data-mode=scrub. */
#lt-story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.lt-story[data-mode="scrub"] #lt-story-canvas,
.lt-story[data-mode="render"] #lt-story-canvas {
  opacity: 1;
}

#lt-story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.lt-story[data-mode="film"] #lt-story-video {
  opacity: 1;
}

.lt-story[data-mode="film"] #lt-story-canvas {
  opacity: 0;
}

.lt-story[data-mode="scrub"] .lt-story-poster,
.lt-story[data-mode="render"] .lt-story-poster,
.lt-story[data-mode="film"] .lt-story-poster {
  opacity: 0 !important;
}

.lt-story-overlay {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.lt-beat {
  min-height: 34svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.2rem, 4vh, 2.2rem) clamp(1.1rem, 4vw, 3.5rem) clamp(1.2rem, 4vh, 2.4rem);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lt-beat[data-beat="1"] {
  min-height: 92svh;
  padding-top: clamp(4.5rem, 12vh, 7rem);
  padding-bottom: clamp(2rem, 8vh, 4rem);
}

.lt-beat[data-beat="6"] {
  min-height: 58svh;
}

.lt-beat[data-beat="7"] {
  min-height: 46svh;
  padding-bottom: clamp(2.4rem, 8vh, 4.2rem);
}

.lt-beat.is-current {
  opacity: 1;
  pointer-events: auto;
}

.lt-story[data-mode="render"] .lt-beat.is-current,
.lt-story[data-mode="film"] .lt-beat.is-current {
  opacity: 1;
  pointer-events: auto;
}

.lt-story[data-mode="static"] .lt-beat,
.lt-story[data-mode="save-data"] .lt-beat,
.lt-story[data-mode="reduced"] .lt-beat {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .lt-beat {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
}

.lt-beat__panel {
  max-width: 36rem;
  background: none;
  border: 0;
  padding: 0;
  text-shadow: 0 1px 2px rgba(11, 9, 8, 0.9), 0 10px 28px rgba(11, 9, 8, 0.55);
}

.lt-story h1,
.lt-story h2,
.lt-story h3,
.lt-story p,
.lt-story li {
  color: #f4efe4;
}

.lt-story h1,
.lt-story h2,
.lt-story h3 {
  font-family: "Noto Serif TC", "Iowan Old Style", serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.lt-story h1 {
  font-size: clamp(1.8rem, 4.4vw, 3.1rem);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.lt-story h2 { font-size: clamp(1.35rem, 3vw, 2rem); text-wrap: pretty; }
.lt-story p,
.lt-story li { font-size: 1.05rem; line-height: 1.7; margin: 0 0 0.8rem; overflow-wrap: break-word; }
.lt-story ol { padding-left: 1.2rem; }

.lt-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.lt-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 1.15rem;
  text-decoration: none;
  border-radius: 999px;
}
.lt-cta--primary { background: #d9a441; color: #1a1208; font-weight: 600; }
.lt-cta--secondary { border: 1px solid #f4efe4; color: #f4efe4; }
.lt-text-link { color: #f0d48a; }
.lt-story-exit { font-size: 0.92rem; opacity: 0.92; }

.lt-series-hotspots { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0; }
.lt-series-hotspots button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(244, 239, 228, 0.55);
  background: rgba(11, 9, 8, 0.18);
  color: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lt-series-hotspots button[aria-pressed="true"] {
  background: #d9a441;
  color: #1a1208;
  border-color: #d9a441;
}

.lt-series-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.lt-series-list li { opacity: 1; }
.lt-story[data-mode="scrub"] .lt-series-list li,
.lt-story[data-mode="render"] .lt-series-list li,
.lt-story[data-mode="film"] .lt-series-list li { display: none; }
.lt-story[data-mode="scrub"] .lt-series-list li.is-active,
.lt-story[data-mode="render"] .lt-series-list li.is-active,
.lt-story[data-mode="film"] .lt-series-list li.is-active { display: block; }

.lt-home-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.lt-home-product { min-width: 0; }
.lt-home-product__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.lt-home-product__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
  background: rgba(11, 9, 8, 0.35);
}
.lt-home-product__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lt-home-product__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.lt-home-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.35;
}
.lt-home-product__price {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f0d48a;
}

@media (max-width: 63.99rem) {
  .lt-story-stage {
    position: fixed;
    height: 100svh;
    width: 100%;
    left: 0;
    right: 0;
  }
  .lt-story-stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54%;
    background: linear-gradient(180deg, rgba(11, 9, 8, 0) 0%, rgba(11, 9, 8, 0.55) 40%, rgba(11, 9, 8, 0.84) 100%);
    z-index: 3;
    pointer-events: none;
  }
  #lt-story-video,
  .lt-story-poster,
  #lt-story-canvas {
    object-position: 50% 42%;
  }
  .lt-story-overlay { margin-top: 0; }
  .lt-beat {
    min-height: 52svh;
    align-items: flex-end;
    padding: 5.2rem 1.1rem 1.5rem;
  }
  .lt-beat[data-beat="1"] {
    min-height: calc(100svh - 3.4rem);
    padding-bottom: 1.5rem;
  }
  .lt-beat[data-beat="5"],
  .lt-beat[data-beat="6"] {
    min-height: auto;
    padding-top: 5.4rem;
    padding-bottom: 2.2rem;
  }
  .lt-beat[data-beat="7"] { min-height: 62svh; }
  .lt-beat__panel {
    max-width: 36rem;
    width: 100%;
    background: none;
    border: 0;
    padding: 0.2rem 0 0;
    text-shadow: 0 1px 2px rgba(11, 9, 8, 0.95), 0 12px 32px rgba(11, 9, 8, 0.7);
  }
  .lt-series-hotspots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lt-series-hotspots button { width: 100%; }
  body.lt-story-home-active .lt-site-header[data-lt-nav-native="true"] .lt-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d9a441;
    color: #1a1208;
    border: 0;
    border-radius: 0.4rem;
    padding: 0.35rem 0.75rem;
  }
  body.lt-story-home-active .lt-site-header[data-lt-nav-native="true"][data-nav-open="false"] .lt-nav {
    display: none;
  }
  body.lt-story-home-active .lt-site-header[data-lt-nav-native="true"][data-nav-open="true"] .lt-nav {
    display: block;
    position: absolute;
    top: 100%;
    right: 0.75rem;
    left: auto;
    min-width: 12rem;
    background: rgba(11, 9, 8, 0.94);
    padding: 0.75rem 1rem;
    z-index: 6;
  }
  body.lt-story-home-active .lt-site-header[data-lt-nav-native="true"][data-nav-open="true"] .lt-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  body.lt-story-home-active .lt-site-header[data-lt-nav-native="true"][data-nav-open="true"] .lt-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #f4efe4;
    text-decoration: none;
  }
}

@media (max-width: 47.99rem) {
  .lt-story h1 { font-size: clamp(1.5rem, 7vw, 1.95rem); }
  .lt-story h2 { font-size: clamp(1.2rem, 5.4vw, 1.55rem); }
  .lt-story p,
  .lt-story li { font-size: 0.95rem; line-height: 1.6; }
  .lt-home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .lt-cta { justify-content: center; }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .lt-beat {
    min-height: 46svh;
    padding: 5rem 2.4rem 2rem;
  }
  .lt-beat[data-beat="1"] { min-height: 90svh; }
  .lt-beat__panel { max-width: 34rem; }
  .lt-home-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lt-series-hotspots { display: flex; }
  .lt-series-hotspots button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-story-poster,
  .lt-story-stage { transition: none !important; transform: none !important; }
}

html body.home.lt-story-home-active::after,
body.lt-story-home-active.home::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

body.lt-story-home-active.lt-has-server-header .lt-site-header {
  position: relative;
  z-index: 4;
  background: rgba(11, 9, 8, 0.72);
  color: #f4efe4;
}

.lt-skip-link {
  position: absolute;
  left: -999px;
}

.lt-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
}

.lt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.lt-brand__logo {
  display: block;
  width: auto;
  max-width: 7.5rem;
  max-height: 40px;
  height: auto;
}

.lt-nav__toggle {
  min-height: 44px;
  min-width: 44px;
}

@media (min-width: 64rem) {
  .lt-beat__panel { max-width: 44rem; }
  .lt-story h1 { font-size: clamp(1.9rem, 2.5vw, 2.65rem); }
  .lt-site-header[data-lt-nav-native="true"] .lt-nav__toggle { display: none; }
  .lt-site-header[data-lt-nav-native="true"] .lt-nav { display: block; }
  .lt-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .lt-menu a { color: inherit; text-decoration: none; }
}
