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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 40px;
}

h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #a0a0b0;
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.categories {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #c8c8d8;
    padding: 8px 18px;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.chip.active {
    background: linear-gradient(135deg, #e94560, #c23616);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.menu-card {
    width: 280px;
    min-height: 220px;
    margin: 0 auto 36px;
    padding: 28px 20px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.18), 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.2s ease;
}

.menu-emoji {
    font-size: 4rem;
    line-height: 1;
}

.menu-name {
    font-size: 2rem;
    font-weight: 700;
}

.menu-category {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.2);
}

.menu-card.rolling {
    opacity: 0.75;
    filter: blur(0.4px);
    transform: scale(0.97);
}

.menu-card.reveal {
    animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cat-korean   { background: linear-gradient(135deg, #e84118, #c23616); }
.cat-chinese  { background: linear-gradient(135deg, #fbc531, #e1b12c); }
.cat-japanese { background: linear-gradient(135deg, #00a8ff, #0097e6); }
.cat-western  { background: linear-gradient(135deg, #9c88ff, #8c7ae6); }
.cat-snack    { background: linear-gradient(135deg, #e94560, #b33771); }
.cat-asian    { background: linear-gradient(135deg, #4cd137, #44bd32); }

.btn {
    background: linear-gradient(135deg, #e94560, #c23616);
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.6);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled, .btn.disabled {
    background: #3a3b5c;
    color: #8a8baf;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.history {
    margin-top: 40px;
    color: #a0a0b0;
}

.history h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

#history {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 420px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}
