/* ==========================================================================
   云辰转盘 · 前台抽奖页样式（柔顺风）
   依赖 app.css 提供的 .page-soft / .card / .btn 等基础样式
   ========================================================================== */

.wheel-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 18px 54px;
}

.wheel-card {
    width: 100%;
    max-width: 500px;
    padding: 30px 28px 26px;
    text-align: center;
    border-radius: 34px;
}

/* 顶部小品牌 */
.wheel-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px 5px 6px;
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: var(--violet-600);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    margin-bottom: 18px;
}

.wheel-brand .wheel-brand-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6 60%, #6ee7b7);
}

.wheel-title {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
}

.wheel-sub {
    margin: 0 0 24px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* ==========================================================================
   转盘本体
   ========================================================================== */

.wheel-stage {
    position: relative;
    width: min(78vw, 356px);
    aspect-ratio: 1 / 1;
    margin: 0 auto 26px;
}

@supports not (aspect-ratio: 1 / 1) {
    .wheel-stage { height: min(78vw, 356px); }
}

/* 外圈柔光 */
.wheel-glow {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
                rgba(167, 139, 250, 0.34), rgba(110, 231, 183, 0.22) 58%, transparent 72%);
    filter: blur(14px);
    animation: wheel-breathe 5.5s ease-in-out infinite;
}

@keyframes wheel-breathe {
    0%, 100% { opacity: 0.72; transform: scale(0.985); }
    50%      { opacity: 1;    transform: scale(1.015); }
}

.wheel-stage.is-spinning .wheel-glow { animation-duration: 1.1s; }

/* 会旋转的部分（扇面 + 文字） */
.wheel-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: rotate(0deg);
    will-change: transform;
}

.wheel-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 8px rgba(255, 255, 255, 0.9),
        inset 0 0 0 10px rgba(167, 139, 250, 0.22),
        0 22px 46px -20px rgba(124, 77, 219, 0.5);
}

.wheel-face::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
                rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.06) 46%, transparent 68%);
}

/* 扇区文字
   方向：文字跟随扇区角度整体旋转（.slice-text 不再做反向旋转抵消），
   因此每一格文字的字底都朝向圆心——上半圈正立好读，下半圈上下倒置，
   与实体转盘一致。若要改回"永远水平"，在 .slice-text 上加
   style="transform: rotate(-扇区角度)" 即可。 */
.slice {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.slice-arm {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transform-origin: 50% 100%;
    padding-top: 11%;
}

.slice-text {
    display: block;
    max-width: 76px;
    font-size: 12.5px;
    font-weight: 620;
    line-height: 1.22;
    letter-spacing: 0.01em;
    color: #4a4160;
    text-align: center;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* 中心轴 */
.wheel-hub {
    position: absolute;
    left: 50%; top: 50%;
    width: 23%; height: 23%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700; color: #fff;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6 62%, #6ee7b7 130%);
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.92),
        0 14px 28px -12px rgba(124, 77, 219, 0.7);
    z-index: 3;
}

/* 指针（顶部朝下的小三角 + 光点） */
.wheel-pointer {
    position: absolute;
    left: 50%; top: -13px;
    width: 30px; height: 38px;
    transform: translateX(-50%);
    z-index: 4;
    filter: drop-shadow(0 8px 14px rgba(124, 77, 219, 0.4));
}

.wheel-pointer::before {
    content: "";
    position: absolute;
    left: 50%; top: 0;
    width: 30px; height: 22px;
    transform: translateX(-50%);
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, #ffffff, #f3efff);
}

.wheel-pointer::after {
    content: "";
    position: absolute;
    left: 50%; top: 18px;
    width: 0; height: 0;
    transform: translateX(-50%);
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 18px solid #8b5cf6;
}

/* ==========================================================================
   抽奖按钮
   ========================================================================== */

.wheel-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    max-width: 300px;
    padding: 16px 30px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 650;
    letter-spacing: 0.03em;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #b39cf9 0%, #8b5cf6 58%, #7c4ddb 100%);
    box-shadow: 0 20px 40px -18px rgba(124, 77, 219, 0.85);
    transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), opacity 0.24s var(--ease);
}

.wheel-btn::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    animation: wheel-shine 3.6s ease-in-out infinite;
}

@keyframes wheel-shine {
    0%   { left: -60%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}

.wheel-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -18px rgba(124, 77, 219, 0.95); }
.wheel-btn:active { transform: translateY(0) scale(0.988); }
.wheel-btn[disabled] { opacity: 0.62; cursor: not-allowed; transform: none; }
.wheel-btn[disabled]::after { animation: none; }

.wheel-desc {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.75;
}

.wheel-foot {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--ink-mute);
}

/* ==========================================================================
   中奖结果
   ========================================================================== */

.result-mask {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(63, 66, 84, 0.36);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fade-in 0.26s var(--ease) both;
}

.result-mask[hidden] { display: none; }

.result-card {
    width: 100%;
    max-width: 340px;
    padding: 30px 26px 24px;
    text-align: center;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-pop);
    animation: pop-in 0.42s var(--ease) both;
}

.result-badge {
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    color: var(--violet-600);
    background: rgba(167, 139, 250, 0.14);
}

.result-name {
    margin: 0 0 6px;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, #8b5cf6, #6ee7b7 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    word-break: break-word;
}

.result-tip { margin: 0 0 22px; font-size: 13px; color: var(--ink-mute); }

.result-actions { display: flex; gap: 10px; justify-content: center; }

.result-color-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   未开放 / 不存在
   ========================================================================== */

.notice-wrap {
    width: 100%;
    max-width: 440px;
    text-align: center;
    padding: 40px 30px;
    border-radius: 34px;
}

.notice-emoji {
    width: 66px; height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.5), rgba(110, 231, 183, 0.42));
}

.notice-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--ink-strong); }
.notice-desc { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-mute); line-height: 1.8; }

@media (max-width: 420px) {
    .wheel-card { padding: 24px 18px 20px; border-radius: 28px; }
    .wheel-title { font-size: 22px; }
    .slice-text { font-size: 11.5px; max-width: 66px; }
    .wheel-btn { font-size: 15.5px; padding: 15px 24px; }
}
