/* CryptoMiner Arcade — tema neon */
:root {
  --bg: #0b0e17;
  --bg2: #111527;
  --card: #151a2e;
  --border: #232a45;
  --text: #e2e8f0;
  --muted: #8b93ad;
  --cyan: #22d3ee;
  --magenta: #e879f9;
  --lime: #a3e635;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 23, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.logo {
  font-family: "Press Start 2P", monospace;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .neon { color: var(--cyan); text-shadow: 0 0 12px rgba(34, 211, 238, 0.6); }
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cyan); text-decoration: none; }

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.5rem); }
.hero { text-align: center; padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(1rem, 3vw, 2rem); }
.hero h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.1rem, 4vw, 1.9rem);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.hero h1 .neon { color: var(--cyan); text-shadow: 0 0 18px rgba(34, 211, 238, 0.55); }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Cards de jogos ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  border-color: var(--accent, var(--cyan));
  box-shadow: 0 0 24px -6px var(--accent, var(--cyan));
}
.game-card .icon { font-size: 2.4rem; line-height: 1; }
.game-card h2 { font-size: 1.15rem; color: var(--text); }
.game-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.game-card .hs { font-size: 0.8rem; color: var(--accent, var(--cyan)); font-weight: 700; }
.game-card .play {
  margin-top: 0.4rem;
  align-self: flex-start;
  background: var(--accent, var(--cyan));
  color: #0b0e17;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

/* ---------- Página de jogo ---------- */
.game-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.game-hud {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.game-hud .label { color: var(--muted); font-weight: 600; margin-right: 0.35rem; }
canvas.game {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  touch-action: none;
  display: block;
}
.game-controls { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 10px;
  cursor: pointer;
}
.btn:hover { border-color: var(--cyan); }
.btn.primary { background: var(--cyan); color: #0b0e17; border-color: var(--cyan); }
.touch-pad { display: none; gap: 0.5rem; }
.touch-pad .btn { min-width: 64px; min-height: 52px; font-size: 1.3rem; padding: 0.4rem; }
@media (pointer: coarse) { .touch-pad { display: flex; } }
.hint { color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ---------- Conteúdo / texto ---------- */
.content { max-width: 720px; margin: 0 auto; }
.content h1 { font-size: 1.6rem; margin: 1.2rem 0 0.8rem; }
.content h2 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; color: var(--cyan); }
.content p, .content li { color: var(--text); margin-bottom: 0.7rem; }
.content ul { padding-left: 1.4rem; }
.game-about { max-width: 680px; margin: 2.2rem auto 0; border-top: 1px solid var(--border); padding-top: 1.4rem; }
.game-about h2 { font-size: 1.05rem; color: var(--cyan); margin-bottom: 0.5rem; }
.game-about p, .game-about li { color: var(--muted); font-size: 0.92rem; }
.game-about ul { padding-left: 1.3rem; }

/* ---------- Overlay de fim de jogo ---------- */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 23, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
}
.overlay h2 { font-family: "Press Start 2P", monospace; font-size: 1rem; color: var(--amber); line-height: 1.8; }
.overlay p { color: var(--muted); }
.canvas-box { position: relative; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }
