        :root {
            --primary-color: #FF8c00;
            /* Dark Orange */
            --secondary-color: #FFA500;
            /* Orange */
            --accent-color: #FFD700;
            /* Gold */
            --text-color: #333;
            --bg-color: #f7f7f7;
            --card-bg: #fff;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --radius: 12px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Noto Sans KR', 'Noto Sans JP', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            /* Center on large screens */
            min-height: 100vh;
            padding: min(2vw, 20px);
        }

        .container {
            width: 100%;
            max-width: 420px;
            /* Mobile default */
            background: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            transition: max-width 0.3s ease;
        }

        /* PC / Tablet Response */
        @media (min-width: 768px) {
            .container {
                max-width: 800px;
                /* Wider on PC */
            }

            /* Ensure content fills the width */
            .content {
                display: block;
                padding: 40px !important;
            }

            header {
                padding: 40px 20px;
            }

            header h1 {
                font-size: 2rem;
            }
        }

        header {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            color: white;
            text-align: center;
            padding: 40px 20px;
        }

        @media (max-width: 767px) {
            header {
                padding: 60px 20px 25px;
            }
        }

        header h1 {
            font-size: 1.5rem;
            margin-bottom: 5px;
            font-weight: 700;
        }

        header p {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .lang-switch {
            position: absolute;
            top: 15px;
            right: 15px;
            display: flex;
            gap: 5px;
        }

        .lang-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            padding: 4px 8px;
            border-radius: 15px;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .lang-btn:hover,
        .lang-btn.active {
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary-color);
            font-weight: 700;
        }

        .content {
            padding: 20px;
            flex: 1;
            overflow-y: auto;
        }

        .section-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 12px;
            margin-top: 20px;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .section-title:first-child {
            margin-top: 0;
        }

        /* Autocomplete Styles */
        .input-group {
            position: relative;
            margin-bottom: 15px;
        }

        .input-field {
            width: 100%;
            padding: 14px 15px;
            border: 2px solid #eee;
            border-radius: var(--radius);
            font-size: 1rem;
            transition: border-color 0.3s;
            background-color: #fcfcfc;
        }

        .input-field:focus {
            border-color: var(--secondary-color);
            outline: none;
            background-color: #fff;
        }

        .autocomplete-items {
            position: absolute;
            border-bottom: none;
            border-top: none;
            z-index: 99;
            top: 100%;
            left: 0;
            right: 0;
            background-color: white;
            border-radius: 0 0 var(--radius) var(--radius);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            max-height: 200px;
            overflow-y: auto;
        }

        .autocomplete-items div {
            padding: 12px;
            cursor: pointer;
            background-color: #fff;
            border-bottom: 1px solid #f0f0f0;
            color: var(--primary-color);
        }

        .autocomplete-items div:hover {
            background-color: #fff9f0;
            color: var(--primary-color);
        }

        /* Selected Items Tags */
        .selected-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
            min-height: 30px;
        }

        .tag {
            background-color: #fff4e6;
            color: var(--primary-color);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            border: 1px solid #ffe0b2;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .tag button {
            border: none;
            background: none;
            color: var(--primary-color);
            cursor: pointer;
            font-weight: 900;
            font-size: 1.1rem;
            line-height: 1;
            opacity: 0.7;
        }

        .tag button:hover {
            opacity: 1;
        }

        /* Radio Group Styles */
        .radio-group {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 25px;
        }

        .radio-option {
            position: relative;
        }

        .radio-option input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
            z-index: 10;
        }

        .radio-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 15px 5px;
            background: #f8f9fa;
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
            border: 2px solid transparent;
            height: 100%;
            color: #666;
        }

        .radio-label:hover {
            background: #fff9f2;
            transform: translateY(-2px);
        }

        .radio-label span.icon {
            font-size: 1.8rem;
            margin-bottom: 6px;
        }

        .radio-label span.text {
            font-size: 0.85rem;
            font-weight: 500;
        }

        /* Style when radio is checked */
        .radio-option input:checked+.radio-label {
            background: #fff4e6;
            border-color: var(--primary-color);
            color: var(--primary-color);
            font-weight: 800;
            box-shadow: 0 4px 6px rgba(255, 140, 0, 0.2);
            transform: translateY(-2px);
        }

        /* Action Button */
        .btn-main {
            width: 100%;
            padding: 18px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: var(--radius);
            font-size: 1.2rem;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
            box-shadow: 0 6px 15px rgba(255, 140, 0, 0.3);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .btn-main:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
        }

        .btn-main:active {
            transform: scale(0.98);
        }

        .btn-main:disabled {
            background: #ccc;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        /* Result Section */
        #result-section {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .result-card {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            padding: min(6.5vw, 40px) min(5vw, 40px);
            border-radius: 20px;
            text-align: center;
            width: 94vw;
            max-width: 600px;
            max-height: 84vh;
            /* Limit height */
            overflow-y: auto;
            /* Enable internal scrolling */
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            /* For X button positioning */
        }

        /* Prevent body scroll when popup is open */
        body.no-scroll {
            overflow: hidden;
        }

        @keyframes popIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .result-title {
            color: #888;
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: min(2vw, 20px);
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .menu-name {
            font-size: min(8vw, 2.5rem);
            font-weight: 900;
            color: var(--text-color);
            margin-bottom: 15px;
            word-break: keep-all;
            line-height: 1.2;
            background: linear-gradient(45deg, var(--text-color), #555);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .menu-reason {
            background: #fff4e6;
            color: var(--primary-color);
            padding: min(1.6vw, 12px) min(2.5vw, 18px);
            border-radius: 12px;
            font-size: min(3.7vw, 1rem);
            margin-bottom: min(1vw, 10px);
            display: inline-block;
            font-weight: 600;
            line-height: 1.5;
            text-align: left;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .other-ranks {
            text-align: left;
            border-top: 1px solid #f0f0f0;
            padding-top: min(2.5vw, 20px);
        }

        .rank-item {
            display: flex;
            justify-content: left;
            padding: 10px 0;
            font-size: min(3.6vw, 0.95rem);
            color: #666;
            transition: background 0.2s;
            border-radius: 8px;
        }

        .rank-item:hover {
            background: #f9f9f9;
            padding-left: 5px;
            padding-right: 5px;
        }

        .rank-label {
            font-weight: 700;
            color: var(--secondary-color);
            min-width: 40px;
        }

        .close-btn {
            margin-top: min(2.5vw, 20px);
            padding: 15px;
            width: 100%;
            border: none;
            background: #FF9800;
            /* Orange Background */
            border-radius: 12px;
            font-weight: 700;
            font-size: 1rem;
            color: white;
            /* White Text */
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
        }

        .btn-secondary {
            margin-top: 10px;
            padding: 15px;
            width: 100%;
            border: none;
            background: #4CAF50;
            /* Green */
            border-radius: 12px;
            font-weight: 700;
            font-size: 1rem;
            color: white;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
            margin-bottom: 10px;
        }

        .btn-secondary:hover {
            background: #43A047;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
        }

        .close-btn:hover {
            background: #F57C00;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(255, 152, 0, 0.4);
        }

        .close-x-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            color: #aaa;
            cursor: pointer;
            line-height: 1;
            padding: 5px;
            transition: color 0.2s;
        }

        .close-x-btn:hover {
            color: #555;
        }

        /* Loading Animation */
        .loading-overlay {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            z-index: 500;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 6px solid #f3f3f3;
            border-top: 6px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
        }

        .loading-text {
            margin-top: 20px;
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--primary-color);
            animation: pulse 1.5s infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes pulse {
            0% {
                opacity: 0.6;
            }

            50% {
                opacity: 1;
            }

            100% {
                opacity: 0.6;
            }
        }

        /* Footer & Disclaimer */
        .copyright-footer {
            text-align: center;
            font-size: 0.75rem;
            color: #999;
            padding: 20px 0;
            width: 100%;
            margin-top: 30px;
        }

        .disclaimer-text {
            font-size: min(3vw, 0.75rem);
            color: #888;
            background-color: #f9f9f9;
            padding: 10px;
            border-radius: 8px;
            margin-top: min(1.4vw, 15px);
            margin-bottom: 5px;
            line-height: 1.4;
            text-align: left;
            border: 1px solid #eee;
        }