/* Updated find_the_gold.css */
/* Scoped to .game-container for consistency with other apps */

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(12, 25, 43, 0.96), rgba(5, 10, 19, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.24);
    border-radius: 8px;
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(0, 229, 255, 0.1);
    text-align: center;
    color: #d7edf7;
}

.game-container h1 {
    color: #f7fbff;
    margin-bottom: 10px;
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.24);
}

.game-container p {
    color: #c4d7e4;
    margin-bottom: 30px;
    font-size: 1.2em;
}

#status {
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0;
    min-height: 40px;
    color: #35f283;
    text-shadow: 0 0 16px rgba(29, 185, 84, 0.22);
}

#guess-buttons {
    display: flex;
    justify-content: space-evenly;
    width: 600px;
    margin: 60px auto 40px;
}

.guess-btn {
    width: 150px;
    height: 150px;
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(180deg, #ffef9f, #ffd700, #b8860b);
    color: #2f1b03;
    border: 6px solid #ffef9f;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.guess-btn:hover {
    background-color: #ffef9f;
    transform: scale(1.1);
    box-shadow:
        0 10px 25px rgba(0,0,0,0.3),
        0 0 24px rgba(255, 215, 0, 0.34);
}

.guess-btn:active {
    transform: scale(0.95);
}

.board {
    position: relative;
    width: 600px;
    height: 405px; /* Increased from 300px for better vertical space when shells lift (prevents any potential clipping while keeping the original feel) */
    margin: 0 auto;
}

.position {
    position: absolute;
    bottom: 0;
    width: 160px;
    height: 380px; /* Matches board height for consistency */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.position[data-index="0"] { left: 32px; }
.position[data-index="1"] { left: 220px; }
.position[data-index="2"] { left: 408px; }

.prize {
    width: 140px;
    height: 100px;
    display: none;
    align-items: center;
    justify-content: center;
}

.gold-bar {
    width: 130px;
    height: 70px;
    background: linear-gradient(180deg, #ffef9f, #ffd700, #b8860b);
    border-radius: 10px;
    box-shadow: inset 0 10px 20px rgba(255,255,255,0.6), 0 8px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #654321;
    text-shadow: 1px 1px #fff;
}

.shell {
    position: absolute;
    bottom: 20px;
    width: 160px;
    height: 180px;
    background: linear-gradient(to bottom, #a0522d, #8b4513);
    border-radius: 80px 80px 30px 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: left 0.6s ease-in-out, transform 0.6s ease-in-out;
}

#shell0 { left: 32px; }
#shell1 { left: 220px; }
#shell2 { left: 408px; }

.shell.lifted {
    transform: translateY(-240px);
}

button {
    padding: 15px 40px;
    font-size: 24px;
    background: #1db954;
    color: #03110a;
    border: 1px solid rgba(53, 242, 131, 0.64);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
    margin: 20px;
}

button:hover {
    background-color: #35f283;
    box-shadow: 0 0 18px rgba(29, 185, 84, 0.22);
}

@media (max-width: 680px) {
    .game-container {
        padding: 28px 12px;
    }

    .board {
        transform: scale(0.78);
        transform-origin: top center;
        margin-bottom: -80px;
    }

    #guess-buttons {
        width: 100%;
        gap: 10px;
        margin-top: 36px;
    }

    .guess-btn {
        width: 92px;
        height: 92px;
        font-size: 42px;
    }
}
