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

body {
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

#gameCanvas {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    background-color: #1e293b;
    border: 2px solid #334155;
    cursor: crosshair;
}

#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

#dashboard {
    margin-top: 15px;
    background: rgba(15, 23, 42, 0.85);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#funds {
    font-size: 1.2rem;
    color: #4ade80;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
    text-align: center;
}

#modeSwitch {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.mode-btn {
    flex: 1;
    background: #1e293b;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

.mode-btn.active {
    background: #0ea5e9;
    color: white;
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

#btnCombat.active {
    background: #ef4444;
    border-color: #f87171;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

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

.shop-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    font-family: inherit;
    transition: all 0.2s ease;
}

.shop-btn:hover:not(:disabled) {
    background: #334155;
    border-color: #64748b;
}

.shop-btn.selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.shop-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #0f172a;
}

.shop-btn .cost {
    color: #fbbf24;
}

#title {
    color: #38bdf8;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    margin-bottom: 5px;
}

#instruction {
    background: rgba(15, 23, 42, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #334155;
    display: inline-block;
    transition: color 0.3s ease;
}

.ready {
    color: #4ade80 !important;
}