body {
    background: #fdf5e6;
    /* Parchment color */
    font-family: 'Pirata One', cursive;
    color: #4b2e0d;
    text-align: center;
    margin: 0;
    padding: 0;
}

.game-container {
    padding: 20px;
    background: #fff8dc;
    max-width: 600px;
    margin: 50px auto;
    border: 5px solid #a0522d;
    border-radius: 20px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    gap: 30px;
    /* increased from 20px */
    justify-content: center;
    margin: 30px 0;
    /* extra vertical spacing */
}

.btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    padding: 10px;
    border-radius: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    text-align: center;
    line-height: 1.4;
}

#parrot {
    background-color: #2e8b57;
    /* Sea green */
}

#sword {
    background-color: #4682b4;
    /* Steel blue */
}

#treasure {
    background-color: #daa520;
    /* Goldenrod */
}

#cannon {
    background-color: #8b0000;
    /* Dark red */
}

.btn.active {
    opacity: 0.6;
    transform: scale(1.1);
}

#startBtn {
    padding: 10px 20px;
    font-size: 18px;
    margin-top: 10px;
    cursor: pointer;
    background: #cd853f;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Pirata One', cursive;
}

#message {
    margin-top: 20px;
    font-size: 20px;
}

.icon {
    font-size: 36px;
    margin-bottom: 8px;
}

@keyframes shake {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-5px, 5px);
    }

    50% {
        transform: translate(5px, -5px);
    }

    75% {
        transform: translate(-5px, -5px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.shake {
    animation: shake 0.3s ease-in-out 3;
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
    .game-container {
        margin: 20px;
        padding: 15px;
        border-width: 3px;
    }

    .button-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .btn {
        width: 100%;
        height: auto;
        padding: 15px 0;
        font-size: 16px;
    }

    .icon {
        font-size: 28px;
        margin-bottom: 6px;
    }

    #startBtn {
        width: 100%;
        font-size: 18px;
        padding: 12px 0;
    }
}
#top-bar {
    background-color: #a0522d;
    /* Sienna brown, fits pirate parchment vibe */
    padding: 8px 20px;
    text-align: left;
    font-family: 'Pirata One', cursive;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#top-bar .return-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

#top-bar .return-link:hover {
    text-decoration: underline;
    color: #f0e68c;
    /* light khaki, subtle highlight */
    cursor: pointer;
}

#top-bar .return-link::before {
    content: '←';
    /* Left arrow */
    margin-right: 8px;
    font-size: 18px;
}