﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #1b1c20;
    color: #e0e0e0;
}

.game-title {
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255,255,255,0.25);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.resources,
.generators,
.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
}

.resource-panel,
.generator-panel,
.speed-panel {
    background: linear-gradient(180deg, #2d2f36 0%, #1f2024 100%);
    border: 1px solid #3a3d45;
    border-radius: 10px;
    max-width: 250px;
    padding: 1rem;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .resource-panel:hover,
    .generator-panel:hover,
    .speed-panel:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 12px rgba(0,0,0,0.6);
    }

    .resource-panel p {
        margin: 0.25rem 0;
        font-size: 1.1rem;
    }

    .generator-panel h2,
    .speed-panel h3 {
        margin-top: 0;
        margin-bottom: 0.5rem;
        color: #f0f0f0;
        font-weight: 600;
        text-shadow: 0 0 4px rgba(255,255,255,0.2);
    }

    .generator-panel p {
        margin: 0.25rem 0;
        color: #c7c7c7;
        font-size: 0.9rem;
    }

    .generator-panel button,
    .speed-panel button {
        margin-top: 0.75rem;
        width: 100%;
        padding: 0.5rem;
        background: linear-gradient(180deg, #4a8cff 0%, #2f6fe0 100%);
        border: 1px solid #1e4fa8;
        border-radius: 6px;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s ease, box-shadow 0.15s ease;
    }

        .generator-panel button:hover,
        .speed-panel button:hover {
            background: linear-gradient(180deg, #5a9cff 0%, #3f7ff0 100%);
            box-shadow: 0 0 8px rgba(80,140,255,0.6);
        }

        .generator-panel button:active,
        .speed-panel button:active {
            background: linear-gradient(180deg, #3f7ff0 0%, #2f6fe0 100%);
            transform: scale(0.97);
        }

        .speed-panel button.speed-active {
            background: linear-gradient(180deg, #ffd86b 0%, #e6b84a 100%);
            border-color: #c9a200;
            color: #000;
            box-shadow: 0 0 10px rgba(255,215,100,0.5);
        }

#gold-label {
    color: #ffd86b;
    text-shadow: 0 0 4px rgba(255,215,100,0.4);
}

#goal-label {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

#platinum-label {
    color: #e5e4e2;
    text-shadow: 0 0 6px rgba(224, 224, 224, 0.6), 0 0 12px rgba(192, 192, 192, 0.6);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #3a3d45;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd86b, #ffb84a);
    transition: width 0.25s ease;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .modal.hidden {
        display: none;
    }

.modal-content {
    background: #222;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

    .modal-content button {
        margin-top: 15px;
        padding: 10px 20px;
        cursor: pointer;
    }

#float-container {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.float-text {
    position: absolute;
    font-weight: bold;
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
    transform: translateX(-50%);
}

.float-gold {
    color: #ffd86b;
    text-shadow: 0 0 6px rgba(255,215,100,0.6);
}

.float-platinum {
    color: #e5e4e2;
    text-shadow: 0 0 8px rgba(224,224,224,0.8);
}

@keyframes floatUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -40px);
    }
}
