:root {
    --primary: #FF4D00;
    --primary-dark: #CC3D00;
    --secondary: #4CAF50;
    --bg-color: #FFF5E6;
    --text-color: #333;
    --accent: #FFD700;
    --glass: rgba(255, 255, 255, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height: 900px;
    background-color: var(--bg-color);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* UI Elements */
#game-ui {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.stat-box {
    background: var(--glass);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 15px;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-box .label {
    font-weight: 900;
    color: var(--primary);
    font-size: 14px;
}

.stat-box span:not(.label) {
    font-weight: 900;
    font-size: 24px;
    margin-left: 5px;
}

.hidden {
    display: none !important;
}

/* Overlays */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    transition: opacity 0.3s;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.menu-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.5));
}

.menu-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: Bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 0 var(--primary-dark);
    transition: all 0.1s;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    width: 100%;
    margin-top: 20px;
}

/* Customer Area */
#customer-area {
    flex: 1;
    background: url('street_bg.png') center bottom;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 20px;
    position: relative;
    border-bottom: 12px solid #3E2723;
    /* Counter edge */
}

#customer {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#customer.hidden {
    transform: translateX(100%);
    opacity: 0;
}

.bubble {
    background: white;
    padding: 15px;
    border-radius: 20px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.bubble:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

#order-items {
    display: flex;
    gap: 10px;
    font-size: 24px;
    margin-top: 5px;
    justify-content: center;
}

.customer-sprite {
    font-size: 80px;
}

#prep-area {
    background: #5D4037 url('shop_counter.png') center top;
    background-size: cover;
    padding: 20px;
    border-top: 5px solid #795548;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #3E2723;
}

#counter-top {
    display: grid;
    grid-template-areas: "bases ingredients drinks";
    grid-template-columns: 1fr 1.5fr 0.8fr;
    gap: 15px;
}

#base-selection {
    grid-area: bases;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.base-pit {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    font-weight: 700;
    border: 2px solid #D7CCC8;
}

.base-pit img {
    height: 40px;
    width: auto;
}

.base-pit:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

#ingredients {
    grid-area: ingredients;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ingredient {
    background: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid #D7CCC8;
}

#drinks-area {
    grid-area: drinks;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#tray-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

#tray {
    flex: 1;
    min-height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tray-contents {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 24px;
    justify-content: center;
    margin-bottom: 5px;
    z-index: 5;
}

#tray-drink {
    font-size: 30px;
    margin-bottom: 5px;
    z-index: 5;
}

#current-lavas {
    background: rgba(245, 245, 220, 0.95);
    width: 140px;
    min-height: 100px;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#trash-btn {
    background: #FF4444;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
    margin-top: 5px;
}

#trash-btn:active {
    transform: scale(0.9);
}

#serve-btn {
    grid-area: serve;
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.pop {
    animation: bounce 0.2s ease;
}