@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --bg: #323437;
    --bg-alt: #2c2e31;
    --bg-hover: #3c3e41;
    --text: #d1d0c5;
    --muted: #646669;
    --accent: #e2b714;
    --radius: 8px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 16px;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    z-index: 100;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Roboto Mono', monospace;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}
header h1 {
    font-weight: normal;
    font-size: 2rem;
    margin: 0 0 5px;
}
header p {
    color: var(--muted);
    margin: 0 0 20px;
}

nav.time-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
}
nav.time-selector a {
    background: var(--bg-alt);
    color: var(--muted);
    padding: 8px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
nav.time-selector a:hover { color: var(--text); }
nav.time-selector a.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: bold;
}
nav.time-selector a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

caption {
    caption-side: bottom;
    color: var(--muted);
    font-size: 0.8rem;
    padding: 10px 0;
    text-align: center;
}

th, td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--bg-alt);
}
th {
    color: var(--muted);
    font-weight: normal;
}
tr:hover td { background: var(--bg-alt); }

.rank { color: var(--muted); width: 50px; }

.name {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.name:hover { color: var(--accent); }
.name:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.val { color: var(--accent); }

.empty-message {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

footer {
    margin-top: 40px;
    text-align: center;
}

a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--text); }
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 600px) {
    header h1 { font-size: 1.5rem; }
    th, td { padding: 10px 6px; font-size: 0.875rem; }
}

@media (max-width: 400px) {
    th:last-child, td:last-child { display: none; }
}
