/* Lazy Snake Cup Free - Styles */

body {
    background-color: #050E3C;
    font-family: Arial, sans-serif;
}

/* Header overrides for dark background */
.cup-free-title {
    color: #fff;
}

.cup-free-stats {
    color: #ccc;
}

.cup-free-stat {
    color: #fff;
}

.cup-free-divider {
    color: #666;
}

/* Grid styles */
.grid {
    display: grid !important;
    grid-template-columns: repeat(10, 1fr) !important;
    gap: 2px !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px;
    width: 100%;
}

.cell {
    width: clamp(28px, 8.5vw, 40px);
    aspect-ratio: 1 / 1;
    border: 1px solid #00ff88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    background: rgba(0, 20, 50, 0.8);
}

.cell.player {
    background: #2196F3;
    font-size: 20px;
}

.cell.item {
    background: rgba(255, 100, 0, 0.6);
    color: white;
}

.cell.adjacent {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    cursor: pointer;
}

.cell.adjacent:hover {
    background: rgba(0, 255, 136, 0.4);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px auto;
    max-width: 500px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #00ff88;
}

.stat span {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-top: 5px;
}

.status {
    text-align: center;
    padding: 10px;
    margin: 10px auto;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-size: 14px;
}

.controls {
    text-align: center;
    margin: 15px auto;
    max-width: 500px;
}

.controls button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 5px;
}

.controls button:hover {
    background: #45a049;
}

/* Leaderboard overrides for dark background */
.free-leaderboard h3 {
    color: #ffffff;
}

.free-leaderboard table {
    background: #fff;
}

.free-leaderboard td {
    color: #222;
}

.container {
    color: #ffffff;
}

@media (max-width: 480px) {
    .stats {
        gap: 10px;
    }

    .stat {
        padding: 8px 15px;
    }
}
