/* Shared style for Brain Clash info pages (matches the game's look) */
:root {
    --bg-color: #0b0f19;
    --card: #111827;
    --line: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #c084fc;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.top-nav .brand {
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    background: linear-gradient(to right, #c084fc, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.play-btn {
    padding: 8px 18px;
    background: #a855f7;
    color: white;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
}

h1 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #c084fc, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.3rem;
    margin: 28px 0 10px;
}

p, li { color: var(--text-muted); font-size: 1.02rem; }
p { margin-bottom: 12px; }
ul, ol { padding-left: 22px; margin-bottom: 12px; }
li { margin-bottom: 6px; }
b, strong { color: var(--text-main); }
a { color: var(--accent); }

.subtitle { margin-bottom: 20px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    margin: 16px 0;
}

/* Ad spaces: invisible until AdSense code is pasted inside */
.ad-slot { margin: 28px auto; text-align: center; }
.ad-slot:empty { display: none; }

.site-footer {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 8px;
}

/* Leaderboard table */
.lb-row {
    display: flex;
    gap: 14px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
}
.lb-row:nth-child(1) .lb-rank { color: #facc15; }
.lb-row:nth-child(2) .lb-rank { color: #e2e8f0; }
.lb-row:nth-child(3) .lb-rank { color: #fb923c; }
.lb-rank { width: 40px; color: var(--text-muted); font-weight: 800; }
.lb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-weight: 800; }
.lb-message { color: var(--text-muted); padding: 24px 0; text-align: center; }
