* {
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    font-family: 'Helvetica';
    color: white;
    height: 100vh;
}

#webgl-scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #11181a;
}

.html-content-container {
    pointer-events: none;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
}
.hud-box {
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 12px 20px;
    border: none !important;
    border-radius: 0 !important;
    font-family: sans-serif;
    color: #fff;
    display: flex;
    justify-content: center; /* Center contents */
    gap: 10px;
    align-items: center;
    font-size: 24px;
    line-height: 1.2;
    z-index: 1000;
    white-space: normal;
    flex-wrap: wrap;
    width: 100%;
}





.hud-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.hud-box {
    background: #1C2B40;
    padding: 10px 20px;
    border-radius: 12px;
    color: #FFC857;
    display: flex;
    justify-content: center; /* center items horizontally */
    align-items: center;
    gap: 10px; /* space between label and value */
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    min-width: 240px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border: 1px solid #2F3F5E;
}

.hud-funds {
    font-size: 42px;
    font-weight: bold;
    color: #00B8C6; /* aqua */
}

.hud-label {
    color: #AAB8C2; /* muted blue-gray */
    font-weight: 500;
}

.hud-value {
    font-size: 22px;
    font-weight: bold;
    color: #00B8C6; /* aqua */
}


#funds-display {
    top: 70px;
}


#score-display {
    top: 144px;
}






/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    /*background: #1e1e1e;*/
    background: rgba(30, 30, 30, 0.2);
    color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.modal-title {
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

/* Upgrade List */
.upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upgrade-card {
    background: #262626;
    border: 1px solid #555;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    padding-left: 64px;
}

.upgrade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.upgrade-level {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    border: 1px solid #444;
    color: #0ff;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    font-family: monospace;
    pointer-events: none;
}

.upgrade-icon {
    font-size: 28px;
    margin-right: 16px;
    color: #facc15;
}

.upgrade-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.upgrade-title {
    font-size: 18px;
    font-weight: 600;
}

.upgrade-cta {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    align-self: stretch;
    text-align: center;
}

.upgrade-cta:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Close Button */
.close-button {
    margin-top: 25px;
    padding: 10px 20px;
    background: #444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.close-button:hover {
    background: #555;
}

.upgrade-cta.not-enough {
    background-color: #a94442 !important;
    color: white !important;
    transition: background-color 0.2s;
}


.start-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #004488, #001122);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.start-modal-content {
    background: #fff8e1;
    border: 5px solid #ff6600;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.6);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.start-title {
    font-size: 2rem;
    color: #ff6600;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #fff;
}

.start-subtitle {
    font-size: 1.2rem;
    color: #004488;
    margin-bottom: 20px;
}

.start-input {
    font-size: 1.1rem;
    padding: 10px;
    width: 80%;
    max-width: 300px;
    border: 2px solid #004488;
    border-radius: 10px;
    margin-bottom: 20px;
}

.start-button {
    background-color: #ff6600;
    color: white;
    font-size: 1.2rem;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.start-button:hover {
    background-color: #e65c00;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #001122;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #ff6600;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.upgrade-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: opacity, transform;
    font-size: 64px;
    font-weight: bold;
    color: #00ffcc;
    text-shadow: 2px 2px 12px #000;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

.upgrade-popup.show {
    opacity: 1;
    animation: popupFade 1.5s ease-out forwards;
}

@keyframes popupFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}


/*# sourceMappingURL=main.css.map*/