* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    user-select: none;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.hud-top {
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.hud-pill {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 20px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.hud-pill.interactable {
    cursor: pointer;
    border-style: solid;
    transition: all 0.2s ease;
}

.hud-pill.interactable:hover {
    background: rgba(251, 133, 0, 0.25);
    border-color: #fb8500;
    transform: translateY(-2px);
}

.hud-pill.highlight {
    border-color: #f59e0b;
    color: #f59e0b;
}

#superweapon-container {
    position: absolute;
    right: 20px;
    top: 20px;
    pointer-events: auto;
}

.super-btn {
    background: rgba(244, 162, 97, 0.1);
    border: 2px solid rgba(244, 162, 97, 0.3);
    border-radius: 20px;
    padding: 12px 24px;
    color: #f4a261;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.super-btn:hover:not(:disabled) {
    background: rgba(244, 162, 97, 0.3);
    border-color: #f4a261;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(244, 162, 97, 0.5);
}

.super-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.super-timer {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.8;
}

.hud-bottom {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 12px 24px;
    pointer-events: auto;
    align-self: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.build-group {
    display: flex;
    gap: 10px;
}

.border-left {
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 15px;
}

.build-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 90px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.build-btn:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.build-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.build-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

#radar-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#radarCanvas {
    background: #020c1b;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.overlay h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.restart-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

.restart-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}
