/* Fortune page — isolated modern skin. Legacy rules remain untouched until final cleanup. */
.fortune-page {
    --fortune-gold: #f1c15d;
    --fortune-cyan: #55cde8;
    --fortune-surface: rgba(8, 31, 38, 0.78);
    height: 100%;
    padding: clamp(14px, 2vw, 24px);
    overflow: hidden;
}

.fortune-page .fortune-panel {
    width: min(100%, 1220px);
    height: 100%;
    margin: 0 auto;
    overflow: visible;
}

.fortune-page .fortune-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: clamp(22px, 3.2vw, 44px);
    grid-template-columns: minmax(320px, .9fr) minmax(430px, 1.1fr);
    gap: clamp(24px, 4vw, 58px);
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.fortune-page .fortune-stage::before {
    display: none;
}

.fortune-page .fortune-content { gap: 0; }

.fortune-page .fortune-hero-kicker {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: .13em;
}

.fortune-page .fortune-hero h1 {
    max-width: 540px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -.045em;
}

.fortune-page .fortune-hero p {
    max-width: 520px;
    margin-top: 17px;
    color: rgba(224, 241, 245, .7);
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.48;
}

.fortune-page .fortune-status {
    margin-top: clamp(20px, 3vh, 30px);
    padding: 14px 16px;
    gap: 14px;
    background: linear-gradient(135deg, rgba(65, 186, 209, .10), rgba(255,255,255,.035));
    border-color: rgba(102, 210, 230, .16);
    border-radius: 17px;
}

