/* UMI — dark VHS look */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #060606;
  --fg: #d8d8d0;
  --dim: #8a8a82;
  --line: rgba(216,216,208,.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: .04em;
  overflow-x: hidden;
}

/* ---- camadas VHS ---- */
#grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50; opacity: .12;
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 51;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  animation: flicker 4s infinite steps(60);
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 52;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.75) 100%);
}
@keyframes flicker {
  0%,100% { opacity: .9; } 50% { opacity: 1; }
  93% { opacity: .75; } 94% { opacity: 1; }
}

img { filter: saturate(.55) contrast(1.08) brightness(.92); }

/* ---- nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  background: linear-gradient(to bottom, rgba(6,6,6,.92), transparent);
}
nav a { color: var(--fg); text-decoration: none; margin: 0 10px; cursor: pointer; }
nav a:hover { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,.7); }
.nav-center { display: flex; }
#music-state { color: var(--dim); }

/* ---- hero ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(6,6,6,.35) 0%, rgba(6,6,6,.88) 75%),
    url('../assets/img/umi-desk-noir.jpg') center 30% / cover no-repeat;
}
.hero-inner { padding: 90px 16px 40px; }

h1.glitch {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(64px, 14vw, 150px);
  color: #fff; letter-spacing: .35em; margin-left: .35em;
  position: relative;
  text-shadow: 0 0 18px rgba(255,255,255,.35);
  animation: jitter 6s infinite steps(1);
}
h1.glitch::before, h1.glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0;
}
h1.glitch::before { color: #7fd8d8; transform: translate(-3px, 2px); animation: ghost 6s infinite steps(1); }
h1.glitch::after  { color: #d87f7f; transform: translate(3px, -2px); animation: ghost 6s infinite steps(1) .12s; }
@keyframes jitter { 0%,96%,100% { transform: none; } 97% { transform: translateX(2px) skewX(2deg); } 98% { transform: translateX(-2px); } }
@keyframes ghost  { 0%,94%,100% { opacity: 0; } 95%,97% { opacity: .55; } }

.kana { font-size: 30px; letter-spacing: 1.2em; margin: 26px 0 10px; margin-left: 1.2em; color: var(--fg); }
.tagline { font-size: 22px; letter-spacing: .5em; margin-left: .5em; color: var(--dim); margin-bottom: 40px; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 34px; }

.btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  color: var(--fg); text-decoration: none;
  background: rgba(20,20,20,.82);
  border: 1px solid var(--line);
  padding: 15px 22px; cursor: pointer;
}
.btn:hover { background: rgba(216,216,208,.92); color: #0a0a0a; }
.btn.big { font-size: 14px; padding: 22px 34px; }

.ca-bar {
  font-family: 'VT323', monospace; font-size: 19px;
  color: var(--fg); background: rgba(20,20,20,.82);
  border: 1px solid var(--line);
  padding: 12px 20px; cursor: pointer; letter-spacing: .06em;
  max-width: 92vw; overflow-wrap: anywhere;
}
.ca-bar:hover { border-color: var(--fg); }
.ca-bar.copied { color: #9fd89f; border-color: #9fd89f; }

/* ---- secções ---- */
main section { max-width: 1060px; margin: 0 auto; padding: 110px 20px 30px; }
h2 {
  font-family: 'Press Start 2P', monospace; font-size: 22px;
  letter-spacing: .3em; margin-bottom: 40px; color: #fff;
}
h2::before { content: '// '; color: var(--dim); }

/* tapes */
.tape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tape {
  border: 1px solid var(--line); background: #0d0d0d;
  padding: 18px; position: relative; min-height: 120px;
}
.tape::before {
  content: '▮▮▮▮▮▮▮▮▮▮'; display: block; color: #1c1c1c;
  font-size: 26px; letter-spacing: 2px; margin-bottom: 12px;
}
.tape .label { font-size: 22px; color: var(--fg); }
.tape .date { color: var(--dim); font-size: 18px; }

/* footage */
.footage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.frame { position: relative; border: 1px solid var(--line); overflow: hidden; }
.frame img { width: 100%; height: 240px; object-fit: cover; display: block; }
.frame .rec {
  position: absolute; top: 10px; left: 12px;
  font-size: 16px; color: #ff6b6b; text-shadow: 0 0 4px #000;
  animation: blink 1.4s infinite steps(1);
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.frame .cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px; font-size: 17px; color: #e8e8e0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  text-shadow: 0 0 4px #000;
}

/* sightings */
.sightings { display: flex; flex-direction: column; gap: 26px; }
.sighting { display: flex; gap: 20px; border: 1px solid var(--line); background: #0d0d0d; }
.sighting img { width: 220px; height: 150px; object-fit: cover; flex-shrink: 0; }
.sighting .info { padding: 16px 18px 16px 0; }
.sighting .place { font-size: 22px; color: #fff; }
.sighting .date { color: var(--dim); margin-bottom: 8px; }
.sighting .note { font-size: 19px; }

/* fees + chat */
.fees-text { max-width: 640px; font-size: 24px; margin-bottom: 28px; }
.chat-buttons { display: flex; gap: 18px; flex-wrap: wrap; }

/* gifs */
.gif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gif-grid a { display: block; border: 1px solid var(--line); }
.gif-grid img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gif-grid a:hover img { filter: saturate(.8) contrast(1.1) brightness(1.05); }

/* footer */
footer { text-align: center; padding: 90px 16px 60px; }
footer .disclaimer { color: var(--dim); font-size: 17px; margin-top: 22px; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
}
.modal[hidden] { display: none; }
.modal-box {
  background: #0d0d0d; border: 1px solid var(--line);
  max-width: 480px; width: 92vw; padding: 34px; position: relative;
}
.modal-box h3 { font-family: 'Press Start 2P', monospace; font-size: 15px; margin-bottom: 22px; }
.modal-box ol { margin: 0 0 26px 22px; font-size: 21px; line-height: 1.7; }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: var(--fg); font-size: 30px; cursor: pointer;
}

/* mobile */
@media (max-width: 720px) {
  nav { flex-direction: column; gap: 8px; font-size: 8px; }
  .nav-center { flex-wrap: wrap; justify-content: center; }
  .sighting { flex-direction: column; }
  .sighting img { width: 100%; height: 190px; }
  .sighting .info { padding: 0 16px 16px; }
  .kana { letter-spacing: .7em; margin-left: .7em; }
}
