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

html,
body {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #020202;
  color: #d7e7ff;
  font-family: "Courier New", monospace;
}

.signal {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.terminal {
  position: relative;
  z-index: 10;
  padding: 24px;
}

.meta {
  margin-bottom: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  opacity: 0.55;
}

.glitch {
  position: relative;
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: 0.12em;
  color: #ffffff;
  animation: mainGlitch 4s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.glitch::before {
  color: #4aa3ff;
  transform: translate(-2px, 0);
  animation: glitchBefore 2.7s infinite;
}

.glitch::after {
  color: #b9e8ff;
  transform: translate(2px, 0);
  animation: glitchAfter 3.1s infinite;
}

@keyframes mainGlitch {
  0%, 88%, 100% {
    transform: none;
    opacity: 1;
  }
  89% {
    transform: skewX(-2deg);
    opacity: 0.88;
  }
  90% {
    transform: translateX(2px);
    opacity: 1;
  }
  91% {
    transform: translateX(-2px);
  }
}

@keyframes glitchBefore {
  0%, 84%, 100% {
    transform: translate(-2px, 0);
    clip-path: inset(0 0 0 0);
  }
  85% {
    transform: translate(-7px, -2px);
    clip-path: inset(0 0 55% 0);
  }
  86% {
    transform: translate(4px, 2px);
    clip-path: inset(45% 0 10% 0);
  }
  87% {
    transform: translate(-2px, 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes glitchAfter {
  0%, 82%, 100% {
    transform: translate(2px, 0);
    clip-path: inset(0 0 0 0);
  }
  83% {
    transform: translate(6px, 1px);
    clip-path: inset(60% 0 0 0);
  }
  84% {
    transform: translate(-5px, -1px);
    clip-path: inset(10% 0 55% 0);
  }
  85% {
    transform: translate(2px, 0);
    clip-path: inset(0 0 0 0);
  }
}

.alive {
  margin-top: 24px;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.soon {
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.65;
}

.footer-code {
  margin-top: 42px;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  opacity: 0.35;
}

.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  background-image: radial-gradient(#ffffff 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  pointer-events: none;
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.018),
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.gk-hologram {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(48vw, 560px);
  max-height: 86vh;
  object-fit: contain;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
  filter:
    blur(0.25px)
    drop-shadow(0 0 18px rgba(80,160,255,0.18));
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.socials {
  margin-top: 42px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.45;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.socials a {
  color: #8a8a8a;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.socials a:hover {
  color: #ffffff;
  opacity: 1;
}
/* GK LEAKS / SIGNAL EXTENSION */
.gk-leaks {
  margin: 34px auto 0;
  width: min(760px, calc(100vw - 40px));
  padding: 18px 20px;
  border: 1px solid rgba(74, 163, 255, 0.16);
  background: rgba(4, 8, 14, 0.32);
  box-shadow: 0 0 28px rgba(74, 163, 255, 0.04);
}

.leak-title {
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: #b9e8ff;
  opacity: 0.7;
}

.leak-line {
  margin-top: 6px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.signal-button {
  display: inline-block;
  border: 1px solid rgba(185, 232, 255, 0.28);
  background: rgba(74, 163, 255, 0.09);
  color: #d7e7ff;
  font-family: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding: 10px 16px;
  cursor: pointer;
}

.signal-button:hover,
.signal-button:focus {
  border-color: rgba(185, 232, 255, 0.68);
  background: rgba(74, 163, 255, 0.18);
}

.signal-button.ghost {
  opacity: 0.82;
}

.heat-code {
  margin-top: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  opacity: 0.24;
}

.signal-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

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

.signal-dialog {
  position: relative;
  width: min(480px, 100%);
  padding: 28px;
  border: 1px solid rgba(74, 163, 255, 0.28);
  background: rgba(2, 5, 10, 0.96);
  box-shadow: 0 0 42px rgba(74, 163, 255, 0.12);
  text-align: center;
}

.signal-dialog h2 {
  font-size: 1rem;
  letter-spacing: 0.24em;
  margin-bottom: 14px;
}

.signal-dialog p {
  margin: 12px 0;
  opacity: 0.72;
  line-height: 1.5;
}

.signal-dialog input {
  width: 100%;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(185, 232, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e7ff;
  font-family: inherit;
  text-align: center;
}

.close-signal {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #d7e7ff;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.7;
}

.signal-page {
  overflow-y: auto;
  min-height: 100vh;
  height: auto;
  padding: 52px 0;
}

.channels-terminal {
  width: min(900px, calc(100vw - 32px));
}

.small-title {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.channels-box {
  margin: 28px auto 0;
  padding: 20px;
  border: 1px solid rgba(74, 163, 255, 0.16);
  background: rgba(4, 8, 14, 0.32);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.link-grid a,
.footer-code a {
  color: #d7e7ff;
  text-decoration: none;
}

.link-grid a {
  border: 1px solid rgba(185, 232, 255, 0.18);
  padding: 12px;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.03);
}

.link-grid a:hover,
.footer-code a:hover {
  color: #ffffff;
  border-color: rgba(185, 232, 255, 0.56);
}

@media (max-width: 720px) {
  html,
  body {
    overflow-y: auto;
  }

  .signal {
    min-height: 100vh;
    height: auto;
    padding: 42px 0;
  }

  .terminal {
    padding: 18px;
  }

  .socials {
    gap: 12px;
    font-size: 0.62rem;
  }
}


.tm {
  font-size: 0.28em;
  vertical-align: super;
  margin-left: 0.08em;
  letter-spacing: 0;
  opacity: 0.72;
}

.readers-code {
  margin-top: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  opacity: 0.42;
}

.copyright-code {
  margin-top: 12px;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  line-height: 1.7;
  opacity: 0.26;
}

/* V6: fixed channel grids */
.channels-box .link-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.channels-box .link-grid.two {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  max-width: 470px;
}

@media (max-width: 620px) {
  .channels-box .link-grid,
  .channels-box .link-grid.two {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}


/* V7: hard fix platform grids */
.channels-box .link-grid:not(.two) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  max-width: 720px !important;
  margin: 16px auto 0 !important;
}

.channels-box .link-grid.two {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  max-width: 700px !important;
  margin: 16px auto 0 !important;
}

.channels-box .link-grid a {
  width: auto !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 720px) {
  .channels-box .link-grid:not(.two),
  .channels-box .link-grid.two {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
}
