* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    user-select: none;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.shop-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/kebabsim/background.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
}

#customer-zone {
    position: absolute;
    bottom: 22vh;
    left: 10vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.character-sprite {
    width: 18vw;
    max-width: 230px;
    min-width: 130px;
    height: auto;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.6));
    transition: transform 0.8s ease-in-out, width 0.3s ease;
}

.character-sprite.raid-boss {
    width: 32vw;
    max-width: 480px;
    min-width: 240px;
    transform: translateY(25vh);
}

#customer-zone:has(.raid-boss) .speech-bubble {
    transform: translateY(25vh);
}

#seller-zone {
    position: absolute;
    bottom: 0vh;
    left: 45vw;
    z-index: 4;
}

#seller-img {
    width: 32vw;
    max-width: 480px;
    min-width: 240px;
    height: auto;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.6));
    transition: transform 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045);
    transform-origin: bottom center;
}

#seller-img.fallen {
    transform: rotate(90deg) translateY(20%);
}

.speech-bubble {
    background: #fff;
    color: #000;
    padding: 1.2vh 1.4vw;
    border-radius: 12px;
    font-weight: bold;
    font-size: clamp(0.85rem, 1.2vw, 1.3rem);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 1vh;
    text-align: center;
    max-width: 24vw;
    position: relative;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent;
}

.receipt-box {
    position: absolute;
    top: 90px;
    right: 4vw;
    background: #fffef0;
    border: 1px dashed #444;
    padding: 15px 20px;
    width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    z-index: 15;
    font-family: 'Courier New', Courier, monospace;
}

.receipt-title {
    font-weight: bold;
    text-align: center;
    border-bottom: 2px dashed #000;
    padding-bottom: 5px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: black;
}

#receipt-list {
    list-style: none;
}

#receipt-list li {
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: black;
}

#receipt-list li.completed {
    text-decoration: line-through;
    color: #888;
}

.hud-overlay {
    position: absolute;
    top: 90px;
    left: 2vw;
    display: flex;
    gap: 0.8vw;
    z-index: 10;
    align-items: center;
}

.hud-box {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #f39c12;
    color: #f39c12;
    padding: 1vh 1.2vw;
    border-radius: 8px;
    font-size: clamp(0.8rem, 1.1vw, 1.1rem);
    font-weight: bold;
}

.bgm-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bgm-control input[type="range"] {
    width: 80px;
    cursor: pointer;
    accent-color: #f39c12;
}

#station-kebab-roll {
    position: absolute;
    right: 8.5vw;
    top: 30vh;
    width: 13vw;
    height: 44vh;
    aspect-ratio: 1 / 2;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

#station-toppings {
    position: absolute;
    right: 1vw;
    bottom: 2vh;
    width: 13vw;
    height: 22vh;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

#station-sauces {
    position: absolute;
    right: 46vw;
    bottom: 25vh;
    width: 14vw;
    height: 20vh;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

#station-kebab-roll .station-label,
#station-toppings .station-label,
#station-sauces .station-label {
    position: absolute;
    top: -3.5vh;
    background: rgba(0, 0, 0, 0.85);
    color: #f1c40f;
    padding: 0.5vh 0.8vw;
    border-radius: 6px;
    font-size: clamp(0.75rem, 1vw, 1.1rem);
    font-weight: bold;
    border: 1px solid #f1c40f;
    pointer-events: none;
    white-space: nowrap;
}

#kebab-roll-img {
    width: 100%;
    height: 100%;
    opacity: 0;
}

#station-assembly {
    position: absolute;
    bottom: 4vh;
    right: 19vw;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pita-state {
    width: 9vw;
    min-width: 70px;
    height: auto;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.selection-card {
    background: #111;
    border: 2px solid #f39c12;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    min-width: 320px;
}

.selection-card h2 {
    color: #f1c40f;
    margin-bottom: 20px;
}

.options-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ingredient-btn {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    transition: background 0.2s;
    width: 90px;
}

.ingredient-btn:hover {
    background: #333;
    border-color: #f1c40f;
}

.ingredient-btn img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.close-modal-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.gameover-card {
    border: 3px solid #e74c3c;
    background: #000;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.8);
}

.gameover-title {
    color: #e74c3c;
    font-size: 2.8rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.gameover-msg {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #eee;
}

.restart-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.restart-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.slicing-view {
    position: relative;
    width: 40vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#big-roll-img {
    height: 75vh;
    width: auto;
}

#draggable-knife {
    position: absolute;
    right: 2vw;
    top: 20%;
    width: 20vw;
    min-width: 250px;
    height: auto;
    cursor: grab;
    transform: rotate(-35deg);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    z-index: 120;
    pointer-events: auto;
}

#draggable-knife.dragging {
    cursor: grabbing;
}

.falling-meat {
    position: absolute;
    width: 4vw;
    min-width: 40px;
    height: auto;
    z-index: 110;
    pointer-events: none;
    animation: dropMeat 0.8s forwards ease-in;
}

@keyframes dropMeat {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(200px) rotate(90deg); }
}

.draggable-kebab {
    width: 7vw;
    min-width: 70px;
    height: auto;
    position: absolute;
    cursor: grab;
    z-index: 50;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}