/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #87cefa; /* Cartoon-Himmelblau */
    font-family: "Comic Sans MS", Arial, sans-serif;
}

#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

/* --------------------------------------------------
   UI BUTTONS (Bloons Style)
-------------------------------------------------- */
#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

#ui button {
    padding: 12px 26px;
    font-size: 22px;
    cursor: pointer;

    background: linear-gradient(180deg, #ffdd6e, #ffb300);
    border: 4px solid #d48b00;
    border-radius: 14px;

    color: #4a2b00;
    font-weight: bold;
    text-shadow: 0 2px #fff2c4;

    box-shadow: 0 6px 0 #b06a00;
    transition: transform 0.1s;
}

#ui button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #b06a00;
}

/* --------------------------------------------------
   STATS BOX (oben rechts, Cartoon)
-------------------------------------------------- */
#statsBox {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 200px;
    padding: 15px;

    background: linear-gradient(180deg, #ffe28a, #ffbf3f);
    border: 4px solid #d48b00;
    border-radius: 18px;

    color: #4a2b00;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 2px #fff2c4;

    box-shadow: 0 6px 0 #b06a00;
    z-index: 20;
}

/* --------------------------------------------------
   HOTBAR (unten links, Cartoon)
-------------------------------------------------- */
#hotbar {
    position: absolute;
    bottom: 20px;
    left: 20px;

    display: flex;
    gap: 18px;

    background: linear-gradient(180deg, #ffe28a, #ffbf3f);
    padding: 14px 20px;
    border-radius: 18px;

    border: 4px solid #d48b00;
    box-shadow: 0 6px 0 #b06a00;

    z-index: 10;
}

.hotbarItem {
    position: relative;
    width: 70px;
    height: 70px;
    cursor: pointer;
}

/* Tower Icon */
.hotbarItem img {
    width: 100%;
    height: 100%;
    border-radius: 12px;

    border: 4px solid #d48b00;
    background: #fff7d1;

    transition: transform 0.15s, box-shadow 0.15s;
}

/* Hover Effekt */
.hotbarItem img:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
}

/* Ausgewählter Tower */
.hotbarItem.selected img {
    outline: 4px solid #00d4ff;
    transform: scale(1.18);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

/* --------------------------------------------------
   PREIS-BOX (Cartoon)
-------------------------------------------------- */
.priceBox {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);

    width: 80px;
    text-align: center;

    background: linear-gradient(180deg, #ffdd6e, #ffb300);
    color: #4a2b00;
    padding: 4px 0;

    border: 3px solid #d48b00;
    border-radius: 12px;

    font-size: 15px;
    font-weight: bold;
    text-shadow: 0 2px #fff2c4;

    pointer-events: none;
}

/* --------------------------------------------------
   TOOLTIP (Cartoon)
-------------------------------------------------- */
.tooltip {
    position: absolute;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);

    width: 150px;
    padding: 10px;

    background: linear-gradient(180deg, #fff7d1, #ffe28a);
    color: #4a2b00;

    border-radius: 14px;
    border: 3px solid #d48b00;

    font-size: 15px;
    font-weight: bold;
    text-align: center;

    box-shadow: 0 4px 0 #b06a00;

    display: none;
    pointer-events: none;
}

/* Tooltip anzeigen */
.hotbarItem:hover .tooltip {
    display: block;
}
