@charset "UTF-8";

.golf-fortune-page {
    max-width: 1100px;
    margin: 0 auto;
}

.golf-fortune-card {
    padding: 24px;
}

/* 상단 */
.fortune-top-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.fortune-top-text h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.fortune-top-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

.fortune-btn-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fortune-btn-wrap .utility-btn {
    min-width: 128px;
    height: 46px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.fortune-btn-wrap .utility-btn-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* 운세 영역 */
.fortune-stage {
    margin-top: 24px;
    padding: 36px 28px;
    border-radius: 26px;
    border: 1px solid #e5e7eb;
    background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.96)),
            linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

/* 골프공 이미지 영역 */
.fortune-ball-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
    padding-top: 4px;
}

.fortune-ball-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background:
            radial-gradient(circle, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.08) 36%, rgba(148, 163, 184, 0) 68%);
    filter: blur(16px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.fortune-ball {
    position: relative;
    z-index: 2;
    width: 176px;
    height: 176px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.fortune-ball::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 112px;
    height: 24px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    filter: blur(12px);
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

.fortune-ball-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter:
            contrast(1.04)
            brightness(1.04)
            drop-shadow(0 18px 24px rgba(15, 23, 42, 0.14));
    transition:
            transform 0.25s ease,
            filter 0.25s ease;
}

.fortune-ball:hover {
    overflow: visible;
}

.fortune-ball:hover .fortune-ball-image {
    transform: translateY(-4px) scale(1.03);
    filter:
            contrast(1.05)
            brightness(1.05)
            drop-shadow(0 24px 32px rgba(15, 23, 42, 0.18));
}

.fortune-ball:active .fortune-ball-image {
    transform: translateY(-1px) scale(0.98);
}

.fortune-ball.is-shaking .fortune-ball-image {
    animation: golfBallShake 0.55s ease;
}

@keyframes golfBallShake {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    20% {
        transform: rotate(-8deg) scale(1.04);
    }

    40% {
        transform: rotate(8deg) scale(1.04);
    }

    60% {
        transform: rotate(-5deg) scale(1.02);
    }

    80% {
        transform: rotate(5deg) scale(1.02);
    }
}

/* 결과 */
.fortune-result {
    max-width: 760px;
    margin: 0 auto;
}

.fortune-empty {
    padding: 36px 28px;
    text-align: center;
    border-radius: 22px;
    background: #ffffff;
    border: 1px dashed #dbe3ec;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.fortune-result-card {
    position: relative;
    overflow: hidden;
    padding: 34px 30px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow:
            0 14px 34px rgba(15, 23, 42, 0.07),
            0 3px 8px rgba(15, 23, 42, 0.04);
    animation: fortuneFade 0.35s ease;
}

@keyframes fortuneFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.fortune-result-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #f59e0b);
}

.fortune-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.fortune-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.fortune-description {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.9;
    color: #475569;
    word-break: keep-all;
}

.fortune-tip {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.fortune-tip strong,
.fortune-quote strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.fortune-tip strong {
    color: #111827;
}

.fortune-tip p,
.fortune-quote p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.fortune-tip p {
    color: #64748b;
}

.fortune-quote {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fffaf0;
    border: 1px solid #fdecc8;
}

.fortune-quote strong {
    color: #92400e;
}

.fortune-quote p {
    color: #78350f;
}

/* 도움말 */
.help-panel {
    margin-top: 32px;
}

.help-panel .help-box + .help-box {
    margin-top: 18px;
}

/* 반응형 */
@media (max-width: 768px) {
    .fortune-top-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .fortune-btn-wrap {
        width: 100%;
    }

    .fortune-btn-wrap .utility-btn {
        flex: 1;
    }

    .fortune-stage {
        padding: 28px 18px;
    }

    .fortune-ball {
        width: 148px;
        height: 148px;
    }

    .fortune-ball-glow {
        width: 180px;
        height: 180px;
    }

    .fortune-title {
        font-size: 28px;
    }

    .fortune-description {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .golf-fortune-card {
        padding: 18px;
    }

    .fortune-btn-wrap {
        flex-direction: column;
    }

    .fortune-btn-wrap .utility-btn {
        width: 100%;
    }

    .fortune-result-card {
        padding: 28px 22px;
    }

    .fortune-title {
        font-size: 24px;
    }

    .fortune-empty {
        padding: 28px 20px;
    }
}

.fortune-share-guide {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
}

