/* Dead Frequency — site. Verde fósforo de monitor CRT, como a interface do jogo. */
:root {
  --bg: #050806;
  --bg2: #0b120d;
  --panel: rgba(14, 26, 17, 0.82);
  --line: #1f3b26;
  --text: #cfe9d4;
  --dim: #7f9c86;
  --ph: #4dff7a;        /* fósforo */
  --ph-dim: #2a9a4a;
  --amber: #ffb547;
  --red: #ff5a4d;
  --radius: 4px;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --crt: "VT323", "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--mono);
  background-image: radial-gradient(ellipse at top, #0f2215 0%, var(--bg) 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--ph); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); background: #0a170e; border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; color: var(--ph); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
h1, h2, h3 { font-family: var(--crt); font-weight: 400; letter-spacing: 1px; color: var(--ph); text-shadow: 0 0 8px rgba(77,255,122,.45); margin: 0 0 .4em; }
h2 { font-size: 44px; }
h2 span { color: var(--ph-dim); font-size: 26px; margin-right: 10px; }
h3 { font-size: 26px; }

.scanlines {
  pointer-events: none; position: fixed; inset: 0; z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.18) 2px 3px);
  mix-blend-mode: multiply;
}

/* ---------------- navegação */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; background: rgba(5,8,6,.88); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--crt); font-size: 26px; color: var(--ph); letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.brand small { color: var(--amber); font-size: 18px; }
.brand:hover { text-decoration: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.nav nav { display: flex; gap: 18px; }
.nav nav a { color: var(--text); font-size: 14px; }
.nav nav a.hl { color: var(--amber); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ph); font-size: 22px; padding: 0 10px; border-radius: var(--radius); cursor: pointer; }

/* ---------------- hero */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  background: linear-gradient(to bottom, rgba(5,8,6,.25), rgba(5,8,6,.55) 55%, var(--bg)), var(--hero) center/cover no-repeat;
  image-rendering: pixelated;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px 9vh; width: 100%; }
.tag { font-family: var(--crt); font-size: 22px; color: var(--amber); margin: 0; }
.hero h1 { font-size: clamp(56px, 11vw, 132px); line-height: .95; margin: 8px 0 16px; }
.lead { max-width: 680px; font-size: 17px; color: #e3f5e7; text-shadow: 0 1px 6px #000; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }

.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: .55; pointer-events: none;
}
.glitch::before { color: #ff3b6b; transform: translate(2px, 0); clip-path: inset(0 0 60% 0); animation: gl 3.2s infinite steps(1); }
.glitch::after { color: #3bd1ff; transform: translate(-2px, 0); clip-path: inset(55% 0 0 0); animation: gl 2.7s infinite steps(1) reverse; }
@keyframes gl { 0%, 92% { transform: translate(0); } 93% { transform: translate(4px, -1px); } 96% { transform: translate(-3px, 1px); } }

/* ---------------- botões */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--ph-dim);
  border-radius: var(--radius); color: var(--ph); background: rgba(10,30,16,.7); font: 600 14px var(--mono); cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; background: rgba(30,80,44,.6); box-shadow: 0 0 12px rgba(77,255,122,.25); }
.btn.primary { background: var(--ph); color: #03140a; border-color: var(--ph); }
.btn.primary:hover { background: #7dff9f; }
.btn.ghost { background: transparent; }
.small-btn { padding: 6px 12px; font-size: 13px; }
.size { opacity: .75; font-weight: 400; }

/* ---------------- seções */
.block { max-width: 1100px; margin: 0 auto; padding: 72px 24px 24px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.features article, .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.features p, .card p { margin: 0; color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.gallery figure, .shots figure { margin: 0; position: relative; cursor: zoom-in; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.gallery img, .shots img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .25s, filter .25s; filter: saturate(.9); }
.gallery figure:hover img, .shots figure:hover img { transform: scale(1.04); filter: saturate(1.1); }
.gallery figcaption, .shots figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; font-size: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #e8ffe9;
}

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 14px 0; }
.card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.card .btn { align-self: flex-start; }
.card.rec { border-color: var(--ph-dim); box-shadow: 0 0 0 1px rgba(77,255,122,.15) inset; }
.badge { position: absolute; top: -10px; right: 14px; background: var(--amber); color: #1a0f00; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; text-transform: uppercase; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- servidor */
.status-head { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 14px; }
.status-head > div:nth-child(2) { flex: 1; }
.led { width: 14px; height: 14px; border-radius: 50%; background: #555; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.led.on { background: var(--ph); box-shadow: 0 0 12px var(--ph); animation: blink 2.4s infinite; }
.led.off { background: var(--red); box-shadow: 0 0 10px var(--red); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat span { display: block; font-family: var(--crt); font-size: 40px; color: var(--ph); line-height: 1; text-shadow: 0 0 8px rgba(77,255,122,.4); }
.stat label { font-size: 12px; color: var(--dim); }
.rooms { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.room { border: 1px dashed var(--ph-dim); padding: 6px 10px; border-radius: var(--radius); font-size: 13px; }

/* ---------------- changelog */
.changelog { display: flex; flex-direction: column; gap: 14px; }
.release { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.release > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.release > summary::-webkit-details-marker { display: none; }
.release > summary::before { content: "▸"; color: var(--ph); transition: transform .15s; }
.release[open] > summary::before { transform: rotate(90deg); }
.release .ver { font-family: var(--crt); font-size: 30px; color: var(--ph); }
.release .title { font-family: var(--crt); font-size: 26px; color: var(--text); }
.release .date { color: var(--dim); font-size: 13px; margin-left: auto; }
.release .new { background: var(--amber); color: #1a0f00; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; }
.release .body { padding: 0 18px 18px 40px; }
.release ul { margin: 0 0 12px; padding-left: 18px; }
.release li { margin: 3px 0; }
.release li::marker { color: var(--ph-dim); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }

/* ---------------- roadmap */
.roadmap { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.roadmap li { position: relative; padding: 4px 0 18px 26px; display: flex; flex-direction: column; }
.roadmap li::before { content: ""; position: absolute; left: -8px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ph-dim); }
.roadmap li.done::before { background: var(--ph); border-color: var(--ph); box-shadow: 0 0 8px var(--ph); }
.roadmap b { font-family: var(--crt); font-size: 24px; font-weight: 400; color: var(--ph); }
.roadmap span { color: var(--text); }

/* ---------------- doação */
.donate-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: var(--panel); border: 1px solid var(--ph-dim); border-radius: var(--radius); padding: 22px; }
.copy { display: flex; gap: 8px; align-items: center; margin: 4px 0 14px; }
.copy code { flex: 1; padding: 8px 10px; font-size: 14px; min-width: 0; }
.copy code.wrap { font-size: 11px; word-break: break-all; }
.qr { margin: 0; text-align: center; }
.qr img { display: block; border-radius: var(--radius); image-rendering: pixelated; box-shadow: 0 0 24px rgba(77,255,122,.25); }

/* ---------------- rodapé */
.foot { max-width: 1100px; margin: 60px auto 0; padding: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* ---------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border: 1px solid var(--line); }
.lightbox figcaption { color: var(--text); margin-top: 8px; }
.lightbox button { position: absolute; background: none; border: none; color: var(--ph); font-size: 48px; cursor: pointer; padding: 10px 18px; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------------- celular */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--line); }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 24px; border-top: 1px solid var(--line); }
  .nav { padding: 10px 16px; }
  .brand { font-size: 20px; white-space: nowrap; }
  .brand small { font-size: 15px; }
  .block { padding: 56px 16px 16px; }
  .hero-inner { padding: 0 16px 8vh; }
  h2 { font-size: 36px; }
  .donate-grid { grid-template-columns: 1fr; }
  .qr img { margin: 0 auto; }
  .release .body { padding: 0 14px 14px 18px; }
  .release .date { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after, .dot, .led.on { animation: none; }
}

/* ---------------- verificação, privacidade e assinatura */
.verify { background: var(--panel); border: 1px dashed var(--ph-dim); border-radius: var(--radius); padding: 12px 16px; margin: 6px 0 12px; }
.verify p { margin: 4px 0 0; }
.verify code, .legal code { font-size: 12px; word-break: break-all; }
.legal ul { padding-left: 18px; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--ph-dim); }

/* etiqueta ALPHA (v0.9.6) */
.alpha { display: inline-block; background: #ffcc29; color: #1a1406; font: 700 11px/1 var(--mono); letter-spacing: 1px; padding: 3px 6px; border-radius: 3px; vertical-align: middle; text-shadow: none; }
.brand .alpha { font-size: 10px; }
