body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #222;
    color: #fff;
    background-image: url('/1_nbjNPvUi0OAw-6e2VXPwqw.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background-color: rgba(139, 69, 19, 0.85);
    padding: 30px;
    border-radius: 15px;
    border: 5px solid #DAA520;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    text-align: center;
    max-width: 800px;
    width: 90%;
    margin: 20px;
}

h1 {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin-top: 0;
    margin-bottom: 20px;
}

#score-display {
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #DAA520;
}

.store-container {
    background-color: #8B4513;
    border: 4px solid #DAA520;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.shopkeeper-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid #DAA520;
}

.shopkeeper-wrapper {
    position: relative;
    margin-right: 15px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) translateX(3px) rotate(1deg);
    }
    50% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    75% {
        transform: translateY(5px) translateX(-3px) rotate(-1deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

.name-tag {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1E90FF; 
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
    border: 2px solid #0000CD; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.shopkeeper-image {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    border-radius: 10px;
}

.speech-bubble {
    background-color: white;
    color: #8B4513;
    padding: 15px;
    border-radius: 10px;
    position: relative;
    flex: 1;
    border: 2px solid #8B4513;
    font-style: italic;
}

.speech-bubble:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
    transform: translateY(-50%);
}

.mystery-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mystery-box {
    background-color: rgba(0, 0, 0, 0.3);
    border: 3px solid #DAA520;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mystery-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.mystery-box.royal {
    border-color: #FF00FF;
    background-color: rgba(128, 0, 128, 0.2);
}

.box-top {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.royal .box-top {
    color: #FF00FF;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}

.box-info h3 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 5px;
}

.royal .box-info h3 {
    color: #FF00FF;
}

.box-info p {
    font-size: 0.9em;
    color: #FFF;
    margin-bottom: 15px;
}

.buy-button {
    background-color: #B22222;
    color: white;
    font-size: 1em;
    font-weight: bold;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 0 #8B0000;
    transition: all 0.1s;
    width: 100%;
}

.buy-button:hover {
    background-color: #DC143C;
}

.buy-button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #8B0000;
}

.buy-button:disabled {
    background-color: #A9A9A9;
    box-shadow: 0 4px 0 #696969;
    cursor: not-allowed;
}

#message-display {
    min-height: 30px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 15px 0;
    color: #FFD700;
}

.purchased-upgrades {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 2px solid #DAA520;
    max-height: 200px;
    overflow-y: auto;
}

.purchased-upgrades h3 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 10px;
}

#upgrades-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

#upgrades-list li {
    padding: 8px;
    margin-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade-positive {
    color: #00FF00;
}

.upgrade-negative {
    color: #FF6347;
}

.upgrade-neutral {
    color: #FFF;
}

.upgrade-right-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-upgrade-button {
    background-color: #8B0000;
    color: white;
    font-size: 0.8em;
    padding: 3px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-upgrade-button:hover {
    background-color: #FF0000;
}

#purchase-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#purchase-result.hidden {
    display: none;
}

.result-content {
    background-color: #8B4513;
    border: 5px solid #DAA520;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.5);
}

.result-content h3 {
    color: #FFD700;
    margin-top: 0;
    font-size: 1.5em;
}

#result-description {
    font-size: 1.2em;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

#result-effect {
    font-weight: bold;
    margin-bottom: 20px;
}

#result-close {
    background-color: #B22222;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#result-close:hover {
    background-color: #DC143C;
}

.home-button {
    display: inline-block;
    background-color: #B8860B;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #F0E68C;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.home-button:hover {
    background-color: #DAA520;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#toggle-music {
    background-color: #4169E1;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#toggle-music:hover {
    background-color: #6495ED;
}

#volume-slider {
    width: 100px;
    cursor: pointer;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 0.5s infinite;
}

.store-entrance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/1_nbjNPvUi0OAw-6e2VXPwqw.jpg');
    background-size: cover;
    background-position: center;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: store-fade-out 2s forwards;
    animation-delay: 3s;
    pointer-events: none;
}

.store-entrance-content {
    text-align: center;
}

.store-entrance-title {
    font-size: 2.5em;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    transform: translateY(-50px);
    opacity: 0;
    animation: title-slide-in 1s forwards;
}

.store-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
}

.store-box-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #8B4513;
    border: 5px solid #DAA520;
    transform-style: preserve-3d;
    transform-origin: center bottom;
    animation: box-open 2s forwards;
}

.store-box-lid {
    position: absolute;
    width: 100%;
    height: 30px;
    top: -35px;
    left: 0;
    background-color: #8B4513;
    border: 5px solid #DAA520;
    border-bottom: none;
    transform-origin: bottom;
    animation: lid-open 2s forwards;
}

.box-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(#FFD700, transparent 70%);
    opacity: 0;
    animation: glow-pulse 2s forwards;
    animation-delay: 1s;
}

.mystery-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #FFD700;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: item-float 1.5s forwards;
    animation-delay: 1.5s;
}

@keyframes store-fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes title-slide-in {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes box-open {
    0% { transform: rotateX(0); }
    30% { transform: rotateX(0); }
    60% { transform: rotateX(-5deg); }
    70% { transform: rotateX(-5deg); }
    100% { transform: rotateX(-5deg); }
}

@keyframes lid-open {
    0% { transform: rotateX(0); }
    30% { transform: rotateX(0); }
    60% { transform: rotateX(-100deg); }
    70% { transform: rotateX(-100deg); }
    80% { transform: rotateX(-95deg); }
    100% { transform: rotateX(-95deg); }
}

@keyframes glow-pulse {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes item-float {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -200%) scale(1.5); opacity: 0; }
}

.store-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 2px solid #DAA520;
}

.store-section h3 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.experimental-section {
    background-color: rgba(128, 0, 128, 0.25);
    border: 3px solid #FF00FF;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    text-align: center;
}

.experimental-section h3 {
    color: #FF00FF;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    font-size: 1.4em;
}

.section-description {
    color: #FFD700;
    font-style: italic;
    margin-bottom: 20px;
}

.experimental-upgrades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.experimental-upgrade {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #FF00FF;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experimental-upgrade:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(255, 0, 255, 0.3);
}

.experimental-upgrade h4 {
    color: #FF00FF;
    margin-top: 0;
    margin-bottom: 10px;
}

.experimental-upgrade p {
    font-size: 0.9em;
    margin-bottom: 15px;
    color: #FFF;
}

.experimental-button {
    background-color: #9400D3;
    color: white;
    font-size: 1em;
    font-weight: bold;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 0 #4B0082;
    transition: all 0.1s;
    width: 100%;
}

.experimental-button:hover {
    background-color: #8A2BE2;
}

.experimental-button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #4B0082;
}

.experimental-button:disabled {
    background-color: #A9A9A9;
    box-shadow: 0 4px 0 #696969;
    cursor: not-allowed;
}

.upgrade-purchased {
    background-color: rgba(0, 128, 0, 0.3);
    border-color: #00FF00;
}

.upgrade-purchased .experimental-button {
    background-color: #4CAF50;
    box-shadow: 0 4px 0 #2E8B57;
    cursor: default;
}

.minigames-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.minigame {
    background-color: rgba(139, 69, 19, 0.7);
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.minigame:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.5);
}

.minigame h4 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 10px;
}

.minigame p {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.play-minigame-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.play-minigame-button:hover {
    background-color: #3e8e41;
}

.daily-reward-container {
    background-color: rgba(139, 69, 19, 0.7);
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.daily-reward-container p {
    margin-bottom: 15px;
}

#claim-daily-reward {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#claim-daily-reward:hover:not([disabled]) {
    background-color: #3e8e41;
}

#claim-daily-reward[disabled] {
    background-color: #cccccc;
    cursor: not-allowed;
}

.daily-reward-timer {
    font-size: 0.9em;
    color: #FFD700;
    margin-top: 10px;
}

.store-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.minigame-content {
    background-color: #8B4513;
    border: 5px solid #DAA520;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
}

.minigame-content h2 {
    color: #FFD700;
    margin-top: 0;
}

.minigame-area {
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid #DAA520;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
}

#bee-catcher-field {
    width: 100%;
    height: 300px;
    background-color: rgba(173, 216, 230, 0.2);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.catcher-bee {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('/bee-poster.png');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.1s;
}

.catcher-bee:hover {
    transform: scale(1.1);
}

.tiny-bee {
    filter: hue-rotate(60deg);
}

.small-bee {
    filter: brightness(1.2);
}

#honeycomb-match-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.memory-card {
    height: 80px;
    background-color: rgba(218, 165, 32, 0.3);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.card-front {
    background-color: #FFD700;
    color: #8B4513;
    transform: rotateY(180deg);
    font-weight: bold;
}

.card-back {
    background-color: #B8860B;
    color: white;
    font-size: 24px;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.game-results {
    text-align: center;
}

.game-results h3 {
    color: #FFD700;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .mystery-boxes {
        grid-template-columns: 1fr;
    }
    
    .shopkeeper-section {
        flex-direction: column;
    }
    
    .shopkeeper-wrapper {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .speech-bubble:before {
        left: 50%;
        top: -10px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid white;
        border-top: none;
        transform: translateX(-50%);
    }
    
    .minigames-container {
        grid-template-columns: 1fr;
    }
    
    #honeycomb-match-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #bee-catcher-field {
        height: 200px;
    }
}

