* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.game-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 25px;
    width: 380px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #ff4e50, #f9d423);
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #444;
    margin: 15px 0;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, #ff4e50, #f9d423);
}

.score-container {
    background: linear-gradient(to right, #e6f7ff, #d0f0fd);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

#score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0078d7;
    transition: all 0.3s;
}

.score-container p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.click-area {
    margin: 30px 0;
    position: relative;
}

#click-btn {
    background: linear-gradient(145deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2),
                inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#click-btn::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

#click-btn:hover {
    background: linear-gradient(145deg, #55c459, #4db352);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25),
                inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

#click-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15),
                inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.upgrades-container {
    background: linear-gradient(to bottom, #f9f9f9, #f0f0f0);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.upgrade {
    margin: 15px 0;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.upgrade:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.upgrade-btn {
    background: linear-gradient(145deg, #2196f3, #1e88e5);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.upgrade-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

.upgrade-btn:hover {
    background: linear-gradient(145deg, #1e88e5, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.upgrade-btn:hover::after {
    left: 100%;
}

.upgrade-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upgrade-btn:disabled {
    background: linear-gradient(145deg, #cccccc, #bbbbbb);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upgrade-btn:disabled::after {
    display: none;
}

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

@keyframes floatScore {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-40px); }
}

.score-popup {
    position: absolute;
    color: #4caf50;
    font-weight: bold;
    pointer-events: none;
    animation: floatScore 1s ease-out forwards;
}

.milestone {
    background: linear-gradient(to right, #ff9966, #ff5e62);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    animation: pulse 1s infinite;
    box-shadow: 0 5px 15px rgba(255, 94, 98, 0.4);
}

.level-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(145deg, #ff9966, #ff5e62);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #2196f3, #21cbf3);
    width: 0%;
    transition: width 0.5s ease-out;
    border-radius: 5px;
}

.small {
    font-size: 0.8rem;
    color: #666;
    margin: 5px 0;
}

.stats {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

#click-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.click-effect {
    position: absolute;
    pointer-events: none;
    user-select: none;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
} 