/* All additions are scoped to the chapters below the original feature cards. */
.next-chapters {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.next-chapters h2 {
  font-size: clamp(36px, 4.1vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.052em;
}
.next-chapters h2 > span {
  color: var(--color-accent);
}
.next-chapters .chapter-micro {
  font: 9px / 1.7 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--color-fg-muted);
}
.chapter-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-accent-wash) 16%,
    transparent 42%,
    var(--color-accent-wash) 63%,
    transparent 90%
  );
}
.chapter-nebula {
  position: absolute;
  top: 0;
  left: 15%;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--color-accent) 9%, transparent),
    transparent 65%
  );
  animation: chapter-drift 22s ease-in-out infinite alternate;
}
.nebula-second {
  top: 42%;
  left: -35%;
  animation-delay: -11s;
  opacity: 0.6;
}
.terrain-lines {
  position: absolute;
  top: -100px;
  left: -15%;
  width: 130%;
  height: 1600px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0.6;
  opacity: 0.1;
  transform: rotate(-8deg);
}
.terrain-lines g {
  animation: terrain-breathe 16s ease-in-out infinite alternate;
  transform-origin: center;
}
.terrain-lines .terrain-traveler {
  stroke-width: 2;
  stroke-dasharray: 40 1800;
  animation: terrain-travel 16s linear infinite;
}
.mission-section {
  padding-block: 85px 105px;
}
.chapter-heading {
  text-align: center;
  margin-bottom: 52px;
}
.chapter-heading .eyebrow {
  justify-content: center;
}
.chapter-heading h2 {
  font-size: clamp(44px, 5.5vw, 76px);
}
.chapter-heading > p {
  color: var(--color-fg-muted);
  font-size: 14px;
  margin-top: 23px;
  line-height: 1.9;
}
.mission-console {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  border: 1px solid var(--color-accent-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  box-shadow: 0 20px 100px color-mix(in srgb, var(--color-shadow) 20%, transparent);
  overflow: hidden;
}
.mission-controls {
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mission-controls > .chapter-micro {
  margin: 0 13px 22px;
  font-size: 8px;
}
.mission-choices {
  display: grid;
  gap: 11px;
}
.mission-choices > button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--color-fg-muted);
  text-align: left;
  background: transparent;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.mission-choices > button:hover {
  background: var(--color-surface);
}
.mission-choices > button[aria-selected="true"] {
  background: var(--color-accent-wash);
  border-color: var(--color-accent-line);
  color: var(--color-fg);
}
.mission-choice-icon {
  width: 36px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 7px;
}
.mission-choices > button[aria-selected="true"] .mission-choice-icon {
  color: var(--color-accent);
  border-color: var(--color-accent-line);
}
.mission-choices strong {
  font: 500 16px / 1.4 var(--font-display);
  letter-spacing: -0.025em;
  display: block;
}
.mission-choices small {
  display: block;
  font-size: 10px;
  color: var(--color-fg-subtle);
  margin-top: 4px;
}
.mission-choice-arrow {
  margin-left: auto;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.mission-choices > button[aria-selected="true"] .mission-choice-arrow {
  opacity: 1;
}
.mission-nexo {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 23px 12px 0;
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
}
.mission-nexo p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--color-fg-subtle);
}
.mission-nexo strong {
  font-weight: 400;
  color: var(--color-fg-soft);
}
.mission-nexo > span {
  margin-left: auto;
  color: var(--color-accent);
}
.mission-result {
  border-left: 1px solid var(--color-border);
  min-width: 0;
  background: radial-gradient(ellipse at 70% 25%, var(--color-accent-wash), transparent 60%);
}
.mission-map {
  height: 275px;
  position: relative;
  overflow: hidden;
  --map-color: var(--color-accent);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-accent-wash) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent-wash) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse, var(--color-shadow), transparent 75%);
}
.map-radar {
  position: absolute;
  width: 310px;
  height: 310px;
  top: -80px;
  right: -10px;
  border: 1px solid var(--color-accent-wash);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 60%, var(--color-accent-wash), transparent);
  animation: rotate 16s linear infinite;
}
.map-radar::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px dashed var(--color-accent-line);
  border-radius: 50%;
}
.map-path {
  position: absolute;
  inset: 20px 15px;
  height: calc(100% - 40px);
  width: calc(100% - 30px);
  overflow: visible;
  fill: none;
  stroke: var(--map-color);
}
.map-path-base {
  stroke-width: 1.2;
  opacity: 0.25;
  stroke-dasharray: 4 6;
}
.map-path-light {
  stroke-width: 2;
  stroke-dasharray: 70 700;
  animation: map-flow 7s linear infinite;
}
.map-node {
  position: absolute;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-accent-line);
  border-radius: 50%;
  background: var(--color-bg-subtle);
  color: var(--map-color);
  font: 11px var(--font-mono);
}
.node-start {
  top: 70%;
  left: 10%;
}
.node-middle {
  top: 47%;
  left: 34%;
}
.node-next {
  top: 14%;
  right: 9%;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--color-surface-raised);
  border-color: var(--map-color);
  box-shadow: 0 0 35px var(--color-accent-line);
  transform: rotate(8deg);
  animation: float 6s ease-in-out infinite;
}
.node-next .icon {
  width: 26px;
  height: 26px;
}
.map-note {
  position: absolute;
  color: var(--color-fg-subtle);
  font: 7px var(--font-mono);
  letter-spacing: 0.08em;
}
.note-start {
  left: 7%;
  top: 85%;
}
.note-next {
  right: 8%;
  top: 40%;
  color: var(--map-color);
}
.map-coordinate {
  position: absolute;
  top: 24px;
  left: 30px;
  font: 7px var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--color-fg-subtle);
}
.map-spark {
  position: absolute;
  top: 22%;
  left: 30%;
  font-size: 19px;
  color: var(--map-color);
  animation: breathe 5s ease-in-out infinite;
}
.mission-result[data-scene="discover"] .mission-map {
  --map-color: var(--color-trophy-platinum);
}
.mission-result[data-scene="explore"] .mission-map {
  --map-color: var(--color-trophy-gold);
}
.mission-result-copy {
  padding: 0 37px 32px;
}
.mission-result-copy > .chapter-micro {
  color: var(--color-accent);
  font-size: 8px;
}
.mission-result-copy h3 {
  margin-top: 12px;
  font-size: 31px;
  line-height: 1.14;
}
.mission-result-copy > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--color-fg-muted);
  margin-top: 16px;
  max-width: 420px;
}
.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}
.mission-tags span {
  font: 8px var(--font-mono);
  color: var(--color-fg-soft);
  border: 1px solid var(--color-border-strong);
  padding: 6px 8px;
  border-radius: 4px;
}
.chapter-caption {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-fg-subtle);
  font-size: 9px;
}
.chapter-caption span:first-child {
  font: 8px / 1.5 var(--font-mono);
  letter-spacing: 0.09em;
}
.companion-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  padding-block: 65px 110px;
}
.companion-copy > p {
  color: var(--color-fg-muted);
  font-size: 14px;
  line-height: 1.9;
  max-width: 410px;
  margin-top: 26px;
}
.companion-points {
  display: grid;
  gap: 20px;
  margin: 35px 0;
}
.companion-points > div {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}
.companion-points > div > span {
  color: var(--color-accent-muted);
  font: 10px var(--font-mono);
  padding-top: 4px;
}
.companion-points p {
  color: var(--color-fg-subtle);
  font-size: 11px;
  line-height: 1.8;
}
.companion-points strong {
  display: block;
  color: var(--color-fg-soft);
  font-weight: 500;
  font-size: 12px;
}
.chapter-text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--color-accent);
  font-size: 11px;
  padding-block: 6px;
}
.chapter-text-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.25s;
}
.chapter-text-link:hover .icon {
  transform: translateX(5px);
}
.companion-scene {
  position: relative;
  min-height: 565px;
  display: grid;
  place-items: center;
}
.signal-ring {
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid var(--color-accent-line);
  border-radius: 50%;
  transform: rotate(-25deg) scaleY(0.8);
  opacity: 0.6;
}
.signal-ring-one {
  animation: signal-pulse 7s ease-out infinite;
}
.signal-ring-two {
  animation: signal-pulse 7s 3.5s ease-out infinite;
}
.signal-label {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: rotate(-90deg);
  font: 7px var(--font-mono);
  letter-spacing: 0.22em;
  color: var(--color-fg-subtle);
}
.telegram-phone {
  position: relative;
  width: 280px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: 35px;
  padding: 15px 12px 12px;
  box-shadow:
    12px 25px 75px color-mix(in srgb, var(--color-shadow) 45%, transparent),
    inset 0 0 0 4px var(--color-surface);
  transform: rotate(5deg);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 2px 13px 20px;
  font: 8px var(--font-mono);
  color: var(--color-fg-muted);
}
.phone-status::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 15px;
  top: 14px;
  left: calc(50% - 35px);
  border-radius: 20px;
  background: var(--color-surface);
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px 15px;
  border-bottom: 1px solid var(--color-border);
}
.phone-header > span {
  font-size: 28px;
  color: var(--color-accent);
}
.phone-header strong {
  display: block;
  font: 500 14px var(--font-display);
}
.phone-header small {
  display: block;
  font-size: 8px;
  color: var(--color-fg-subtle);
  margin-top: 3px;
}
.phone-header > .icon {
  margin-left: auto;
  width: 16px;
  color: var(--color-accent);
}
.phone-chat {
  padding: 17px 6px 20px;
  background-image: radial-gradient(var(--color-border) 0.5px, transparent 0.5px);
  background-size: 15px 15px;
  min-height: 330px;
}
.chat-day {
  display: block;
  text-align: center;
  font: 6px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--color-fg-subtle);
  margin-bottom: 22px;
}
.phone-user {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-accent-line);
  border-radius: 12px 12px 3px 12px;
  padding: 11px 13px;
  width: 88%;
  margin-left: auto;
  font-size: 11px;
  line-height: 1.7;
}
.phone-user > span {
  display: block;
  text-align: right;
  color: var(--color-accent-muted);
  font-size: 7px;
  margin-top: 5px;
}
.phone-nexo {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px 12px 12px 3px;
  margin-top: 13px;
  padding: 12px;
  width: 96%;
}
.phone-nexo > span {
  color: var(--color-accent);
  font: 7px var(--font-mono);
  letter-spacing: 0.08em;
}
.phone-nexo p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--color-fg-soft);
  margin-top: 6px;
}
.phone-suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--color-border-strong);
  padding-top: 10px;
  margin-top: 12px;
  color: var(--color-accent);
  font-size: 8px;
}
.phone-suggestion .icon {
  width: 13px;
  height: 13px;
}
.phone-nexo > small {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 7px;
  color: var(--color-fg-subtle);
}
.phone-example {
  display: block;
  text-align: center;
  font-size: 7px;
  color: var(--color-fg-subtle);
  margin-top: 15px;
}
.phone-next {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 11px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 20px;
  color: var(--color-fg-soft);
  font-size: 9px;
}
.phone-next:hover {
  border-color: var(--color-accent);
}
.phone-next span {
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
}
.phone-home {
  height: 3px;
  width: 85px;
  background: var(--color-fg-subtle);
  border-radius: 4px;
  margin: 14px auto 0;
}
.telegram-sticker {
  pointer-events: none;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  bottom: 39px;
  left: -4px;
  padding: 15px 17px;
  border: 1px solid var(--color-accent-line);
  border-radius: 8px;
  background: var(--color-bg-subtle);
  color: var(--color-accent);
  font: 8px var(--font-mono);
  letter-spacing: 0.06em;
  transform: rotate(-8deg);
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-popover);
}
.telegram-sticker svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.start-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 105px;
  padding-block: 95px 105px;
  border-top: 1px solid var(--color-border);
}
.start-heading > p {
  color: var(--color-fg-muted);
  margin-top: 25px;
  font-size: 13px;
  line-height: 1.8;
}
.start-path {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.start-path::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 130px;
  left: 19px;
  width: 1px;
  background: linear-gradient(
    var(--color-accent-line),
    var(--color-accent),
    var(--color-accent-line)
  );
}
.start-path > li {
  display: flex;
  gap: 25px;
  position: relative;
  padding-bottom: 40px;
}
.start-path > li:last-child {
  padding-bottom: 0;
}
.start-node {
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-accent);
  background: var(--color-bg);
  font: 11px var(--font-mono);
}
.start-node-final {
  border-color: var(--color-accent);
  background: var(--color-surface-raised);
  box-shadow: 0 0 30px var(--color-accent-wash);
}
.start-path .chapter-micro {
  font-size: 8px;
}
.start-path h3 {
  font-size: 25px;
  margin-top: 9px;
}
.start-path p {
  color: var(--color-fg-muted);
  font-size: 12px;
  line-height: 1.9;
  margin-top: 13px;
}
.start-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--color-fg-soft);
  margin-top: 17px;
}
.start-footnote .icon {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}
.start-path .chapter-text-link {
  margin-top: 17px;
}
.community-section {
  padding-block: 35px 105px;
}
.community-banner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 65px;
  align-items: center;
  padding: 60px;
  position: relative;
  border: 1px solid var(--color-accent-line);
  border-radius: 16px;
  background:
    linear-gradient(115deg, var(--color-accent-wash), transparent 60%),
    color-mix(in srgb, var(--color-bg) 85%, transparent);
  overflow: hidden;
}
.community-art {
  width: 270px;
  height: 300px;
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
}
.community-orbit {
  position: absolute;
  inset: 20px 5px;
  border: 1px solid var(--color-accent-line);
  border-radius: 50%;
  transform: rotate(-35deg) scaleY(0.68);
}
.community-orbit.orbit-two {
  transform: rotate(35deg) scaleY(0.68);
  border-style: dashed;
  animation: community-orbit 24s linear infinite;
}
.community-github {
  width: 92px;
  height: 92px;
  stroke-width: 1;
  color: var(--color-accent);
  filter: drop-shadow(0 0 25px var(--color-accent-line));
  animation: float 8s ease-in-out infinite;
}
.community-node {
  position: absolute;
  color: var(--color-accent);
  font: 22px var(--font-mono);
}
.community-node-one {
  top: 32px;
  left: 7px;
  color: var(--color-fg-muted);
  font-size: 17px;
}
.community-node-two {
  right: 9px;
  bottom: 42px;
  border: 1px solid var(--color-accent-line);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: var(--color-bg-subtle);
}
.community-node-two .icon {
  width: 20px;
  height: 20px;
  display: block;
}
.community-node-three {
  top: 42px;
  right: 18px;
  font-size: 31px;
}
.community-coordinate {
  position: absolute;
  bottom: -14px;
  font: 7px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--color-fg-subtle);
  white-space: nowrap;
}
.community-copy .eyebrow {
  font-size: 9px;
}
.next-chapters .community-copy h2 {
  font-size: 37px;
}
.community-copy > p {
  color: var(--color-fg-muted);
  font-size: 13px;
  line-height: 1.9;
  margin-top: 22px;
}
.community-options {
  display: flex;
  gap: 25px;
  margin-block: 27px;
}
.community-options > div {
  flex: 1;
  border-left: 1px solid var(--color-accent-line);
  padding-left: 13px;
}
.community-options strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.community-options span {
  display: block;
  font-size: 10px;
  color: var(--color-fg-subtle);
  margin-top: 7px;
  line-height: 1.8;
}
.community-copy .button {
  min-height: 44px;
  font-size: 11px;
}
.community-license {
  display: block;
  margin-top: 19px;
  color: var(--color-fg-subtle);
  font: 7px / 1.7 var(--font-mono);
  letter-spacing: 0.08em;
}
.chapter-faq {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 95px;
  padding-block: 15px 95px;
}
.faq-nexo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.faq-nexo p {
  color: var(--color-fg-muted);
  font-size: 11px;
  line-height: 1.8;
}
.chapter-faq-list details {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}
.chapter-faq-list details:first-child {
  border-top: 1px solid var(--color-border);
}
.chapter-faq-list details[open] {
  background: var(--color-accent-wash);
  border-radius: 7px;
}
.chapter-faq-list summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  color: var(--color-fg-soft);
}
.chapter-faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-index {
  color: var(--color-fg-subtle);
  font: 9px var(--font-mono);
}
.faq-plus {
  margin-left: auto;
  color: var(--color-accent);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s;
}
.chapter-faq-list details[open] .faq-plus {
  transform: rotate(45deg);
}
.chapter-faq-list details p {
  margin: 0 35px 0 44px;
  padding-bottom: 23px;
  color: var(--color-fg-muted);
  font-size: 12px;
  line-height: 1.9;
}
.victory-section {
  text-align: center;
  position: relative;
  padding-block: 170px 70px;
  border-top: 1px solid var(--color-border);
}
.victory-watermark {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  font: 500 clamp(150px, 25vw, 335px) / 1 var(--font-display);
  letter-spacing: -0.075em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-accent-line);
  user-select: none;
  mask-image: linear-gradient(var(--color-shadow) 10%, transparent 90%);
}
.victory-watermark > span {
  font-size: 0.7em;
}
.victory-copy {
  position: relative;
  z-index: 1;
}
.victory-copy .eyebrow {
  justify-content: center;
  font-size: 9px;
}
.next-chapters .victory-copy h2 {
  font-size: clamp(40px, 5vw, 66px);
}
.victory-copy > p {
  color: var(--color-fg-muted);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 24px;
}
.victory-copy .button {
  margin-top: 28px;
}
.victory-preview {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 17px auto 0;
  border: 0;
  background: none;
  color: var(--color-fg-muted);
  font-size: 10px;
  padding: 10px;
}
.victory-preview .icon {
  width: 13px;
  height: 13px;
  color: var(--color-trophy-platinum);
}
.victory-preview:hover {
  color: var(--color-accent);
}
.victory-horizon {
  position: absolute;
  inset: 15% -30% 0;
  pointer-events: none;
  perspective: 500px;
  overflow: hidden;
  mask-image: radial-gradient(ellipse, var(--color-shadow), transparent 70%);
}
.victory-horizon > span {
  position: absolute;
  inset: 30%;
  border: 1px solid var(--color-accent-line);
  border-radius: 50%;
  transform: rotateX(65deg);
  animation: horizon-expand 12s ease-out infinite;
}
.victory-horizon > span:nth-child(2) {
  animation-delay: -4s;
}
.victory-horizon > span:nth-child(3) {
  animation-delay: -8s;
}
.victory-endnote {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--color-fg-subtle);
  font: 8px var(--font-mono);
  letter-spacing: 0.11em;
  margin-top: 70px;
}
.victory-endnote > span {
  color: var(--color-accent);
}
.victory-notification {
  position: absolute;
  left: 50%;
  top: 48px;
  translate: -50% 0;
  width: min(340px, 95%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.victory-notification:not(:empty) {
  background: var(--color-surface);
  border: 1px solid var(--color-accent-line);
  border-radius: 12px;
  padding: 17px 20px;
  box-shadow: var(--shadow-popover);
  text-align: left;
}
.victory-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.victory-notification > .icon {
  width: 30px;
  height: 30px;
  color: var(--color-trophy-platinum);
}
.victory-notification strong {
  display: block;
  font: 500 16px var(--font-display);
}
.victory-notification small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--color-fg-muted);
}
.victory-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.victory-confetti > span {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 5px;
  height: 9px;
  background: var(--color-accent);
  border-radius: 1px;
  animation: victory-confetti 1.8s ease-out both;
}
.victory-confetti > span:nth-child(3n) {
  background: var(--color-trophy-platinum);
}
.victory-confetti > span:nth-child(3n + 1) {
  background: var(--color-trophy-gold);
}
.next-chapters .content-enter {
  animation: chapter-content 0.4s ease-out;
}
@keyframes chapter-drift {
  to {
    transform: translate(-220px, 180px) scale(1.25);
  }
}
@keyframes terrain-breathe {
  to {
    transform: translateY(60px) scale(1.06);
  }
}
@keyframes terrain-travel {
  to {
    stroke-dashoffset: -1840;
  }
}
@keyframes map-flow {
  to {
    stroke-dashoffset: -770;
  }
}
@keyframes signal-pulse {
  0% {
    opacity: 0.6;
    transform: rotate(-25deg) scale(0.5, 0.4);
  }
  100% {
    opacity: 0;
    transform: rotate(-25deg) scale(1.15, 0.92);
  }
}
@keyframes community-orbit {
  to {
    transform: rotate(395deg) scaleY(0.68);
  }
}
@keyframes horizon-expand {
  0% {
    opacity: 0.6;
    transform: rotateX(65deg) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: rotateX(65deg) scale(3.5);
  }
}
@keyframes victory-confetti {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-rotation));
  }
}
@keyframes chapter-content {
  from {
    opacity: 0.35;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 1100px) {
  .mission-controls {
    padding: 26px 17px;
  }
  .mission-choices > button {
    padding-inline: 10px;
    gap: 10px;
  }
  .mission-choices strong {
    font-size: 14px;
  }
  .mission-choices small {
    font-size: 9px;
  }
  .mission-result-copy {
    padding-inline: 28px;
  }
  .mission-result-copy h3 {
    font-size: 28px;
  }
  .companion-section {
    gap: 45px;
  }
  .telegram-sticker {
    left: -10px;
    font-size: 7px;
  }
  .signal-label {
    left: -65px;
  }
  .start-section {
    gap: 65px;
  }
  .community-banner {
    padding: 42px;
    gap: 30px;
  }
  .community-art {
    width: 235px;
    height: 260px;
  }
  .next-chapters .community-copy h2 {
    font-size: 33px;
  }
  .chapter-faq {
    gap: 55px;
  }
}
@media (max-width: 760px) {
  .mission-section {
    padding-block: 50px 65px;
  }
  .chapter-heading {
    margin-bottom: 34px;
  }
  .chapter-heading h2 {
    font-size: 50px;
  }
  .chapter-heading > p {
    font-size: 12px;
  }
  .mission-console {
    grid-template-columns: 1fr;
  }
  .mission-controls {
    padding: 25px 23px;
  }
  .mission-controls > .chapter-micro {
    margin-left: 0;
  }
  .mission-choices > button {
    padding: 14px;
  }
  .mission-choices strong {
    font-size: 16px;
  }
  .mission-choices small {
    font-size: 10px;
  }
  .mission-choice-arrow {
    opacity: 0.4;
  }
  .mission-nexo {
    padding-top: 17px;
    margin-top: 18px;
  }
  .mission-result {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }
  .mission-map {
    height: 250px;
  }
  .mission-result-copy {
    padding: 0 28px 28px;
  }
  .mission-result-copy h3 {
    font-size: 31px;
  }
  .chapter-caption {
    flex-direction: column;
    gap: 7px;
    font-size: 8px;
  }
  .companion-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 45px 70px;
  }
  .companion-copy > p {
    max-width: 470px;
    font-size: 13px;
  }
  .companion-points {
    margin-block: 28px;
  }
  .companion-scene {
    min-height: 570px;
  }
  .signal-label {
    left: 0;
    font-size: 6px;
  }
  .telegram-sticker {
    left: 25px;
    bottom: 33px;
    font-size: 8px;
  }
  .start-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 65px;
  }
  .start-heading > p {
    font-size: 12px;
    margin-top: 20px;
  }
  .start-path {
    max-width: 480px;
  }
  .community-section {
    padding-block: 10px 70px;
  }
  .community-banner {
    grid-template-columns: 1fr;
    padding: 34px;
    gap: 38px;
  }
  .community-art {
    width: 225px;
    height: 245px;
  }
  .next-chapters .community-copy h2 {
    font-size: 36px;
  }
  .community-copy > p {
    font-size: 12px;
  }
  .chapter-faq {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 0 65px;
  }
  .faq-nexo {
    margin-top: 22px;
  }
  .chapter-faq-list summary {
    padding-inline: 10px;
    gap: 13px;
    font-size: 12px;
  }
  .chapter-faq-list details p {
    margin-inline: 35px 20px;
    font-size: 11px;
  }
  .victory-section {
    padding-block: 135px 45px;
  }
  .victory-watermark {
    top: 25px;
    font-size: 210px;
  }
  .next-chapters .victory-copy h2 {
    font-size: 44px;
  }
  .victory-copy .eyebrow {
    font-size: 8px;
  }
  .victory-copy > p {
    font-size: 12px;
  }
  .victory-endnote {
    font-size: 7px;
    margin-top: 50px;
  }
  .victory-notification {
    top: 29px;
  }
}
@media (max-width: 480px) {
  .next-chapters h2 {
    font-size: 36px;
  }
  .chapter-heading h2 {
    font-size: 46px;
  }
  .chapter-heading .eyebrow {
    font-size: 8px;
  }
  .chapter-heading > p {
    font-size: 11px;
  }
  .mission-controls {
    padding: 22px 14px;
  }
  .mission-controls > .chapter-micro {
    font-size: 7px;
    margin-left: 10px;
  }
  .mission-choices > button {
    padding: 13px 10px;
    gap: 10px;
  }
  .mission-choices strong {
    font-size: 13px;
  }
  .mission-choices small {
    font-size: 8px;
  }
  .mission-choice-icon {
    width: 29px;
    height: 34px;
  }
  .mission-choice-icon .icon {
    width: 17px;
    height: 17px;
  }
  .mission-choice-arrow {
    font-size: 12px;
  }
  .mission-nexo {
    padding-inline: 9px;
  }
  .mission-result-copy {
    padding: 0 23px 25px;
  }
  .mission-result-copy h3 {
    font-size: 27px;
  }
  .mission-result-copy > p {
    font-size: 11px;
  }
  .mission-result-copy > .chapter-micro {
    font-size: 7px;
  }
  .mission-tags span {
    font-size: 7px;
  }
  .mission-map {
    height: 215px;
  }
  .node-next {
    width: 40px;
    height: 40px;
    right: 7%;
    top: 18%;
  }
  .node-next .icon {
    width: 21px;
    height: 21px;
  }
  .note-next {
    top: 43%;
    right: 5%;
    font-size: 6px;
  }
  .note-start {
    top: 85%;
    font-size: 6px;
  }
  .map-coordinate {
    font-size: 6px;
    left: 23px;
  }
  .companion-copy > p {
    font-size: 12px;
  }
  .companion-scene {
    min-height: 560px;
  }
  .telegram-phone {
    width: 265px;
  }
  .signal-ring {
    width: 355px;
    height: 355px;
  }
  .signal-label {
    display: none;
  }
  .telegram-sticker {
    left: 2px;
    bottom: 20px;
    font-size: 7px;
    padding: 12px;
  }
  .start-path > li {
    gap: 19px;
  }
  .start-path h3 {
    font-size: 23px;
  }
  .start-path p {
    font-size: 11px;
  }
  .start-path .chapter-micro {
    font-size: 7px;
  }
  .community-banner {
    padding: 25px;
  }
  .next-chapters .community-copy h2 {
    font-size: 31px;
  }
  .community-copy .eyebrow {
    font-size: 7px;
  }
  .community-options {
    gap: 17px;
  }
  .community-options strong {
    font-size: 10px;
  }
  .community-options span {
    font-size: 9px;
  }
  .community-license {
    font-size: 6px;
  }
  .chapter-faq-list summary {
    font-size: 11px;
    gap: 10px;
  }
  .faq-index {
    font-size: 8px;
  }
  .next-chapters .victory-copy h2 {
    font-size: 36px;
  }
  .victory-copy .eyebrow {
    font-size: 7px;
    gap: 7px;
  }
  .victory-copy > p {
    font-size: 12px;
  }
  .victory-watermark {
    font-size: 180px;
    top: 30px;
  }
  .victory-endnote {
    font-size: 6px;
    gap: 12px;
  }
  .victory-notification {
    width: 290px;
  }
  .victory-notification strong {
    font-size: 14px;
  }
  .victory-notification small {
    font-size: 9px;
  }
  .victory-notification:not(:empty) {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .next-chapters .victory-confetti {
    display: none;
  }
}
html.motion-paused .next-chapters .victory-confetti {
  display: none;
}
