:root {
    --main-color: #0f0;
    --dim-color: #005500;
    --bg-color: #050505;
    --alert-color: #f00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--main-color);
    font-family: 'VT323', monospace;
    height: 100vh;
    overflow: hidden;
    font-size: 20px;
    display: flex;
    justify-content: center;
}

/* CRT Overlay Effect */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 999;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 1px solid var(--dim-color);
    border-right: 1px solid var(--dim-color);
}

header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 10px;
}

h1 {
    font-size: 2rem;
    text-shadow: 0 0 5px var(--main-color);
    margin-bottom: 10px;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.stats-panel {
    display: flex;
    justify-content: space-between;
    background: #001100;
    padding: 10px;
    border: 1px solid var(--main-color);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.8rem;
    color: var(--dim-color);
}

.value {
    font-size: 1.5rem;
    font-weight: bold;
}

.terminal-window {
    height: 150px;
    border: 1px solid var(--dim-color);
    padding: 10px;
    margin-bottom: 20px;
    overflow-y: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.line {
    opacity: 0.8;
}

.cyber-btn {
    width: 100%;
    background: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 20px;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.1s;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.cyber-btn:active {
    background: var(--main-color);
    color: black;
    box-shadow: 0 0 15px var(--main-color);
}

.small-btn {
    font-size: 1rem;
    padding: 10px;
    border: 1px dashed var(--dim-color);
    color: var(--dim-color);
}

.small-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    box-shadow: none;
}

.upgrades-panel {
    flex: 1;
    overflow-y: auto;
    border-top: 2px dashed var(--dim-color);
    padding-top: 10px;
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--dim-color);
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.upgrade-item:hover {
    border-color: var(--main-color);
    background: #001100;
}

.upgrade-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.upgrade-info h3 {
    font-size: 1.2rem;
}

.upgrade-info p {
    font-size: 0.9rem;
    color: #888;
}

.upgrade-cost {
    text-align: right;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--dim-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--main-color);
}

/* Floating Text Animation */
.floating-text {
    position: absolute;
    color: var(--main-color);
    font-weight: bold;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    z-index: 1000;
    text-shadow: 0 0 5px var(--main-color);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px) scale(1);
        opacity: 0;
    }
}