/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f8;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-glass-hover: rgba(0, 0, 0, 0.06);

    --text-primary: #1a1a2e;
    --text-secondary: #6b6b80;
    --text-muted: #9999aa;

    --accent-1: #ff5252;
    --accent-2: #ff9100;
    --accent-3: #7c4dff;
    --accent-4: #00c853;
    --accent-5: #2979ff;
    --accent-6: #ff1744;

    --gradient-main: linear-gradient(135deg, #ff5252 0%, #ff9100 50%, #7c4dff 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 82, 82, 0.06) 0%, rgba(124, 77, 255, 0.06) 100%);
    --gradient-btn: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    --gradient-btn-2: linear-gradient(135deg, #7c4dff 0%, #2979ff 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 4px 20px rgba(255, 82, 82, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ===== Screen System ===== */
.screen {
    display: none;
    min-height: 100vh;
    position: relative;
}

.screen.active {
    display: flex;
    flex-direction: column;
    animation: screenIn 0.5s ease-out;
}

@keyframes screenIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Splash Screen ===== */
#splash-screen {
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #fff5f5 0%, #f5f5ff 50%, #f0f8ff 100%);
    overflow: hidden;
}

.splash-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.splash-emoji-ring {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto 40px;
    animation: ringRotate 20s linear infinite;
}

.ring-emoji {
    position: absolute;
    font-size: 32px;
    left: 50%;
    top: 50%;
    transform-origin: center;
    --angle: calc(var(--i) * 45deg);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-80px) rotate(calc(-1 * var(--angle)));
    animation: emojiFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes emojiFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-80px) rotate(calc(-1 * var(--angle))) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-90px) rotate(calc(-1 * var(--angle))) scale(1.2);
    }
}

.splash-title {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.splash-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 300;
}

/* Particles */
.splash-bg-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 24px;
    opacity: 0.2;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.2;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 82, 82, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pulse-btn {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 82, 82, 0.25);
    }

    50% {
        box-shadow: 0 4px 36px rgba(255, 82, 82, 0.45);
    }
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.15);
}

/* ===== Select Screen ===== */
.select-header {
    padding: 20px 20px 12px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(to bottom, var(--bg-primary) 70%, transparent);
}

.select-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.select-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.select-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

#dislike-count {
    color: var(--accent-1);
    font-weight: 700;
}

#love-count {
    color: var(--accent-4);
    font-weight: 700;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 20px 16px;
    position: sticky;
    top: 84px;
    z-index: 10;
    background: linear-gradient(to bottom, var(--bg-primary) 60%, transparent);
}


.tab {
    flex-shrink: 0;
    padding: 8px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.tab:hover {
    background: #fafafe;
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.12);
}

.tab.active {
    background: var(--gradient-btn);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(255, 82, 82, 0.3);
}

/* Food Grid */
.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 120px;
    flex: 1;
}

.food-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.food-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.food-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 82, 82, 0.2);
    box-shadow: var(--shadow-md);
}

.food-card:hover::before {
    opacity: 1;
}

.food-card.selected {
    border-color: var(--accent-1);
    background: linear-gradient(145deg, rgba(255, 82, 82, 0.08) 0%, rgba(255, 23, 68, 0.04) 100%);
    box-shadow: 0 2px 16px rgba(255, 82, 82, 0.15);
}

.food-card.selected .food-check {
    opacity: 1;
    transform: scale(1);
}

.food-card.loved {
    border-color: var(--accent-4);
    background: linear-gradient(145deg, rgba(0, 200, 83, 0.08) 0%, rgba(0, 200, 83, 0.03) 100%);
    box-shadow: 0 2px 16px rgba(0, 200, 83, 0.15);
}

.food-card.loved .food-check {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
}

.food-card.loved .food-check .check-icon {
    display: none;
}

.food-card.loved .food-check .heart-icon {
    display: block;
}

.food-check .heart-icon {
    display: none;
}

