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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#current-player {
    font-size: 1.2rem;
    font-weight: bold;
}

#current-player span {
    color: #e74c3c;
}

#reset-game {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#reset-game:hover {
    background-color: #2980b9;
}

.board {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    background-color: #8b5a2b;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.store {
    width: 120px;
    height: 300px;
    background-color: #9b7653;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.store-label {
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.pits-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 15px;
}

.pits-row {
    display: flex;
    gap: 15px;
}

.pit {
    width: 80px;
    height: 80px;
    background-color: #9b7653;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pit:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.2);
}

.gem-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.gems-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: inherit;
    overflow: hidden;
}

.gem {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.pink {
    background-color: #ff69b4;
}

.orange {
    background-color: #ff7f50;
}

.teal {
    background-color: #008080;
}

.green {
    background-color: #2e5932; /* Hunter green */
}

.rules {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.rules h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.rules ul {
    padding-left: 20px;
}

.rules li {
    margin-bottom: 8px;
}

.player-turn {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.winner-announcement {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f1c40f;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
}
