:root {
  --bg: #000000;
  --fg: #00ff41;
  --fg-muted: #47b56b;
  --fg-dim: #1d7a38;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Courier New", Courier, monospace;
  overflow: hidden;
}

#matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 20px 16px 18px;
}

.content-card {
  width: min(760px, 100%);
  border: 1px solid rgba(71, 181, 107, 0.45);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(1px);
  padding: 12px;
}

.content-title {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.content-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.content-text + .content-text {
  margin-top: 8px;
}

.profile-footer {
  width: min(760px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(71, 181, 107, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.profile-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.seo-only {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: var(--bg);
  background: var(--bg);
  font-size: 1px;
  line-height: 1;
  opacity: 0.01;
  pointer-events: none;
}

.seo-only h2,
.seo-only p {
  margin: 0;
}

.profile-footer h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.profile-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--fg-muted);
}

.profile-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-footer a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.profile-footer a:hover {
  color: var(--fg);
}

.matrix-text {
  position: relative;
  text-shadow: 0 0 7px rgba(0, 255, 65, 0.35);
  animation: text-flicker 4.5s infinite steps(1, end);
}

.matrix-text::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fg), transparent);
  opacity: 0;
  transform: translateY(-6px);
  animation: scanline 4s infinite;
  pointer-events: none;
}

@keyframes text-flicker {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0.86;
  }
  11% {
    opacity: 1;
  }
  22% {
    opacity: 0.92;
  }
  23% {
    opacity: 1;
  }
  70% {
    opacity: 0.96;
  }
  71% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scanline {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  14% {
    opacity: 0;
  }
  28% {
    opacity: 0.85;
  }
  32% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media (max-width: 600px) {
  .content-title {
    font-size: 12px;
  }

  .content-text {
    font-size: 11px;
  }

  .profile-footer nav {
    gap: 12px;
  }
}
