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

:root {
    --bg-dark: #0a0a12;
    --bg-card: #12121a;
    --text-main: #e0e0e0;
    --text-dim: #666680;
    --accent: #7c5ce7;
    --accent-glow: #9d7cff;
    --energy: #00d4ff;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding: 20px;
}

#game-container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: var(--accent-glow);
    text-shadow: 0 0 20px var(--accent);
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.subtitle {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
}

#resource-display {
    background: var(--bg-card);
    border: 1px solid #1a1a25;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

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

.resource-row:last-child {
    margin-bottom: 0;
}

.resource {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.9rem;
}

.res-name {
    color: var(--text-dim);
}

.res-rate {
    color: var(--energy);
    font-size: 0.75rem;
}

#forge-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #1a1a25;
}

#btn-forge {
    background: linear-gradient(135deg, var(--accent) 0%, #5c3ce7 100%);
    color: white;
    border: 2px solid var(--accent-glow);
    padding: 14px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 4px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 0 20px rgba(124, 92, 231, 0.4);
}

#btn-forge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(124, 92, 231, 0.6);
}

#btn-forge:active {
    transform: scale(0.95);
}

#forge-count {
    color: var(--text-dim);
    font-size: 0.85rem;
}

#generators {
    background: var(--bg-card);
    border: 1px solid #1a1a25;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

#generators h3 {
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 12px;
    font-weight: normal;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

#generator-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.generator {
    background: #0d0d14;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #1a1a25;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.generator:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(124, 92, 231, 0.2);
}

.generator-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.generator-name {
    color: var(--accent-glow);
    font-size: 0.95rem;
}

.generator-desc {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.generator-stats {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.generator-owned {
    color: var(--text-main);
    font-size: 0.9rem;
}

.generator-cost {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.generator-cost.affordable {
    color: var(--energy);
}

#actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--accent);
    padding: 8px 20px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

button:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

#stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    background: var(--bg-card);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #1a1a25;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.85rem;
}

.stat .label {
    color: var(--text-dim);
}

#qe-mult {
    color: var(--energy);
    font-size: 0.75rem;
}

footer {
    text-align: center;
    margin-top: 25px;
}

#message {
    color: var(--text-dim);
    font-size: 0.85rem;
}
