body {
    font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: #333;
}

.container {
    text-align: center;
    background-color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 90%;
    transition: transform 0.3s ease;
}

.header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #2c3e50;
}

.header p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.result-area {
    margin: 2rem 0;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wheel-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #e74c3c;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#wheel-canvas {
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 메뉴 카드 스타일 */
.menu-card {
    animation: popUp 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    width: 100%;
    text-align: center;
}

.img-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #eee;
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* 로딩 전 숨김 */
    transition: opacity 0.3s ease;
}

.menu-name {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 1rem;
}

/* 로딩 애니메이션 */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.action-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.action-btn:hover {
    background-color: #ee5253;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

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

.action-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 애니메이션 키프레임 */
@keyframes popUp {
    0% {
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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