:root {
    --melon-green: #2ecc71;
    --pumpkin-orange: #f39c12;
    --bg-dark: #1a1a2e;
    --toolbar-bg: rgba(0, 0, 0, 0.4);
    --accent-blue: #0984e3;
    --danger-red: #e74c3c;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: 'Fredoka', sans-serif;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* Canvas styling */
canvas {
    display: block;
    cursor: crosshair;
}

/* LEFT TOOLBAR */
#toolbar-left {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 180px;
    background: var(--toolbar-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 10;
    color: white;
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-group .label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
}

button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

button:hover {
    background: var(--accent-blue);
    border-color: #fff;
    transform: translateX(5px);
}

button:active {
    transform: scale(0.95);
}

button.danger:hover {
    background: var(--danger-red);
}

/* HUD */
#hud {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 10;
}

/* OVERLAYS */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.menu-box {
    text-align: center;
    padding: 60px;
    background: #fff;
    border-radius: 40px;
    border: 6px solid var(--melon-green);
    max-width: 500px;
}

.logo {
    font-size: 6rem;
    margin-bottom: 20px;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: #2c3e50;
    font-weight: 900;
    margin-bottom: 10px;
}

.logo-text span {
    color: var(--melon-green);
}

.controls {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: #555;
    font-weight: bold;
}

#start-btn {
    background: var(--melon-green);
    color: white;
    font-size: 2rem;
    padding: 20px 60px;
    border-radius: 20px;
    box-shadow: 0 8px 0 #27ae60;
    justify-content: center;
}

#start-btn:hover {
    background: #27ae60;
    transform: translateY(-5px);
}

.hidden {
    display: none !important;
}