@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

:root {
  --black: #020505;
  --teal: #4fa9a6;
  --chartreuse: #b8be16;
  --dim-teal: #254f4e;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--black);
  color: var(--teal);
  font-family: "Share Tech Mono", monospace;
  overflow: hidden;
}

main {
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.system-message {
  margin: 0 0 24px;
  font-size: 15px;
  letter-spacing: 0.22em;
  opacity: 0.75;
}

.cursor {
  margin-left: 8px;
  animation: blink 1s steps(1) infinite;
}

button {
  padding: 8px 16px;

  color: var(--teal);
  background: transparent;
  border: 0;

  font: inherit;
  letter-spacing: 0.18em;
  cursor: pointer;
}

button:hover {
  color: var(--chartreuse);
  text-shadow: 0 0 8px var(--chartreuse);
}

.hidden {
  display: none;
}

.system-label {
  color: var(--dim-teal);
  letter-spacing: 0.2em;
}

.archive-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.corrupted {
  margin-top: 24px;
  opacity: 0.2;
}

.corrupted:hover {
  opacity: 1;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}#binary-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  z-index: 0;
  pointer-events: none;

  opacity: 0.28;
  filter: blur(0.2px);
}#corrupted-gate {
  margin-top: 32px;
  color: var(--chartreuse);
  text-align: center;
}

#password-input {
  background: black;
  border: 1px solid var(--chartreuse);
  color: var(--chartreuse);
  font-family: inherit;
  padding: 8px 10px;
  outline: none;
  text-align: center;
}

#password-submit {
  border-color: var(--chartreuse);
  color: var(--chartreuse);
}

#access-message {
  min-height: 20px;
  margin-top: 12px;
}

#digital-altar {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: black;
  z-index: 20;
  overflow: hidden;
}

#digital-altar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(79, 169, 166, 0.08) 0px,
      rgba(79, 169, 166, 0.08) 1px,
      transparent 1px,
      transparent 28px
    );
  opacity: 0.35;
  pointer-events: none;
}

#digital-altar img,
#digital-altar p {
  position: relative;
  z-index: 2;
}

#digital-altar.hidden {
  display: none;
}

#digital-altar img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: min(82vw, 760px);
  max-height: 84vh;
  object-fit: contain;
  opacity: 0.78;
  filter: drop-shadow(0 0 28px rgba(184, 190, 22, 0.35));
  transform: translate(-50%, -50%);
  animation: tarotFlicker 5.8s steps(1) infinite;
}

#digital-altar p {
  position: fixed;
  left: 50%;
  bottom: 36px;
  color: var(--chartreuse);
  letter-spacing: 2px;
  transform: translateX(-50%);
  animation: grantedGlitchOut 3.2s steps(1) forwards;
}

#altar-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  filter: blur(0.25px);
}

#digital-altar img,
#digital-altar p {
  z-index: 2;
}

#sigil-flash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 0, 0, 0.08) 0px,
      rgba(255, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.18) 3px,
      rgba(0, 0, 0, 0.18) 6px
    ),
    rgba(18, 0, 0, 0.72);
  z-index: 50;
  overflow: hidden;
  animation: deniedScreenGlitch 0.18s steps(2) infinite;
}

#sigil-flash::before,
#sigil-flash::after {
  content: "ACCESS: DENIED";
  position: absolute;
  color: rgba(255, 20, 0, 0.45);
  font-size: clamp(18px, 4vw, 54px);
  letter-spacing: 8px;
  mix-blend-mode: screen;
  animation: deniedTextGlitch 0.32s steps(2) infinite;
}

#sigil-flash::before {
  top: 18%;
  left: 8%;
}

#sigil-flash::after {
  right: 7%;
  bottom: 16%;
  transform: scaleX(-1);
  opacity: 0.35;
}

#sigil-flash.hidden {
  display: none;
}

