:root {
    --dark-grey: #151516;
    --light-grey: #1e1e20;
    --gold: #efbd41;
    --border-grey: #38383b;
    --text-grey: #96969C;
    --text-background-grey: #2a2a2d;
    --color-bg: var(--dark-grey);
    --color-container: var(--light-grey);
    --color-header: var(--gold);
    --color-text: #f0f0f0;
    --color-accent: var(--gold);
    --color-accent-hover: var(--gold);
    --color-btn-text: #151516;
    --color-btn-hover-text: #111;
    --color-btn-hover: #99761E;
}

@font-face {
    font-family: 'BoldPixels';
    src: url('/static/BoldPixels.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    cursor: url('/static/cursor.png'), auto;
}

a:hover, button:hover {
    cursor: url('/static/cursor-hover.png'), auto;
}

body {
    background-color: var(--dark-grey);
    background-image: url('/static/background-tile.png');
    background-repeat: repeat;
    background-attachment: fixed;
    font-family: 'DejaVu Sans Mono', 'Menlo', 'Consolas', 'Monaco', 'Liberation Mono', 'Courier New', monospace;
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.stats-container {
    max-width: 1400px;
    width: 100%;
    background: rgba(30, 30, 32, 0.95);
    border: 2px solid var(--border-grey);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-grey);
}

h1 {
    font-size: 3em;
    font-weight: 200;
    color: var(--color-header);
    font-family: 'BoldPixels', sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;
}

.total-users {
    font-size: 1.3em;
    color: var(--text-grey);
    margin-top: 15px;
}

.total-users strong {
    color: var(--gold);
    font-size: 1.5em;
    font-weight: 700;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.chart-section {
    background: var(--text-background-grey);
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    padding: 30px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chart-section-wide {
    grid-column: 1 / -1;
}

.chart-section h2 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    font-family: 'DejaVu Sans Mono', monospace;
}

.chart-container {
    position: relative;
    min-height: 350px;
    max-height: 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-height: 100%;
    max-width: 100%;
}

.chart-section-wide .chart-container {
    min-height: 300px;
    height: auto;
}

.navigation {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.nav-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: url('/static/cursor-hover.png'), auto;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.main-btn {
    background: var(--color-accent);
    color: var(--color-btn-text);
}

.main-btn:hover {
    background: var(--color-btn-hover);
    color: var(--color-btn-hover-text);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.main-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.skip-btn {
    background: var(--text-background-grey);
    color: var(--text-grey);
    border: 1px solid var(--border-grey);
    padding: 12px 28px;
    font-size: 1.05em;
    opacity: 0.85;
}

.skip-btn:hover {
    background: var(--border-grey);
    color: var(--color-text);
    transform: translateY(-1px) scale(1.01);
    opacity: 1;
}

@media (max-width: 1200px) {
    .stats-container {
        padding: 40px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .chart-container {
        height: 350px;
        min-height: 300px;
    }
    
    .chart-section-wide .chart-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .stats-container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .total-users {
        font-size: 1.1em;
    }
    
    .chart-section {
        padding: 20px 15px;
    }
    
    .chart-section h2 {
        font-size: 0.9em;
    }
    
    .chart-container {
        height: 300px;
        min-height: 280px;
    }
    
    .chart-section:nth-child(1) .chart-container {
        height: 380px;
        min-height: 380px;
    }
    
    .chart-section:nth-child(2) .chart-container {
        height: 380px;
        min-height: 380px;
    }
    
    .chart-section-wide .chart-container {
        height: 300px;
    }
    
    .navigation {
        flex-direction: column-reverse;
    }
    
    .nav-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }
    
    .stats-container {
        padding: 20px 15px;
    }
    
    .chart-section {
        padding: 15px 10px;
    }
    
    .chart-container {
        height: 280px;
        min-height: 250px;
    }
    
    .chart-section:nth-child(1) .chart-container {
        height: 420px;
        min-height: 420px;
    }
    
    .chart-section:nth-child(2) .chart-container {
        height: 400px;
        min-height: 400px;
    }
    
    .chart-section-wide .chart-container {
        height: 280px;
    }
    
    .chart-section h2 {
        font-size: 0.8em;
        margin-bottom: 15px;
    }
}