.fortune-page .fortune-status-icon {
    width: 46px;
    height: 46px;
    color: #18292d !important;
    background: linear-gradient(145deg, #f7d778, #dca241) !important;
    border: 1px solid rgba(255, 235, 164, .5) !important;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(213, 151, 46, .2) !important;
    font-size: 18px;
}

.fortune-page .fortune-status-icon i {
    color: #18292d !important;
    opacity: 1 !important;
    filter: none !important;
}

.fortune-page .fortune-status span { font-size: 11px; }
.fortune-page .fortune-status strong { font-size: 15px; }

.fortune-page .fortune-rules-card {
    margin-top: 18px;
    padding: 15px 16px 16px;
    background: rgba(3, 19, 24, .33);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 17px;
}

.fortune-page .fortune-section-title {
    margin-bottom: 12px;
    font-size: 12px;
}

.fortune-page .fortune-rules { gap: 0; }

.fortune-page .fortune-rules > div {
    min-height: 66px;
    padding: 9px 13px;
    justify-content: center;
    gap: 8px;
    color: rgba(225, 239, 242, .75);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.3;
}

.fortune-page .fortune-rules > div + div { border-left: 1px solid rgba(255,255,255,.075); }
.fortune-page .fortune-rules i { font-size: 16px; }

.fortune-page .fortune-wheel-card {
    height: 100%;
    min-height: 0;
    padding: clamp(22px, 3vw, 38px);
    overflow: visible;
    background: transparent;
}

.fortune-page .fortune-wheel-card::before {
    display: none;
}

.fortune-page .fortune-wheel-aura {
    display: none;
}

.fortune-page .fortune-wheel-card .wheel-wrapper { width: min(98cqw, 98cqh, 590px); }

.fortune-page .wheel-container {
    border-color: rgba(195, 232, 236, .23);
    box-shadow: 0 24px 50px rgba(0,0,0,.4), inset 0 0 28px rgba(255,255,255,.07), 0 0 0 5px rgba(74, 183, 203, .08);
}

.fortune-page .wheel-center {
    width: clamp(82px, 18%, 100px);
    height: clamp(82px, 18%, 100px);
    border-color: rgba(255,246,212,.82);
    box-shadow: 0 12px 26px rgba(0,0,0,.3), 0 0 24px rgba(242,188,72,.2), inset 0 1px 0 rgba(255,255,255,.6);
}

.fortune-page .wheel-center span { font-size: 13px; }

.wheel-reward-modal {
    background: linear-gradient(150deg, #123740, #071d24);
    border: 1px solid rgba(93, 204, 225, .18);
    border-radius: 24px;
}

.wheel-reward-close {
    min-height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #f6cf72, #eaa93d);
    color: #17262a;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .fortune-page { padding: 10px; overflow: hidden; }
    .fortune-page .fortune-panel { height: 100%; min-height: 0; overflow: visible; }
    .fortune-page .fortune-stage {
        height: 100%;
        min-height: 0;
        padding: clamp(14px, 3.5vw, 22px);
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        align-content: center;
        gap: 10px;
        border-radius: 0;
    }
    .fortune-page .fortune-hero-kicker { margin-bottom: 6px; }
    .fortune-page .fortune-hero h1 { font-size: clamp(29px, 8vw, 39px); }
    .fortune-page .fortune-hero p { display: none; }
    .fortune-page .fortune-wheel-card { height: auto; min-height: 0; padding: 4px 0; }
    .fortune-page .fortune-wheel-card .wheel-wrapper { width: min(98cqw, 98cqh, 470px); }
    .fortune-page .fortune-status { margin-top: 0; padding: 11px 13px; }
    .fortune-page .fortune-status-icon { width: 40px; height: 40px; }
    .fortune-page .fortune-rules-card { margin-top: 0; padding: 9px 12px 10px; }
    .fortune-page .fortune-rules-card { flex: 0 0 auto; }
    .fortune-page .fortune-section-title { margin-bottom: 5px; }
    .fortune-page .fortune-rules { grid-template-columns: 1fr; gap: 0; }
    .fortune-page .fortune-rules > div {
        min-height: 34px;
        padding: 7px 8px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        font-size: 12px;
        line-height: 1.25;
    }
    .fortune-page .fortune-rules > div + div {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.075);
    }
}

@media (max-width: 576px) and (orientation: portrait) {
    .fortune-page { padding: 7px; }
    .fortune-page .fortune-stage { padding: 12px; gap: 8px; }
    .fortune-page .fortune-hero h1 { font-size: clamp(27px, 8.5vw, 34px); }
    .fortune-page .fortune-wheel-card {
        height: clamp(260px, 38vh, 320px);
    }
    .fortune-page .fortune-wheel-card .wheel-wrapper { width: min(98cqw, 98cqh); }
    .fortune-page .fortune-rules-card { padding-inline: 10px; }
    .fortune-page .fortune-section-title {
        font-size: 13px;
    }
    .fortune-page .fortune-section-title i {
        font-size: 14px;
    }
    .fortune-page .fortune-rules > div { min-height: 35px; padding: 7px; font-size: 13px; }
    .fortune-page .fortune-rules i { font-size: 17px; }
}

@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
    .fortune-page { padding: 6px; }
    .fortune-page .fortune-stage {
        height: 100%;
        grid-template-columns: minmax(300px, .88fr) minmax(330px, 1.12fr);
        grid-template-rows: minmax(0, 1fr);
        gap: 14px;
        padding: 12px 18px;
        border-radius: 0;
    }
    .fortune-page .fortune-content { display: flex; height: 100%; justify-content: center; }
    .fortune-page .fortune-hero h1 { font-size: clamp(25px, 7vh, 34px); }
    .fortune-page .fortune-status { margin-top: 9px; padding: 9px 11px; }
    .fortune-page .fortune-status-icon { width: 36px; height: 36px; }
    .fortune-page .fortune-rules-card { margin-top: 8px; padding: 8px 10px; }
    .fortune-page .fortune-rules-card .fortune-section-title {
        margin-bottom: 7px;
        font-size: 13px;
    }
    .fortune-page .fortune-rules-card .fortune-section-title i {
        font-size: 14px;
    }
    .fortune-page .fortune-rules { grid-template-columns: 1fr; }
    .fortune-page .fortune-rules > div {
        min-height: 29px;
        padding: 5px 7px;
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: center;
        column-gap: 9px;
        font-size: 13px;
        line-height: 1.2;
    }
    .fortune-page .fortune-rules i {
        width: 20px;
        text-align: center;
        font-size: 17px;
    }
    .fortune-page .fortune-rules span {
        min-width: 0;
        text-align: left;
    }
    .fortune-page .fortune-wheel-card { height: 100%; padding: 7px; }
    .fortune-page .fortune-wheel-card .wheel-wrapper { width: min(98cqw, 98cqh); }
}