.food-card.hidden {
    display: none;
}

.food-emoji {
    font-size: 2.2rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.food-name {
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.3;
    color: var(--text-primary);
}

.food-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.food-origin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.03);
    padding: 2px 8px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    width: fit-content;
}

.food-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.food-check svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 3;
}

/* Select Animation */
@keyframes selectBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.food-card.animating {
    animation: selectBounce 0.4s ease;
}

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    padding-bottom: calc(16px + var(--safe-bottom));
    background: linear-gradient(to top, var(--bg-primary) 60%, transparent);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
}

.generate-btn {
    flex: 1;
    justify-content: center;
    position: relative;
}

.btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 11px;
    font-size: 0.75rem;
    padding: 0 6px;
}

/* ===== Result Screen ===== */
.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
}

.result-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.back-btn:hover {
    background: #f8f8fc;
    box-shadow: var(--shadow-md);
}

.result-content {
    padding: 0 20px 40px;
    flex: 1;
}

/* Stats Card */
.stats-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.stats-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 82, 82, 0.03) 0%, rgba(124, 77, 255, 0.03) 100%);
}

.stats-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
}

.stats-ring-container {
    width: 140px;
    height: 140px;
    position: relative;
    margin: 0 auto 20px;
}

.stats-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.06);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-percent {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stats-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    position: relative;
}

.stats-verdict {
    position: relative;
}

.verdict-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.verdict-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Selected Foods Display */
.selected-foods {
    margin-bottom: 24px;
}

.selected-foods-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.selected-food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.food-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    animation: tagIn 0.3s ease-out both;
}

.food-tag.dislike-tag {
    border-color: rgba(255, 82, 82, 0.2);
    background: rgba(255, 82, 82, 0.04);
}

.food-tag.love-tag {
    border-color: rgba(0, 200, 83, 0.2);
    background: rgba(0, 200, 83, 0.04);
}

@keyframes tagIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn-action::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-image::before {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.06), rgba(255, 145, 0, 0.06));
}

.btn-video::before {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.06), rgba(41, 121, 255, 0.06));
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-action:hover::before {
    opacity: 1;
}

.btn-image svg {
    color: var(--accent-1);
}

.btn-video svg {
    color: var(--accent-3);
}

/* ===== Modals ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    animation: modalIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

@keyframes modalIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

#share-canvas {
    width: 100%;
    display: block;
    border-radius: 0;
}

.modal-actions {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-actions .btn-primary {
    width: 100%;
    justify-content: center;
}

/* Video */
.video-container {
    position: relative;
    background: #f0f0f5;
}

#video-canvas {
    width: 100%;
    display: block;
}

.video-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-btn);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

#progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Detail Modal */
.detail-modal-content {
    max-width: 380px;
}

.detail-body {
    padding: 24px;
}

.detail-emoji {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.detail-name {
    font-size: 1.3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
}

.detail-category {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
}

.detail-row-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.detail-row-content {
    flex: 1;
}

.detail-row-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-row-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Add Food Form */
.add-food-form {
    padding: 20px 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Share button */
.btn-share {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.25) !important;
}

.btn-share:hover {
    box-shadow: 0 6px 28px rgba(0, 200, 83, 0.4) !important;
}

/* Category badge */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.65rem;
    padding: 0 4px;
    margin-left: 4px;
}

.tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 380px) {
    .splash-title {
        font-size: 1.8rem;
    }

    .food-grid {
        gap: 8px;
        padding: 0 12px 120px;
    }

    .food-card {
        padding: 12px;
    }

    .food-emoji {
        font-size: 1.8rem;
    }
}

@media (min-width: 600px) {
    .food-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 720px;
        margin: 0 auto;
    }

    .select-header,
    .category-tabs {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .result-content {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (min-width: 900px) {
    .food-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 960px;
    }

    .select-header,
    .category-tabs {
        max-width: 960px;
    }
}