/* ==================== 诸天星轮 - 转盘抽奖样式 ==================== */

/* 入口按钮（fixed定位，祭坛右侧） */
.wheel-entry-btn {
    position: fixed; bottom: 20px; left: 70%; z-index: 100;
    cursor: pointer; transition: transform 0.3s;
    text-align: center;
}
.wheel-entry-btn:hover { transform: scale(1.15); }
.wheel-entry-icon {
    width: 50px; height: 50px;
    background: rgba(10,31,51,0.85); border: 2px solid rgba(147,112,219,0.6);
    border-radius: 10px; display: flex; justify-content: center; align-items: center;
    font-size: 28px; box-shadow: 0 0 12px rgba(147,112,219,0.3);
    margin: 0 auto;
}
.wheel-entry-label {
    color: #dda0dd; font-size: 11px; margin-top: 4px;
    text-shadow: 0 0 6px rgba(147,112,219,0.5);
}

/* 弹窗遮罩 */
.wheel-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
}

/* 弹窗主体（左右分栏） */
.wheel-window {
    width: 900px; max-width: 96vw; height: 680px; max-height: 90vh;
    background: radial-gradient(circle at center, #1a2a3a 0%, #050505 100%);
    border: 2px solid #8b6d45; border-radius: 10px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; overflow: hidden;
}

/* 顶部标题栏 */
.wheel-header {
    height: 44px; background: linear-gradient(to bottom, #2a1a3a, #0a0a15);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 18px; border-bottom: 1px solid #8b6d45; flex-shrink: 0;
}
.wheel-title { color: #ffcc66; font-weight: bold; font-size: 16px; letter-spacing: 2px; }
.wheel-close { color: #999; font-size: 22px; cursor: pointer; }
.wheel-close:hover { color: #fff; }

/* 主体区域（flex横向） */
.wheel-body {
    flex: 1; display: flex; padding: 20px; gap: 16px; overflow: hidden;
}

/* ==================== 左侧：转盘+按钮 ==================== */
.wheel-left {
    flex: 1.5; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

/* 转盘容器 */
.wheel-canvas-wrap {
    position: relative; width: 420px; height: 420px;
    margin-bottom: 16px;
}

/* 转盘圆盘 */
.wheel-outer {
    width: 420px; height: 420px; border-radius: 50%;
    border: 8px solid #8b6d45; position: relative;
    box-shadow: 0 0 30px rgba(255,204,102,0.15);
    background: #05101a; overflow: hidden;
    transition: transform 3s cubic-bezier(0.15, 0, 0.1, 1);
}

/* 指针 */
.wheel-pointer {
    position: absolute; top: -14px; left: 50%;
    transform: translateX(-50%); width: 32px; height: 46px;
    background: #ffcc66; clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    z-index: 100; filter: drop-shadow(0 0 6px #000); border: 1px solid #fff;
}

/* 按钮区域 */
.wheel-btn-zone {
    display: flex; gap: 16px; justify-content: center; width: 100%;
}
.wheel-btn-col { display: flex; flex-direction: column; }

/* 按钮 */
.wheel-btn {
    width: 170px; padding: 10px 0;
    background: #111; border: 2px solid #8b6d45; color: #ffcc66;
    font-size: 15px; font-weight: bold; cursor: pointer;
    border-radius: 4px; transition: 0.2s; text-align: center; line-height: 1.4;
}
.wheel-btn small { font-size: 11px; color: #888; display: block; font-weight: normal; }
.wheel-btn:hover:not(:disabled) {
    background: #ffcc66; color: #000;
    box-shadow: 0 0 15px rgba(255,204,102,0.5);
}
.wheel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* 至尊按钮变体 */
.wheel-btn-supreme { border-color: #a34cff; color: #c88aff; }
.wheel-btn-supreme:hover:not(:disabled) {
    background: #a34cff; color: #fff;
    box-shadow: 0 0 15px rgba(163,76,255,0.5);
}

/* 点券显示 */
.wheel-vouchers {
    margin-top: 12px; color: #aaa; font-size: 13px;
}
.wheel-vouchers span { color: #ffcc66; font-weight: bold; }

/* ==================== 右侧：记录面板 ==================== */
.wheel-right {
    flex: 1; background: rgba(0,0,0,0.4); border: 1px solid #8b6d45;
    border-radius: 8px; display: flex; flex-direction: column;
    overflow: hidden;
}
.wheel-log-header {
    padding: 14px; text-align: center; color: #ffcc66;
    font-weight: bold; font-size: 16px;
    border-bottom: 1px solid rgba(139,109,69,0.3); flex-shrink: 0;
}
.wheel-log-list {
    flex: 1; overflow-y: auto; padding: 12px;
}

/* 记录条目 */
.wheel-log-item {
    background: rgba(255,255,255,0.03); border-radius: 4px;
    padding: 10px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
    border-left: 3px solid #444;
    animation: wheelFadeIn 0.4s ease-out;
}
@keyframes wheelFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
.wheel-log-item img { width: 28px; height: 28px; }
.wheel-log-level { font-size: 12px; color: #666; }

/* 12-17级金色流光文字 */
.wheel-text-legendary {
    background: linear-gradient(90deg, #ff8c00, #ffee00, #ff8c00);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-weight: bold;
}

/* 18级彩虹渐变文字 */
.wheel-text-mythic {
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-weight: 900;
    animation: wheelRainbow 2s linear infinite;
}
@keyframes wheelRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
