:root {
  color-scheme: dark;
  --bg: #020202;
  --deep: #080808;
  --ink: rgba(244, 244, 244, 0.88);
  --soft: rgba(244, 244, 244, 0.58);
  --faint: rgba(244, 244, 244, 0.28);
  --trace: rgba(244, 244, 244, 0.12);
  --signal: #ff4fa3;
  --paper: #f5f3ef;
  --paper-ink: #161616;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  opacity: 0.035;
  animation: noise-breathe 9s steps(3, end) infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%);
  background-size: 100% 4px;
  opacity: 0.08;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100svh;
  padding: 28px;
}

.entry-shell,
.quiet-shell,
.night-shell,
.static-shell,
.lost-shell {
  display: grid;
  align-items: center;
}

.entry {
  width: min(100%, 520px);
  margin-left: max(0px, 10vw);
}

.entry h1 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 400;
}

.entry p,
.quiet-text p,
.night-line,
.static-mark,
.lost-code,
.lost-text {
  margin: 0;
  font-weight: 400;
}

.muted,
.quiet-text p + p {
  color: var(--soft);
}

.enter-signal {
  min-width: 88px;
  min-height: 42px;
  margin-top: 42px;
  padding: 8px 16px;
  color: var(--soft);
  text-align: left;
  border: 1px solid var(--trace);
  border-radius: 2px;
  transition: color 180ms ease, border-color 180ms ease, text-shadow 180ms ease;
}

.enter-signal:hover,
.enter-signal:focus-visible,
.enter-signal:active {
  color: var(--signal);
  border-color: rgba(255, 79, 163, 0.35);
  outline: none;
  text-shadow: 0 0 14px rgba(255, 79, 163, 0.38);
}

.drift-link {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(12px, 3vw, 32px);
  z-index: 20;
  display: grid;
  width: 64px;
  height: 52px;
  place-items: center;
  color: rgba(244, 244, 244, 0.34);
  font-size: 0.78rem;
  text-decoration: none;
  outline-offset: 5px;
  transition: color 160ms ease, opacity 160ms ease, text-shadow 160ms ease;
}

.drift-link:hover,
.drift-link:active,
.drift-link:focus-visible {
  color: var(--signal);
  opacity: 1;
  outline: none;
  text-shadow: 0 0 12px rgba(255, 79, 163, 0.42);
}

.drift-link.is-silent:hover::after,
.drift-link.is-silent:active::after,
.drift-link.is-silent:focus-visible::after {
  width: 4px;
  height: 4px;
  content: "";
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 79, 163, 0.52);
}

.drift-noise-note {
  position: fixed;
  right: clamp(22px, 4vw, 48px);
  bottom: clamp(58px, 7vw, 86px);
  z-index: 21;
  max-width: min(220px, calc(100vw - 44px));
  margin: 0;
  color: rgba(244, 244, 244, 0.42);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: right;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  animation: drift-note 720ms ease both;
}

.drift-unstable .drift-link,
.drift-unstable .lost-drift {
  color: rgba(244, 244, 244, 0.58);
  text-shadow: 0 0 10px rgba(255, 79, 163, 0.18);
}

.drift-scattered .drift-noise-note {
  color: rgba(255, 79, 163, 0.58);
}

.drift-scattered .drift-noise-note::after {
  display: block;
  width: 64px;
  height: 1px;
  margin: 7px 0 0 auto;
  content: "";
  background: var(--signal);
  opacity: 0;
  box-shadow: 0 0 12px rgba(255, 79, 163, 0.32);
  animation: drift-scatter 380ms steps(2, end) 1;
}

.quiet-text {
  width: min(100%, 520px);
  margin-left: max(0px, 13vw);
  color: rgba(244, 244, 244, 0.72);
}

.quiet-text p + p {
  margin-top: 8px;
}

.quiet-text:hover {
  color: rgba(244, 244, 244, 0.86);
}

.quiet-text:hover .micro-signal {
  color: var(--signal);
  text-shadow: 0 0 12px rgba(255, 79, 163, 0.28);
}

