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

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="20" cy="20" r="5" fill="%23FF0000"/><circle cx="80" cy="30" r="5" fill="%2300FF00"/><circle cx="50" cy="70" r="5" fill="%230000FF"/></svg>');
    z-index: -1;
    pointer-events: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #CDDC39;
    margin: 15% auto;
    padding: 20px;
    border: 6px solid #AFB42B;
    border-radius: 15px;
    width: 300px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #E65100;
}

.modal-content label {
    display: block;
    margin: 10px 0;
    font-weight: bold;
}

.modal-content button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Minecraft', sans-serif;
    font-weight: bold;
    margin-top: 10px;
}

#settings-btn {
    background: #388E3C;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body {
    font-family: 'Minecraft', sans-serif;
    background: #8BC34A;
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #4CAF50;
    border: 4px solid #388E3C;
    border-radius: 10px;
    margin-bottom: 20px;
}

.anycoder-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    background: #388E3C;
    border-radius: 5px;
}

.anycoder-link:hover {
    background: #2E7D32;
}

h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 4px 4px 0 #388E3C;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #CDDC39;
    border: 6px solid #AFB42B;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.resources {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.resource {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FDD835;
    padding: 12px 20px;
    border: 4px solid #FBC02D;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.resource img {
    width: 40px;
    height: 40px;
}

.anime-mob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
}

.left-mob {
    left: -100px;
}

.right-mob {
    right: -100px;
}

.anime-mob img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.click-area {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

#click-target {
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.1s;
}

#click-target:hover {
    transform: scale(1.05);
}

#click-target:active {
    transform: scale(0.95);
}

#click-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #FF5722;
    opacity: 0;
    pointer-events: none;
    text-shadow: 2px 2px 0 #000;
}

.upgrades {
    background: #FFECB3;
    border: 4px solid #FFC107;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.upgrades h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #E65100;
    text-shadow: 2px 2px 0 #FF6D00;
}

.upgrade {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px;
    border: 3px solid #FF9800;
    border-radius: 10px;
    margin-bottom: 15px;
}

.upgrade img {
    width: 60px;
    height: 60px;
}

.upgrade-info {
    flex: 1;
}

.upgrade-info h3 {
    color: #E65100;
    margin-bottom: 5px;
}

.upgrade-info p {
    margin: 5px 0;
}

.buy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Minecraft', sans-serif;
    font-weight: bold;
    margin-top: 5px;
}

.buy-btn:hover {
    background: #388E3C;
}

.buy-btn:disabled {
    background: #9E9E9E;
    cursor: not-allowed;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border-radius: 10px;
    border: 4px solid #388E3C;
}

/* Responsive design */
@media (max-width: 768px) {
    .resources {
        flex-direction: column;
        align-items: center;
    }
    
    .upgrade {
        flex-direction: column;
        text-align: center;
    }
    
    .upgrade img {
        order: -1;
    }
    
    h1 {
        font-size: 2rem;
    }
}