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

body {
    font-family: 'Courier New', monospace;
    background: #000000;
    min-height: 100vh;
    color: #00ff00;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Matrix Background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ff00;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 20px rgba(0, 255, 0, 0.1);
    padding: 30px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #00ff00;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

header h1 {
    font-size: 3em;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.5);
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2em;
    color: #00cc00;
    font-style: italic;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid #00ff00;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.stat-item h2 {
    font-size: 2em;
    color: #00ff00;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.stat-item p {
    color: #00cc00;
    font-size: 0.9em;
}

.click-section {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.click-button {
    font-size: 1.3em;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
}

.click-button.gear-button {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.click-button.gear-button:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.click-button.blessing-button {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.click-button.blessing-button:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.click-button:hover {
    transform: scale(1.05);
}

.click-button:active {
    transform: scale(0.98);
}

.loot-box-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid #00ff00;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.loot-box-button {
    font-size: 1.2em;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transition: all 0.3s ease;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
}

.loot-box-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.8);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.loot-box-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #004400;
}

.loot-box-cost {
    margin-top: 10px;
    color: #00cc00;
    font-size: 0.9em;
}

.random-bubble {
    position: fixed;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    z-index: 1000;
    font-size: 1.1em;
    font-weight: bold;
    color: #00ff00;
    pointer-events: none;
    animation: fadeInOut 3s ease-in-out;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    font-family: 'Courier New', monospace;
}

.random-bubble.hidden {
    display: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.click-emoji {
    font-size: 1.5em;
}

.upgrade-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    color: #00cc00;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.tab-button:hover {
    background: rgba(0, 20, 0, 0.8);
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.tab-button.active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    border-color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.upgrade-category {
    display: none;
    margin-top: 20px;
}

.upgrade-category.active {
    display: block;
}

.upgrade-category h2 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.upgrade-list {
    display: grid;
    gap: 15px;
}

.upgrade-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    position: relative;
    will-change: auto;
    transform: translateZ(0);
}

.upgrade-item:hover {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.upgrade-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 10, 0, 0.6);
    border-color: #004400;
}

.upgrade-item.unavailable {
    opacity: 0.3;
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.upgrade-tier {
    font-size: 0.9em;
    color: #00cc00;
    font-weight: bold;
    margin-bottom: 5px;
}

.upgrade-effect {
    font-size: 0.9em;
    color: #00cc00;
    margin-bottom: 5px;
}

.upgrade-count {
    font-size: 0.9em;
    color: #009900;
}

.upgrade-cost {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.upgrade-cost .buy-button {
    pointer-events: auto;
}

.cost-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.buy-button {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    will-change: auto;
    transform: translateZ(0);
    min-width: 80px;
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.buy-button:hover:not(:disabled) {
    background: rgba(0, 20, 0, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.buy-button:active:not(:disabled) {
    opacity: 0.8;
}

.buy-button:disabled {
    background: rgba(0, 10, 0, 0.4);
    border-color: #004400;
    color: #004400;
    cursor: not-allowed;
    box-shadow: none;
}

.god-panel {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #00ff00;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
}

.god-panel.hidden {
    display: none;
}

.god-panel h2 {
    font-size: 3em;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 40px rgba(0, 255, 0, 0.8);
    margin-bottom: 20px;
}

.god-panel p {
    font-size: 1.5em;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.sound-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.sound-toggle-button:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    transform: scale(1.1);
    background: rgba(0, 20, 0, 0.9);
}

.sound-toggle-button:active {
    transform: scale(0.95);
}

.sound-toggle-button.muted {
    opacity: 0.5;
    border-color: #004400;
}

.sound-toggle-button.muted::before {
    content: '🔇';
}

.sound-toggle-button.muted::after {
    content: '';
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2em;
    }

    .click-button {
        font-size: 1.2em;
        padding: 20px 40px;
    }

    .upgrade-item {
        flex-direction: column;
        text-align: center;
    }

    .upgrade-cost {
        align-items: center;
        width: 100%;
        margin-top: 15px;
    }
}

