﻿/* game.bangtech.com — shared styles for the games hub and site-wide pages (privacy).
   Each game keeps its own stylesheet inside its folder. */
:root {
  --bg: #0d131c;
  --panel: rgba(18, 26, 38, 0.94);
  --panel-2: #1b2636;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8eef7;
  --muted: #8fa0b8;
  --accent: #ffd166;
  --accent-2: #5ec2ff;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; color: var(--text); background:
  radial-gradient(1200px 600px at 20% -10%, rgba(94,194,255,.18), transparent 60%),
  radial-gradient(900px 500px at 110% 110%, rgba(255,209,102,.14), transparent 60%), var(--bg) fixed; }
h1, h2, h3 { font-family: 'Space Grotesk', Inter, sans-serif; margin: 0; }
a { color: var(--accent-2); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- nav / footer ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 1080px; margin: 0 auto; flex-wrap: wrap; }
.nav-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text); text-decoration: none; font-size: 17px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--panel-2); }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; text-decoration: none; text-align: center; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-weight: 600; }
.btn:hover { background: #24324a; }
.btn.primary { background: linear-gradient(135deg, #ffb703, #ffd166); color: #1a1300; border: 0; }
.btn.primary:hover { filter: brightness(1.07); }

/* ---------- hub ---------- */
.hub { max-width: 1080px; margin: 0 auto; padding: 24px 16px 16px; }
.hero { text-align: center; padding: 24px 0 32px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); letter-spacing: -0.02em; background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; margin: 10px auto 0; max-width: 560px; line-height: 1.5; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.game-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(255, 209, 102, .5); }
.game-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #142033; }
.game-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-body h2 { font-size: 22px; }
.game-body p { margin: 0; color: var(--muted); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #142033; border: 1px solid var(--line); color: var(--muted); }
.game-body .btn { margin-top: auto; align-self: flex-start; }
.game-card.soon { border-style: dashed; justify-content: center; align-items: center; text-align: center; padding: 32px 20px; min-height: 220px; color: var(--muted); }
.game-card.soon:hover { transform: none; border-color: var(--line); }
.game-card.soon .big { font-size: 44px; margin-bottom: 8px; }
.about { max-width: 760px; margin: 40px auto 0; color: var(--muted); line-height: 1.65; }
.about h2 { color: var(--text); font-size: 22px; margin-bottom: 8px; }

/* ---------- text pages (privacy) ---------- */
.content { max-width: 780px; margin: 0 auto; padding: 16px 16px 32px; line-height: 1.65; }
.content h1 { font-size: clamp(28px, 6vw, 40px); margin: 8px 0 12px; }
.content h2 { font-size: 22px; margin: 32px 0 10px; }
.content h3 { font-size: 17px; margin: 20px 0 8px; }
.content ul { padding-left: 20px; }
.content li { margin: 4px 0; }

/* ---------- ad slots (filled by js/ads.js) ---------- */
.ad-wrap { width: 100%; max-width: 760px; margin: 32px auto 0; text-align: center; }
.ad-wrap.ad-on { min-height: 120px; padding: 8px 0; }
.ad-wrap:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
