/* LedBox — site público. Visual do jogo: azul petróleo escuro com linhas de varredura, painéis com borda ciano
   (como as cartas da loja), títulos em letreiro de LED (led.js) e texto na Raleway (a família da fonte do jogo). */
:root {
  --bg: #06141c;
  --bg-deep: #030a0f;
  --panel: rgba(9, 32, 43, .78);
  --panel-solid: #0a2330;
  --line: rgba(121, 254, 255, .28);
  --line-soft: rgba(121, 254, 255, .14);
  --text: #d6eef2;
  --muted: #86a6ae;
  --cyan: #79feff;
  --green: #6dff8b;
  --yellow: #ffe45c;
  --red: #ff5468;
  --pink: #ff6bd6;
  --purple: #b98bff;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(121, 254, 255, .10), transparent 65%),
    radial-gradient(900px 600px at 50% 120%, rgba(121, 254, 255, .06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%) fixed;
  font: 17px/1.65 "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* Linhas de varredura do jogo, por cima de tudo, bem fracas */
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

a { color: var(--cyan); }
a:hover { color: #fff; }
b { font-weight: 700; }

.c-cyan { color: var(--cyan); }
.c-green { color: var(--green); }
.c-yellow { color: var(--yellow); }
.c-red { color: var(--red); }
.c-pink { color: var(--pink); }
.c-purple { color: var(--purple); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.wrap.wide { max-width: 1080px; }

/* Título em fonte de pontos (páginas internas) */
.led {
  font-family: "Raleway Dots", system-ui, sans-serif;
  font-weight: 400;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(121, 254, 255, .8), 0 0 22px rgba(121, 254, 255, .45);
  letter-spacing: .06em;
  line-height: 1.1;
  margin: 0;
}
.led.big { font-size: clamp(56px, 16vw, 112px); }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
header.top .brand { text-decoration: none; font-size: 34px; }
header.top nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--cyan); }

h1 { font-size: 28px; margin: 0 0 6px; color: #fff; }
h2 { font-size: 21px; margin: 32px 0 8px; color: #fff; }
h3 { font-size: 18px; margin: 22px 0 6px; color: #fff; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }

/* Painel com borda ciano, como as cartas e a prévia da loja */
.panel {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0;
  box-shadow: inset 0 0 30px rgba(121, 254, 255, .05), 0 0 24px rgba(121, 254, 255, .06);
}

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.lang-switch a { padding: 6px 14px; font-size: 14px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--cyan); }

hr.sep { border: 0; border-top: 1px solid var(--line-soft); margin: 48px 0; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 28px; }
.card {
  display: block; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(121, 254, 255, .2); color: var(--text); }
.card strong { display: block; color: #fff; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; }

/* Formulário (suporte) */
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; color: #fff; }
label .hint { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #051118;
  border: 1.5px solid var(--line-soft); border-radius: 10px; padding: 11px 12px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(121, 254, 255, .15); }
button {
  font: inherit; font-weight: 700; color: #031014; background: var(--cyan); border: 0; border-radius: 10px;
  padding: 12px 18px; cursor: pointer; box-shadow: 0 0 18px rgba(121, 254, 255, .35);
}
button:hover { background: #fff; }
button:disabled { opacity: .6; cursor: default; }

.notice { border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.notice.ok { background: rgba(109, 255, 139, .1); border: 1px solid rgba(109, 255, 139, .4); }
.notice.err { background: rgba(255, 84, 104, .1); border: 1px solid rgba(255, 84, 104, .45); }
.hidden { display: none; }

footer { margin-top: 56px; color: var(--muted); font-size: 13px; }

/* ---------- Página inicial ---------- */

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(4, 14, 20, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.topbar nav { display: flex; justify-content: flex-end; gap: 22px; padding-top: 16px; padding-bottom: 16px; font-size: 15px; font-weight: 600; }
.topbar nav a { color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.topbar nav a:hover { color: var(--cyan); }

.led-sign svg { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.led-sign .off circle { fill: var(--led); opacity: .13; }
.led-sign .px { opacity: 0; transition: opacity .35s ease; }
.led-sign.lit .px { opacity: 1; }
.led-sign .glow { fill: var(--led); }
.led-sign .core { fill: #fff; opacity: .8; }
.led-sign .boxfill { fill: #d8ffff; }
.led-sign .boxglow { fill: none; stroke: var(--led); stroke-linejoin: round; }
.heading { margin: 0 0 28px; }

.hero { text-align: center; padding-top: 24px; padding-bottom: 24px; }
.hero .title { margin-bottom: 6px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.lead { max-width: 640px; margin: 0 auto 6px; font-size: 20px; line-height: 1.55; color: #fff; }
.pt { max-width: 640px; margin: 0 auto 22px; font-size: 14px; color: var(--muted); }

/* Selo oficial do Google Play: a imagem do Google sem alteração (a margem transparente faz parte dela) */
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 78px; width: auto; }
.play-badge:hover img { filter: drop-shadow(0 0 14px rgba(121, 254, 255, .35)); }

.chips { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0; margin: 14px 0 0; }
.chips li {
  font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 5px 14px; background: rgba(9, 32, 43, .5);
}

/* Carrossel: moldura da loja, setas nas laterais, bolinhas de LED */
#screens { padding-top: 8px; padding-bottom: 56px; }
.carousel { position: relative; outline: none; padding: 0 56px; }
.carousel .frame {
  overflow: hidden; border-radius: 20px; border: 2px solid var(--line);
  background: var(--panel-solid);
  box-shadow: 0 0 0 6px rgba(121, 254, 255, .04), 0 0 40px rgba(121, 254, 255, .12), 0 24px 60px rgba(0, 0, 0, .5);
}
.track { display: flex; transition: transform .45s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
.slide { flex: 0 0 100%; margin: 0; position: relative; }
.slide img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 14px; text-align: center;
  font-weight: 700; letter-spacing: .05em; color: #fff;
  background: linear-gradient(0deg, rgba(3, 10, 15, .85), transparent);
}
.arrow {
  position: absolute; top: 50%; transform: translateY(-62%);
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  font: 700 30px/40px "Raleway", sans-serif; color: var(--cyan);
  background: var(--panel-solid); border: 1.5px solid var(--line);
  box-shadow: 0 0 16px rgba(121, 254, 255, .18);
}
.arrow:hover { background: #0e3142; color: #fff; border-color: var(--cyan); }
.arrow.prev { left: 0; }
.arrow.next { right: 0; }
.leds { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.leds .led {
  width: 13px; height: 13px; padding: 0; border-radius: 50%; border: 0;
  background: rgba(121, 254, 255, .16); box-shadow: none; cursor: pointer;
}
.leds .led.on { background: #e9ffff; box-shadow: 0 0 6px var(--cyan), 0 0 16px var(--cyan); }

/* Como jogar */
#game { padding-top: 24px; padding-bottom: 48px; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { margin: 0; }
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor, 0 0 16px currentColor; }

/* Chefe */
#boss { padding-top: 24px; padding-bottom: 48px; }
.boss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center; padding: 28px; border-color: rgba(255, 84, 104, .4); box-shadow: inset 0 0 40px rgba(255, 84, 104, .06), 0 0 30px rgba(255, 84, 104, .08); }
.boss-text { text-align: left; min-width: 0; }
.boss > * { min-width: 0; }
html, body { overflow-x: clip; }
.boss-text .led-sign svg { margin: 0; }
.boss-sub { margin: 4px 0 14px; letter-spacing: .32em; text-transform: uppercase; color: var(--red); font-size: 13px; font-weight: 700; }
.boss .shot { border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(255, 84, 104, .35); }
.boss .shot img { display: block; width: 100%; height: auto; }

.cta { text-align: center; padding-top: 16px; padding-bottom: 64px; }
.cta .heading { margin-bottom: 14px; }

.site-footer { border-top: 1px solid var(--line-soft); padding-top: 26px; padding-bottom: 40px; color: var(--muted); font-size: 14px; text-align: center; }
.site-footer nav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--cyan); }
.site-footer p { margin: 4px 0; }
.site-footer .legal { font-size: 12px; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boss { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar nav { justify-content: center; gap: 16px; font-size: 14px; }
  .features { grid-template-columns: 1fr; }
  .carousel { padding: 0; }
  .arrow { width: 36px; height: 36px; font-size: 24px; line-height: 32px; top: auto; bottom: -6px; transform: none; }
  .arrow.prev { left: 4px; }
  .arrow.next { right: 4px; }
  .slide figcaption { font-size: 13px; padding: 18px 10px 8px; }
  .lead { font-size: 17px; }
  .play-badge img { height: 66px; }
  .boss { padding: 18px; }
}
@media (max-width: 520px) {
  header.top { flex-direction: column; align-items: flex-start; }
  .panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Trailer ---------- */
#trailer { padding-top: 8px; padding-bottom: 48px; }
.video-frame {
  border-radius: 20px; overflow: hidden; border: 2px solid var(--line); background: #000;
  box-shadow: 0 0 0 6px rgba(121, 254, 255, .04), 0 0 40px rgba(121, 254, 255, .12), 0 24px 60px rgba(0, 0, 0, .5);
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* ---------- Chefes ---------- */
#bosses { padding-top: 24px; padding-bottom: 48px; }
.section-lead { max-width: 640px; margin: -12px auto 24px; text-align: center; color: var(--muted); }
.locked-bosses { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.panel.locked { margin: 0; text-align: center; border-style: dashed; border-color: rgba(134, 166, 174, .35); box-shadow: none; background: rgba(9, 32, 43, .45); }
.panel.locked .eyebrow { color: var(--muted); }
.panel.locked .led-sign { max-width: 140px; margin: 6px auto 10px; }
.panel.locked p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Capturas: clicar abre grande ---------- */
.slide img { cursor: zoom-in; }
body.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 56px 72px 24px;
  background: rgba(2, 8, 12, .94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lb-frame {
  position: relative; margin: 0; max-width: min(1500px, 100%);
  border-radius: 18px; overflow: hidden; border: 2px solid var(--line);
  box-shadow: 0 0 50px rgba(121, 254, 255, .18);
}
.lb-frame img { display: block; max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; margin: 0 auto; user-select: none; -webkit-user-drag: none; }
.lb-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 14px; text-align: center;
  font-weight: 700; letter-spacing: .05em; color: #fff; background: linear-gradient(0deg, rgba(3, 10, 15, .85), transparent);
}
.lightbox .arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .arrow.prev { left: 16px; }
.lightbox .arrow.next { right: 16px; }
.lightbox .leds { margin-top: 0; }
.lb-close {
  position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  font: 700 28px/40px "Raleway", sans-serif; color: var(--cyan); background: var(--panel-solid);
  border: 1.5px solid var(--line); box-shadow: 0 0 16px rgba(121, 254, 255, .18);
}
.lb-close:hover { background: #0e3142; color: #fff; }

@media (max-width: 600px) {
  .locked-bosses { grid-template-columns: 1fr; }
  .lightbox { padding: 64px 8px 24px; }
  .lightbox .arrow { top: auto; bottom: 18px; transform: none; }
  .lightbox .arrow.prev { left: 12px; }
  .lightbox .arrow.next { right: 12px; }
  .lb-frame img { max-height: calc(100vh - 200px); }
  .lb-frame figcaption { font-size: 13px; padding: 18px 10px 8px; }
}

/* ---------- Teste fechado: passo 1 (inscrever pela web) e passo 2 (instalar pelo Play) ---------- */
.join-test {
  margin: 18px auto 0; max-width: 560px; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--line-soft); background: rgba(9, 32, 43, .5);
}
.join-title { margin: 0 0 12px; font-weight: 700; color: #6dff8b; }
.join-test .pt { display: inline; margin: 0; font-size: inherit; font-weight: 400; color: var(--muted); }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.join-steps li {
  display: grid; grid-template-columns: 34px 1fr 230px; align-items: center; gap: 12px; text-align: left;
  padding: 10px 12px; border-radius: 12px; background: rgba(4, 22, 29, .6);
}
.join-steps .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  color: #04161d; background: #79feff; box-shadow: 0 0 12px rgba(121, 254, 255, .45);
}
.join-steps .txt { font-weight: 700; }
.join-steps small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.join-steps .btn {
  display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center;
  background: #79feff; color: #04161d;
}
.join-steps .btn small { color: #04161d; opacity: .7; }
.join-steps .btn:hover { filter: drop-shadow(0 0 12px rgba(121, 254, 255, .45)); }
.join-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .join-steps li { grid-template-columns: 34px 1fr; }
  .join-steps .btn { grid-column: 1 / -1; }
}
