@font-face {
  font-family: 'VoidThin';
  src: url('https://raw.githubusercontent.com/rhyshaldane/TTG-Website/main/void%20thin.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'VoidRegular';
  src: url('https://raw.githubusercontent.com/rhyshaldane/TTG-Website/main/void%20regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --tv-left: 80%;
  --tv-bottom: 0.8vh;
  --tv-width: 17.5vh;

  --tv-screen-top: 10%;
  --tv-screen-left: 7.5%;
  --tv-screen-width: 70%;
  --tv-screen-height: 65%;

  --ritual-left: 50%;
  --ritual-top: 65%;
  --ritual-size: clamp(145px, 50vmin, 360px);

  --font-main: 'VoidRegular', 'Courier New', monospace;
  --font-thin: 'VoidThin', sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  overflow: hidden;
  font-family: var(--font-main);
  user-select: none;
  -webkit-user-select: none;
}

body {
  cursor: auto;
}

body.has-fine-pointer.is-stage-live:not(.is-overlay-open) {
  cursor: none;
}

body.has-fine-pointer.is-stage-live:not(.is-overlay-open) .flashlight {
  opacity: 1;
}

body.has-fine-pointer.is-stage-live.is-overlay-open {
  cursor: auto;
}

body.has-fine-pointer.is-stage-live.is-overlay-open .flashlight {
  opacity: 0;
}

.scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  z-index: 1;
}

.background-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.1s;
}

.page-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.95) 90%);
  z-index: 2;
  pointer-events: none;
}

.flashlight {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s;
  opacity: 0;
}

.band-name {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  font-family: 'VoidRegular', sans-serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.3));
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(255, 255, 255, 0.2);
  z-index: 4;
  pointer-events: none;
}

.band-name span {
  transition: opacity 0.1s;
}

.tv-group {
  position: absolute;
  bottom: var(--tv-bottom);
  left: var(--tv-left);
  width: var(--tv-width);
  height: calc(var(--tv-width) * 0.8);
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0.78;
  filter: brightness(0.9) contrast(0.95);
  pointer-events: auto;
}

.archive-cue {
  position: absolute;
  right: 108%;
  top: 18%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
  z-index: 5;
  white-space: nowrap;
}

.archive-cue::before {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.14);
}

.archive-cue span {
  font-family: 'IM Fell DW Pica', serif;
  font-size: clamp(12px, 1.45vmin, 15px);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.65);
}

.archive-cue.visible {
  opacity: 1;
  transform: translateY(0);
}

.tv-group.is-archive-signalling .tv-screen-mask {
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.12),
    0 0 36px rgba(255, 255, 255, 0.08);
}

.tv-group.is-archive-signalling .tv-video.active {
  opacity: 0.58;
}

.tv-group.is-archive-signalling .tv-texture {
  opacity: 0.82;
}

.tv-trigger {
  position: absolute;
  left: 50%;
  top: 48%;
  width: max(104px, calc(var(--tv-width) * 1.95));
  height: max(92px, calc(var(--tv-width) * 1.55));
  transform: translate(-50%, -50%);
  z-index: 4;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tv-trigger:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

body.has-fine-pointer.is-stage-live:not(.is-overlay-open) .tv-trigger {
  cursor: none;
}

body.is-stage-live.is-overlay-open .tv-trigger {
  cursor: auto;
}

body.is-stage-live.has-fine-pointer .tv-trigger {
  cursor: none;
}

body.is-stage-live.is-overlay-open .tv-trigger {
  cursor: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#tv-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tv-trigger:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

body.has-fine-pointer.is-stage-live:not(.is-overlay-open) .tv-trigger {
  cursor: none;
}

.tv-screen-mask {
  position: absolute;
  top: var(--tv-screen-top);
  left: var(--tv-screen-left);
  width: var(--tv-screen-width);
  height: var(--tv-screen-height);
  z-index: 1;
  clip-path: polygon(5% 5%, 95% 10%, 90% 90%, 8% 85%);
  background: #000;
  overflow: hidden;
}

.tv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tv-video.active {
  opacity: 0.38;
}

#vid-static-agitated.active {
  opacity: 0.72;
}

.tv-texture {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 28%, rgba(0, 0, 0, 0.1) 64%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08));
  mix-blend-mode: overlay;
  opacity: 0.65;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.45);
}

.ritual-group {
  position: absolute;
  top: var(--ritual-top);
  left: var(--ritual-left);
  width: var(--ritual-size);
  height: var(--ritual-size);
  transform: translate(-50%, -50%);
  z-index: 10;
}

