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

body {
    background: #1a1a2e;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#gameHeader {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 20px;
    background: #16213e;
    border-radius: 8px;
    border: 2px solid #0f3460;
}

.header-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-item .label {
    font-size: 11px;
    color: #a0a0a0;
    text-transform: uppercase;
}

.header-item .value {
    font-size: 18px;
    font-weight: bold;
    color: #e94560;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-start {
    background: #e94560;
    color: white;
}

.btn-start:hover {
    background: #ff6b81;
}

.btn-primary {
    background: #4a90d9;
    color: white;
    padding: 12px 30px;
    font-size: 18px;
}

.btn-primary:hover {
    background: #5ba3ec;
}

#gameCanvas {
    border: 2px solid #0f3460;
    border-radius: 8px;
    cursor: crosshair;
    background: #2d5016;
}

#towerPanel {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    background: #16213e;
    border-radius: 8px;
    border: 2px solid #0f3460;
}

.tower-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    min-width: 80px;
}

.tower-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tower-option.selected {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.2);
}

.tower-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tower-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.tower-option span {
    font-size: 11px;
}

.tower-cost {
    color: #ffd700;
    font-weight: bold;
}

#gameOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.overlay-screen {
    text-align: center;
    padding: 40px;
    background: #16213e;
    border-radius: 12px;
    border: 3px solid #0f3460;
    max-width: 500px;
}

.overlay-screen h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.overlay-screen p {
    font-size: 16px;
    margin: 10px 0;
    color: #ccc;
}

.instructions {
    margin: 20px 0;
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.instructions h3 {
    color: #e94560;
    margin-bottom: 10px;
}

.instructions p {
    font-size: 14px;
    margin: 5px 0;
}

.hidden {
    display: none;
}

#towerPanel .tower-option.selected {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.2);
    transform: scale(1.05);
}
