:root {
  --bg: #0e1116;
  --bg-card: #1a1f29;
  --accent: #4da3ff;
  --accent-2: #ff5d5d;
  --text: #e8ecf2;
  --text-dim: #8b95a5;
  --border: #2a3140;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 50% 0%, #16202e 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.site-header nav a { margin-left: 22px; color: var(--text-dim); font-weight: 600; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }

/* Hero */
.hero { text-align: center; padding: 40px 0 28px; }
.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--accent), #9b6dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline { color: var(--text-dim); font-size: 1.15rem; max-width: 640px; margin: 12px auto 0; }

/* Game frame */
.play-section { text-align: center; margin: 24px 0; }
.game-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 960 / 600;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: #000;
}
#game-frame { width: 100%; height: 100%; border: 0; display: block; }

.btn {
  margin-top: 14px;
  background: var(--accent);
  color: #06111f;
  border: 0;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.btn:hover { background: #6bb3ff; transform: translateY(-1px); }

/* Content cards */
.content-columns { display: flex; gap: 20px; margin: 28px 0; flex-wrap: wrap; }
.content-columns .info-card { flex: 1; min-width: 280px; }

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 20px 0;
}
.info-card h2 { font-size: 1.4rem; margin-bottom: 12px; }
.info-card ul { padding-left: 20px; }
.info-card li { margin: 6px 0; color: var(--text-dim); }
.info-card li strong { color: var(--text); }
.info-card p { color: var(--text-dim); }

/* Ad slots */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #161b24, #161b24 10px, #1a2029 10px, #1a2029 20px);
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  margin: 18px auto;
  position: relative;
}
.ad-banner { width: 728px; max-width: 100%; height: 90px; }
.ad-rect { width: 300px; height: 250px; flex: 0 0 auto; align-self: flex-start; }
.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
}

/* Leaderboard tables */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table td { padding: 9px 6px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table .rank { width: 36px; font-weight: 800; color: var(--accent); }
.lb-table td:nth-child(2) { color: var(--text); font-weight: 600; }
.lb-table .val { text-align: right; color: var(--accent-2); font-weight: 700; white-space: nowrap; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .site-header nav a { margin-left: 14px; font-size: 0.9rem; }
  .hero h1 { font-size: 2.4rem; }
}