#sigil-flash img {
  width: min(82vw, 820px);
  max-height: 82vh;
  object-fit: contain;
  opacity: 0.88;
  filter:
    drop-shadow(3px 0 0 rgba(0, 255, 255, 0.28))
    drop-shadow(-3px 0 0 rgba(255, 0, 0, 0.55))
    drop-shadow(0 0 38px rgba(255, 0, 0, 0.55));
  animation: deniedSigilGlitch 0.24s steps(2) infinite;
}


body.access-denied {
  background: #7a0000;
}

@keyframes tarotFlicker {
  0%, 100% {
    opacity: 0.76;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 24px rgba(184, 190, 22, 0.28));
  }

  12% {
    opacity: 0.84;
  }

  13% {
    opacity: 0.62;
    transform: translate(calc(-50% + 1px), -50%);
  }

  14% {
    opacity: 0.82;
    transform: translate(-50%, -50%);
  }

  41% {
    opacity: 0.7;
  }

  42% {
    opacity: 0.88;
    transform: translate(calc(-50% - 1px), calc(-50% + 1px));
    filter: drop-shadow(0 0 34px rgba(184, 190, 22, 0.42));
  }

  43% {
    opacity: 0.74;
    transform: translate(-50%, -50%);
  }

  76% {
    opacity: 0.8;
  }

  77% {
    opacity: 0.58;
    transform: translate(calc(-50% + 1px), calc(-50% - 1px));
  }

  78% {
    opacity: 0.79;
    transform: translate(-50%, -50%);
  }
}

@keyframes deniedScreenGlitch {
  0% {
    opacity: 0.72;
    transform: translate(0, 0);
  }

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

  100% {
    opacity: 0.84;
    transform: translate(2px, -1px);
  }
}

@keyframes deniedSigilGlitch {
  0% {
    transform: translate(0, 0) scale(1);
  }

  20% {
    transform: translate(8px, -2px) scale(1.01);
  }

  40% {
    transform: translate(-6px, 3px) scale(0.995);
  }

  60% {
    transform: translate(3px, 0) skewX(2deg);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes deniedTextGlitch {
  0% {
    opacity: 0.2;
    transform: translate(0, 0);
  }

  50% {
    opacity: 0.7;
    transform: translate(12px, -3px);
  }

  100% {
    opacity: 0.35;
    transform: translate(-8px, 2px);
  }
}

@keyframes grantedGlitchOut {
  0% {
    opacity: 1;
    transform: translateX(-50%);
    filter: blur(0);
  }

  35% {
    opacity: 1;
    transform: translateX(-50%);
  }

  42% {
    opacity: 0.75;
    transform: translateX(calc(-50% + 8px));
    filter: blur(0.5px);
  }

  46% {
    opacity: 1;
    transform: translateX(calc(-50% - 12px));
  }

  52% {
    opacity: 0.45;
    transform: translateX(calc(-50% + 18px)) translateY(8px);
    filter: blur(1px);
  }

  58% {
    opacity: 0.8;
    transform: translateX(calc(-50% - 4px)) translateY(18px);
  }

  72% {
    opacity: 0.32;
    transform: translateX(calc(-50% + 24px)) translateY(42px);
    filter: blur(2px);
  }

  100% {
    opacity: 0;
    transform: translateX(calc(-50% - 36px)) translateY(95px);
    filter: blur(4px);
  }
}

#binary-rain {
  z-index: 0;
}

#entry-screen,
#archive-screen {
  position: relative;
  z-index: 2;
}

#digital-altar {
  z-index: 20;
}

#digital-altar::before {
  z-index: 1;
}

#digital-altar img,
#digital-altar p {
  z-index: 2;
}

#altar-exit {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 23;
  background: transparent;
  border: 1px solid rgba(184, 190, 22, 0.28);
  color: rgba(184, 190, 22, 0.5);
  font-family: inherit;
  font-size: 22px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  opacity: 0.42;
}

#altar-exit:hover {
  opacity: 1;
  color: var(--chartreuse);
  border-color: var(--chartreuse);
  text-shadow: 0 0 12px rgba(184, 190, 22, 0.65);
}

#transmissions-panel {
  margin-top: 42px;
  text-align: center;
  animation: panelMaterialize 0.7s steps(2) both;
}

.panel-title {
  color: var(--chartreuse);
  letter-spacing: 3px;
  margin-bottom: 24px;
  text-shadow: 0 0 14px rgba(184, 190, 22, 0.45);
}

.transmission-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
}

.transmission-link {
  width: 108px;
  min-height: 136px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--chartreuse);
  text-decoration: none;
  letter-spacing: 1px;
  opacity: 0.78;
  filter: drop-shadow(0 0 14px rgba(184, 190, 22, 0.25));
  animation: iconHaunt 5.4s steps(1) infinite;
}

.transmission-link img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.transmission-link span {
  font-size: 12px;
}

.transmission-link:hover {
  opacity: 1;
  transform: translateY(-3px);
  filter:
    drop-shadow(2px 0 0 rgba(79, 169, 166, 0.45))
    drop-shadow(-2px 0 0 rgba(184, 190, 22, 0.55))
    drop-shadow(0 0 22px rgba(184, 190, 22, 0.55));
}

@keyframes panelMaterialize {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }

  45% {
    opacity: 0.35;
    transform: translateX(-8px);
  }

  55% {
    opacity: 0.75;
    transform: translateX(6px);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
    filter: blur(0);
  }
}

@keyframes iconHaunt {
  0%, 100% {
    opacity: 0.78;
    transform: translate(0, 0);
  }

  18% {
    opacity: 0.92;
  }

  19% {
    opacity: 0.58;
    transform: translate(1px, -1px);
  }

  20% {
    opacity: 0.84;
    transform: translate(0, 0);
  }

  61% {
    opacity: 0.66;
    transform: translate(-1px, 1px);
  }

  62% {
    opacity: 0.9;
    transform: translate(0, 0);
  }
}
#feed-intermission {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(184, 190, 22, 0.08) 0px,
      rgba(184, 190, 22, 0.08) 1px,
      #000 2px,
      #000 5px
    ),
    radial-gradient(circle at center, rgba(184, 190, 22, 0.14), #000 48%),
    #000;
  z-index: 80;
  overflow: hidden;
  animation: feedScreenGlitch 0.14s steps(2) infinite;
}

#feed-intermission.hidden {
  display: none;
}

#feed-intermission::before,
#feed-intermission::after {
  content: "FEED ME";
  position: absolute;
  color: rgba(184, 190, 22, 0.22);
  font-size: clamp(56px, 14vw, 220px);
  letter-spacing: 8px;
  filter: blur(2px);
  animation: feedGhost 0.28s steps(2) infinite;
}

#feed-intermission::before {
  transform: translate(-18vw, -16vh) rotate(-8deg);
}

#feed-intermission::after {
  transform: translate(16vw, 18vh) rotate(7deg) scaleX(-1);
}

.feed-text {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--chartreuse);
  text-shadow:
    2px 0 rgba(79, 169, 166, 0.55),
    -2px 0 rgba(184, 190, 22, 0.5),
    0 0 24px rgba(184, 190, 22, 0.55);
  animation: feedTextGlitch 0.16s steps(2) infinite;
}

#feed-line {
  font-size: clamp(34px, 8vw, 132px);
  letter-spacing: 6px;
  opacity: 0.92;
  white-space: nowrap;
}

@keyframes feedScreenGlitch {
  0% {
    transform: translate(0, 0);
    filter: contrast(1);
  }

  50% {
    transform: translate(2px, -1px);
    filter: contrast(1.25);
  }

  100% {
    transform: translate(-2px, 1px);
    filter: contrast(1.08);
  }
}
@keyframes feedGhost {
  0% {
    opacity: 0.12;
  }

  50% {
    opacity: 0.38;
  }

  100% {
    opacity: 0.18;
  }
}

