:root {
    --mustard: #ffdb58;
    --ketchup: #990000;
    --paper: #f4e4bc;
    --chalk: #1a1a1a;
}

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

#game-container {
    position: relative;
    border: 8px solid #333;
    box-shadow: 0 0 50px #000;
}

canvas {
    background: #1a1a1a;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
    color: var(--mustard);
}

.overlay h1 {
    font-size: 3rem;
    margin: 20px 0;
    color: var(--mustard);
    text-shadow: 3px 3px 0 var(--ketchup);
}

.overlay h2 {
    font-size: 2rem;
    margin: 20px 0;
}

.overlay p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #fff;
}

.hidden {
    display: none !important;
}

.big-btn {
    background: var(--mustard);
    border: 3px solid #000;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.big-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--mustard);
}

.big-btn:active {
    transform: scale(0.95);
}

.stats-bar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 10px;
    border-bottom: 3px solid var(--mustard);
    pointer-events: auto;
    z-index: 5;
}

.stat-item {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--mustard);
    padding: 5px 15px;
    background: rgba(255, 219, 88, 0.1);
    border-radius: 5px;
}

.speed-controls {
    display: flex;
    gap: 5px;
}

.speed-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #555;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--mustard);
}

.speed-btn.active {
    background: var(--mustard);
    color: #000;
    border-color: var(--mustard);
}

.action-btn {
    padding: 10px 20px;
    background: var(--ketchup);
    border: 2px solid #000;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

#tower-panel {
    position: absolute;
    right: 10px;
    top: 80px;
    width: 220px;
    background: var(--paper);
    color: #000;
    padding: 15px;
    border: 4px solid var(--ketchup);
    pointer-events: auto;
    z-index: 5;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.panel-header {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    color: var(--ketchup);
    border-bottom: 2px solid var(--ketchup);
    padding-bottom: 5px;
}

#tower-panel p {
    margin: 8px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.tower-btn {
    width: 100%;
    margin: 5px 0;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    background: var(--chalk);
    color: #fff;
    border: 2px solid #000;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.tower-btn:hover {
    background: var(--mustard);
    color: #000;
    transform: translateX(3px);
}

.tower-btn:active {
    transform: scale(0.95);
}

.hotkey-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--mustard);
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
    z-index: 5;
}

.hotkey-hint {
    color: var(--mustard);
    font-size: 0.9rem;
    margin: 3px 0;
    text-align: left;
}

.hotkey-hints {
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

.hotkey-hints p {
    margin: 5px 0;
    color: #888;
}