body {
    font-family: Calibri;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}
h1 {
    color: #313030;
    margin-bottom: 10px;
}
#hud {
    width: 850px;
    background: #424242;
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.stat-box {
    font-size: 18px;
    font-weight: bold;
}
#money {
    color: #2ecc71;
}
#reputation {
    color: #f1c40f;
}
#game-area {
    position: relative;
    width: 850px;
    height: 500px;
    background-color: #eecfa1;
    border: 4px solid #8d6e63;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
#kitchen {
    position: absolute;
    top: 0;
    right: 0;
    width: 170px;
    height: 100%;
    background-color: #bdc3c7;
    border-left: 4px solid #7f8c8d;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 1;
}
.kitchen-stock {
    width: 90%;
    background: #ecf0f1;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #bdc3c7;
}
.stock-item {
    font-size: 12px;
    font-weight: bold;
    color: #353434;
    margin: 2px 0;
    display: flex;
    justify-content: space-between;
}
.stock-low {
    color: #e74c3c;
    animation: flashRed 1s infinite;
}
@keyframes flashRed {
    0%, 100% {color: #e74c3c;}
    50% {color: #1f1e1e;}
}
.kitchen-label {
    font-weight: bold;
    color: #555555;
    margin-bottom: 20px;
    text-align: center;
}
.table {
    position: absolute;
    width: 80px;
    height: 60px;
    background-color: #5d4037;
    border-radius: 4px;
    border: 2px solid #3e2723;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}
.customer {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #3498db;
    border-radius: 50%;
    border: 2px solid #2980b9;
    z-index: 10;
    transition: top 0.5s ease, left 0.5s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.status-bubble {
    position: absolute;
    top: -30px;
    left: -15px;
    background: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    border: 2px solid #999;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    font-weight: bold;
    color: #303030;
    z-index: 100;
}
.customer.needs-attention .status-bubble {
    opacity: 1;
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%, 100% {transform: translateY(0);}
    50% {transform: translateY(-3px);}
}
#controls {
    width: 850px;
    background: white;
    padding: 15px;
    border: 1px solid #cecccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-sizing: border-box;
}
.control-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.control-column h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #4a4747;
    text-transform: uppercase;
}
.button-row {
    display: flex;
    gap: 5px;
}
button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}
button:hover {
    background-color: #2980b9;
}
button:active {
    transform: translateY(1px);
}
button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}
.button-buy {
    background-color: #27ae60;
}
.button-buy:hover {
    background-color: #2ecc71;
}
.button-upgrade {
    background-color: #f39c12; 
    border-bottom: 3px solid #d35400;
}
.button-upgrade:disabled {
    border-bottom: 3px solid #95a5a6;
    background-color: #bdc3c7;
}
.upgrade-owned {
    background-color: #2c3e50 !important;
    border-bottom: 3px solid #34495e !important;
    color: #7f8c8d;
    cursor: default;
}
.floater {
    position: absolute;
    font-weight: bold;
    color: #27ae60;
    pointer-events: none;
    animation: floatUp 1s forwards;
    z-index: 20;
}
@keyframes floatUp {
    0% {transform: translateY(0); opacity: 1;}
    100% {transform: translateY(-30px); opacity: 0;}
}
.kitchen-order {
    width: 90%;
    height: 36px;
    background: white;
    border: 1px solid #cdc8c8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #e74c3c;
    width: 0%;
}
.order-ready {
    background-color: #2ecc71;
    color: white;
    border-color: #27ae60;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.05);}
    100% {transform: scale(1);}
}
.menu-legend {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #5e5c5c;
    background: #e6e4e4;
    padding: 8px;
    border-radius: 4px;
}
#staff-area {
    position: absolute;
    bottom: 10px;
    right: 180px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #393737;
    pointer-events: none;
}
#event-banner {
    display: none;
    width: 850px;
    background: linear-gradient(90deg, #ffeaa7, #ffd460);
    color: #2d3436;
    padding: 10px 16px;
    border: 1px solid #f6b93b;
    border-radius: 0 0 8px 8px;
    margin: 10px 0;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#event-banner.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
#minigame-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.minigame-panel {
    width: 320px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.minigame-panel h2 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}
.minigame-instruction {
    font-size: 13px;
    color: #555555;
}
.minigame-progress {
    font-weight: bold;
    font-size: 14px;
    color: #2c3e50;
}
.minigame-panel .minigame-action {
    background-color: #e67e22;
}
.minigame-panel .minigame-action:hover {
    background-color: #d35400;
}
.minigame-panel .minigame-cancel {
    background-color: #95a5a6;
}
.minigame-panel .minigame-cancel:hover {
    background-color: #7f8c8d;
}
#top-alert {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translate(-50%, -12px);
    width: 320px;
    max-width: 90%;
    background: #fff3cd;
    color: #7a5b00;
    padding: 10px 16px;
    border: 1px solid #f6b93b;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 300
}
#top-alert.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
}