/* 점심메뉴 룰렛 게임 스타일 */

.game-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.menu-input-section {
    margin-bottom: 3rem;
}

.menu-input-section h2 {
    font-family: 'SchoolSafetyRoundedSmile', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-family: 'GMarketSans', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.btn-add {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'GMarketSans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add:hover {
    background: var(--primary-dark);
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 50px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.empty-message {
    color: var(--text-light);
    font-family: 'GMarketSans', sans-serif;
    font-size: 0.9rem;
}

.menu-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-family: 'GMarketSans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.menu-item .remove-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.menu-item .remove-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.roulette-section {
    text-align: center;
    margin-bottom: 3rem;
}

.roulette-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 8px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: #f0f0f0;
}

.roulette-wheel svg {
    width: 100%;
    height: 100%;
    transform-origin: center center;
}


.roulette-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--primary-color);
    z-index: 10;
}


.btn-spin {
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'SchoolSafetyRoundedSmile', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-spin:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

.result-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 16px;
    animation: fadeIn 0.5s;
}

.result-section h2 {
    font-family: 'SchoolSafetyRoundedSmile', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.result-menu {
    font-family: 'SchoolSafetyRoundedSmile', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 1rem;
    background: white;
    border-radius: 12px;
    display: inline-block;
    animation: bounce 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.category-section {
    margin-top: 3rem;
}

.category-section h2 {
    font-family: 'SchoolSafetyRoundedSmile', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    font-family: 'GMarketSans', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab:hover {
    background: var(--secondary-color);
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-menus {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.category-menu-item {
    padding: 0.75rem 1rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-family: 'GMarketSans', sans-serif;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-menu-item:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-menu-item:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .roulette-container {
        width: 300px;
        height: 300px;
    }

    .roulette-segment {
        font-size: 0.7rem;
    }

    .result-menu {
        font-size: 1.5rem;
    }

    .category-menus {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