@keyframes feedTextGlitch {
  0% {
    transform: translate(0, 0);
    filter: blur(0);
  }

  35% {
    transform: translate(8px, -2px);
    filter: blur(0.4px);
  }

  55% {
    transform: translate(-10px, 3px);
  }

  100% {
    transform: translate(0, 0);
    filter: blur(0);
  }
}

#granted-intermission {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(184, 190, 22, 0.08) 0px,
      rgba(184, 190, 22, 0.08) 1px,
      #000 2px,
      #000 5px
    ),
    radial-gradient(circle at center, rgba(184, 190, 22, 0.12), #000 50%),
    #000;
  overflow: hidden;
  animation: grantedScreenCorrupt 0.16s steps(2) infinite;
}

#granted-intermission.hidden {
  display: none;
}

#granted-intermission::before,
#granted-intermission::after {
  content: "ACCESS: GRANTED";
  position: absolute;
  color: rgba(184, 190, 22, 0.16);
  font-size: clamp(22px, 5vw, 72px);
  letter-spacing: 8px;
  filter: blur(1px);
  pointer-events: none;
  animation: grantedGhostText 0.28s steps(2) infinite;
}

#granted-intermission::before {
  top: 14%;
  left: 7%;
}

#granted-intermission::after {
  right: 8%;
  bottom: 12%;
  transform: scaleX(-1);
}

#granted-intermission img {
  width: min(92vw, 980px);
  max-height: 78vh;
  object-fit: contain;
  opacity: 0.82;
  filter:
    contrast(1.35)
    brightness(0.76)
    saturate(0.8)
    drop-shadow(0 0 34px rgba(184, 190, 22, 0.38));
  animation: grantedSignalCorrupt 0.72s steps(1) infinite;
}

#granted-line {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  color: var(--chartreuse);
  font-size: clamp(28px, 7vw, 112px);
  letter-spacing: 10px;
  text-shadow:
    2px 0 rgba(79, 169, 166, 0.5),
    -2px 0 rgba(184, 190, 22, 0.55),
    0 0 28px rgba(184, 190, 22, 0.5);
  animation: grantedLineGlitch 0.14s steps(2) infinite;
}

@keyframes grantedScreenCorrupt {
  0% {
    transform: translate(0, 0);
    filter: contrast(1);
  }

  50% {
    transform: translate(2px, -1px);
    filter: contrast(1.35);
  }

  100% {
    transform: translate(-2px, 1px);
    filter: contrast(1.12);
  }
}

@keyframes grantedGhostText {
  0% {
    opacity: 0.08;
  }

  50% {
    opacity: 0.34;
  }

  100% {
    opacity: 0.14;
  }
}

@keyframes grantedSignalCorrupt {
  0%, 100% {
    opacity: 0.82;
    clip-path: inset(0 0 0 0);
  }

  18% {
    opacity: 0.35;
    clip-path: inset(8% 0 72% 0);
  }

  19% {
    opacity: 0.9;
    clip-path: inset(0 0 0 0);
  }

  45% {
    opacity: 0.62;
    clip-path: inset(44% 0 36% 0);
    filter:
      contrast(1.6)
      brightness(0.62)
      saturate(0.55)
      drop-shadow(0 0 22px rgba(79, 169, 166, 0.2));
  }

  46% {
    opacity: 0.86;
    clip-path: inset(0 0 0 0);
  }

  74% {
    opacity: 0.22;
    clip-path: inset(0 0 84% 0);
  }

  75% {
    opacity: 0.84;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes grantedLineGlitch {
  0% {
    opacity: 0.75;
    filter: blur(0);
  }

  50% {
    opacity: 1;
    filter: blur(0.6px);
  }

  100% {
    opacity: 0.82;
    filter: blur(0);
  }
}

#artifacts-panel {
  margin-top: 38px;
  text-align: center;
  animation: panelMaterialize 0.7s steps(2) both;
}

.artifact-grid {
  width: min(920px, 92vw);
  max-height: 62vh;
  overflow-y: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 18px;
  padding: 8px;
}

.artifact-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(184, 190, 22, 0.18);
  padding: 6px;
  cursor: pointer;
  filter: drop-shadow(0 0 12px rgba(184, 190, 22, 0.14));
  opacity: 0.82;
  animation: iconHaunt 6s steps(1) infinite;
}

