/* --- 6. REWARD --- */
.reward-page { 
    background-color: var(--bg-app); 
    position: relative;
    overflow: hidden;
}
.reward-page::before {
    content: ''; position: absolute; top: -100px; left: -50px; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.3) 0%, transparent 70%);
    z-index: 0; pointer-events: none; filter: blur(40px);
}
.reward-page::after {
    content: ''; position: absolute; top: 150px; right: -100px; width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
    z-index: 0; pointer-events: none; filter: blur(40px);
}
.reward-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 320px;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 72% 24%, #5e0a12 0%, #2c0008 46%, #120000 72%, var(--bg-app) 100%);
}
/* 宝箱背后的聚光光晕 */
.bg-glow {
    position: absolute;
    top: -50px; right: -40px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(255,150,60,0.38) 0%, rgba(255,90,30,0.14) 42%, transparent 70%);
    filter: blur(22px);
    z-index: 1;
    pointer-events: none;
}
.chest-container {
    position: absolute;
    right: 0px;
    top: 14px;
    width: 240px;
    height: 240px;
    z-index: 2;
}
/* --- CSS 3D 宝箱 --- */
.css-chest-wrapper {
    position: relative;
    width: 100%; height: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: chestFloat 4s ease-in-out infinite;
}
.css-chest-scene {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(-30deg) translateY(20px);
}
.chest-face {
    position: absolute;
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #7A3E14, #4A2205);
    border: 2px solid #D4A559;
    box-sizing: border-box;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}
