:root {
  --ink: #0b1112;
  --fog: #b9e9c6;
  --eyeball-red: #ff0000;
  --eyeball-red-rgb: 255, 0, 0;
  --brass: var(--eyeball-red);
  --teal: #0f8b8d;
  --ember: var(--eyeball-red);
  --smoke: #1f2a2b;
  --steam: rgba(170, 255, 200, 0.55);
  --page-pad: clamp(20px, 6vw, 80px);
  --panel: #c0e8cf;
  --panel-2: rgba(160, 220, 185, 0.78);
  --accent: #0f8b8d;
  --accent-2: #e76f51;
  --muted: rgba(11, 17, 18, 0.6);
  --line: rgba(11, 17, 18, 0.12);
  --glow: rgba(255, 0, 0, 0.28);
  --title: #0b1112;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}

a {
  color: #0f4f2d;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(180, 255, 220, 0.4), 0 0 2px rgba(10, 30, 18, 0.6);
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.2s ease, filter 0.2s ease, background-color 0.25s ease;
  font-family: "Unbounded", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-block;
}

a:hover {
  color: var(--eyeball-red);
  text-shadow: 0 0 14px rgba(var(--eyeball-red-rgb), 0.6);
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
  background-color: rgba(10, 40, 24, 0.2);
}

main a,
.module a,
.panel a,
.signal a,
.note a,
footer a {
  font-size: 0.95em;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #08140d;
  background-image:
    radial-gradient(circle at 20% 20%, #133222 0%, #0f281c 45%, #0a1e16 75%, #07150f 100%),
    radial-gradient(circle at 80% 10%, rgba(120, 255, 190, 0.12), transparent 60%);
  background-size: 140% 140%, 160% 160%;
  animation: backgroundShift 16s ease-in-out infinite alternate;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: repeating-linear-gradient(
    0deg,
    rgba(6, 36, 20, 0.22) 0 1px,
    rgba(6, 36, 20, 0) 1px 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
  animation: scanlines 6s linear infinite;
}

body::after {
  background: radial-gradient(circle at 50% 0%, rgba(120, 255, 180, 0.22), transparent 60%);
  opacity: 0.65;
}

@keyframes backgroundShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 50%; }
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(3px); }
}

.link-hover-preview {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2200;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(120, 255, 190, 0.5);
  background: rgba(7, 16, 11, 0.96);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(var(--eyeball-red-rgb), 0.22);
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.14s ease, transform 0.16s ease;
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.link-hover-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.link-hover-preview__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(120, 255, 190, 0.2);
  background: linear-gradient(
    135deg,
    rgba(32, 86, 54, 0.92),
    rgba(12, 30, 20, 0.92)
  );
  color: rgba(221, 255, 233, 0.88);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-hover-preview__label {
  color: rgba(var(--eyeball-red-rgb), 0.86);
  font-weight: 700;
}

.link-hover-preview__path {
  max-width: 78%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.link-hover-preview__frame {
  display: block;
  width: 100%;
  height: calc(100% - 32px);
  border: 0;
  background: #ffffff;
}

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .link-hover-preview {
    display: none !important;
  }
}