.artifact-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.artifact-card:hover {
  opacity: 1;
  transform: translateY(-3px);
  border-color: rgba(184, 190, 22, 0.65);
  filter:
    drop-shadow(2px 0 0 rgba(79, 169, 166, 0.35))
    drop-shadow(-2px 0 0 rgba(184, 190, 22, 0.45))
    drop-shadow(0 0 22px rgba(184, 190, 22, 0.42));
}

#artifact-viewer {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.93);
  overflow: hidden;
}

#artifact-viewer.hidden {
  display: none;
}

#artifact-preview {
  max-width: min(82vw, 820px);
  max-height: 78vh;
  object-fit: contain;
  filter:
    drop-shadow(2px 0 0 rgba(79, 169, 166, 0.22))
    drop-shadow(-2px 0 0 rgba(184, 190, 22, 0.25))
    drop-shadow(0 0 34px rgba(0, 0, 0, 0.8));
  animation: artifactReveal 0.55s steps(2) both;
}

#artifact-title {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: min(92vw, 900px);
  color: var(--chartreuse);
  text-align: center;
  letter-spacing: 2px;
  text-shadow:
    2px 0 rgba(79, 169, 166, 0.55),
    -2px 0 rgba(184, 190, 22, 0.5),
    0 0 24px rgba(184, 190, 22, 0.45);
  animation: artifactTitleGlitch 0.24s steps(2) infinite;
}

#artifact-exit {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 36;
  background: transparent;
  border: 1px solid rgba(184, 190, 22, 0.28);
  color: rgba(184, 190, 22, 0.5);
  font-family: inherit;
  font-size: 22px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  opacity: 0.48;
}

#artifact-exit:hover {
  opacity: 1;
  color: var(--chartreuse);
  border-color: var(--chartreuse);
}

@keyframes artifactReveal {
  0% {
    opacity: 0;
    transform: scale(0.92) translateX(-10px);
    filter: blur(5px);
  }

  55% {
    opacity: 0.72;
    transform: scale(1.015) translateX(8px);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter:
      drop-shadow(2px 0 0 rgba(79, 169, 166, 0.22))
      drop-shadow(-2px 0 0 rgba(184, 190, 22, 0.25))
      drop-shadow(0 0 34px rgba(0, 0, 0, 0.8));
  }
}

@keyframes artifactTitleGlitch {
  0%, 100% {
    opacity: 0.92;
    filter: blur(0);
    text-shadow:
      2px 0 rgba(79, 169, 166, 0.45),
      -2px 0 rgba(184, 190, 22, 0.5),
      0 0 20px rgba(184, 190, 22, 0.42);
  }

  35% {
    opacity: 0.68;
    filter: blur(0.5px);
    text-shadow:
      1px 0 rgba(79, 169, 166, 0.5),
      -1px 0 rgba(184, 190, 22, 0.55),
      0 0 26px rgba(184, 190, 22, 0.55);
  }

  36% {
    opacity: 0.95;
    filter: blur(0);
  }

  72% {
    opacity: 0.74;
    filter: blur(0.8px);
  }

  73% {
    opacity: 0.92;
    filter: blur(0);
  }
}

#manifestations-panel {
  margin-top: 38px;
  text-align: center;
  animation: panelMaterialize 0.7s steps(2) both;
}

#manifestation-list {
  width: min(880px, 92vw);
  max-height: 62vh;
  overflow-y: auto;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.manifestation-row {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(184, 190, 22, 0.18);
  color: var(--chartreuse);
  font-family: inherit;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  letter-spacing: 1px;
  opacity: 0.82;
}

.manifestation-row:hover {
  opacity: 1;
  border-color: rgba(184, 190, 22, 0.62);
  text-shadow:
    2px 0 rgba(79, 169, 166, 0.45),
    -2px 0 rgba(184, 190, 22, 0.5),
    0 0 18px rgba(184, 190, 22, 0.4);
}

