body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #00ff00;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    min-height: 100vh;
}

h1 {
    color: #ffff00;
    text-shadow: 0 0 20px #ffff00, 0 0 40px #ffff00;
    margin-bottom: 10px;
    font-size: 24px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.subtitle {
    color: #00ffff;
    font-size: 10px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #00ffff;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px #ffff00, 0 0 40px #ffff00; }
    to { text-shadow: 0 0 30px #ffff00, 0 0 60px #ffff00, 0 0 80px #ffff00; }
}

.restaurant-area {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 0 50px;
}

.kitchen, .table {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    padding: 15px 25px;
    border-radius: 10px;
    color: #00ff00;
    font-size: 10px;
    text-shadow: 0 0 10px #00ff00;
}

.menu-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.menu {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #00ff00;
    border-radius: 15px;
    padding: 20px;
    min-width: 280px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.menu h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 14px;
    text-shadow: 0 0 15px #ff6b6b;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: #00ffff;
    border: 2px solid #4ecdc4;
    padding: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
}

button .icon {
    font-size: 16px;
}

button .name {
    flex-grow: 1;
    margin-left: 15px;
}

button .price {
    color: #ffd700;
    font-weight: bold;
}

button:hover {
    background: linear-gradient(45deg, #4ecdc4, #45b7af);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

button.selected {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
    box-shadow: 0 0 20px #00ff00;
    animation: selectedPulse 1s ease-in-out infinite alternate;
}

@keyframes selectedPulse {
    from { box-shadow: 0 0 20px #00ff00; }
    to { box-shadow: 0 0 30px #00ff00, 0 0 40px #00ff00; }
}

.game-area {
    height: 150px;
    position: relative;
    margin: 30px auto;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.camarero {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.camarero-sprite {
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 10px;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.item-carrying {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    opacity: 0;
}

.camarero.delivering-bebida {
    animation: deliverBebida 4s ease-in-out;
}

.camarero.delivering-plato {
    animation: deliverPlato 4s ease-in-out;
}

.camarero.delivering-postre {
    animation: deliverPostre 4s ease-in-out;
}

@keyframes deliverBebida {
    0% { left: 50%; transform: translateX(-50%); }
    25% { left: 10%; transform: translateX(-50%) scaleX(-1); }
    50% { left: 10%; transform: translateX(-50%) scaleX(-1); }
    75% { left: 90%; transform: translateX(-50%) scaleX(1); }
    100% { left: 50%; transform: translateX(-50%); }
}

@keyframes deliverPlato {
    0% { left: 50%; transform: translateX(-50%); }
    25% { left: 15%; transform: translateX(-50%) scaleX(-1); }
    50% { left: 15%; transform: translateX(-50%) scaleX(-1); }
    75% { left: 85%; transform: translateX(-50%) scaleX(1); }
    100% { left: 50%; transform: translateX(-50%); }
}

@keyframes deliverPostre {
    0% { left: 50%; transform: translateX(-50%); }
    25% { left: 20%; transform: translateX(-50%) scaleX(-1); }
    50% { left: 20%; transform: translateX(-50%) scaleX(-1); }
    75% { left: 80%; transform: translateX(-50%) scaleX(1); }
    100% { left: 50%; transform: translateX(-50%); }
}

.status {
    margin: 20px;
    color: #00ffff;
    min-height: 40px;
    font-size: 14px;
    text-shadow: 0 0 10px #00ffff;
}

.progress {
    width: 400px;
    height: 25px;
    background: #333;
    border: 3px solid #00ff00;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00ffff, #ffff00);
    width: 0%;
    transition: width 0.5s ease;
    animation: progressGlow 1s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    from { box-shadow: 0 0 10px rgba(0, 255, 0, 0.5); }
    to { box-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 0 30px rgba(0, 255, 0, 0.4); }
}

.order-summary {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    text-align: left;
}

.order-summary h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 15px;
}

.order-item {
    margin: 10px 0;
    color: #00ff00;
}

.order-item span {
    color: #00ffff;
}

#procesar {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    width: 250px;
    height: 50px;
    margin: 20px auto;
    font-size: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

#procesar:hover {
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

#procesar:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.factura {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ffd700;
    padding: 25px;
    margin: 30px auto;
    max-width: 450px;
    border-radius: 15px;
    display: none;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.factura h3 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #ffd700;
}

.item {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.total {
    border-top: 2px solid #ffd700;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #00ff00;
}

footer {
    margin-top: 50px;
    padding: 30px;
    border-top: 3px solid #00ff00;
    background: rgba(0, 0, 0, 0.8);
}

footer a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
        align-items: center;
    }
    
    .restaurant-area {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}