.ritual-trigger {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: default;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ritual-trigger:not([disabled]) {
  cursor: pointer;
}

body.has-fine-pointer.is-stage-live:not(.is-overlay-open) .ritual-trigger,
body.has-fine-pointer.is-stage-live:not(.is-overlay-open) .ritual-trigger:not([disabled]) {
  cursor: none;
}

.ritual-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  filter: brightness(100%) contrast(140%) drop-shadow(0 0 80px rgba(255, 255, 255, 0.2));
  animation:
    subtle-glow 8s ease-in-out infinite alternate,
    gentle-distortion 12s ease-in-out infinite,
    ritual-faint-flicker 15s linear infinite alternate,
    ritual-faint-pulse 6s ease-in-out infinite alternate;
}

.circle-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(100%) contrast(1.2);
  z-index: 0;
  pointer-events: none;
}

.ritual-text {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68%;
  max-width: 68%;
  transform: translate(-50%, -50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: clamp(12px, 2.2vmin, 16px);
  line-height: 1.22;
  letter-spacing: 0.12em;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
}

#ember-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.ember {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 180, 50, 0.8);
}

.reveal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-color: #000;
  background-image: url('assets/overlays/vhs_static(1).gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: contrast(120%) brightness(85%);
}

.reveal-mask.revealed {
  animation: ttg_veil_burn 2.4s steps(10, end) forwards;
}

#scene.is-aftershock {
  animation: ttg_aftershock 1.15s linear both;
  will-change: transform, filter, opacity;
}

