/* 오늘 뭐먹지? 게임 스타일 */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    min-height: 100vh;
    padding-bottom: calc(50px + 20px); /* 스크롤버튼 + 띠배너1번 + 띠배너여백 + 고정배너 + 여백 */
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-title {
    font-size: 42px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 182, 193, 0.5);
}

.game-subtitle {
    font-size: 18px;
    color: #5A5A5A;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 게임 영역 */
.game-area {
    background: white;
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

/* 룰렛 컨테이너 */
.roulette-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px;
    aspect-ratio: 1;
}

.roulette-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform-origin: center center;
}

.roulette-section {
    /* SVG path 요소 스타일 */
}

.section-text {
    font-size: 16px;
    font-weight: 700;
    fill: white;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
}


.roulette-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #FF69B4;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.pointer-arrow {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 메뉴 리스트 */
.menu-list-section {
    margin-bottom: 0;
    margin-top: 0;
}

.menu-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.menu-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #2D2D2D;
}

.add-menu-btn {
    padding: 8px 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.add-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 182, 193, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: #2D2D2D;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(255, 182, 193, 0.2);
    border-color: var(--primary-pink);
    transform: translateY(-2px);
}

.menu-name {
    flex: 1;
}

.remove-menu-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 105, 180, 0.2);
    color: var(--primary-pink);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.remove-menu-btn:hover {
    background: var(--primary-pink);
    color: white;
    transform: scale(1.1);
}

/* 결과 표시 */
.result-section {
    text-align: center;
    margin-bottom: 0;
    margin-top: 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1) 0%, rgba(255, 105, 180, 0.1) 100%);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 182, 193, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    display: none;
}

.result-section.show {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: bounceIn 0.6s ease;
    margin-bottom: 20px;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.result-icon {
    font-size: 60px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.result-title {
    font-size: 24px;
    font-weight: 600;
    color: #2D2D2D;
    margin: 0;
}

.result-menu {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-pink);
    text-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
    margin: 8px 0;
    animation: pulse 2s infinite;
}

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

.result-message {
    font-size: 16px;
    color: #5A5A5A;
    margin: 0;
}

/* 컨트롤 버튼 */
.control-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.spin-btn {
    flex: 1;
    max-width: 300px;
    padding: 18px 32px;
    background: #2D2D2D;
    color: white;
    border: 2px solid #1a1a1a;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.spin-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    background: #1a1a1a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spin-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spin-text {
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.reset-btn {
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.05);
    color: #5A5A5A;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.reset-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* 메뉴 추가 모달 */
.add-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.add-menu-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2D2D2D;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #5A5A5A;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.menu-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.menu-input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-cancel-btn,
.modal-add-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.modal-cancel-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #5A5A5A;
}

.modal-cancel-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-add-btn {
    background: var(--primary-gradient);
    color: white;
}

.modal-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .game-container {
        padding: 30px 15px 70px;
    }

    .game-title {
        font-size: 32px;
    }

    .game-subtitle {
        font-size: 16px;
    }

    .game-area {
        padding: 20px;
    }

    .roulette-container {
        max-width: 300px;
    }

    .roulette-section {
        font-size: 14px;
    }

    .result-menu {
        font-size: 28px;
    }

    .control-buttons {
        flex-direction: column;
    }

    .spin-btn,
    .reset-btn {
        width: 100%;
        max-width: none;
    }
}