.micro-signal {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.noise-field {
  display: grid;
  min-height: 100svh;
  padding: 14vh 11vw;
  align-content: center;
  gap: 7px;
}

.noise-line {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: rgba(244, 244, 244, 0.5);
  word-break: keep-all;
  animation: noise-shift 8s steps(2, end) infinite;
  animation-delay: var(--delay, 0s);
}

.noise-line:nth-child(2n) {
  margin-left: min(18vw, 120px);
  color: rgba(244, 244, 244, 0.34);
}

.noise-line:nth-child(3n) {
  margin-left: min(8vw, 64px);
  transform: translateX(1px);
}

.noise-line .fracture {
  display: inline-block;
  opacity: 0.76;
}

.noise-line .pink {
  color: rgba(255, 79, 163, 0.62);
  text-shadow: 0 0 12px rgba(255, 79, 163, 0.24);
}

.archive-shell {
  display: grid;
  min-height: 100svh;
  padding: 28px;
  align-items: center;
}

.archive-field {
  width: min(420px, calc(100vw - 56px));
  margin-left: max(0px, 12vw);
  color: rgba(244, 244, 244, 0.48);
}

.archive-title,
.archive-note {
  margin: 0;
  font-weight: 400;
}

.archive-title {
  color: rgba(244, 244, 244, 0.58);
}

.archive-note {
  margin-top: 10px;
  color: rgba(244, 244, 244, 0.36);
}

.archive-orbits {
  display: grid;
  width: min(220px, 100%);
  margin-top: 48px;
  gap: 9px;
}

.archive-orbits a {
  width: fit-content;
  min-width: 54px;
  min-height: 28px;
  color: rgba(244, 244, 244, 0.42);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.archive-orbits a:nth-child(2n) {
  margin-left: 34px;
  opacity: 0.72;
}

.archive-orbits a:nth-child(3n) {
  margin-left: 12px;
  opacity: 0.56;
}

.archive-orbits a:hover,
.archive-orbits a:focus-visible,
.archive-orbits a:active {
  color: rgba(255, 79, 163, 0.72);
  outline: none;
  transform: translateX(2px);
  text-shadow: 0 0 12px rgba(255, 79, 163, 0.22);
}

.weblogs-gate-shell {
  display: grid;
  min-height: 100svh;
  padding: 28px;
  align-items: center;
}

.weblogs-gate {
  width: min(460px, calc(100vw - 56px));
  margin-left: max(0px, 11vw);
  color: rgba(244, 244, 244, 0.5);
}

.weblogs-title,
.weblogs-note,
.weblogs-lost {
  margin: 0;
  font-weight: 400;
}

.weblogs-title {
  color: rgba(244, 244, 244, 0.62);
}

.weblogs-note {
  margin-top: 10px;
  color: rgba(244, 244, 244, 0.38);
}

.weblogs-signals,
.weblogs-index-links {
  display: grid;
  width: min(260px, 100%);
}

.weblogs-signals {
  margin-top: 46px;
  gap: 9px;
}

.weblogs-index-links {
  margin-top: 34px;
  gap: 8px;
}

.weblogs-signals a,
.weblogs-index-links a {
  width: fit-content;
  min-height: 28px;
  color: rgba(244, 244, 244, 0.44);
  font-size: 0.82rem;
  text-decoration: underline;
  text-decoration-color: rgba(244, 244, 244, 0.16);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.weblogs-signals a:nth-child(2) {
  margin-left: 32px;
}

.weblogs-signals a:nth-child(3) {
  margin-left: 14px;
}

.weblogs-index-links a:nth-child(2n) {
  margin-left: 18px;
  opacity: 0.76;
}

.weblogs-index-links a:nth-child(3n) {
  opacity: 0.58;
}

.weblogs-signals a:hover,
.weblogs-signals a:focus-visible,
.weblogs-signals a:active,
.weblogs-index-links a:hover,
.weblogs-index-links a:focus-visible,
.weblogs-index-links a:active {
  color: rgba(255, 79, 163, 0.72);
  outline: none;
  text-decoration-color: rgba(255, 79, 163, 0.48);
  text-shadow: 0 0 11px rgba(255, 79, 163, 0.22);
  transform: translateX(2px);
}

.weblogs-lost {
  margin-top: 48px;
  color: rgba(244, 244, 244, 0.3);
}

.recovered-shell {
  display: grid;
  min-height: 100svh;
  padding: 28px;
  align-items: center;
}

.recovered-field {
  width: min(520px, calc(100vw - 56px));
  margin-left: max(0px, 10vw);
  color: rgba(244, 244, 244, 0.48);
}

.recovered-title,
.recovered-note,
.recovered-sub,
.recovered-trace {
  margin: 0;
  font-weight: 400;
}

.recovered-title {
  color: rgba(244, 244, 244, 0.62);
}

.recovered-note {
  margin-top: 10px;
  color: rgba(244, 244, 244, 0.4);
}

.recovered-sub {
  margin-top: 6px;
  color: rgba(244, 244, 244, 0.28);
}

.recovered-links {
  display: grid;
  width: min(340px, 100%);
  margin-top: 48px;
  gap: 7px;
}

.recovered-links a {
  width: fit-content;
  min-height: 28px;
  color: rgba(244, 244, 244, 0.42);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.recovered-links a:nth-child(2n) {
  margin-left: 34px;
  opacity: 0.72;
}

.recovered-links a:nth-child(3n) {
  margin-left: 12px;
  opacity: 0.58;
}

.recovered-links a:nth-child(5n) {
  margin-left: 54px;
  opacity: 0.64;
}

.recovered-links a:hover,
.recovered-links a:focus-visible,
.recovered-links a:active {
  color: rgba(255, 79, 163, 0.72);
  outline: none;
  transform: translateX(2px);
  text-shadow: 0 0 12px rgba(255, 79, 163, 0.22);
}

.recovered-trace {
  width: fit-content;
  margin-top: 42px;
  color: rgba(255, 79, 163, 0.18);
  font-size: 0.68rem;
  opacity: 0;
  animation: recovered-trace 16s steps(2, end) infinite;
}

.missing-shell {
  display: grid;
  min-height: 100svh;
  padding: 28px;
  align-items: center;
}

.missing-field {
  width: min(500px, calc(100vw - 56px));
  margin-left: max(0px, 13vw);
  color: rgba(244, 244, 244, 0.44);
}

.missing-title,
.missing-note,
.missing-sub,
.missing-trace {
  margin: 0;
  font-weight: 400;
}

.missing-title {
  color: rgba(244, 244, 244, 0.52);
}

.missing-note {
  margin-top: 10px;
  color: rgba(244, 244, 244, 0.34);
}

.missing-sub {
  margin-top: 6px;
  color: rgba(244, 244, 244, 0.24);
}

.missing-links {
  display: grid;
  width: min(300px, 100%);
  margin-top: 52px;
  gap: 9px;
}

.missing-links a {
  width: fit-content;
  min-height: 28px;
  color: rgba(244, 244, 244, 0.32);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.missing-links a:nth-child(2n) {
  margin-left: 28px;
  opacity: 0.64;
}

.missing-links a:nth-child(3n) {
  margin-left: 8px;
  opacity: 0.48;
}

.missing-links a:nth-child(4n) {
  margin-left: 48px;
  opacity: 0.56;
}

.missing-links a:hover,
.missing-links a:focus-visible,
.missing-links a:active {
  color: rgba(255, 79, 163, 0.62);
  outline: none;
  transform: translateX(2px);
  text-shadow: 0 0 11px rgba(255, 79, 163, 0.2);
}

.missing-trace {
  width: fit-content;
  margin-top: 44px;
  color: rgba(244, 244, 244, 0.14);
  font-size: 0.68rem;
  opacity: 0;
  animation: missing-trace 18s steps(2, end) infinite;
}

.stargazing-shell {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  overflow: hidden;
  place-items: center;
  font-family: "Yu Mincho", "BIZ UDPMincho", "Yu Gothic", Meiryo, serif;
}

.star-stage {
  width: min(760px, calc(100vw - 32px));
  text-align: center;
}

.star-sentence {
  min-height: 3rem;
  margin: 0;
  color: rgba(224, 224, 218, 0.66);
  font-size: 1.36rem;
  font-weight: 400;
  line-height: 2.2;
}

.star-en {
  margin-top: 34px;
  color: rgba(210, 210, 205, 0.56);
  font-family: Georgia, "Courier New", Consolas, serif;
  font-size: 0.98rem;
  line-height: 2;
  overflow-wrap: normal;
  word-break: normal;
}

.star-word {
  display: inline-block;
  white-space: nowrap;
}

.star-fragment {
  display: inline-block;
  min-width: 0.35em;
  opacity: var(--op, 0.36);
  transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  transition-delay: var(--star-delay, 0ms), var(--star-delay, 0ms), 0ms, 0ms;
  transition-duration: var(--star-duration, 120s), var(--star-opacity-duration, 110s), 1400ms, 1400ms;
  transition-property: transform, opacity, color, text-shadow;
  transition-timing-function: cubic-bezier(0.12, 0.74, 0.18, 1), ease, ease, ease;
  will-change: transform, opacity;
}

.star-ja .star-fragment {
  --star-duration: var(--star-ja-duration, 98s);
  --star-opacity-duration: var(--star-ja-opacity-duration, 88s);
}

.star-en .star-fragment {
  --star-duration: var(--star-en-duration, 132s);
  --star-opacity-duration: var(--star-en-opacity-duration, 118s);
}

.star-stage.is-gathering .star-fragment {
  opacity: 0.88;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.star-stage.is-afterglow .star-fragment[data-signal="true"] {
  animation: star-signal 1.65s ease 1;
}

.star-stage.is-quiet .star-fragment {
  text-shadow: none;
  will-change: auto;
}

.terminal-shell {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  align-items: center;
}

.terminal-frame {
  width: min(700px, calc(100vw - 48px));
  margin-left: max(0px, 8vw);
}

.terminal-lines {
  padding: 0;
  margin: 0;
  color: rgba(244, 244, 244, 0.58);
  list-style: none;
}

.terminal-lines li {
  min-height: 1.7em;
}

.terminal-lines li::before {
  content: "> ";
  color: rgba(244, 244, 244, 0.2);
}

.terminal-lines .active {
  color: rgba(255, 79, 163, 0.58);
  animation: terminal-blink 2.8s steps(2, end) infinite;
}

.night-line {
  margin-left: max(0px, 12vw);
  color: rgba(244, 244, 244, 0.68);
}

.static-shell {
  justify-items: center;
}

.static-mark {
  color: rgba(244, 244, 244, 0.16);
}

.static-mark:hover {
  color: rgba(255, 79, 163, 0.48);
}

.light-page {
  background: var(--paper);
  color: var(--paper-ink);
}

.light-page::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.13) 0.45px, transparent 0.55px);
  opacity: 0.025;
}

.light-page::after {
  display: none;
}

.light-page .drift-link {
  color: rgba(0, 0, 0, 0.28);
}

.light-page .drift-noise-note {
  color: rgba(0, 0, 0, 0.42);
}

.light-page.drift-unstable .drift-link {
  color: rgba(0, 0, 0, 0.5);
}

.alone-shell {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}

.alone-trigger {
  min-width: 210px;
  min-height: 70px;
  color: rgba(22, 22, 22, 0.48);
  text-align: center;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.alone-trigger:hover,
.alone-trigger:focus-visible,
.alone-trigger:active {
  color: var(--signal);
  outline: none;
  text-shadow: 0 0 13px rgba(255, 79, 163, 0.24);
}

.alone-trigger.revealed {
  color: rgba(22, 22, 22, 0.78);
}

.noice-page {
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
  color: rgba(244, 244, 244, 0.64);
  transition: background-color 520ms ease, color 520ms ease;
}

.noice-page::before {
  opacity: 0.025;
}

.noice-page::after {
  opacity: 0.055;
}

.noice-shell {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}

.noice-trigger {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  color: rgba(244, 244, 244, 0.56);
  font-family: "Yu Mincho", "BIZ UDPMincho", "Yu Gothic", Meiryo, serif;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: color 180ms ease, opacity 240ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.noice-trigger:hover,
.noice-trigger:focus-visible,
.noice-trigger:active {
  color: rgba(255, 79, 163, 0.64);
  outline: none;
  text-shadow: 0 0 16px rgba(255, 79, 163, 0.28);
}

.noice-white {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(18, 18, 18, 0.72);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.noice-word,
.noice-stable {
  position: absolute;
  margin: 0;
  font-weight: 400;
}

.noice-word {
  font-size: 0.86rem;
}

.noice-stable {
  margin-top: 56px;
  color: rgba(18, 18, 18, 0.34);
  font-size: 0.58rem;
  opacity: 0;
  transition: opacity 1200ms ease 1800ms;
}

.noice-overload {
  animation: noice-shudder 190ms steps(2, end) 4;
}

.noice-overload::before {
  z-index: 2;
  background-image:
    radial-gradient(rgba(255, 79, 163, 0.62) 0.55px, transparent 0.75px),
    linear-gradient(90deg, transparent, rgba(255, 79, 163, 0.16), transparent);
  background-size: 3px 3px, 100% 100%;
  opacity: 0;
  animation: noice-pink-noise 840ms steps(3, end) 1;
}

.noice-overload .noice-trigger {
  color: rgba(255, 79, 163, 0.78);
  text-shadow: 0 0 22px rgba(255, 79, 163, 0.46);
  animation: noice-letter 180ms steps(2, end) 5;
}

.noice-final {
  background: #fff;
  color: rgba(18, 18, 18, 0.72);
}

.noice-final::before,
.noice-final::after {
  display: none;
}

.noice-final .noice-trigger {
  opacity: 0;
  pointer-events: none;
}

.noice-final .noice-white {
  visibility: visible;
  opacity: 1;
}

.noice-final .noice-stable {
  opacity: 1;
}

.noice-final .drift-link {
  color: rgba(0, 0, 0, 0.22);
}

.noice-final .drift-link:hover,
.noice-final .drift-link:active,
.noice-final .drift-link:focus-visible {
  color: rgba(255, 79, 163, 0.64);
}

.lost-shell {
  min-height: 100svh;
  padding: 24px;
  overflow: hidden;
  position: relative;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.lost-page::before {
  opacity: 0.045;
}

.lost-page::after {
  opacity: 0.045;
}

.lost-panel {
  position: relative;
  width: min(280px, calc(100vw - 48px));
  animation: lost-breathe 12s ease-in-out infinite;
}

.lost-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.lost-noise span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 79, 163, 0.18);
  border-radius: 50%;
  opacity: 0;
  animation: lost-spark 11s steps(2, end) infinite;
}

.lost-noise span:nth-child(1) {
  top: 29%;
  left: 18%;
}

.lost-noise span:nth-child(2) {
  top: 61%;
  left: 72%;
  animation-delay: 3.8s;
}

.lost-noise span:nth-child(3) {
  top: 43%;
  left: 86%;
  animation-delay: 7.1s;
}

.lost-code {
  color: rgba(244, 244, 244, 0.36);
  font-size: 0.78rem;
  animation: lost-jitter 10s steps(2, end) infinite;
}

.lost-text {
  min-height: 2rem;
  margin-top: 6px;
  color: rgba(244, 244, 244, 0.58);
  font-size: 0.82rem;
  animation: lost-jitter 8s steps(2, end) infinite;
}

.lost-trace {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 1px;
  margin: 18px 0 0 -27px;
  background: var(--signal);
  opacity: 0;
  box-shadow: 0 0 10px rgba(255, 79, 163, 0.2);
}

.lost-state-searching .lost-text {
  color: rgba(244, 244, 244, 0.48);
}

.lost-state-message .lost-text {
  color: rgba(230, 230, 224, 0.7);
}

.lost-state-message .lost-trace {
  animation: lost-trace 1.4s ease 1;
}

.lost-drift {
  position: fixed;
  right: clamp(24px, 10vw, 120px);
  bottom: clamp(42px, 13vh, 140px);
  z-index: 3;
  min-width: 46px;
  min-height: 44px;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 244, 244, 0.48);
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(3px);
  transition: color 160ms ease, opacity 220ms ease, text-shadow 160ms ease, transform 220ms ease;
}

.lost-drift:not([hidden]) {
  animation: lost-link 8.5s ease-in-out infinite;
  opacity: 0.64;
}

.lost-drift:hover,
.lost-drift:focus-visible,
.lost-drift:active {
  color: var(--signal);
  opacity: 0.9;
  outline: none;
  transform: translateY(0);
  text-shadow: 0 0 12px rgba(255, 79, 163, 0.28);
}

@keyframes noise-breathe {
  50% {
    opacity: 0.055;
  }
}

@keyframes drift-note {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }

  24%,
  74% {
    opacity: 0.78;
    transform: translateY(0);
  }

  100% {
    opacity: 0.18;
    transform: translateY(-2px);
  }
}

@keyframes drift-scatter {
  14%,
  68% {
    opacity: 0.72;
  }

  42%,
  100% {
    opacity: 0;
  }
}

@keyframes recovered-trace {
  8%,
  12% {
    opacity: 0.68;
  }

  13%,
  100% {
    opacity: 0;
  }
}

@keyframes missing-trace {
  10%,
  14% {
    opacity: 0.58;
  }

  15%,
  100% {
    opacity: 0;
  }
}

@keyframes noice-pink-noise {
  0%,
  100% {
    opacity: 0;
  }

  18%,
  56% {
    opacity: 0.5;
  }

  34%,
  72% {
    opacity: 0.14;
  }
}

@keyframes noice-letter {
  0%,
  100% {
    transform: translate(0, 0);
  }

  30% {
    transform: translate(2px, -1px);
  }

  62% {
    transform: translate(-2px, 1px);
  }
}

@keyframes noice-shudder {
  0%,
  100% {
    filter: none;
  }

  45% {
    filter: contrast(1.18);
  }
}

@keyframes noise-shift {
  50% {
    opacity: 0.42;
    transform: translate(1px, -1px);
  }
}

@keyframes terminal-blink {
  50% {
    opacity: 0.35;
  }
}

@keyframes star-signal {
  35% {
    color: rgba(255, 79, 163, 0.38);
    text-shadow: 0 0 10px rgba(255, 79, 163, 0.16);
  }
}

@keyframes lost-breathe {
  50% {
    transform: translateY(-2px);
  }
}

@keyframes lost-jitter {
  48% {
    transform: translate(0, 0);
  }

  49% {
    transform: translate(1px, 0);
  }

  50% {
    transform: translate(-1px, 1px);
  }

  51% {
    transform: translate(0, 0);
  }
}

@keyframes lost-spark {
  8% {
    opacity: 0;
  }

  9% {
    opacity: 0.55;
  }

  10% {
    opacity: 0;
  }
}

@keyframes lost-trace {
  18% {
    opacity: 0;
  }

  34% {
    opacity: 0.36;
  }

  70% {
    opacity: 0.08;
  }

  100% {
    opacity: 0;
  }
}

@keyframes lost-link {
  0%,
  100% {
    opacity: 0.18;
  }

  36% {
    opacity: 0.56;
  }

  74% {
    opacity: 0.05;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .page-shell,
  .stargazing-shell,
  .terminal-shell,
  .alone-shell {
    padding: 22px;
  }

  .entry,
  .quiet-text,
  .night-line,
  .terminal-frame {
    margin-left: 0;
  }

  .noise-field {
    padding: 14vh 24px;
  }

  .noise-line:nth-child(2n),
  .noise-line:nth-child(3n) {
    margin-left: 22px;
  }

  .archive-shell {
    padding: 22px;
  }

  .archive-field {
    width: calc(100vw - 44px);
    margin-left: 0;
  }

  .archive-orbits {
    margin-top: 42px;
  }

  .archive-orbits a:nth-child(2n),
  .archive-orbits a:nth-child(3n) {
    margin-left: 18px;
  }

  .weblogs-gate-shell {
    padding: 22px;
  }

  .weblogs-gate {
    width: calc(100vw - 44px);
    margin-left: 0;
  }

  .weblogs-signals {
    margin-top: 42px;
  }

  .weblogs-lost {
    margin-top: 42px;
  }

  .weblogs-signals a:nth-child(2),
  .weblogs-signals a:nth-child(3),
  .weblogs-index-links a:nth-child(2n),
  .recovered-links a:nth-child(2n),
  .recovered-links a:nth-child(3n),
  .recovered-links a:nth-child(5n),
  .missing-links a:nth-child(2n),
  .missing-links a:nth-child(3n),
  .missing-links a:nth-child(4n) {
    margin-left: 16px;
  }

  .missing-shell,
  .recovered-shell {
    padding: 22px;
  }

  .missing-field,
  .recovered-field {
    width: calc(100vw - 44px);
    margin-left: 0;
  }

  .missing-links,
  .recovered-links {
    margin-top: 42px;
  }

  .star-stage {
    width: calc(100vw - 44px);
  }

  .star-sentence {
    min-height: 2.8rem;
    font-size: 1.04rem;
    line-height: 2.05;
  }

  .star-en {
    margin-top: 20px;
    font-size: 0.86rem;
    line-height: 1.95;
  }

  .lost-shell {
    padding: 22px;
  }

  .lost-drift {
    right: max(22px, env(safe-area-inset-right));
    bottom: max(58px, env(safe-area-inset-bottom));
  }
}

@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;
  }

  .star-fragment {
    transform: none;
    opacity: 0.9;
  }
}