.gate {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.gate.active {
  opacity: 1;
  pointer-events: auto;
}

.gate__inner {
  width: min(560px, 92vw);
  padding: 18px 14px;
  text-align: center;
  transition: opacity 220ms ease;
}

.gate__line {
  font-family: 'IM Fell DW Pica', serif;
  font-size: clamp(18px, 3.3vmin, 26px);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  margin: 10px 0;
  opacity: 1;
  transition: opacity 350ms ease;
}

.gate__line--hidden {
  opacity: 0;
  pointer-events: none;
}

.gate__begin {
  margin-top: 14px;
  font-family: 'IM Fell DW Pica', serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.portrait-block {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: black;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portrait-block p {
  position: relative;
  z-index: 2;
  color: white;
  letter-spacing: 4px;
}

.fullscreen-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.static-overlay {
  position: fixed;
  inset: 0;
  background-image: url('assets/overlays/vhs_static(1).gif');
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.2s;
}

.static-overlay.visible {
  opacity: 0.75;
  animation: static-flicker 0.52s steps(2) both;
}

.modal-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(92vw, 980px);
  height: min(88vh, 720px);
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  color: #ccc;
  cursor: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s;
}

.modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modal-content h3 {
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
  font-family: 'IM Fell DW Pica', serif;
  font-weight: 400;
}

.modal-overlay--archive {
  width: min(94vw, 980px);
  height: min(90vh, 760px);
  padding: 1.4rem 1.4rem 1.2rem;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 38%),
    rgba(28, 28, 28, 0.96);
}

.archive-modal-content {
  gap: 1rem;
  overflow: hidden;
}

.archive-heading {
  text-align: center;
  padding-top: 0.2rem;
}

.archive-kicker {
  font-family: 'IM Fell DW Pica', serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.45rem;
}

.archive-heading h3 {
  margin: 0;
}

.archive-view {
  display: none;
  flex: 1;
  overflow: auto;
  padding-right: 0.25rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.archive-view.is-active {
  display: block;
}

.archive-view--root {
  overflow: hidden;
}

.archive-root-grid {
  min-height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-content: center;
}

.archive-card {
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #000;
  color: rgba(255, 255, 255, 0.9);
  padding: 1.15rem 1.2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.archive-card:hover,
.archive-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.archive-card-title {
  display: block;
  font-family: 'IM Fell DW Pica', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: 0.14em;
}

.archive-card-meta {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.58);
}

.archive-back {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'IM Fell DW Pica', serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 0 0 0.75rem;
}

.archive-section-title {
  font-family: 'IM Fell DW Pica', serif;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.archive-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.archive-links-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-link {
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #000;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.archive-link:hover,
.archive-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.archive-link img {
  width: clamp(58px, 7vw, 92px);
  height: auto;
  object-fit: contain;
  display: block;
}

.archive-link span {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-align: center;
}

.archive-link--wide {
  min-height: unset;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.archive-link--wide img {
  width: 54px;
}

.archive-link--wide span {
  text-align: left;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.archive-press {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.archive-press-meta {
  font-family: 'IM Fell DW Pica', serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
}

.archive-bio {
  margin: 0;
  font-family: 'IM Fell DW Pica', serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #bababa;
  text-align: left;
}

.archive-email-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #000;
}

.archive-email-row img {
  width: clamp(42px, 5vw, 54px);
  height: auto;
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.archive-email-address {
  font-family: 'IM Fell DW Pica', serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

@media (max-width: 700px), (max-height: 560px) {
  .modal-overlay--archive {
    padding: 1rem 1rem 0.95rem;
  }

  .archive-root-grid {
    gap: 0.75rem;
  }

  .archive-card,
  .archive-link {
    min-height: 118px;
    padding: 0.9rem;
  }

  .archive-link img {
    width: clamp(46px, 8vw, 72px);
  }

  .archive-cue {
    right: 102%;
    top: 15%;
  }

  .archive-cue::before {
    width: 20px;
  }

  .archive-cue span {
    font-size: 11px;
    letter-spacing: 0.14em;
  }
}

#mixer-controls {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0.5rem 0.5rem 0;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.mixer-row {
  flex: 0 0 60px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.mixer-row label {
  min-width: 0;
  width: 100%;
  text-align: center;
  font-family: 'IM Fell DW Pica', serif;
  font-size: 0.78rem;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

.mixer-row input[type='range'] {
  -webkit-appearance: none;
  appearance: slider-vertical;
  writing-mode: bt-lr;
  width: 6px;
  height: min(52vh, 280px);
  background: transparent;
}

.mixer-row input[type='range']::-webkit-slider-runnable-track {
  width: 6px;
  height: 100%;
  background: repeating-linear-gradient(
    to top,
    rgba(255, 255, 255, 0.16) 0px,
    rgba(255, 255, 255, 0.16) 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.mixer-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: #d4d4d4;
  cursor: pointer;
  margin-top: -2px;
}

.mixer-row input[type='range']::-moz-range-track {
  width: 6px;
  height: 100%;
  background: repeating-linear-gradient(
    to top,
    rgba(255, 255, 255, 0.16) 0px,
    rgba(255, 255, 255, 0.16) 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.mixer-row input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: #d4d4d4;
  border: none;
  cursor: pointer;
}

@supports (-moz-appearance:none) {
  .mixer-row input[type='range'] {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transform-origin: center;
  }
}

@media (max-width: 420px), (max-height: 520px) {
  :root {
    --ritual-top: 60%;
    --tv-left: 83%;
    --tv-bottom: 1.2vh;
    --tv-width: 18vmin;
  }

  .band-name {
    top: 6%;
    letter-spacing: 0.35rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .scene {
    touch-action: none;
  }

  body:not(.is-touch-light-active) .flashlight {
    opacity: 0 !important;
  }

  body.is-touch-light-active .flashlight {
    opacity: 1 !important;
  }

  .tv-trigger,
  .ritual-trigger {
    cursor: auto;
  }

  .modal-overlay {
    touch-action: pan-y;
  }

  #mixer-controls {
    touch-action: pan-x;
  }
}

@keyframes subtle-glow {
  0% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
  }
}

@keyframes gentle-distortion {
  0% {
    filter: contrast(100%) brightness(100%);
  }
  50% {
    filter: contrast(120%) brightness(110%);
  }
  100% {
    filter: contrast(100%) brightness(100%);
  }
}

@keyframes ritual-faint-flicker {
  0% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.55;
  }
}

@keyframes ritual-faint-pulse {
  0% {
    filter: brightness(120%) contrast(140%) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  }
  50% {
    filter: brightness(130%) contrast(150%) drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
  }
  100% {
    filter: brightness(120%) contrast(140%) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  }
}

@keyframes ttg_veil_burn {
  0% {
    opacity: 1;
    filter: contrast(130%) brightness(80%);
  }
  8% {
    opacity: 1;
    filter: contrast(170%) brightness(70%);
  }
  18% {
    opacity: 0.92;
  }
  30% {
    opacity: 0.75;
    filter: contrast(190%) brightness(65%);
  }
  42% {
    opacity: 0.58;
  }
  55% {
    opacity: 0.42;
    filter: contrast(160%) brightness(75%);
  }
  68% {
    opacity: 0.28;
  }
  78% {
    opacity: 0.18;
    filter: contrast(140%) brightness(90%);
  }
  88% {
    opacity: 0.08;
  }
  100% {
    opacity: 0;
    filter: none;
  }
}

@keyframes ttg_aftershock {
  0% {
    transform: translate(0, 0);
    filter: none;
    opacity: 1;
  }
  10% {
    transform: translate(1px, 0);
    filter: contrast(112%) brightness(106%);
    opacity: 0.97;
  }
  20% {
    transform: translate(-1px, 1px);
    opacity: 1;
  }
  35% {
    transform: translate(1px, -1px);
    filter: contrast(116%);
    opacity: 0.97;
  }
  55% {
    transform: translate(0, 1px);
    opacity: 1;
  }
  75% {
    transform: translate(0, 0);
    filter: none;
    opacity: 0.98;
  }
  100% {
    transform: translate(0, 0);
    filter: none;
    opacity: 1;
  }
}

@keyframes static-flicker {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.85;
  }
  55% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.75;
  }
}