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

:root {
    --bg-color: #f8f6f4;
    --text-primary: #2d2d2d;
    --text-secondary: #6b6b6b;
    --accent-color: #e85d04;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --skip-color: #dc2f02;
    --choose-color: #2a9d8f;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
}

header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.cuisine-selector {
    margin-bottom: 50px;
}

.cuisine-selector h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.cuisine-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cuisine-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cuisine-btn:active {
    transform: translateY(0);
}

.cuisine-emoji {
    font-size: 2rem;
}

.cuisine-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.card-section {
    display: none;
    margin: 50px auto;
    max-width: 500px;
}

.card-section.active {
    display: block;
}

.card-container {
    perspective: 1000px;
    margin-bottom: 30px;
}

.dish-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dish-card.slide-out-left {
    animation: slideOutLeft 0.4s ease forwards;
}

.dish-card.slide-out-right {
    animation: slideOutRight 0.4s ease forwards;
}

@keyframes slideOutLeft {
    to {
        transform: translateX(-150%) rotate(-20deg);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(150%) rotate(20deg);
        opacity: 0;
    }
}

.card-content {
    width: 100%;
}

.dish-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
}

.dish-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.dish-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.dish-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 14px;
    background: var(--bg-color);
    border-radius: 20px;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    width: 70px;
    height: 70px;
    justify-content: center;
}

.skip-btn {
    background: #fff;
    color: var(--skip-color);
    border: 2px solid var(--skip-color);
}

.skip-btn:hover {
    background: var(--skip-color);
    color: white;
    transform: scale(1.05);
}

.choose-btn {
    background: var(--choose-color);
    color: white;
    width: 90px;
    height: 90px;
    font-size: 2rem;
}

.choose-btn:hover {
    background: #248277;
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

.btn-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.selected-dish {
    display: none;
    text-align: center;
    margin: 50px auto;
    max-width: 500px;
}

.selected-dish.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.selected-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: var(--shadow);
}

.selected-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.selected-dish-info {
    margin-bottom: 30px;
}

.selected-dish-info .dish-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
}

.selected-dish-info .dish-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.selected-dish-info .dish-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.restart-btn {
    padding: 14px 32px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.restart-btn:hover {
    background: #d65200;
    transform: translateY(-2px);
}

.restart-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .cuisine-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dish-card {
        padding: 40px 30px;
        min-height: 350px;
    }

    .dish-emoji {
        font-size: 4rem;
    }

    .dish-name {
        font-size: 1.6rem;
    }

    .action-btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .choose-btn {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }

    .selected-content {
        padding: 40px 30px;
    }
}
