.novel-layer.is-true-end > .novel-topbar,
.novel-layer.is-true-end > .novel-progress,
.novel-layer.is-true-end > .novel-script-debug,
.novel-layer.is-true-end > .novel-particles,
.novel-layer.is-true-end > .novel-veil,
.novel-layer.is-true-end > .novel-scanlines,
.novel-layer.is-true-end .novel-runtime::before,
.novel-layer.is-true-end .novel-cast,
.novel-layer.is-true-end .novel-avatar,
.novel-layer.is-true-end .novel-dialogue,
.novel-layer.is-true-end .novel-choices,
.novel-layer.is-true-end .novel-footer {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.novel-layer.is-true-end .novel-result-surface {
  position: absolute;
  z-index: 44;
  inset: 0 !important;
  display: block;
  padding: 0 !important;
  overflow: hidden !important;
  background: #020611 !important;
  color: #f5fbff;
}

.true-end-shell {
  --te-accent: #9af7e4;
  --te-blue: #8bdcff;
  --te-ink: #f5fbff;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #020611;
  color: var(--te-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  outline: none;
  isolation: isolate;
}

.true-end-backdrop {
  position: absolute;
  z-index: -7;
  inset: -4%;
  background-color: #020611;
  background-position: center;
  background-size: cover;
  opacity: 0;
  filter: saturate(0.82) brightness(0.72);
  transform: scale(1.035);
  transition: opacity 1.25s ease, filter 1.25s ease, transform 8s ease;
}

.true-end-backdrop.is-active {
  opacity: 1;
  filter: saturate(1) brightness(0.94);
  transform: scale(1);
}

.true-end-backdrop[data-backdrop="awakening"] {
  background-image:
    radial-gradient(ellipse at 50% 48%, rgba(155, 245, 225, 0.2), transparent 25%),
    radial-gradient(ellipse at 16% 20%, rgba(102, 164, 255, 0.38), transparent 36%),
    radial-gradient(ellipse at 82% 76%, rgba(84, 238, 218, 0.28), transparent 32%),
    linear-gradient(145deg, #020613 4%, #071932 50%, #07111f 100%);
}

.true-end-backdrop[data-backdrop="many-senses"] {
  background-image:
    radial-gradient(circle at 22% 68%, rgba(72, 212, 155, 0.42), transparent 23%),
    radial-gradient(circle at 73% 38%, rgba(91, 157, 255, 0.34), transparent 28%),
    radial-gradient(circle at 80% 84%, rgba(255, 183, 109, 0.2), transparent 30%),
    linear-gradient(125deg, #031319, #09283a 48%, #151a35);
}

.true-end-backdrop[data-backdrop="excavation"] {
  background-image:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 11vh),
    linear-gradient(180deg, #08202d 0 22%, #264238 22% 36%, #695942 36% 49%, #403329 49% 62%, #151a21 62% 100%);
}

.true-end-backdrop[data-backdrop="loom"] {
  background-image:
    repeating-linear-gradient(68deg, transparent 0 7vw, rgba(138, 236, 255, 0.1) 7vw calc(7vw + 1px)),
    repeating-linear-gradient(112deg, transparent 0 9vw, rgba(151, 255, 218, 0.08) 9vw calc(9vw + 1px)),
    radial-gradient(circle at 50% 47%, rgba(131, 205, 255, 0.26), transparent 31%),
    linear-gradient(130deg, #030713, #0b1632 51%, #05191e);
}

.true-end-backdrop[data-backdrop="reconstruction"] {
  background-image:
    radial-gradient(circle at 34% 52%, rgba(85, 255, 220, 0.24), transparent 18%),
    radial-gradient(circle at 66% 52%, rgba(113, 183, 255, 0.23), transparent 18%),
    linear-gradient(90deg, transparent 49.92%, rgba(221, 255, 250, 0.25) 50%, transparent 50.08%),
    linear-gradient(135deg, #06111d, #0b2931 48%, #091327);
}

.true-end-backdrop[data-backdrop="galaxy"] {
  background-image:
    radial-gradient(ellipse at 58% 50%, rgba(188, 235, 255, 0.5) 0 1%, rgba(96, 187, 255, 0.18) 4%, transparent 27%),
    conic-gradient(from 12deg at 58% 50%, transparent, rgba(104, 205, 255, 0.16), transparent 12%, transparent 28%, rgba(142, 255, 213, 0.12), transparent 41%, transparent),
    linear-gradient(155deg, #01040c, #07142d 52%, #071b20);
}

.true-end-backdrop[data-backdrop="lineage"] {
  background-image:
    repeating-radial-gradient(ellipse at 15% 52%, transparent 0 52px, rgba(143, 244, 221, 0.065) 53px 54px, transparent 55px 92px),
    linear-gradient(110deg, #030711, #0c1d34 44%, #0c302c);
}

.true-end-backdrop[data-backdrop="fossil"] {
  background-image:
    radial-gradient(circle at 50% 48%, rgba(255, 222, 152, 0.23), transparent 21%),
    repeating-linear-gradient(170deg, transparent 0 8vh, rgba(244, 226, 190, 0.05) 8vh calc(8vh + 2px)),
    linear-gradient(145deg, #071017, #29312e 55%, #0b1d24);
}

.true-end-backdrop[data-backdrop="shore"] {
  background-image:
    radial-gradient(ellipse at 72% 14%, rgba(116, 211, 255, 0.2), transparent 35%),
    linear-gradient(180deg, transparent 0 58%, rgba(123, 227, 221, 0.11) 58% 60%, transparent 60%),
    linear-gradient(180deg, #020817 0 45%, #081a2d 45% 58%, #0c3542 58% 73%, #07131c 73% 100%);
}

.true-end-cosmos {
  position: absolute;
  z-index: -5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.true-end-cosmos i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: calc(2px * var(--s));
  height: calc(2px * var(--s));
  border-radius: 50%;
  background: #dcffff;
  box-shadow: 0 0 calc(12px * var(--s)) rgba(134, 237, 255, 0.85);
  opacity: 0.22;
  animation: true-end-star var(--d) ease-in-out infinite alternate;
}

.true-end-weave {
  position: absolute;
  z-index: -4;
  inset: 0;
  overflow: hidden;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.true-end-weave i {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 120vw;
  height: 38vh;
  border: 1px solid rgba(140, 241, 228, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(calc((var(--i, 1) - 4) * 8deg));
}

.true-end-weave i:nth-child(1) { transform: translate(-50%, -50%) rotate(-31deg); }
.true-end-weave i:nth-child(2) { transform: translate(-50%, -50%) rotate(-22deg); }
.true-end-weave i:nth-child(3) { transform: translate(-50%, -50%) rotate(-13deg); }
.true-end-weave i:nth-child(4) { transform: translate(-50%, -50%) rotate(-4deg); }
.true-end-weave i:nth-child(5) { transform: translate(-50%, -50%) rotate(5deg); }
.true-end-weave i:nth-child(6) { transform: translate(-50%, -50%) rotate(14deg); }
.true-end-weave i:nth-child(7) { transform: translate(-50%, -50%) rotate(23deg); }
.true-end-weave i:nth-child(8) { transform: translate(-50%, -50%) rotate(32deg); }

.true-end-header {
  position: absolute;
  z-index: 6;
  top: max(25px, env(safe-area-inset-top));
  right: clamp(88px, 7vw, 122px);
  left: clamp(26px, 4vw, 76px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  pointer-events: none;
}

.true-end-brand,
.true-end-scene-heading {
  display: grid;
  gap: 6px;
}

.true-end-brand span,
.true-end-scene-heading span,
.true-end-speaker-code,
.true-end-footer,
.true-end-readout code,
.true-end-finale > span,
.true-end-finale code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.true-end-brand span,
.true-end-scene-heading span {
  color: rgba(170, 235, 235, 0.72);
}

.true-end-brand strong {
  color: rgba(243, 253, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.true-end-scene-heading {
  justify-items: end;
  text-align: right;
}

.true-end-scene-heading strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.true-end-progress {
  position: absolute;
  z-index: 7;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(141, 217, 222, 0.08);
}

.true-end-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #72e0dc, #a6f5de, #8bcfff);
  box-shadow: 0 0 16px rgba(129, 237, 228, 0.72);
  transition: width 520ms ease;
}

.true-end-dialogue {
  position: absolute;
  z-index: 9;
  right: clamp(24px, 6vw, 120px);
  bottom: clamp(52px, 8vh, 96px);
  left: clamp(24px, 6vw, 120px);
  display: grid;
  grid-template-columns: minmax(100px, 0.18fr) minmax(0, 1fr) 24px;
  align-items: center;
  min-height: clamp(170px, 24vh, 244px);
  gap: 22px;
  padding: clamp(27px, 4vh, 44px) clamp(28px, 4.6vw, 72px);
  border: 1px solid rgba(151, 235, 228, 0.2);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(7, 22, 35, 0.93), rgba(7, 29, 42, 0.77)),
    rgba(5, 16, 28, 0.86);
  box-shadow: 0 30px 90px rgba(0, 2, 10, 0.5), inset 0 1px rgba(225, 255, 250, 0.08);
  color: inherit;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  cursor: pointer;
  text-align: left;
}

.true-end-dialogue:hover,
.true-end-dialogue:focus-visible {
  border-color: rgba(156, 246, 231, 0.44);
  outline: 2px solid rgba(141, 240, 228, 0.12);
  outline-offset: 4px;
}

.true-end-speaker {
  color: var(--te-accent);
  font-size: clamp(18px, 1.55vw, 26px);
  letter-spacing: 0.17em;
  align-self: start;
}

.true-end-speaker[hidden] {
  display: block;
  visibility: hidden;
}

.true-end-speaker-code {
  position: absolute;
  top: 18px;
  left: clamp(28px, 4.6vw, 72px);
  color: rgba(158, 226, 230, 0.46);
}

.true-end-message {
  display: block;
  color: #f7fbff;
  font-size: clamp(21px, 2.05vw, 34px);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.045em;
  text-shadow: 0 2px 12px rgba(0, 5, 15, 0.68);
}

.true-end-shell.is-emphasis .true-end-message {
  color: #f5fff9;
  font-size: clamp(23px, 2.25vw, 38px);
  text-shadow: 0 0 25px rgba(138, 240, 221, 0.16), 0 2px 12px rgba(0, 5, 15, 0.72);
}

.true-end-next {
  color: var(--te-accent);
  font-family: sans-serif;
  font-size: 17px;
  font-style: normal;
  animation: true-end-next 900ms ease-in-out infinite alternate;
}

.true-end-next[hidden] {
  visibility: hidden;
}

.true-end-readout {
  position: absolute;
  z-index: 7;
  top: clamp(118px, 16vh, 178px);
  right: clamp(28px, 5vw, 90px);
  display: grid;
  width: min(470px, 42vw);
  gap: 9px;
  padding: 22px 25px;
  border-top: 1px solid rgba(142, 235, 225, 0.35);
  border-bottom: 1px solid rgba(142, 235, 225, 0.16);
  background: linear-gradient(90deg, rgba(2, 11, 24, 0.13), rgba(6, 25, 36, 0.72));
  color: rgba(183, 247, 235, 0.78);
  text-align: right;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.true-end-readout[hidden] {
  display: none;
}

.true-end-dialogue[hidden],
.true-end-header[hidden],
.true-end-progress[hidden],
.true-end-footer[hidden] {
  display: none !important;
}

.true-end-readout code {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.true-end-footer {
  position: absolute;
  z-index: 8;
  right: clamp(26px, 4vw, 76px);
  bottom: max(18px, env(safe-area-inset-bottom));
  left: clamp(26px, 4vw, 76px);
  display: flex;
  justify-content: space-between;
  color: rgba(167, 224, 230, 0.48);
}

.true-end-lou {
  position: absolute;
  z-index: 1;
  top: 14%;
  left: 10%;
  width: clamp(150px, 19vw, 300px);
  aspect-ratio: 0.78;
  border: 1px solid rgba(165, 255, 233, 0.14);
  border-radius: 50% 50% 45% 45% / 35% 35% 60% 60%;
  background:
    radial-gradient(circle at 38% 30%, rgba(238, 255, 250, 0.82) 0 1.2%, transparent 1.7%),
    radial-gradient(circle at 62% 30%, rgba(238, 255, 250, 0.82) 0 1.2%, transparent 1.7%),
    radial-gradient(ellipse at 50% 32%, rgba(119, 243, 217, 0.28), transparent 25%),
    radial-gradient(ellipse at 50% 60%, rgba(99, 192, 255, 0.18), transparent 54%);
  box-shadow: inset 0 0 55px rgba(138, 251, 225, 0.11), 0 0 80px rgba(82, 207, 221, 0.08);
  opacity: 0.65;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 1.4s ease;
}

.true-end-shell[data-speaker="lou"] .true-end-lou {
  opacity: 1;
  transform: translateY(-5px);
}

.true-end-lou::before,
.true-end-lou::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(210, 255, 245, 0.72);
  box-shadow: 0 0 14px rgba(135, 245, 224, 0.85);
  content: "";
}

.true-end-lou::before {
  top: 29%;
  left: 37%;
  width: 5px;
  height: 5px;
}

.true-end-lou::after {
  top: 29%;
  right: 37%;
  width: 5px;
  height: 5px;
}

.true-end-lou-core,
.true-end-lou-orbit {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(142, 245, 225, 0.16);
  border-radius: 48%;
  animation: true-end-lou-orbit 18s linear infinite;
}

.true-end-lou-orbit {
  inset: 23% -12%;
  border-color: rgba(126, 210, 255, 0.13);
  transform: rotate(58deg);
  animation-duration: 23s;
  animation-direction: reverse;
}

.true-end-relic {
  position: absolute;
  z-index: 2;
  top: 36%;
  left: 26%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: clamp(100px, 13vw, 190px);
  aspect-ratio: 1.55;
  gap: 12%;
  padding: 7%;
  border: 4px solid rgba(77, 119, 90, 0.76);
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(211, 165, 88, 0.28) 49% 51%, transparent 52%),
    linear-gradient(rgba(20, 65, 48, 0.92), rgba(8, 42, 33, 0.96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38), inset 0 0 24px rgba(205, 177, 101, 0.12);
  opacity: 0;
  transform: rotate(-8deg) translateY(20px);
  transition: opacity 900ms ease, transform 1.2s ease;
}

.true-end-relic i {
  border: 1px solid rgba(199, 179, 122, 0.44);
  background: rgba(12, 16, 17, 0.78);
  box-shadow: inset 0 0 8px rgba(151, 231, 202, 0.08);
}

.true-end-shell:is([data-scene="anthropocene-layer"], [data-scene="electronic-civilization"], [data-scene="same-shape"], [data-scene="sensory-fossil"], [data-scene="after-school-stars"]) .true-end-relic {
  opacity: 0.82;
  transform: rotate(-5deg) translateY(0);
}

.true-end-scene-card {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  background: rgba(1, 6, 15, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.true-end-scene-card.is-visible {
  opacity: 1;
  animation: true-end-scene-card 1.5s ease both;
}

.true-end-scene-card span {
  color: var(--te-accent);
  font: 700 10px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.28em;
}

.true-end-scene-card strong {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: 0.16em;
}

.true-end-shell::after {
  position: absolute;
  z-index: 18;
  inset: 0;
  background: #01050d;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.true-end-shell.is-scene-changing::after {
  opacity: 1;
}

.true-end-finale {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 2.4vh, 28px);
  padding: max(30px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 43%, rgba(102, 225, 205, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(1, 5, 13, 0.98), rgba(4, 22, 34, 0.98));
  text-align: center;
  animation: true-end-finale 1.8s ease both;
}

.true-end-finale[hidden] {
  display: none;
}

.true-end-finale > span {
  color: var(--te-accent);
  font-size: 11px;
  letter-spacing: 0.42em;
}

.true-end-finale h2 {
  margin: 0;
  color: #f6fffb;
  font-size: clamp(42px, 7vw, 98px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-shadow: 0 0 45px rgba(142, 247, 225, 0.18);
}

.true-end-finale div {
  display: grid;
  gap: 8px;
  width: min(620px, 90vw);
  padding: 24px 0;
  border-top: 1px solid rgba(147, 235, 226, 0.18);
  border-bottom: 1px solid rgba(147, 235, 226, 0.18);
}

.true-end-finale code {
  color: rgba(199, 242, 241, 0.68);
  line-height: 1.6;
}

.true-end-finale p {
  margin: 0;
  color: rgba(239, 252, 250, 0.76);
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: 0.13em;
}

.true-end-finale button {
  min-width: 190px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 26px;
  border: 1px solid rgba(151, 239, 226, 0.4);
  background: rgba(11, 43, 54, 0.72);
  color: #effffc;
  cursor: pointer;
  font: 700 12px/1 "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.16em;
}

.true-end-finale button:hover,
.true-end-finale button:focus-visible {
  border-color: rgba(161, 255, 236, 0.82);
  background: rgba(17, 65, 76, 0.82);
  outline: 2px solid rgba(149, 240, 226, 0.2);
  outline-offset: 4px;
}

@keyframes true-end-star {
  from { opacity: 0.18; transform: scale(0.72); }
  to { opacity: 0.96; transform: scale(1.25); }
}

@keyframes true-end-next {
  from { opacity: 0.4; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(4px); }
}

@keyframes true-end-lou-orbit {
  to { transform: rotate(360deg); }
}

@keyframes true-end-scene-card {
  0%, 100% { opacity: 0; }
  16%, 76% { opacity: 1; }
}

@keyframes true-end-finale {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: blur(0); }
}

@media (max-width: 720px) {
  .true-end-header {
    top: max(15px, env(safe-area-inset-top));
    right: 70px;
    left: 16px;
  }

  .true-end-brand strong {
    font-size: 12px;
  }

  .true-end-scene-heading strong {
    max-width: 39vw;
    font-size: 13px;
    line-height: 1.45;
  }

  .true-end-brand span,
  .true-end-scene-heading span {
    font-size: 7px;
  }

  .true-end-lou {
    top: 14%;
    left: 5%;
    width: 43vw;
    opacity: 0.48;
  }

  .true-end-relic {
    top: 35%;
    left: 50%;
    width: 31vw;
  }

  .true-end-readout {
    top: 91px;
    right: 15px;
    width: min(72vw, 330px);
    gap: 5px;
    padding: 13px 15px;
  }

  .true-end-readout code {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .true-end-dialogue {
    right: 12px;
    bottom: max(42px, calc(env(safe-area-inset-bottom) + 36px));
    left: 12px;
    grid-template-columns: 1fr 20px;
    min-height: 230px;
    gap: 10px;
    padding: 42px 22px 24px;
  }

  .true-end-speaker {
    position: absolute;
    top: 17px;
    left: 22px;
    font-size: 15px;
  }

  .true-end-speaker-code {
    top: 20px;
    right: 20px;
    left: auto;
    max-width: 52%;
    overflow: hidden;
    font-size: 6px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .true-end-message {
    grid-column: 1;
    font-size: clamp(17px, 4.8vw, 21px);
    line-height: 1.75;
  }

  .true-end-shell.is-emphasis .true-end-message {
    font-size: clamp(18px, 5.2vw, 23px);
  }

  .true-end-next {
    grid-column: 2;
  }

  .true-end-footer {
    right: 15px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 15px;
    font-size: 6px;
    letter-spacing: 0.12em;
  }

  .true-end-footer span:first-child {
    max-width: 70%;
  }

  .true-end-finale h2 {
    font-size: clamp(38px, 13vw, 62px);
    letter-spacing: 0.09em;
    text-indent: 0.09em;
  }

  .true-end-finale code {
    font-size: 7px;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .true-end-backdrop,
  .true-end-progress i,
  .true-end-lou,
  .true-end-relic,
  .true-end-scene-card,
  .true-end-shell::after,
  .true-end-finale {
    animation: none !important;
    transition: none !important;
  }

  .true-end-cosmos i,
  .true-end-lou-core,
  .true-end-lou-orbit,
  .true-end-next {
    animation: none !important;
  }
}

/* Generated true-end imagery. Keep the procedural layers as overlays so the
   physical relic and the pre-geometric weave remain legible behind dialogue. */
.true-end-backdrop[data-backdrop="awakening"],
.true-end-backdrop[data-backdrop="many-senses"],
.true-end-backdrop[data-backdrop="galaxy"],
.true-end-backdrop[data-backdrop="lineage"],
.true-end-backdrop[data-backdrop="shore"] {
  background-image:
    linear-gradient(135deg, rgba(4, 15, 35, 0.54), rgba(5, 41, 58, 0.24)),
    url("./assets/true-end/true-end-bg-galactic-senses-v1.webp");
  background-position: center;
  background-size: cover;
}

.true-end-backdrop[data-backdrop="excavation"],
.true-end-backdrop[data-backdrop="reconstruction"],
.true-end-backdrop[data-backdrop="fossil"] {
  background-image:
    linear-gradient(135deg, rgba(3, 15, 31, 0.5), rgba(40, 22, 18, 0.24)),
    url("./assets/true-end/true-end-bg-fossil-sensor-v1.webp");
  background-position: center;
  background-size: cover;
}

.true-end-backdrop[data-backdrop="loom"] {
  background-image:
    linear-gradient(135deg, rgba(3, 12, 30, 0.48), rgba(21, 17, 54, 0.2)),
    url("./assets/true-end/true-end-bg-pregeometry-loom-v1.webp");
  background-position: center;
  background-size: cover;
}

.true-end-lou {
  top: 10%;
  left: 5%;
  width: clamp(190px, 24vw, 390px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 18px 38px rgba(67, 218, 225, 0.22));
  opacity: 0.72;
}

.true-end-lou::before,
.true-end-lou::after {
  display: none;
}

.true-end-lou-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.true-end-lou-core,
.true-end-lou-orbit {
  opacity: 0.42;
}

.true-end-thoughtforms {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.true-end-thoughtform {
  position: absolute;
  right: 4%;
  bottom: 15%;
  width: clamp(220px, 31vw, 520px);
  max-height: 72vh;
  object-fit: contain;
  opacity: 0;
  transform: translate3d(24px, 12px, 0) scale(0.97);
  filter: drop-shadow(0 18px 42px rgba(99, 235, 238, 0.2));
  transition: opacity 440ms ease, transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.true-end-shell[data-speaker="mizuha"] .true-end-thoughtform-mizuha,
.true-end-shell[data-speaker="amane"] .true-end-thoughtform-amane,
.true-end-shell[data-speaker="sakuya"] .true-end-thoughtform-sakuya {
  opacity: 0.93;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 720px) {
  .true-end-lou {
    top: 12%;
    left: -2%;
    width: min(54vw, 270px);
  }

  .true-end-thoughtform {
    right: -9%;
    bottom: 24%;
    width: min(62vw, 340px);
    max-height: 58vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .true-end-thoughtform {
    transition: none;
  }
}
