﻿/* ============================================================
   GAME GRAPHICS - VECTOR/CARTOON STYLE
   ============================================================ */

/* Bases de Torta (CSS Art) */
.cake-graphic {
    width: 140px;
    height: 80px;
    border-radius: 50% / 25%;
    position: relative;
    box-shadow: 0 15px 0 rgba(0,0,0,0.15), inset 0 -5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
}

.cake-graphic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35%;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

/* Sabores de Base */
.cake-graphic.base-Chocolate {
    background: linear-gradient(135deg, #6d4021, #472611);
    box-shadow: 0 15px 0 #2e1608, inset 0 -5px 15px rgba(0,0,0,0.3);
}

.cake-graphic.base-Vainilla {
    background: linear-gradient(135deg, #f5d6a0, #e6bc75);
    box-shadow: 0 15px 0 #c79d50, inset 0 -5px 15px rgba(0,0,0,0.1);
}

.cake-graphic.base-Red-Velvet {
    background: linear-gradient(135deg, #b83232, #851b1b);
    box-shadow: 0 15px 0 #571010, inset 0 -5px 15px rgba(0,0,0,0.3);
}

/* Rellenos (Sobre la base) */
.cake-graphic .filling-layer {
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 30px;
    border-radius: 50% / 40%;
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.cake-graphic.has-filling .filling-layer {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.filling-Arequipe {
    background: #d99a4c;
    box-shadow: 0 5px 0 #ab712e, inset 0 5px 10px rgba(255,255,255,0.4);
}

.filling-Ganache {
    background: #361e0e;
    box-shadow: 0 5px 0 #1c0e05, inset 0 5px 10px rgba(255,255,255,0.1);
}

.filling-Crema {
    background: #fffdf5;
    box-shadow: 0 5px 0 #d9d6c8, inset 0 5px 10px rgba(255,255,255,0.8);
}

/* Toppings (Frutas / Decoraciones) */
.topping-graphic {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 3;
    animation: dropTopping 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dropTopping {
    0% { transform: translateY(-50px) scale(0.5); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.topping-Fresas {
    background: radial-gradient(circle at 30% 30%, #ff4d4d, #cc0000);
    border-radius: 50% 50% 50% 10%;
    transform: rotate(45deg);
    box-shadow: -2px 2px 4px rgba(0,0,0,0.3);
}

.topping-Fresas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #33cc33;
    border-radius: 50%;
    transform: translate(-3px, -3px);
}

.topping-Cerezas {
    background: radial-gradient(circle at 30% 30%, #ff1a1a, #990000);
    border-radius: 50%;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.3);
}
.topping-Cerezas::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 15px;
    width: 2px;
    height: 12px;
    background: #5c3a21;
    transform: rotate(20deg);
}

.topping-Chispas {
    width: 40px;
    height: 40px;
    background-image: 
        radial-gradient(circle, #ff0 2px, transparent 2px),
        radial-gradient(circle, #0ff 2px, transparent 2px),
        radial-gradient(circle, #f0f 2px, transparent 2px);
    background-position: 10px 10px, 20px 25px, 30px 5px;
    background-size: 40px 40px;
    border-radius: 50%;
}

/* Ajustes a los botones de estación para usar las nuevas clases en lugar de Emojis */
.station-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px !important;
    border-radius: 12px !important;
    font-weight: bold;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2) !important;
}

.station-btn:active {
    transform: translateY(4px) !important;
    box-shadow: 0 0 0 rgba(0,0,0,0) !important;
}

.station-btn-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Miniaturas para los botones */
.station-btn-icon.mini-cake { width: 40px; height: 25px; margin-bottom: 5px; }
.station-btn-icon.mini-fresa { transform: scale(0.7); }
.station-btn-icon.mini-cereza { transform: scale(0.7); }

/* Área de trabajo de la torta */
.top-cake-workspace {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, transparent 60%);
}

.top-placed-toppings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}