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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 20px;
}

h1 {
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-info {
    margin-bottom: 15px;
}

#turn-indicator {
    font-size: 1.5em;
    color: white;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#game-status {
    font-size: 1.2em;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.buttons {
    margin-bottom: 20px;
}

.buttons button {
    padding: 10px 25px;
    font-size: 1em;
    margin: 0 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: white;
    color: #667eea;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.buttons button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.buttons button.active {
    background: #667eea;
    color: white;
}

#board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hex-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: -8px;
}

.hex-row:first-child {
    margin-top: 0;
}

.hexagon {
    width: 40px;
    height: 46px;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.hexagon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    pointer-events: none;
}

.hexagon:hover::before {
    background: rgba(255, 255, 255, 0.5);
}

.hexagon.empty:hover::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='46'%3E%3Cpolygon points='20,0 40,11.5 40,34.5 20,46 0,34.5 0,11.5' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='2'/%3E%3C/svg%3E");
}

.hexagon.empty::before {
    background: transparent;
    box-shadow: none;
}

.hexagon.empty::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 46px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='46'%3E%3Cpolygon points='20,0 40,11.5 40,34.5 20,46 0,34.5 0,11.5' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hexagon.black::before {
    background: #333;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.hexagon.white::before {
    background: #fff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.hexagon.last-move {
    position: relative;
}

.hexagon.last-move::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hexagon.black.last-move::after {
    background: #ff6b6b;
}

.hexagon.white.last-move::after {
    background: #4ecdc4;
}
