@font-face {
  font-family: "NotoSC";
  src: local("Noto Sans CJK SC"), local("Noto Serif CJK SC"), local("Source Han Serif SC"), local("SimSun"), local("Songti SC");
}

:root {
  --blood: #8a0d10;
  --blood-hot: #c41418;
  --ink: #070202;
  --paper: #e8d2b8;
  --ash: #6a4a44;
  --cyan: #2ec8d4;
  --glow: 0 0 18px rgba(180, 12, 16, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  overflow-x: hidden;
}

body {
  cursor: crosshair;
  position: relative;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background-image: url("../assets/noise.png");
  opacity: 0.045;
  mix-blend-mode: overlay;
  animation: grain 0.35s steps(2) infinite;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 81;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.12) 2px 3px
  );
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3%, 2%); }
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  box-shadow: inset 0 0 180px 40px #000;
}

body.flash-red { background: #6a0000; }
body.invert { filter: invert(1) hue-rotate(180deg); }

.scripture {
  position: absolute;
  top: 10px;
  left: 12px;
  max-width: 46vw;
  font-size: 9px;
  line-height: 1.7;
  color: #3a1818;
  letter-spacing: 0.12em;
  filter: blur(0.35px);
  user-select: text;
  z-index: 5;
}

.scripture:hover {
  color: #7a3030;
  filter: none;
}

.seal {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 72px;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: pulse 3.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.04); }
}

.stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 32px 80px;
  position: relative;
  z-index: 2;
}

.brand {
  margin-top: 36px;
}

.brand h1 {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--blood-hot);
  text-shadow: var(--glow);
  line-height: 1.15;
}

.brand h1 span.true {
  display: none;
}

.brand h1:hover span.lie { display: none; }
.brand h1:hover span.true { display: inline; color: #ffecec; }

.brand .sub {
  margin-top: 8px;
  font-size: 22px;
  letter-spacing: 0.62em;
  color: #5c1515;
}

.slogans {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slogan {
  font-size: 28px;
  letter-spacing: 0.4em;
  color: #c9a090;
  animation: breathe 4.6s ease-in-out infinite;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  display: block;
  cursor: pointer;
  width: fit-content;
  padding: 0;
}

.slogan:nth-child(2) { animation-delay: 0.8s; font-size: 22px; }
.slogan:nth-child(3) { animation-delay: 1.6s; font-size: 18px; }

.slogan:hover {
  color: #fff4e8;
  text-shadow: 0 0 18px rgba(196, 20, 24, 0.9);
}

@keyframes breathe {
  0%, 100% { opacity: 0.38; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 16px rgba(196, 20, 24, 0.7); }
}

.slashes {
  font-family: ui-monospace, "Courier New", monospace;
  letter-spacing: 0.08em;
  color: var(--blood-hot);
}

.verse {
  margin-top: 34px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.9;
  color: #8a6a62;
}

.hidden-btn {
  margin-top: 40px;
  border: 1px solid #5a1010;
  background: transparent;
  color: #d4b4a4;
  padding: 12px 22px;
  letter-spacing: 0.28em;
  font: inherit;
  cursor: pointer;
  transition: 0.2s;
}

.hidden-btn:hover {
  background: #3a0505;
  box-shadow: var(--glow);
  color: #fff;
}

.altar-wrap {
  position: relative;
  min-height: auto;
}

.altar {
  width: 100%;
  height: 58vh;
  max-height: 620px;
  object-fit: cover;
  object-position: 42% 18%;
  filter: contrast(1.08) saturate(1.25);
  box-shadow: 0 0 40px rgba(80, 0, 0, 0.45);
}

@keyframes blink {
  0%, 92%, 100% { content: ""; }
}

.altar.on { display: block; }
.altar.off { display: none; }

.altar-wrap .altar-a { display: block; }
.altar-wrap.blink .altar-a { display: none; }
.altar-wrap.blink .altar-b { display: block; }
.altar-b { display: none; }

.caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #5a3030;
  text-align: center;
}

.anaglyph-row {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ana {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid #2a0a0a;
  image-rendering: pixelated;
}

.ana-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #4a2020;
  letter-spacing: 0.2em;
}

.footer-curse {
  padding: 28px 32px 48px;
  text-align: center;
  color: #4a1818;
  letter-spacing: 0.35em;
  font-size: 13px;
}

.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
}

.modal-mask.open { display: flex; }

.modal {
  width: min(440px, 92vw);
  background: #120404;
  border: 1px solid var(--blood);
  padding: 28px 26px 24px;
  box-shadow: var(--glow);
}

.modal h2 {
  font-size: 16px;
  letter-spacing: 0.4em;
  color: var(--blood-hot);
  margin-bottom: 14px;
}

.modal p {
  font-size: 13px;
  color: #9a7a72;
  margin-bottom: 16px;
  letter-spacing: 0.12em;
}

.modal input {
  width: 100%;
  background: #070101;
  border: 1px solid #4a1010;
  color: var(--paper);
  padding: 10px 12px;
  font: inherit;
  letter-spacing: 0.2em;
  outline: none;
}

.modal .row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.modal button {
  flex: 1;
  border: 1px solid #5a1010;
  background: #2a0505;
  color: var(--paper);
  padding: 8px;
  font: inherit;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.modal .err {
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--blood-hot);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.audio-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #6a3030;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #3a1010;
  padding: 8px 12px;
  cursor: pointer;
}

.glitch-on {
  animation: shake 0.45s linear;
}

@keyframes shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-8px, 2px) skewX(-3deg); }
  40% { transform: translate(7px, -3px); }
  60% { transform: translate(-4px, 4px) skewX(4deg); }
  80% { transform: translate(5px, 0); }
  100% { transform: translate(0, 0); }
}

.seekers {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #5a2020;
  font-family: ui-monospace, monospace;
}

.path-entry {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.28em;
}

.path-entry a {
  color: var(--blood-hot);
  text-decoration: none;
}

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; padding-top: 96px; }
  .altar { height: 52vh; }
  .scripture { max-width: 90vw; }
}
