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

body {
    font-family: sans-serif;
    line-height: 1.6;
    padding: 40px 20px;
    color: #fff;
    background: #1e1335;
    background: -moz-linear-gradient(45deg, #1e1335 3%, #4a3f81 68%, #4765bd 100%);
    background: -webkit-linear-gradient(45deg, #1e1335 3%, #4a3f81 68%, #4765bd 100%);
    background: linear-gradient(45deg, #1e1335 3%, #4a3f81 68%, #4765bd 100%);
    min-height: 100vh;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(74, 63, 129, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(74, 63, 129, 0.5);
    text-decoration: none;
    transform: translateX(-5px);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #fab717;
}

h2 {
    color: #fab717;
    margin-bottom: 15px;
    text-align: center;
}

.tables-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.table-section {
    flex: 1;
    min-width: 300px;
}

.game-counter {
    font-size: 3.5rem;
    color: #fab717;
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: counterfade 0.5s ease-in;
}

@keyframes counterfade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-wrapper {
    background: rgba(74, 63, 129, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    overflow-x: auto;
}

.table-wrapper::-webkit-scrollbar {
    height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #4a3f81;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #fab717;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #fee94b;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background-color: rgba(74, 63, 129, 0.4);
    font-weight: 600;
    color: #fab717;
}

tr:last-child td {
    border-bottom: none;
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.rules-section {
    background: rgba(74, 63, 129, 0.2);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rules-section ul {
    list-style-type: none;
    padding: 0;
}

.rules-section li {
    margin-bottom: 10px;
    line-height: 1.5;
}

a {
    color: #fab717;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fee94b;
    text-decoration: none;
}

a:visited {
    color: #fab717;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .table-section {
        flex: 1 1 100%;
    }
    
    .tables-container {
        gap: 20px;
    }
    
    body {
        padding: 10px;
    }
}