/* Base dimensions: W:140, H:80, D:100 */
.chest-front  { width: 140px; height: 80px; margin: -40px 0 0 -70px; transform: translateZ(50px); }
.chest-back   { width: 140px; height: 80px; margin: -40px 0 0 -70px; transform: translateZ(-50px) rotateY(180deg); }
.chest-left   { width: 100px; height: 80px; margin: -40px 0 0 -50px; transform: translateX(-70px) rotateY(-90deg); }
.chest-right  { width: 100px; height: 80px; margin: -40px 0 0 -50px; transform: translateX(70px) rotateY(90deg); }
.chest-bottom { width: 140px; height: 100px; margin: -50px 0 0 -70px; transform: translateY(40px) rotateX(-90deg); background: #2A1202; }

/* Inside surface */
.chest-inside {
    width: 136px; height: 96px; margin: -48px 0 0 -68px;
    transform: translateY(-20px) rotateX(90deg);
    background: #2A1202;
    border: none;
    box-shadow: none;
}
/* Jewels and Gold */
.treasure-pile {
    position: absolute; inset: 0;
    transform: translateZ(10px);
}
.t-coin {
    position: absolute;
    left: var(--x); top: var(--y);
    width: 28px; height: 28px;
    background: radial-gradient(circle, #FFE082 0%, #FFB800 60%, #D48800 100%);
    border: 2px solid #FFE082;
    border-radius: 50%;
    transform: rotateZ(var(--r)) rotateX(60deg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.5), inset 0 0 4px rgba(255,255,255,0.8);
    box-sizing: border-box;
}
.t-coin::after {
    content: '$';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900; color: #D48800;
}
.t-jewel {
    position: absolute;
    left: var(--x); top: var(--y);
    width: 20px; height: 20px;
    transform: rotateZ(var(--r)) rotateX(45deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}
.t-jewel.ruby {
    background: linear-gradient(135deg, #FF6B8B, #D10020);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.t-jewel.sapphire {
    background: linear-gradient(135deg, #40E0D0, #0055FF);
    clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.t-jewel.emerald {
    background: linear-gradient(135deg, #00FF88, #008844);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.treasure-glow {
    position: absolute; inset: -20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(255, 102, 0, 0.3) 40%, transparent 70%);
    animation: goldGlow 2s ease-in-out infinite;
    transform: translateZ(15px);
    pointer-events: none;
}
@keyframes goldGlow {
    0%, 100% { opacity: 0.8; transform: translateZ(15px) scale(1); }
    50% { opacity: 1; transform: translateZ(15px) scale(1.1); }
}

/* Lid */
.chest-lid-group {
    position: absolute; top: 0; left: 0;
    transform-style: preserve-3d;
    transform-origin: center -40px -50px;
    transform: rotateX(100deg);
    animation: lidFloat 4s ease-in-out infinite;
}
.lid-face {
    position: absolute;
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #8A4A18, #5A2A08);
    border: 2px solid #D4A559;
    box-sizing: border-box;
}
.lid-top    { width: 140px; height: 100px; margin: -50px 0 0 -70px; transform: translateY(-40px) rotateX(90deg); border-radius: 10px; }
.lid-front  { width: 140px; height: 30px; margin: -15px 0 0 -70px; transform: translateZ(50px) translateY(-25px); }
.lid-back   { width: 140px; height: 30px; margin: -15px 0 0 -70px; transform: translateZ(-50px) translateY(-25px) rotateY(180deg); }
.lid-left   { width: 100px; height: 30px; margin: -15px 0 0 -50px; transform: translateX(-70px) translateY(-25px) rotateY(-90deg); }
.lid-right  { width: 100px; height: 30px; margin: -15px 0 0 -50px; transform: translateX(70px) translateY(-25px) rotateY(90deg); }
.lid-inside { width: 136px; height: 96px; margin: -48px 0 0 -68px; transform: translateY(-10px) rotateX(-90deg); background: #3A1202; border: none; box-shadow: inset 0 0 20px #000; }

@keyframes lidFloat {
    0%, 100% { transform: rotateX(100deg); }
    50%      { transform: rotateX(110deg); }
}
@keyframes chestFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Floating elements outside chest */
.floating-items {
    position: absolute; top: 0; left: 0;
    transform-style: preserve-3d;
}
.f-item {
    position: absolute;
    width: 30px; height: 30px;
    margin: -15px 0 0 -15px;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
    animation: floatItem 3s ease-in-out infinite;
}
.f-item i { width: 100%; height: 100%; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
.f-item.coin i { color: #FFD166; fill: #FFB800; }
.f-item.ruby i { color: #FF2B4A; fill: #D10020; }
.f-item.sapphire i { color: #00E5FF; fill: #00A3CC; }

.f-1 { --tx: -80px; --ty: -60px; --tz: 30px; --ry: 45deg; animation-delay: 0s; }
.f-2 { --tx: 60px; --ty: -90px; --tz: 10px; --ry: -30deg; animation-delay: 0.5s; width: 24px; height: 24px; }
.f-3 { --tx: 80px; --ty: -30px; --tz: 50px; --ry: 15deg; animation-delay: 1s; width: 36px; height: 36px; }
.f-4 { --tx: -40px; --ty: -100px; --tz: -20px; --ry: -15deg; animation-delay: 1.5s; width: 26px; height: 26px; }

@keyframes floatItem {
    0%, 100% { transform: translate3d(var(--tx), var(--ty), var(--tz)) translateY(0) rotateY(var(--ry)); }
    50%      { transform: translate3d(var(--tx), var(--ty), var(--tz)) translateY(-15px) rotateY(calc(var(--ry) + 20deg)); }
}
/* 飘浮闪光星点 */
.sparkle {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    animation: twinkle 2.6s ease-in-out infinite;
}
.sparkle::before, .sparkle::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #fff 0%, rgba(255,240,200,0.95) 30%, transparent 80%);
    border-radius: 50%;
}
.sparkle::before { width: 22%; height: 100%; }
.sparkle::after  { width: 100%; height: 22%; }
.sparkle-1 { right: 40px;  top: 24px;  width: 20px; height: 20px; animation-delay: 0s; }
.sparkle-2 { right: 198px; top: 60px;  width: 14px; height: 14px; animation-delay: 0.7s; }
.sparkle-3 { right: 60px;  top: 166px; width: 17px; height: 17px; animation-delay: 1.2s; }
.sparkle-4 { right: 216px; top: 32px;  width: 12px; height: 12px; animation-delay: 1.7s; }
.sparkle-5 { right: 26px;  top: 108px; width: 13px; height: 13px; animation-delay: 0.4s; }
@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50%      { opacity: 1;   transform: scale(1.15); }
}
.reward-bg .bg-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(8,8,10,0) 0%, rgba(8,8,10,0) 66%, var(--bg-app) 100%);
    z-index: 3;
}

.reward-header { padding: 44px 16px 16px; position: relative; z-index: 1; }
.coin-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}
.coin-text {
    font-size: 16px;
    color: #ccc;
    font-weight: 500;
}
.coin-number {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    font-family: 'DIN Alternate', sans-serif;
    line-height: 1;
}

.reward-section { padding: 0 16px; margin-bottom: 24px; position: relative; z-index: 1; }

.sign-in-card { 
    background: linear-gradient(145deg, #2D2214 0%, #151008 100%);
    padding: 20px 16px; 
    border-radius: 20px; 
    border: 1px solid rgba(255, 209, 102, 0.15);
    box-shadow: 0 16px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255, 209, 102, 0.2);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    position: relative; overflow: hidden;
}
.sign-in-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px;
}
.sign-in-titles h3 {
    font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.sub-link {
    font-size: 12px; color: rgba(255,102,102,0.8); display: flex; align-items: center; gap: 2px;
}
.reminder-toggle {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: var(--radius-full);
}
.reminder-toggle span { font-size: 11px; color: #ccc; }
.toggle-switch {
    width: 28px; height: 16px; background: rgba(255,255,255,0.3); border-radius: 8px; position: relative;
}
.toggle-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: #fff; border-radius: 50%;
}

.sign-in-days-row {
    display: flex; justify-content: space-between; margin-bottom: 24px; gap: 4px;
}
.day-col {
    display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1;
}
.reward-val {
    font-size: 11px; font-weight: 700; color: #fff;
}
.coin-icon-box {
    width: 32px; height: 32px; background: rgba(255,184,0,0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.coin-icon-box i { width: 16px; height: 16px; color: var(--gold); }
.coin-icon-box.active {
    box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(255,184,0,0.5);
}
.coin-icon-box.double {
    border-radius: 12px; width: 38px;
}
.coin-icon-box.double .small-coin {
    position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px;
}
.day-label {
    font-size: 10px; color: rgba(255,255,255,0.5);
}

.btn-claim-pink {
    width: 100%; padding: 14px; border: none; 
    background: linear-gradient(90deg, #F3D5A5 0%, #D4A559 50%, #F3D5A5 100%);
    background-size: 200% auto;
    color: #4A3000; text-shadow: 0 1px 1px rgba(255,255,255,0.2);
    font-size: 16px; font-weight: 700; border-radius: var(--radius-full);
    box-shadow: 0 6px 16px rgba(212, 165, 89, 0.3);
    display: flex; justify-content: center; align-items: center; gap: 8px;
    cursor: pointer;
    animation: gradientShine 3s ease infinite;
}
@keyframes gradientShine { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.ad-banner-section {
    padding: 0 16px; margin-bottom: 24px; position: relative; z-index: 1;
}
.ad-banner-img {
    width: 100%; height: auto; border-radius: 8px; display: block;
}

.task-section {
    padding: 0 16px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px;
}
.task-group-header {
    margin-bottom: 12px; position: relative;
}
.task-group-header h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.task-group-header p { font-size: 12px; color: rgba(255,255,255,0.5); }
.floating-chest {
    position: absolute; right: 0; bottom: -20px; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
}
.floating-chest img { width: 48px; height: 48px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.chest-val {
    background: var(--gold-gradient); color: #5B3000; font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; display: flex; align-items: center; gap: 2px; margin-top: -8px; z-index: 2;
}

.task-item-card {
    background: linear-gradient(145deg, #251D12 0%, #151008 100%);
    border: 1px solid rgba(255, 209, 102, 0.1);
    border-radius: 16px; padding: 16px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.task-info-left {
    display: flex; flex-direction: column; gap: 6px;
}
.task-info-left h4 { font-size: 14px; font-weight: 500; color: #fff; }
.task-reward-val { display: flex; align-items: center; gap: 4px; }
.val-text { font-size: 13px; color: #FFD166; font-weight: 600; }

.task-info-left.with-cover {
    flex-direction: row; align-items: center; gap: 12px;
}
.drama-cover-small {
    width: 48px; height: 64px; border-radius: 6px; object-fit: cover;
}
.task-desc { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }

.btn-task-action {
    background: linear-gradient(90deg, #F3D5A5 0%, #D4A559 100%);
    color: #4A3000;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(212, 165, 89, 0.3);
    cursor: pointer;
}

/* ============================================================
   7. 签到领取成功弹窗 (.success-overlay)
   — 点击「签到 + 200 奖励币」后弹出，庆祝领取成功
   — 复用 .reward-page 金色暖黑主题，参考庆祝弹窗结构设计
   ============================================================ */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    background: rgba(5, 4, 3, 0.78);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: overlayIn 0.35s ease both;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

/* 庆祝彩屑层 */
.confetti-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.confetti {
    position: absolute;
    top: -16px;
    width: 7px; height: 7px;
    opacity: 0;
    border-radius: 1px;
    animation: confettiFall linear infinite;
}
.confetti.circle { border-radius: 50%; }
@keyframes confettiFall {
    0%   { transform: translate3d(0, -16px, 0) rotate(0deg);     opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translate3d(var(--drift, 0px), 900px, 0) rotate(720deg); opacity: 0; }
}

/* 弹窗主体 */
.success-modal {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 26px;
    padding: 0 18px 22px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(255,140,43,0.18) 0%, transparent 60%),
        linear-gradient(168deg, #2D2214 0%, #1A1208 52%, #0E0904 100%);
    border: 1px solid rgba(255, 209, 102, 0.28);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.7),
        0 0 44px rgba(255, 140, 43, 0.18),
        inset 0 1px 0 rgba(255, 209, 102, 0.22);
    overflow: hidden;
    animation: modalIn 0.5s cubic-bezier(0.18, 0.9, 0.32, 1.25) both;
}
@keyframes modalIn {
    0%   { transform: scale(0.72) translateY(18px); opacity: 0; }
    100% { transform: scale(1) translateY(0);      opacity: 1; }
}

/* 顶部彩带横幅 */
.success-ribbon {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 9px 26px 11px;
    background: linear-gradient(180deg, #FF8C3B 0%, #FF2B4A 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 8px 16px rgba(255, 43, 74, 0.42);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 78% 100%, 70% 78%, 50% 100%, 30% 78%, 22% 100%, 0 100%);
    display: flex; align-items: center; gap: 6px;
}
.success-ribbon i { width: 13px; height: 13px; }

/* 礼物图标 + 光晕 + 放射光 */
.success-icon-wrap {
    position: relative;
    width: 132px; height: 132px;
    margin: 80px auto 10px;
    display: flex; align-items: center; justify-content: center;
}
.success-rays {
    position: absolute; inset: 0;
    background: conic-gradient(from 0deg,
        transparent 0deg, rgba(255,184,0,0.16) 8deg, transparent 16deg,
        transparent 34deg, rgba(255,184,0,0.16) 42deg, transparent 50deg,
        transparent 68deg, rgba(255,184,0,0.16) 76deg, transparent 84deg,
        transparent 102deg, rgba(255,184,0,0.16) 110deg, transparent 118deg,
        transparent 136deg, rgba(255,184,0,0.16) 144deg, transparent 152deg,
        transparent 170deg, rgba(255,184,0,0.16) 178deg, transparent 186deg,
        transparent 204deg, rgba(255,184,0,0.16) 212deg, transparent 220deg,
        transparent 238deg, rgba(255,184,0,0.16) 246deg, transparent 254deg,
        transparent 272deg, rgba(255,184,0,0.16) 280deg, transparent 288deg,
        transparent 306deg, rgba(255,184,0,0.16) 314deg, transparent 322deg,
        transparent 340deg, rgba(255,184,0,0.16) 348deg, transparent 356deg);
    border-radius: 50%;
    animation: raySpin 14s linear infinite;
    mask-image: radial-gradient(circle, transparent 26%, #000 28%, #000 70%, transparent 74%);
    -webkit-mask-image: radial-gradient(circle, transparent 26%, #000 28%, #000 70%, transparent 74%);
}
@keyframes raySpin { to { transform: rotate(360deg); } }
.success-glow {
    position: absolute; inset: 18px;
    background: radial-gradient(circle, rgba(255,140,43,0.55) 0%, rgba(255,184,0,0.18) 45%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2.4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.12); }
}
/* 签到成功弹窗 - 礼物图片（替代原 3D 礼物盒） */
.success-gift-img {
    position: relative;
    width: 180px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.35));
    animation: giftFloat 3s ease-in-out infinite;
}
/* ================= 3D CSS GIFT BOX ================= */
.gift-3d-wrapper {
    position: relative;
    width: 100%; height: 100%;
    perspective: 800px;
    transform-style: preserve-3d;
    animation: giftFloat 3s ease-in-out infinite;
}
.gift-3d-scene {
    position: absolute;
    top: 50%; left: 50%;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-35deg);
}
.box-face {
    position: absolute;
    top: 0; left: 0;
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #FF5C36, #C21807);
    border: 1px solid rgba(0,0,0,0.15);
}
.box-face.dark { background: linear-gradient(135deg, #E63A1F, #991100); }
.box-face.darker { background: linear-gradient(135deg, #C21807, #7F0000); }

/* Ribbons */
.ribbon-v::after {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; margin-left: -7px;
    background: linear-gradient(to bottom, #FFE082, #F57C00);
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.ribbon-h::after {
    content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 14px; margin-top: -7px;
    background: linear-gradient(to right, #FFE082, #F57C00);
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.ribbon-cross::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 14px; margin-left: -7px;
    background: linear-gradient(to bottom, #FFE082, #F57C00);
    z-index: 1;
}

/* Base (70x70x50) */
.b-front  { width: 70px; height: 50px; margin: -25px 0 0 -35px; transform: translateZ(35px); }
.b-back   { width: 70px; height: 50px; margin: -25px 0 0 -35px; transform: translateZ(-35px) rotateY(180deg); }
.b-left   { width: 70px; height: 50px; margin: -25px 0 0 -35px; transform: translateX(-35px) rotateY(-90deg); }
.b-right  { width: 70px; height: 50px; margin: -25px 0 0 -35px; transform: translateX(35px) rotateY(90deg); }
.b-bottom { width: 70px; height: 70px; margin: -35px 0 0 -35px; transform: translateY(25px) rotateX(-90deg); background: #4A0000; }

/* Inside Floor (Gold/Treasure surface) */
.b-inside {
    width: 68px; height: 68px; margin: -34px 0 0 -34px; 
    transform: translateY(-15px) rotateX(90deg); /* High up in the box */
    background: radial-gradient(ellipse at center, #FFF3C4 0%, #FFB347 50%, #7A330C 100%);
    box-shadow: 0 0 20px #FFD700;
}
.treasure-pile {
    position: absolute; inset: -10px;
    background: 
        radial-gradient(circle at 20% 30%, #FFD700 15%, transparent 25%),
        radial-gradient(circle at 80% 40%, #FFD700 20%, transparent 30%),
        radial-gradient(circle at 50% 50%, #FFD700 25%, transparent 35%),
        radial-gradient(circle at 35% 70%, #FFD700 18%, transparent 28%),
        radial-gradient(circle at 75% 65%, #FFD700 22%, transparent 32%),
        radial-gradient(circle at 15% 65%, #00E5FF 20%, transparent 30%),
        radial-gradient(circle at 85% 60%, #EA80FC 20%, transparent 30%);
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transform: translateZ(5px);
}

/* Lid Hinge Group */
.lid-group {
    position: absolute; top: 0; left: 0;
    transform-style: preserve-3d;
    transform: translate3d(0, -25px, -35px) rotateX(75deg); /* Opened */
    animation: lidBounce 3s ease-in-out infinite;
}
@keyframes lidBounce {
    0%, 100% { transform: translate3d(0, -25px, -35px) rotateX(75deg); }
    50%      { transform: translate3d(0, -25px, -35px) rotateX(85deg); }
}

/* Lid Faces (74x74x14) */
.l-top    { width: 74px; height: 74px; margin: -37px 0 0 -37px; transform: translate3d(0, -14px, 37px) rotateX(90deg); }
.l-front  { width: 74px; height: 14px; margin: -7px 0 0 -37px;  transform: translate3d(0, -7px, 74px); }
.l-back   { width: 74px; height: 14px; margin: -7px 0 0 -37px;  transform: translate3d(0, -7px, 0) rotateY(180deg); }
.l-left   { width: 74px; height: 14px; margin: -7px 0 0 -37px;  transform: translate3d(-37px, -7px, 37px) rotateY(-90deg); }
.l-right  { width: 74px; height: 14px; margin: -7px 0 0 -37px;  transform: translate3d(37px, -7px, 37px) rotateY(90deg); }
.l-inside { width: 72px; height: 72px; margin: -36px 0 0 -36px; transform: translate3d(0, 0, 37px) rotateX(-90deg); background: #991100; box-shadow: inset 0 0 15px #000; }

/* Floating Coins in 3D */
.coin-3d {
    position: absolute;
    width: 24px; height: 24px; margin: -12px 0 0 -12px;
    transform-style: preserve-3d;
    animation: coinBurst3D 2s ease-out infinite;
}
.coin-3d svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }

.c-1 { animation-delay: 0s; }
.c-2 { animation-delay: .3s; }
.c-3 { animation-delay: .6s; }

@keyframes coinBurst3D {
    0%   { transform: translate3d(0, 0, 0) rotateY(0deg) scale(0.5); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate3d(-30px, -80px, 30px) rotateY(360deg) scale(1); opacity: 0; }
}
@keyframes coinBurst3D-2 {
    0%   { transform: translate3d(0, 0, 0) rotateY(0deg) scale(0.5); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate3d(20px, -90px, 10px) rotateY(360deg) scale(1.1); opacity: 0; }
}
@keyframes coinBurst3D-3 {
    0%   { transform: translate3d(0, 0, 0) rotateY(0deg) scale(0.5); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate3d(10px, -70px, 40px) rotateY(360deg) scale(0.9); opacity: 0; }
}
.c-2 { animation-name: coinBurst3D-2; }
.c-3 { animation-name: coinBurst3D-3; }

@keyframes giftFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
/* +200 浮动数字 */
.success-amount-pop {
    position: absolute;
    top: -10px; right: 0px;
    font-family: 'DIN Alternate', sans-serif;
    font-size: 20px; font-weight: 800;
    color: #FFD166;
    text-shadow: 0 2px 8px rgba(255,184,0,0.6);
    animation: amountPop 1.6s ease-in-out infinite;
    z-index: 5;
}
@keyframes amountPop {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50%      { transform: translateY(-4px) scale(1.08); opacity: 0.92; }
}

/* 标题 + 副标题 */
.success-title {
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.success-title .amount {
    font-family: 'DIN Alternate', sans-serif;
    color: #FFD166;
    margin-left: 2px;
}
.success-subtitle {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 209, 102, 0.72);
    margin-bottom: 18px;
    line-height: 1.5;
}
.success-subtitle b { color: #FFD166; font-weight: 700; }

/* 7 天奖励行（紧凑版） */
.success-days {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    background: rgba(0,0,0,0.32);
    border: 1px solid rgba(255, 209, 102, 0.08);
    padding: 12px 6px 10px;
    border-radius: 14px;
    margin-bottom: 14px;
}
.succ-day {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    min-width: 0;
}
.succ-bubble {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,184,0,0.1);
    border: 1px solid rgba(255,184,0,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.62);
    font-family: 'DIN Alternate', sans-serif;
    position: relative;
}
.succ-bubble i { width: 15px; height: 15px; color: #FFD166; }
.succ-day.today .succ-bubble {
    background: linear-gradient(135deg, #FFE082 0%, #FFA726 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.5);
    animation: claimedPulse 1.8s ease-in-out infinite;
}
.succ-day.today .succ-bubble i { color: #5B3000; }
@keyframes claimedPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 167, 38, 0.45); }
    50%      { box-shadow: 0 4px 20px rgba(255, 167, 38, 0.85); }
}
.succ-label {
    font-size: 8.5px;
    color: rgba(255,255,255,0.4);
    line-height: 1;
}
.succ-day.today .succ-label { color: #FFD166; font-weight: 700; }
.succ-day.future .succ-label { color: rgba(255,255,255,0.32); }

/* 底部过期提示 */
.success-note {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.38);
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.success-note i { width: 12px; height: 12px; }

/* CTA 按钮 */
.success-cta {
    width: 100%;
    padding: 13px;
    border: none;
    background: linear-gradient(90deg, #F3D5A5 0%, #D4A559 50%, #F3D5A5 100%);
    background-size: 200% auto;
    color: #4A3000;
    font-size: 15px;
    font-weight: 800;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 18px rgba(212, 165, 89, 0.42);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer;
    animation: gradientShine 3s ease infinite;
}
.success-cta .cta-coin {
    font-family: 'DIN Alternate', sans-serif;
    color: #6B4500;
}
.success-cta i { width: 16px; height: 16px; color: #6B4500; }

/* 关闭按钮 */
.success-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    z-index: 6;
}
.success-close i { width: 14px; height: 14px; }

/* ============================================================
   黄金金库 (Golden Vault) — reward.html 全新设计 (v2)
   以下样式均带独立命名空间，不修改上方旧规则，
   保证 reward_success.html 继续正常工作。
   ============================================================ */

/* ---------- 页面 & 氛围背景 ---------- */
.reward-vault {
    background:
        radial-gradient(130% 78% at 80% -8%, #4a2408 0%, #2a1405 30%, #140b04 55%, var(--bg-app) 78%);
    overflow-y: auto;
    overflow-x: hidden;
}
.reward-vault::before,
.reward-vault::after { content: none; } /* 关掉旧 reward-page 的色块 */

.vault-sky {
    position: absolute; inset: 0;
    z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-bg-chest {
    position: absolute;
    top: -70px;
    right: -80px;
    width: 340px;
    height: 340px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.help-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 8px;
}
.help-btn i, .help-q { width: 26px; height: 26px; }
.sky-bloom {
    position: absolute; border-radius: 50%; filter: blur(38px);
}
.sky-bloom-a {
    top: -70px; right: -60px; width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,140,43,.45) 0%, rgba(255,90,30,.14) 45%, transparent 72%);
}
.sky-bloom-b {
    top: 150px; left: -90px; width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(255,209,102,.18) 0%, transparent 70%);
}
.sky-grain {
    position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
    background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 3px 3px;
}
.spark {
    position: absolute; width: 14px; height: 14px; pointer-events: none;
    animation: twinkle 2.8s ease-in-out infinite;
}
.spark::before, .spark::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255,240,200,.9) 30%, transparent 80%);
}
.spark::before { width: 22%; height: 100%; }
.spark::after  { width: 100%; height: 22%; }
.spark-1 { right: 42px;  top: 28px;  width: 16px; height: 16px; animation-delay: 0s; }
.spark-2 { right: 150px; top: 70px;  width: 10px; height: 10px; animation-delay: .8s; }
.spark-3 { left: 30px;   top: 120px; width: 12px; height: 12px; animation-delay: 1.3s; }
.spark-4 { right: 60px;  top: 180px; width: 9px;  height: 9px;  animation-delay: 1.9s; }
.spark-5 { left: 90px;   top: 60px;  width: 8px;  height: 8px;  animation-delay: .4s; }
.spark-6 { right: 120px; top: 210px; width: 11px; height: 11px; animation-delay: 1.1s; }

/* ---------- Hero ---------- */
.vault-hero {
    position: relative; z-index: 1;
    padding: 8px 18px 4px;
    animation: rise .55s cubic-bezier(.2,.8,.2,1) both;
}
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.balance { min-width: 0; }
.balance-label {
    display: block; font-size: 12px; letter-spacing: .5px;
    color: rgba(255,209,102,.7); font-weight: 600; margin-bottom: 4px;
}
.balance-amount { display: flex; align-items: center; gap: 8px; }
.balance-coin { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px rgba(255,184,0,.45)); }
.balance-num {
    font-family: 'DIN Alternate', 'Oswald', sans-serif;
    font-size: 46px; font-weight: 800; line-height: .9;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.balance-more { width: 18px; height: 18px; color: rgba(255,209,102,.6); margin-left: -2px; }
.streak-chip {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
    font-size: 11px; color: rgba(255,255,255,.62);
    background: rgba(255,140,43,.14); border: 1px solid rgba(255,140,43,.28);
    padding: 4px 10px; border-radius: var(--radius-full);
}
.streak-chip i { width: 13px; height: 13px; color: #FF8C3B; }
.streak-chip b { color: #FFD166; font-weight: 700; font-family: 'DIN Alternate'; }

/* ---------- 打开的宝箱（替换原太阳徽章） ---------- */
.emblem {
    position: relative; flex: 0 0 auto;
    width: 116px; height: 116px;
    display: flex; align-items: center; justify-content: center;
}
.chest-glow {
    position: absolute; inset: 4px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,184,0,.55) 0%, rgba(255,140,43,.2) 45%, transparent 70%);
    animation: haloPulse 2.6s ease-in-out infinite;
}
.hero-chest {
    position: relative; width: 104px; height: 104px;
    filter: drop-shadow(0 12px 20px rgba(255,90,20,.55));
    animation: coinFloat 3.6s ease-in-out infinite;
}
.chest-spark {
    position: absolute; width: 6px; height: 6px; border-radius: 50%; z-index: 2;
    background: radial-gradient(circle, #FFE9A8, #FF8C3B);
    box-shadow: 0 0 8px rgba(255,184,0,.9);
    opacity: 0; animation: emberRise 3.2s ease-in infinite;
}
.chest-spark.s1 { left: 18%; bottom: 34%; animation-delay: 0s; }
.chest-spark.s2 { right: 16%; bottom: 40%; animation-delay: 1.1s; }
.chest-spark.s3 { left: 54%; bottom: 26%; animation-delay: 2.1s; }

/* 跑马灯 */
.ticker {
    position: relative; z-index: 1;
    margin-top: 16px;
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,.32); border: 1px solid rgba(255,209,102,.1);
    border-radius: var(--radius-full); padding: 6px 14px 6px 12px;
    overflow: hidden;
}
.ticker-ic { width: 14px; height: 14px; color: #FF8C3B; flex: 0 0 auto; }
.ticker-mask { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track {
    display: inline-flex; gap: 36px; white-space: nowrap;
    animation: tickerScroll 16s linear infinite;
    font-size: 11px; color: rgba(255,255,255,.6);
}
.ticker-track b { color: #FFD166; font-family: 'DIN Alternate'; }

/* ---------- 通用卡片 ---------- */
.vault-card {
    position: relative; z-index: 1;
    margin: 14px 16px 0;
    padding: 18px 16px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(40,28,16,.92) 0%, rgba(18,12,6,.94) 100%);
    border: 1px solid rgba(255,209,102,.13);
    box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,209,102,.14);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    animation: rise .55s cubic-bezier(.2,.8,.2,1) both;
}
.vault-hero + .vault-card { animation-delay: .06s; }
.vault-card + .vault-card { animation-delay: .04s; }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 10px; }
.card-titles h3 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.upgrade-link { font-size: 12px; color: #FF4B2B; display: flex; align-items: center; gap: 2px; margin-top: 4px; text-decoration: none; }
.upgrade-link i { width: 12px; height: 12px; }
.card-titles p  { font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 4px; }
.head-tip { font-size: 11px; color: rgba(255,255,255,.5); white-space: nowrap; padding-top: 2px; }
.head-tip b { color: #FFD166; font-family: 'DIN Alternate'; font-weight: 700; }

.reminder-toggle { display: flex; align-items: center; gap: 6px; }
.reminder-toggle span { font-size: 11px; color: rgba(255,255,255,0.5); }
.toggle-switch { width: 28px; height: 16px; background: rgba(255,255,255,0.3); border-radius: 8px; position: relative; cursor: pointer; }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.toggle-switch.active { background: #4ade80; }
.toggle-switch.active::after { transform: translateX(12px); }

.remind-btn {
    display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
    font-size: 11px; color: rgba(255,209,102,.85);
    background: rgba(255,184,0,.12); border: 1px solid rgba(255,184,0,.25);
    padding: 5px 10px; border-radius: var(--radius-full);
}
.remind-btn i { width: 13px; height: 13px; }

/* ---------- 7 天签到盖章卡 ---------- */
.checkin .week-track {
    position: relative; display: flex; justify-content: space-between;
    gap: 4px; padding: 10px 0 2px;
}
.stamp {
    position: relative; flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 2px; border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform .25s ease;
}
.stamp-reward {
    height: 13px; font-size: 11px; font-weight: 800; font-family: 'DIN Alternate';
    color: rgba(255,255,255,0.8);
}
.coin-seal-img {
    width: 32px; height: 32px; border-radius: 50%;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    border: none !important;
}
.coin-seal-img img {
    width: 100%; height: 100%;
    filter: drop-shadow(0 2px 4px rgba(255,184,0,0.4));
}
.coin-seal {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #FFB800, #FF8C3B);
    display: flex; align-items: center; justify-content: center;
    border: none !important;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2), 0 2px 4px rgba(255,140,43,0.4);
}
.coin-seal .n-logo {
    color: #fff; font-size: 14px; font-weight: 800; font-family: Arial, sans-serif;
}
.stamp-seal {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,209,102,.16);
    color: rgba(255,255,255,.4);
}
.stamp-seal i { width: 15px; height: 15px; }
.stamp-day { font-size: 9.5px; color: rgba(255,255,255,.42); white-space: nowrap; }

/* 已领取 */
.stamp.done { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.05); }

/* 今日：红色高亮 */
.stamp.today {
    background: rgba(255, 43, 74, 0.1);
    border: 1px solid #FF2B4A;
    transform: none;
}
.stamp.today .stamp-seal {
    box-shadow: 0 0 0 3px rgba(255,43,74,.25);
    animation: todayPulse 2s ease-in-out infinite;
}
.stamp.today .stamp-reward { color: #fff; font-size: 11px; font-weight: 800; }
.stamp.today .stamp-day { color: #fff; font-weight: 700; }

.claim-btn.red-btn {
    background: linear-gradient(90deg, #FF4B2B 0%, #FF2B4A 50%, #FF4B2B 100%);
    background-size: 200% auto;
    box-shadow: 0 8px 20px rgba(255,43,74,.4);
    margin-top: 18px;
}
.claim-btn.red-btn .claim-text { color: #fff; font-size: 16px; font-weight: 800; }
.ad-badge {
    border: 1px solid #fff;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    margin-right: 4px;
}

/* 第7天：宝箱大奖 */
.stamp.mega {
    background: linear-gradient(180deg, rgba(255,43,74,.2), rgba(255,140,43,.06));
    border-color: rgba(255,43,74,.55);
    box-shadow: 0 8px 18px rgba(255,43,74,.25);
}
.stamp.mega .stamp-seal {
    width: 40px; height: 40px; background: transparent; border: none;
    box-shadow: 0 4px 12px rgba(255,43,74,.4);
}
.stamp.mega .stamp-seal img { width: 42px; height: 42px; }
.stamp.mega .stamp-reward { color: #FFD166; font-size: 12px; }
.stamp.mega .stamp-day { color: #fff; font-weight: 700; }

/* 顶部小标签（可领 / 翻倍大奖） */
.stamp-tag {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3;
    background: linear-gradient(90deg, #FF4B2B, #FF2B4A); color: #fff;
    font-size: 8.5px; font-weight: 800; padding: 2px 6px; border-radius: 7px; white-space: nowrap;
    box-shadow: 0 3px 8px rgba(255,43,74,.55);
}
.stamp-tag.gold { background: linear-gradient(90deg, #FF8C3B, #FFC857); color: #4A2400; }

/* 周期进度条 */
.checkin-progress {
    display: flex; align-items: center; gap: 10px; margin-top: 14px;
    padding-top: 13px; border-top: 1px dashed rgba(255,209,102,.14);
}
.cp-text { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; }
.cp-text b { color: #FFD166; font-family: 'DIN Alternate'; font-weight: 700; }
.cp-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,209,102,.14); overflow: hidden; }
.cp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #FFD166, #FFA726); border-radius: 3px; box-shadow: 0 0 6px rgba(255,184,0,.5); }
.cp-makeup { font-size: 11px; color: #FF8C3B; white-space: nowrap; font-weight: 600; }

.claim-btn {
    width: 100%; margin-top: 18px; padding: 14px;
    border: none; cursor: pointer;
    background: linear-gradient(90deg, #F3D5A5 0%, #D4A559 50%, #F3D5A5 100%);
    background-size: 200% auto;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 8px 20px rgba(212,165,89,.4);
    animation: gradientShine 3s ease infinite;
}
.claim-text { font-size: 16px; font-weight: 800; color: #4A3000; }
.claim-coin { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 800; color: #6B4500; font-family: 'DIN Alternate'; }
.claim-coin img { width: 16px; height: 16px; }

/* ---------- 看视频赚金币 ---------- */
.ad-card {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-color: rgba(255,140,43,.32);
    background: linear-gradient(110deg, rgba(58,24,8,.95) 0%, rgba(20,11,5,.94) 70%);
    overflow: hidden;
}
.ad-glow {
    position: absolute; top: -40px; right: -40px; width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(255,140,43,.4) 0%, transparent 70%);
    filter: blur(18px); pointer-events: none;
}
.ad-icon {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, #FF8C3B, #FF2B4A);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(255,43,74,.4);
}
.ad-icon i { width: 22px; height: 22px; color: #fff; }
.ad-info { flex: 1; min-width: 0; }
.ad-info h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ad-meta { display: flex; align-items: center; gap: 8px; }
.ad-count { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; font-family: 'DIN Alternate'; }
.ad-btn {
    flex: 0 0 auto; cursor: pointer; border: none;
    padding: 8px 14px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, #FFE082, #FFA726);
    box-shadow: 0 5px 12px rgba(255,167,38,.45);
    display: flex; flex-direction: column; align-items: center; line-height: 1.1;
}
.ad-val { font-size: 16px; font-weight: 800; color: #4A3000; font-family: 'DIN Alternate'; }
.ad-go  { font-size: 10px; color: #6B4500; font-weight: 700; }

/* ---------- 进度条 ---------- */
.pbar {
    flex: 1; height: 5px; border-radius: 3px;
    background: rgba(255,209,102,.14); overflow: hidden; max-width: 90px;
}
.pbar.sm { height: 4px; }
.pbar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, #FFD166, #FFA726);
    border-radius: 3px; box-shadow: 0 0 6px rgba(255,184,0,.5);
}

/* ---------- 任务行 ---------- */
.task-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,209,102,.07);
}
.task-row:first-of-type { border-top: none; padding-top: 4px; }
.task-ic {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,184,0,.12); border: 1px solid rgba(255,184,0,.18);
    display: flex; align-items: center; justify-content: center;
}
.task-ic i { width: 20px; height: 20px; color: #FFD166; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.task-sub { display: flex; align-items: center; gap: 8px; }
.task-prog { font-size: 11px; color: rgba(255,255,255,.45); font-family: 'DIN Alternate'; white-space: nowrap; }
.task-prog.hot { color: #FF8C3B; }
.task-prog.done { color: #4ade80; }
.task-reward {
    flex: 0 0 auto; font-size: 15px; font-weight: 800; color: #FFD166;
    font-family: 'DIN Alternate'; text-shadow: 0 0 10px rgba(255,184,0,.3);
}
.task-reward.done { color: rgba(255,255,255,.3); text-shadow: none; text-decoration: line-through; }
.task-btn {
    flex: 0 0 auto; cursor: pointer; border: none;
    padding: 7px 15px; border-radius: var(--radius-full);
    background: linear-gradient(90deg, #F3D5A5, #D4A559);
    color: #4A3000; font-size: 12.5px; font-weight: 700;
    box-shadow: 0 3px 10px rgba(212,165,89,.3);
}
.task-btn.hot { background: linear-gradient(135deg, #FF8C3B, #FF2B4A); color: #fff; box-shadow: 0 3px 10px rgba(255,43,74,.4); }
.task-btn.done { background: rgba(255,255,255,.06); color: rgba(255,255,255,.35); box-shadow: none; cursor: default; }

/* ---------- 关键帧 ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes raySpin { to { transform: rotate(360deg); } }
@keyframes haloPulse {
    0%, 100% { opacity: .65; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.12); }
}
@keyframes coinFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@keyframes emberRise {
    0%   { transform: translateY(0) scale(.6); opacity: 0; }
    25%  { opacity: 1; }
    100% { transform: translateY(-34px) scale(1); opacity: 0; }
}
@keyframes todayPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,184,0,.18), 0 6px 16px rgba(255,167,38,.5); }
    50%      { box-shadow: 0 0 0 7px rgba(255,184,0,.1),  0 6px 22px rgba(255,167,38,.8); }
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes twinkle {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .vault-hero, .vault-card, .emblem-rays, .emblem-halo, .emblem-coin,
    .ember, .node.today .node-bubble, .ticker-track, .spark, .claim-btn {
        animation: none !important;
    }
}

/* ============================================================
   打卡规则弹窗 (Rules Modal)
   ============================================================ */
.rules-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: overlayIn 0.3s ease both;
}

.rules-modal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.rules-modal {
    position: relative;
    width: 100%;
    border-radius: 16px;
    padding: 24px 20px;
    background: #242426; /* Dark grey */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    animation: modalIn 0.4s cubic-bezier(0.18, 0.9, 0.32, 1.25) both;
}

.rules-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 18px;
}

.rules-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 8px 0;
}
.rules-content p:last-child {
    margin-bottom: 0;
}

.rules-close-btn {
    margin-top: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    animation: modalIn 0.4s cubic-bezier(0.18, 0.9, 0.32, 1.25) both;
    animation-delay: 0.1s;
}
.rules-close-btn i {
    width: 20px;
    height: 20px;
}

