body {
    font-family: monospace;
    background: #2A2928;
    color: #E0DCD7;
    margin: 0;
    font-size: 14px;
}

header {
    background: #232221;
    border-bottom: 2px solid #47423E;
    padding: 20px 0;
}

header > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #E0DCD7;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 32px;
    width: auto;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #8A7D77;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: #E63946;
}

nav a.get-reflex {
    color: #E63946;
    border: 1px solid #E63946;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

nav a.get-reflex:hover {
    background: #E63946;
    color: #E0DCD7;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Live Stats */
.live-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-box {
    background: #1a1919;
    border: 1px solid #47423E;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #E0DCD7;
    margin-bottom: 8px;
}

.stat-value.stat-live {
    color: #E63946;
}

.stat-label {
    color: #8A7D77;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #E0DCD7;
    font-size: 18px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #47423E;
    padding-bottom: 8px;
}

.subsection-header {
    color: #E0DCD7;
    font-size: 14px;
    margin: 32px 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

/* Health Metrics */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.health-metric {
    background: #1a1919;
    border: 1px solid #47423E;
    border-radius: 4px;
    padding: 20px;
}

.health-value {
    font-size: 32px;
    font-weight: bold;
    color: #E0DCD7;
    margin-bottom: 8px;
}

.health-label {
    color: #E0DCD7;
    font-size: 14px;
    margin-bottom: 4px;
}

.health-subtext {
    color: #8A7D77;
    font-size: 11px;
}

/* Graph Grid */
.graph-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Graph Placeholder */
.graph-container {
    background: #1a1919;
    border: 1px solid #47423E;
    border-radius: 4px;
    padding: 20px;
    min-height: 200px;
}

.graph-container canvas {
    max-width: 100%;
}

.graph-label {
    color: #8A7D77;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.graph-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.legend-item {
    color: #8A7D77;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.player {
    background: #E63946;
}

.legend-dot.bot {
    background: #8A7D77;
}

.graph-placeholder {
    color: #8A7D77;
    text-align: center;
    padding: 40px 0;
    font-size: 12px;
}

/* Leaderboard Table */
.leaderboard {
    width: 100%;
    background: #1a1919;
    border: 1px solid #47423E;
    border-radius: 4px;
    border-collapse: collapse;
}

.leaderboard thead {
    background: #232221;
    border-bottom: 2px solid #47423E;
}

.leaderboard th {
    color: #8A7D77;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    text-align: left;
    font-weight: normal;
}

.leaderboard tbody tr {
    border-bottom: 1px solid #47423E;
}

.leaderboard tbody tr:last-child {
    border-bottom: none;
}

.leaderboard tbody tr:hover {
    background: #232221;
}

.leaderboard td {
    padding: 12px 16px;
    color: #E0DCD7;
}

.leaderboard .rank {
    color: #8A7D77;
    font-weight: bold;
}

.leaderboard .player a {
    color: #E0DCD7;
    text-decoration: none;
    transition: color 0.2s;
}

.leaderboard .player a:hover {
    color: #E63946;
}

.leaderboard .elo {
    color: #E63946;
    font-weight: bold;
}

.leaderboard .wl {
    color: #8A7D77;
    font-size: 12px;
}

/* Recent Matches */
.matches-list {
    background: #1a1919;
    border: 1px solid #47423E;
    border-radius: 4px;
}

.match-row {
    display: grid;
    grid-template-columns: 70px 100px 70px 1fr;
    gap: 20px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #47423E;
}

.match-row:last-child {
    border-bottom: none;
}

.match-row:hover {
    background: #232221;
    cursor: pointer;
}

.match-time {
    color: #8A7D77;
    font-size: 12px;
}

.match-map {
    color: #8A7D77;
    font-size: 12px;
}

.match-players {
    color: #E0DCD7;
}

.match-players a {
    text-decoration: none;
    transition: opacity 0.2s;
}

.match-players a span {
    color: #E0DCD7;
}

.match-players a:hover {
    opacity: 0.7;
}

.match-players .winner {
    color: #E63946 !important;
    font-weight: bold;
}

.match-players .vs {
    color: #8A7D77;
}

.match-score {
    color: #8A7D77;
    font-size: 12px;
    text-align: left;
}
