/* VARIABLES */
:root {
    --bg: #0d0d0d;
    --panel: #1a1a1a;
    --accent: #39ff14;
    --text: #e5ffe5;
    --radius: 10px;
    --speed: 0.25s ease;
    --shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

/* GENERAL */
body {
    margin: 0;
    background: var(--bg);
    font-family: "Courier New", monospace;
    color: var(--text);
}

header {
    background: var(--panel);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.logo span {
    color: var(--accent);
}

.main {
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

/* TITLES */
.title {
    margin: 20px 0 10px 0;
    text-align: center;
}

/* CARDS GRID */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--panel);
    padding: 25px 10px;
    text-align: center;
    border-radius: var(--radius);
    transition: transform var(--speed), box-shadow var(--speed),
        background var(--speed);
}

.card:hover {
    background: #222;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* ENERGY BAR */
.energy-bar {
    width: 100%;
    height: 22px;
    background: #222;
    border-radius: var(--radius);
    overflow: hidden;
}

.energy-fill {
    width: 60%;
    height: 100%;
    background: var(--accent);
    animation: pulse 1.8s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0.94);
    }
}

/* FOOTER */
.footer {
    background: var(--panel);
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

/* MEDIA QUERIES */
@media (max-width: 600px) {
    .card {
        padding: 20px;
    }
}
