:root {
    --grid-size: 15;
    --cell-size: 30px;
}

body {
    margin: 0;
    padding: 20px;
    font-family: 'Play', sans-serif;
    background: linear-gradient(135deg, #4a148c, #7b1fa2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1, h2, h3, .status {
    font-family: 'Russo One', sans-serif;
}

.game-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.players {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vs {
    font-weight: bold;
    font-size: 24px;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 20px;
}

#analyzeButton {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background: #6200ea;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

#analyzeButton:hover {
    background: #3700b3;
}

#depthSelect {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(15, 30px);
    gap: 1px;
    background: #eee;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.cell {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
}

.cell.moon {
    background-image: url('moon.png');
    background-size: cover;
    background-position: center;
}

.cell.sun {
    background-image: url('sun.png');
    background-size: cover;
    background-position: center;
}

.moon-icon, .sun-icon {
    font-size: 24px;
}

.cell.suggestion {
    position: relative;
}

.cell.suggestion::before {
    content: attr(data-score);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px white;
    z-index: 2;
}

.cell.suggestion-best {
    background: rgba(76, 175, 80, 0.4) !important;
    border: 3px solid #4CAF50 !important;
}

.cell.suggestion-good {
    background: rgba(255, 235, 59, 0.4) !important;
    border: 3px solid #FDD835 !important;
}

.cell.suggestion-neutral {
    background: rgba(158, 158, 158, 0.4) !important;
    border: 3px solid #9E9E9E !important;
}

.cell.suggestion-bad {
    background: rgba(244, 67, 54, 0.4) !important;
    border: 3px solid #F44336 !important;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.analysis-results {
    margin-top: 20px;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status {
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
}

.moon-moves, .sun-moves {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info img {
    width: 24px;
    height: 24px;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-family: 'Play', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.lang-btn.active {
    background: #7b1fa2;
    color: white;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
