/* ===========================================
   Sushi Shop - Premium Redesign
   =========================================== */
/* Mobile Responsive Fixes */
@media (max-width: 480px) {
    .game-header {
        padding: 60px 10px 10px;
    }
    .level-badge {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    .home-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 10px;
        left: 10px;
    }
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Zen Maru Gothic', sans-serif;
    touch-action: none;
    user-select: none;
}

body {
    background: linear-gradient(135deg, #3E2723 0%, #5D4037 100%);
}

.home-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

#game-container {
    max-width: 500px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Customer Area */
.customer-area {
    background: linear-gradient(180deg, #FFCC80 0%, #FFB74D 100%);
    padding: 70px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 8px solid #8D6E63;
    flex-shrink: 0; /* Header area shouldn't shrink too much */
}

@media (max-height: 600px) {
    .customer-area {
        padding-top: 50px;
        padding-bottom: 10px;
    }
    .kitchen-area {
        padding: 10px;
        min-height: 140px;
    }
    .sushi-plate {
        transform: scale(0.8);
    }
}

.customer {
    position: relative;
}

.customer-icon {
    font-size: 5rem;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    display: block;
    animation: customerBob 2s ease-in-out infinite;
}

@keyframes customerBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.speech-bubble {
    position: absolute;
    top: -30px;
    left: 80px;
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: bubblePop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 60px;
}

.order-container {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.order-item {
    font-size: 2.2rem;
    position: relative;
    transition: all 0.3s;
}

.order-item.done {
    opacity: 0.3;
    transform: scale(0.8);
    filter: grayscale(1);
}

.level-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.order-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 15px;
    color: white;
    text-align: center;
    align-self: flex-end;
}

#served-count {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.order-label {
    font-size: 0.8rem;
}

/* Counter Area */
.counter-area {
    flex: 1;
    background: linear-gradient(180deg, #4E342E 0%, #3E2723 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.sushi-plate {
    width: 200px;
    height: 120px;
    background: linear-gradient(145deg, #1B5E20 0%, #2E7D32 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.sushi-plate::before {
    content: '';
    position: absolute;
    width: 92%;
    height: 85%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.sushi-base {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.shari {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 8px;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.shari::before {
    content: '🍚';
}

.shari.active {
    opacity: 1;
    animation: shariPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes shariPop {
    0% {
        transform: scale(0);
    }

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

.neta {
    position: absolute;
    top: -30px;
    width: 70px;
    height: 70px;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.neta.active {
    opacity: 1;
    animation: netaDrop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes netaDrop {
    0% {
        transform: translateY(-30px) scale(0);
        opacity: 0;
    }

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

.serve-button {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 0 #B71C1C, 0 10px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.serve-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.serve-button:not(.disabled):active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #B71C1C;
}

/* Kitchen Area */
.kitchen-area {
    background: white;
    padding: 20px;
    border-radius: 30px 30px 0 0;
    min-height: 160px; /* Slightly reduced */
    flex-shrink: 0;
}

.step-section {
    text-align: center;
}

.step-section.hidden {
    display: none;
}

.step-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.shari-btn {
    width: 120px;
    height: 100px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 3px solid #FFC107;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 0 #FFA000;
    transition: transform 0.1s;
    font-family: inherit;
}

.shari-btn:active {
    transform: translateY(5px);
    box-shadow: none;
}

.btn-icon {
    font-size: 2.5rem;
}

.btn-text {
    font-size: 1rem;
    font-weight: bold;
    color: #5D4037;
}

.neta-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.neta-btn {
    width: 80px;
    height: 90px;
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.neta-btn:active {
    transform: scale(0.95);
    background: #f5f5f5;
}

.neta-btn .btn-icon {
    font-size: 2rem;
}

.neta-btn .btn-text {
    font-size: 0.75rem;
    color: #666;
}

/* Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.particle {
    position: absolute;
    font-size: 2rem;
    animation: particleFly 1s ease-out forwards;
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

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

.success-modal {
    background: white;
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    animation: modalPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalPop {
    0% {
        transform: scale(0);
    }

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

.customer-eating {
    font-size: 4rem;
    animation: eating 0.4s ease-in-out infinite;
}

@keyframes eating {

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

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

.success-modal h2 {
    font-size: 1.5rem;
    color: #E53935;
    margin: 15px 0;
}

.stars {
    font-size: 2rem;
    margin-bottom: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
}