/* WIYC_anomalyseeker — drop #1
   CSS hidden clue (Caesar +7):
   lujh zvkliw: "Fvb'k psba ohcll jvuz".
   (Reverse, then -7 to read)
*/

:root {
  --bg: #0a0a0a;
  --fg: #e6e6e6;
  --accent: #9a7b4f;
  --paper: #a59e96;
  --ink: #1c1b1a;
  --ghost: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: repeating-linear-gradient(
      0deg,
      #0b0b0b 0,
      #0b0b0b 2px,
      #0a0a0a 2px,
      #0a0a0a 4px
    ),
    var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "Courier New", Courier, monospace;
}

.stage {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 3rem 1rem 2rem;
}

.title {
  letter-spacing: 0.6rem;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  text-transform: uppercase;
  margin-bottom: 0;
}

.subtitle {
  font-weight: 500;
  font-size: clamp(24px, 1.5vw, 18px);
  text-transform: lowercase;
  margin-top: 3px;
  letter-spacing: 0.05rem;
  opacity: 0.9;
}

.sheet {
  position: relative;
  max-width: min(920px, 92vw);
  width: 100%;
  background: var(--paper);
  border: 1px solid #2a2a2a;
  box-shadow: 0 0 0 2px #000 inset, 0 24px 60px rgba(0, 0, 0, 0.65);
  padding: clamp(10px, 2.2vw, 20px);
  transform: rotate(-0.3deg);
}

.classified {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.08) contrast(0.98) saturate(0.9);
  image-rendering: auto;
  transition: filter 200ms linear, transform 250ms ease;
}

/* Subtle “reveal” on hover (players que inspeccionan notarán el enlace) */
.sheet:hover .classified {
  filter: sepia(0.12) contrast(1.02) saturate(0.95);
  transform: translateY(-1px);
}

.footnote {
  margin-top: 8px;
  color: #2b2b2b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

/* Hidden/ghost link: becomes visible on .reveal or on very precise hover near bottom-right */
.ghost-link {
  position: absolute;
  right: 14px;
  bottom: 10px;
  padding: 4px 8px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #e8e0d6;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Make it *barely* discoverable with hover in a tiny area */
.sheet:hover .ghost-link {
  opacity: 0.06;
  pointer-events: auto;
}

/* Proper reveal state toggled by JS (Konami or triple-click) */
.reveal .ghost-link {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Screen noise overlay (retro vibe) */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.02),
      transparent 60%
    ),
    linear-gradient(
      transparent 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 4px
    );
  mix-blend-mode: overlay;
  animation: flicker 6s steps(10) infinite, jitter 1.6s linear infinite;
}

/* Footer polish */
.meta {
  margin-top: 1.75rem;
  opacity: 0.95;
  font-size: 12px;
  text-align: center;
  position: relative;
}

.meta::before {
  content: "";
  display: block;
  width: 340px;
  height: 1px;
  margin: 14px auto 10px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.social-link {
  color: #d6b98a;
  text-decoration: none;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant: small-caps;
  font-weight: 500;

  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);

  opacity: 0.88;
  transition: opacity 160ms ease-in-out, transform 120ms ease,
    box-shadow 160ms ease-in-out, background 160ms ease-in-out;
}

.social-link .icon {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6));
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 8px rgba(214, 185, 138, 0.25);
}

@media (max-width: 520px) {
  .meta::before {
    width: 240px;
    margin: 12px auto 8px;
  }
  .footer-links {
    gap: 12px;
    margin-top: 8px;
  }
  .social-link {
    padding: 5px 10px;
  }
  .social-link .icon {
    width: 15px;
    height: 15px;
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes jitter {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0.3px, -0.3px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.meta {
  margin-top: 1rem;
  opacity: 0.55;
  font-size: 12px;
  text-align: center;
  user-select: none;
}

/* Small screens */
@media (max-width: 520px) {
  .title {
    letter-spacing: 0.35rem;
  }
  .sheet {
    padding: 10px;
  }
}
