* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #f4e4c1 0%, #d4b896 100%);
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #faf8f3;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 3px solid #8b6f47;
}

.game-header {
    background: linear-gradient(135deg, #d4483b 0%, #a83832 100%);
    color: white;
    padding: 20px 30px;
    border-bottom: 4px solid #8b2e25;
    position: relative;
}

.game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #fff 0px,
        #fff 20px,
        #d4483b 20px,
        #d4483b 40px
    );
}

.game-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.stat-value {
    font-weight: bold;
    font-size: 20px;
}

.game-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

.shop-view {
    background: linear-gradient(180deg, #f5e6d3 0%, #e8d4b8 100%);
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
    border: 2px solid #c4a574;
}

.shop-interior {
    position: relative;
    height: 100%;
}

.counter {
    background: linear-gradient(135deg, #8b6f47 0%, #6d5636 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 150px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #5d4a2e;
}

.bowl-area {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bowl {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffffff 0%, #f5f5f5 100%);
    border: 3px solid #8b6f47;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bowl.with-tempura::after {
    content: '🥘';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
}

.customer-queue {
    display: flex;
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 2px dashed #c4a574;
}

.customer {
    font-size: 50px;
    animation: slideIn 0.5s ease;
    position: relative;
}

.customer.thinking::after {
    content: '💭';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    animation: float 2s ease-in-out infinite;
}

.customer.happy::after {
    content: '😊';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
}

.customer.angry::after {
    content: '😠';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inventory-section,
.pricing-section {
    background: linear-gradient(135deg, #fff8f0 0%, #f5e6d3 100%);
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #d4a574;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inventory-section h3,
.pricing-section h3 {
    margin-bottom: 15px;
    color: #8b4513;
    font-weight: bold;
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e8d4b8;
}

.buy-btn {
    background: linear-gradient(135deg, #d4483b 0%, #a83832 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.buy-btn:hover {
    background: linear-gradient(135deg, #c03d31 0%, #952f29 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.price-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-control input {
    width: 100px;
    padding: 6px;
    border: 2px solid #d4a574;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.start-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.start-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f8e5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.end-btn {
    background: linear-gradient(135deg, #8b6f47 0%, #6d5636 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.end-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #6d5636 0%, #5d4a2e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.action-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.improvement-btn {
    background: linear-gradient(135deg, #d4483b 0%, #a83832 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.improvement-btn:hover {
    background: linear-gradient(135deg, #c03d31 0%, #952f29 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.improvement-btn:disabled {
    background: #9e9e9e !important;
    cursor: not-allowed;
}

.log-panel {
    padding: 20px;
    border-top: 3px solid #d4a574;
    background: linear-gradient(135deg, #fff8f0 0%, #f5e6d3 100%);
}

.log-panel h3 {
    margin-bottom: 10px;
    color: #8b4513;
    font-weight: bold;
}

.log-content {
    max-height: 150px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e8d4b8;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #f5e6d3;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #faf8f3 0%, #f5e6d3 100%);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid #8b6f47;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #8b4513;
    font-weight: bold;
}

#report-content {
    margin-bottom: 20px;
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .game-main {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
}