#manifestation-dossier {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(280px, 560px);
  gap: 34px;
  place-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.94);
  padding: 28px;
}

#manifestation-dossier.hidden {
  display: none;
}

#manifestation-cover {
  width: min(78vw, 380px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter:
    drop-shadow(2px 0 0 rgba(79, 169, 166, 0.18))
    drop-shadow(-2px 0 0 rgba(184, 190, 22, 0.22))
    drop-shadow(0 0 28px rgba(184, 190, 22, 0.16));
  animation: artifactReveal 0.55s steps(2) both;
}

.dossier-terminal {
  color: var(--chartreuse);
  text-align: left;
  max-width: 560px;
}

#manifestation-title {
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-shadow:
    2px 0 rgba(79, 169, 166, 0.45),
    -2px 0 rgba(184, 190, 22, 0.45),
    0 0 20px rgba(184, 190, 22, 0.4);
  animation: artifactTitleGlitch 0.28s steps(2) infinite;
}

#manifestation-output {
  min-height: 220px;
  line-height: 1.7;
  white-space: pre-line;
}

#manifestation-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--chartreuse);
  border: 1px solid rgba(184, 190, 22, 0.45);
  padding: 8px 12px;
  text-decoration: none;
  opacity: 0.8;
}

#manifestation-link:hover {
  opacity: 1;
  text-shadow: 0 0 14px rgba(184, 190, 22, 0.65);
}

#manifestation-exit {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 36;
  background: transparent;
  border: 1px solid rgba(184, 190, 22, 0.28);
  color: rgba(184, 190, 22, 0.5);
  font-family: inherit;
  font-size: 22px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  opacity: 0.48;
}

#manifestation-exit:hover {
  opacity: 1;
  color: var(--chartreuse);
  border-color: var(--chartreuse);
}

@media (max-width: 760px) {
  #manifestation-dossier {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #manifestation-cover {
    width: min(68vw, 300px);
    margin: 0 auto;
  }

  .dossier-terminal {
    text-align: center;
  }

  #manifestation-output {
    min-height: 180px;
  }
}

#manifestation-list,
.artifact-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 190, 22, 0.35) rgba(0, 0, 0, 0.45);
}

#manifestation-list::-webkit-scrollbar,
.artifact-grid::-webkit-scrollbar {
  width: 8px;
}

#manifestation-list::-webkit-scrollbar-track,
.artifact-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.45);
}

#manifestation-list::-webkit-scrollbar-thumb,
.artifact-grid::-webkit-scrollbar-thumb {
  background: rgba(184, 190, 22, 0.32);
  border: 1px solid rgba(184, 190, 22, 0.18);
}

#manifestation-list::-webkit-scrollbar-thumb:hover,
.artifact-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 190, 22, 0.5);
}

#entry-flash {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(184, 190, 22, 0.08) 0px,
      rgba(184, 190, 22, 0.08) 1px,
      #000 2px,
      #000 5px
    ),
    #000;
  overflow: hidden;
  animation: entryFlashScreen 0.12s steps(2) infinite;
}

#entry-flash::before,
#entry-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#entry-flash::before {
  background:
    linear-gradient(
      rgba(79, 169, 166, 0.08),
      rgba(79, 169, 166, 0)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(184, 190, 22, 0.06) 0px,
      rgba(184, 190, 22, 0.06) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: coldScan 0.38s steps(2) infinite;
}

#entry-flash::after {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(184, 190, 22, 0.18) 48%,
      rgba(79, 169, 166, 0.14) 50%,
      transparent 54%
    );
  opacity: 0;
  animation: signalKnife 0.65s steps(1) infinite;
}

#entry-flash.hidden {
  display: none;
}

#entry-flash img {
  width: min(92vw, 980px);
  max-height: 82vh;
  object-fit: contain;
  opacity: 0.9;
  filter:
    contrast(1.18)
    brightness(0.82)
    saturate(0.85)
    drop-shadow(0 0 30px rgba(184, 190, 22, 0.34));
  animation: entrySignalDecay 0.82s steps(1) infinite;
}

