:root {
    --bg: #0d0d0d;
    --surface: #1a1a2e;
    --surface2: #16213e;
    --accent: #e94560;
    --text: #e0e0e0;
    --text-muted: #888;
    --smoking-color: #f7c948;
    --fire-color: #ff6b35;
    --supernova-color: #e94560;
    --trending-color: #00d4aa;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

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

nav {
    background: var(--surface);
    border-bottom: 1px solid #2a2a4a;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 52px;
}
nav .logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}
nav a:hover { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filter-btn {
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid #2a2a4a;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.game-list { display: flex; flex-direction: column; gap: 0.6rem; }
.game-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s;
}
.game-card:hover { border-color: var(--accent); }
.game-card .cover {
    width: 72px; height: 54px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--surface2);
}
.game-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.game-card .meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 0.75rem; }
.score-area { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.score { font-size: 1.1rem; font-weight: 700; }
.empty { color: var(--text-muted); padding: 2rem 0; text-align: center; }

.label-badge {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem; border-radius: 4px;
    text-transform: uppercase;
}
.label-smoking  { background: #3a300a; color: var(--smoking-color); }
.label-on-fire  { background: #3a1a0a; color: var(--fire-color); }
.label-supernova { background: #3a0a1a; color: var(--supernova-color); }
.trending-badge {
    font-size: 0.7rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 4px;
    background: #003a30; color: var(--trending-color);
    text-transform: uppercase; letter-spacing: 0.05em;
}

.game-detail-header { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.5rem; }
.game-detail-header img { width: 180px; height: 135px; object-fit: cover; border-radius: 8px; }
.game-detail-header h1 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.stat-card { background: var(--surface); border-radius: 8px; padding: 1rem; text-align: center; border: 1px solid #2a2a4a; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.chart-wrap { background: var(--surface); border-radius: 8px; padding: 1rem; border: 1px solid #2a2a4a; margin-bottom: 1.5rem; }

.config-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.config-table th, .config-table td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid #2a2a4a; font-size: 0.9rem; }
.config-table th { color: var(--text-muted); font-weight: 600; }
.add-form { display: flex; gap: 0.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.add-form input { flex: 1; min-width: 160px; background: var(--surface); border: 1px solid #2a2a4a; border-radius: 6px; padding: 0.45rem 0.75rem; color: var(--text); font-size: 0.9rem; }
.add-form input:focus { outline: none; border-color: var(--accent); }
.btn { padding: 0.45rem 1rem; border-radius: 6px; border: none; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.85; }
.btn-danger { background: #3a0a0a; color: #f87171; border: 1px solid #5a1a1a; }
.btn-danger:hover { background: #5a0a0a; }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.78rem; }
h1.page-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