@keyframes entryFlashScreen {
  0% {
    opacity: 0.92;
    transform: translate(0, 0);
  }

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

  100% {
    opacity: 0.96;
    transform: translate(-2px, 1px);
  }
}

@keyframes entryFlashImage {
  0% {
    opacity: 0.88;
    transform: scale(1);
  }

  35% {
    opacity: 0.62;
    transform: scale(1.012) translate(8px, -2px);
  }

  55% {
    opacity: 1;
    transform: scale(0.998) translate(-6px, 2px);
  }

  100% {
    opacity: 0.82;
    transform: scale(1);
  }
}

@keyframes coldScan {
  0% {
    opacity: 0.25;
    transform: translateY(-8px);
  }

  50% {
    opacity: 0.65;
    transform: translateY(6px);
  }

  100% {
    opacity: 0.38;
    transform: translateY(0);
  }
}

@keyframes signalKnife {
  0%, 72%, 100% {
    opacity: 0;
    transform: translateX(-120vw);
  }

  73% {
    opacity: 0.65;
    transform: translateX(-20vw);
  }

  74% {
    opacity: 0.15;
    transform: translateX(18vw);
  }

  75% {
    opacity: 0.55;
    transform: translateX(120vw);
  }
}

@keyframes entrySignalDecay {
  0%, 100% {
    opacity: 0.86;
    transform: scale(1);
    clip-path: inset(0 0 0 0);
    filter:
      contrast(1.18)
      brightness(0.82)
      saturate(0.85)
      drop-shadow(0 0 30px rgba(184, 190, 22, 0.34));
  }

  18% {
    opacity: 0.42;
    clip-path: inset(8% 0 74% 0);
  }

  19% {
    opacity: 0.92;
    clip-path: inset(0 0 0 0);
  }

  41% {
    opacity: 0.68;
    clip-path: inset(42% 0 39% 0);
    filter:
      contrast(1.55)
      brightness(0.62)
      saturate(0.55)
      drop-shadow(0 0 18px rgba(79, 169, 166, 0.22));
  }

  42% {
    opacity: 0.9;
    clip-path: inset(0 0 0 0);
  }

  67% {
    opacity: 0.18;
    clip-path: inset(0 0 82% 0);
  }

  68% {
    opacity: 0.88;
    clip-path: inset(0 0 0 0);
  }

  86% {
    opacity: 0.72;
    filter:
      contrast(1.4)
      brightness(0.7)
      saturate(0.45)
      drop-shadow(0 0 24px rgba(184, 190, 22, 0.2));
  }
}

#archive-sigil {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(72vw, 760px);
  opacity: 0.018;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  filter:
    blur(1.2px)
    contrast(1.4)
    drop-shadow(0 0 18px rgba(184, 190, 22, 0.12));
  animation: archiveSigilTexture 9s steps(1) infinite;
}

@keyframes archiveSigilTexture {
  0%, 100% {
    opacity: 0.014;
    transform: translate(-50%, -50%) scale(1);
    clip-path: inset(0 0 0 0);
  }

  16% {
    opacity: 0.028;
    clip-path: inset(18% 0 70% 0);
  }

  17% {
    opacity: 0.012;
    clip-path: inset(0 0 0 0);
  }

  33% {
    opacity: 0.022;
    transform: translate(calc(-50% + 2px), calc(-50% - 1px)) scale(1.01);
  }

  34% {
    opacity: 0.008;
  }

  55% {
    opacity: 0.026;
    clip-path: inset(42% 0 44% 0);
  }

  56% {
    opacity: 0.013;
    clip-path: inset(0 0 0 0);
  }

  78% {
    opacity: 0.032;
    filter:
      blur(1.8px)
      contrast(1.8)
      drop-shadow(0 0 24px rgba(184, 190, 22, 0.16));
  }

  79% {
    opacity: 0.01;
  }
}