/* 集集乐 (2026-11-17, staging) */
:root{--jjl-gold1:#ffe58a;--jjl-gold2:#ffc533;--jjl-gold3:#f29a0b;--jjl-red:#ff1f2d;--jjl-ink:#15121f;--jjl-sub:#8a8796}

/* ---------- home star (owner's icon, a light sweeps across every few seconds) ---------- */
.bx .bi .jjl-star{position:absolute;left:6px;top:6px;z-index:6;width:28px;height:28px;border-radius:50%;overflow:hidden;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
.jjl-star-img{display:block;width:100%;height:100%;object-fit:contain}
.bx .bi .jjl-star i{position:absolute;inset:0;border-radius:50%;overflow:hidden}
.bx .bi .jjl-star i::after{content:"";position:absolute;top:-20%;bottom:-20%;left:-80%;width:45%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.85) 50%,rgba(255,255,255,0));transform:skewX(-18deg);animation:jjl-shine 3.6s ease-in-out infinite}
@keyframes jjl-shine{0%,62%{left:-80%}100%{left:140%}}

/* ---------- detail floating button: owner's star with a white ring, black label ---------- */
.jjl-float{position:fixed;right:0;bottom:180px;z-index:1000;display:none;flex-direction:column;align-items:center;gap:3px;padding:0 4px 0 0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.jjl-float-orb{position:relative;width:44px;height:44px;border-radius:50%;background:#fff;padding:2.5px;box-sizing:border-box;box-shadow:0 4px 12px rgba(0,0,0,.22);animation:jjl-float 3s ease-in-out infinite}
.jjl-float-orb .jjl-star-img{border-radius:50%}
.jjl-float-orb i{position:absolute;inset:2.5px;border-radius:50%;overflow:hidden}
.jjl-float-orb i::after{content:"";position:absolute;top:-20%;bottom:-20%;left:-80%;width:45%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.8) 50%,rgba(255,255,255,0));transform:skewX(-18deg);animation:jjl-shine 3.6s ease-in-out infinite}
.jjl-float-label{font-size:11px;font-weight:700;line-height:1;color:#111;background:#fff;padding:3px 6px;border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.18);white-space:nowrap}
.jjl-dot{position:absolute;top:0;right:4px;width:10px;height:10px;border-radius:50%;background:var(--jjl-red);border:2px solid #fff;display:none}
.jjl-float.jjl-ready .jjl-dot{display:block;animation:jjl-pulse 1.2s ease-in-out infinite}
.jjl-float.jjl-ready .jjl-float-orb{animation:jjl-wiggle 1.6s ease-in-out infinite}
.jjl-float.jjl-bump .jjl-float-orb{animation:jjl-bump .6s cubic-bezier(.3,1.6,.5,1)}
@keyframes jjl-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes jjl-spin{to{transform:rotate(360deg)}}
@keyframes jjl-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.35)}}
@keyframes jjl-wiggle{0%,60%,100%{transform:rotate(0)}10%,30%{transform:rotate(-12deg) scale(1.06)}20%,40%{transform:rotate(12deg) scale(1.06)}}
@keyframes jjl-bump{0%{transform:scale(1)}40%{transform:scale(1.28)}100%{transform:scale(1)}}

/* ---------- sheet ---------- */
html.jjl-lock,html.jjl-lock body{overflow:hidden}
.jjl-mask{position:fixed;inset:0;z-index:100050;background:rgba(10,6,20,.62);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:opacity .22s ease}
.jjl-mask.show{opacity:1;pointer-events:auto}
.jjl-sheet{width:100%;max-width:500px;height:min(88vh,760px);height:min(88dvh,760px);background:#fff;border-radius:8px 8px 0 0;overflow:hidden;transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.9,.25,1);box-shadow:0 -10px 40px rgba(0,0,0,.25)}
.jjl-mask.show .jjl-sheet{transform:translateY(0)}
.jjl-body{height:100%;display:flex;flex-direction:column;background:#fff}
.jjl-head{position:relative;flex-shrink:0;display:flex;align-items:center;gap:7px;padding:13px 12px 4px;background:#fff}
.jjl-logo{width:24px;height:24px;border-radius:50%;overflow:hidden;flex-shrink:0}
.jjl-title{font-size:17px;font-weight:800;color:var(--jjl-ink)}
.jjl-close{margin-left:auto;width:28px;height:28px;border:0;background:none;padding:0;cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.jjl-close img{width:22px;height:22px;object-fit:contain}
.jjl-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;background:#f6f5fa;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
.jjl-scroll::-webkit-scrollbar{display:none;width:0;height:0}

/* stage */
.jjl-stage{position:relative;height:250px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:12px;background:linear-gradient(180deg,#fff 0,#fbf8ff 60%,#f6f5fa 100%)}
.jjl-rays{position:absolute;left:50%;top:44%;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;
  background:repeating-conic-gradient(from 0deg,rgba(255,206,84,.20) 0 7deg,rgba(255,255,255,0) 7deg 18deg);
  -webkit-mask:radial-gradient(circle,#000 0,#000 30%,transparent 62%);mask:radial-gradient(circle,#000 0,#000 30%,transparent 62%);animation:jjl-spin 40s linear infinite}
.jjl-glow{position:absolute;left:50%;top:40%;width:190px;height:190px;margin:-95px 0 0 -95px;border-radius:50%;background:radial-gradient(circle,rgba(255,226,140,.75),rgba(255,226,140,0) 70%)}
.jjl-stage::before{content:'';position:absolute;left:50%;top:40%;width:210px;height:210px;margin:-105px 0 0 -105px;background:#fff;opacity:.55;
  clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);filter:drop-shadow(0 0 8px rgba(255,214,110,.7))}
.jjl-spark{position:absolute;width:8px;height:8px;background:#ffd34d;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:jjl-twinkle 2.4s ease-in-out infinite}
.jjl-s1{left:22%;top:22%}.jjl-s2{right:20%;top:32%;width:11px;height:11px;animation-delay:.8s}.jjl-s3{left:30%;top:58%;width:6px;height:6px;animation-delay:1.5s}
@keyframes jjl-twinkle{0%,100%{opacity:.2;transform:scale(.6) rotate(0)}50%{opacity:1;transform:scale(1.1) rotate(45deg)}}
.jjl-reward-img{position:relative;z-index:1;flex:1;width:100%;display:flex;align-items:center;justify-content:center;min-height:0;padding-top:10px}
.jjl-reward-img img{cursor:zoom-in;max-width:60%;max-height:160px;object-fit:contain;filter:drop-shadow(0 12px 14px rgba(70,30,0,.22));animation:jjl-float 3.4s ease-in-out infinite}
.jjl-reward-img.jjl-in-r img{animation:jjl-in-r .38s ease-out,jjl-float 3.4s ease-in-out .38s infinite}
.jjl-reward-img.jjl-in-l img{animation:jjl-in-l .38s ease-out,jjl-float 3.4s ease-in-out .38s infinite}
@keyframes jjl-in-r{from{opacity:0;transform:translateX(40px) scale(.9)}to{opacity:1;transform:none}}
@keyframes jjl-in-l{from{opacity:0;transform:translateX(-40px) scale(.9)}to{opacity:1;transform:none}}
.jjl-reward-price{position:relative;z-index:1;margin-top:6px;font-size:20px;font-weight:900;color:var(--jjl-red);letter-spacing:.3px}
.jjl-reward-name{position:relative;z-index:1;margin-top:2px;font-size:14px;font-weight:600;color:var(--jjl-ink);max-width:80%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jjl-arrow{position:absolute;z-index:2;top:42%;width:30px;height:40px;border:0;background:none;cursor:pointer}
.jjl-arrow::before{content:'';position:absolute;left:10px;top:13px;width:12px;height:12px;border-left:3px solid #2b2638;border-bottom:3px solid #2b2638;border-radius:2px}
.jjl-prev{left:8px}.jjl-prev::before{transform:rotate(45deg)}
.jjl-next{right:8px}.jjl-next::before{transform:rotate(-135deg);left:6px}
.jjl-arrow:disabled{opacity:.18;cursor:default}

/* progress */
.jjl-progress{position:relative;margin:0 12px;padding:12px;border-radius:6px;display:flex;align-items:center;gap:10px;overflow:hidden;
  background:#1b0a26 url(/assets/jijile-20261117/img/bg-progress.webp) center/100% 100% no-repeat;box-shadow:0 6px 14px rgba(40,10,40,.28)}
.jjl-progress::before{content:none}
.jjl-progress::after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.12) 50%,transparent 65%);transform:translateX(-100%);animation:jjl-sweep 4s ease-in-out infinite}
@keyframes jjl-sweep{0%,60%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.jjl-prog-main{position:relative;z-index:1;flex:1;min-width:0}
.jjl-prog-top{display:flex;align-items:center;gap:7px;color:#fff;font-size:13px}
.jjl-tag{font:italic 900 12px/1 inherit;color:#fff;background:linear-gradient(180deg,#ff4b4b,#d8001b);padding:4px 7px 3px;border-radius:2px 6px 2px 6px;box-shadow:0 2px 6px rgba(255,0,40,.35)}
.jjl-prog-txt{font-weight:700;white-space:nowrap}
.jjl-prog-txt b{color:var(--jjl-gold2);font-size:15px}
.jjl-round{font-size:11px;color:#d8c8ff;background:rgba(255,255,255,.12);padding:2px 6px;border-radius:8px;white-space:nowrap}
.jjl-bar{margin-top:9px;height:6px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.35)}
.jjl-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#ffe58a,#ffb21f);box-shadow:0 0 8px rgba(255,190,40,.8);transition:width .6s cubic-bezier(.3,1.2,.5,1)}
.jjl-claim{position:relative;z-index:1;flex-shrink:0;min-width:78px;height:34px;padding:0 12px;border:0;border-radius:4px;font-size:14px;font-weight:800;color:#8f8c99;background:#d9d7df;cursor:not-allowed}
.jjl-claim-on{color:#6a2c00;cursor:pointer;background:linear-gradient(180deg,#fff2b8,#ffc533 55%,#f29a0b);box-shadow:0 0 0 2px rgba(255,236,170,.55),0 4px 14px rgba(255,170,30,.6);animation:jjl-breathe 1.4s ease-in-out infinite}
.jjl-claim-on.jjl-loading{opacity:.7;animation:none}
@keyframes jjl-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.jjl-done .jjl-bar i{background:linear-gradient(90deg,#ffe58a,#ff8a00,#ffe58a);background-size:200% 100%;animation:jjl-flow 1.6s linear infinite}
@keyframes jjl-flow{to{background-position:-200% 0}}
.jjl-hint{margin:8px 16px 0;font-size:11px;line-height:1.45;color:var(--jjl-sub)}

/* codex */
.jjl-codex-head{display:flex;align-items:center;justify-content:space-between;margin:16px 14px 10px}
.jjl-codex-head b{font-size:15px;font-weight:900;color:var(--jjl-ink)}
.jjl-rec-link{display:flex;align-items:center;gap:4px;border:0;background:none;font-size:13px;font-weight:700;color:#111;cursor:pointer;padding:4px 0}
.jjl-rec-link img{width:16px;height:16px;object-fit:contain}
.jjl-rec-ic{width:14px;height:14px;border-radius:3px;background:#2b2638;position:relative}
.jjl-rec-ic::before{content:'';position:absolute;left:3px;right:3px;top:4px;height:1.5px;background:#fff;box-shadow:0 3px 0 #fff}
.jjl-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0 12px}
.jjl-cell{position:relative;background:#fff;border-radius:4px;cursor:pointer;padding:6px 5px 7px;box-shadow:0 2px 8px rgba(40,20,80,.06);overflow:hidden}
.jjl-cell-img{aspect-ratio:1/1;border-radius:3px;background:linear-gradient(180deg,#3b3a44,#24232b);display:flex;align-items:center;justify-content:center;overflow:hidden}
.jjl-cell-img img{width:88%;height:88%;object-fit:contain;filter:grayscale(1) brightness(.8);opacity:.75;transition:filter .4s,opacity .4s}
.jjl-cell-name{margin-top:5px;font-size:11px;line-height:1.3;color:#3a3446;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.jjl-cell-price{font-size:10px;color:#a5a2ae;text-align:center;margin-top:1px}
.jjl-cell.jjl-on{box-shadow:0 0 0 1.5px #ffd056,0 4px 12px rgba(255,180,40,.28)}
.jjl-cell.jjl-on .jjl-cell-img{background:radial-gradient(circle at 50% 40%,#fff8de,#ffe7a3 70%,#ffd36b)}
.jjl-cell.jjl-on .jjl-cell-img img{filter:none;opacity:1}
.jjl-cell.jjl-on .jjl-cell.jjl-on .jjl-cell-price{color:var(--jjl-red);font-weight:700}

.jjl-rec-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:60px 20px;color:var(--jjl-sub);font-size:13px;text-align:center}
.jjl-empty-star{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ebe9f1}
.jjl-empty-star svg{width:28px;height:28px;fill:#fff}
.jjl-rec-more{display:flex;justify-content:center;padding:6px}
.jjl-spin{width:22px;height:22px;border-radius:50%;border:3px solid #e2dfea;border-top-color:var(--jjl-gold3);animation:jjl-spin .8s linear infinite}

.jjl-loading-view{flex:1;display:flex;align-items:center;justify-content:center}
.jjl-loading-view .jjl-spin{width:30px;height:30px}

/* claim celebration */
.jjl-win{position:fixed;inset:0;z-index:100060;background:rgba(10,6,20,.72);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .25s}
.jjl-win.show{opacity:1}
.jjl-win-card{position:relative;width:min(300px,82vw);padding:34px 18px 18px;border-radius:8px;text-align:center;overflow:hidden;
  background:linear-gradient(180deg,#3a1470 0,#1d0b3d 100%);box-shadow:0 0 0 2px rgba(255,214,110,.5),0 20px 50px rgba(0,0,0,.45);transform:scale(.7);transition:transform .45s cubic-bezier(.25,1.6,.45,1)}
.jjl-win.show .jjl-win-card{transform:scale(1)}
.jjl-win-rays{position:absolute;left:50%;top:38%;width:560px;height:560px;margin:-280px 0 0 -280px;background:repeating-conic-gradient(rgba(255,206,84,.18) 0 8deg,transparent 8deg 20deg);animation:jjl-spin 18s linear infinite}
.jjl-win-badge{position:absolute;left:50%;top:-1px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:5px 12px 6px;border-radius:0 0 6px 6px;background:linear-gradient(180deg,#ffe58a,#f29a0b);color:#6a2c00;font:italic 900 13px/1 inherit}
.jjl-win-badge svg{width:13px;height:13px;fill:#fff}
.jjl-win-title{position:relative;font-size:22px;font-weight:900;color:#ffe58a;text-shadow:0 2px 0 #7a3c00,0 0 18px rgba(255,200,60,.6)}
.jjl-win-img{position:relative;height:150px;display:flex;align-items:center;justify-content:center;margin:8px 0 4px}
.jjl-win-img img{max-width:70%;max-height:150px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(255,190,60,.45));animation:jjl-float 3s ease-in-out infinite}
.jjl-win-name{position:relative;color:#fff;font-size:15px;font-weight:700}
.jjl-win-price{position:relative;color:#ffcf3e;font-size:20px;font-weight:900;margin-top:2px}
.jjl-win-tip{position:relative;color:#cbbcf0;font-size:12px;margin-top:6px}
.jjl-win-btns{position:relative;display:flex;gap:10px;margin-top:16px}
.jjl-win-btns button{flex:1;height:40px;border:0;border-radius:4px;font-size:14px;font-weight:800;cursor:pointer}
.jjl-win-wh{background:rgba(255,255,255,.14);color:#fff}
.jjl-win-ok{background:linear-gradient(180deg,#fff2b8,#ffc533 55%,#f29a0b);color:#6a2c00;box-shadow:0 4px 14px rgba(255,170,30,.5)}
.jjl-confetti{position:absolute;top:-10px;width:7px;height:12px;border-radius:2px;background:#ffd34d;animation:jjl-fall 2.6s linear infinite;opacity:.9}
.jjl-confetti:nth-of-type(1){left:12%;animation-delay:0s}.jjl-confetti:nth-of-type(2){left:28%;background:#ff4f6d;animation-delay:.5s}
.jjl-confetti:nth-of-type(3){left:46%;background:#6ee7ff;animation-delay:1.1s}.jjl-confetti:nth-of-type(4){left:63%;animation-delay:.3s}
.jjl-confetti:nth-of-type(5){left:78%;background:#b48bff;animation-delay:.8s}.jjl-confetti:nth-of-type(6){left:90%;background:#ff4f6d;animation-delay:1.6s}
@keyframes jjl-fall{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(460px) rotate(540deg)}}
@media (prefers-reduced-motion:reduce){.jjl-rays,.jjl-win-rays,.jjl-float-ring,.jjl-confetti,.jjl-float-orb,.jjl-reward-img img{animation:none!important}}

/* ===== v3 (2026-11-17 owner feedback) ===== */
/* header: title, inline segmented tabs (same control as 抽赏记录 SP / A), larger close */
.jjl-head{padding:12px 10px 10px 12px;gap:6px}
.jjl-head .pgseg.pgs-jjl:not(.pgs-off){display:inline-flex;flex:0 0 auto;height:auto!important;margin:0 0 0 8px!important;padding:3px!important}
.jjl-head .pgs-jjl:not(.pgs-off)>.pgseg-tab{flex:0 0 auto;width:calc(12.8 * var(--pg-unit,1vw));min-width:44px;max-width:58px;height:26px;padding:0;border:0;font-size:12px;font-weight:700;line-height:26px}
.jjl-head .pgs-jjl:not(.pgs-off)>.pgseg-ink{border-radius:9px}
.jjl-tab-ready::before{content:"";position:absolute;top:2px;right:5px;width:6px;height:6px;border-radius:50%;background:#EC1C24;box-shadow:0 0 0 1.5px #fff;z-index:2}
.jjl-close{width:34px;height:34px;margin-right:-4px}
.jjl-close img{width:30px;height:30px}

/* reward arrows: owner's images, no tap shadow */
.jjl-arrow{top:40%;width:36px;height:44px;padding:0;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;outline:none;box-shadow:none;background:none}
.jjl-arrow::before{content:none}
.jjl-arrow img{width:26px;height:26px;object-fit:contain;pointer-events:none}
.jjl-arrow:disabled{opacity:1}
.jjl-arrow:active{transform:none;background:none}
.jjl-prev{left:6px}.jjl-next{right:6px}

/* progress: segmented gold bar, glass button */
.jjl-progress{margin:0 12px 2px;padding:12px 12px 13px;gap:12px}
.jjl-prog-top{gap:6px;align-items:center}
.jjl-tag-a{background:linear-gradient(180deg,#ffe36b,#f2b400)!important;color:#5a3600!important;text-shadow:none;box-shadow:0 2px 6px rgba(242,180,0,.4)!important}
.jjl-prog-txt{font-size:13px;font-weight:700;color:#f3eaff}
.jjl-prog-num{display:inline-flex;align-items:baseline;font-weight:800;margin-left:2px}
.jjl-prog-num b{font-size:17px;color:#ffd24a;text-shadow:0 0 8px rgba(255,190,40,.55)}
.jjl-prog-num em{font-style:normal;font-size:12px;color:rgba(255,255,255,.6);margin-left:1px}
.jjl-bar{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:3px;height:7px;margin-top:10px;background:none;box-shadow:none;overflow:visible;border-radius:0}
.jjl-bar i{display:block;width:auto;height:100%;border-radius:2px;background:rgba(255,255,255,.13);box-shadow:inset 0 1px 1px rgba(0,0,0,.45);transition:background .4s}
.jjl-bar i.on{background:linear-gradient(180deg,#fff4bd 0,#ffc93d 55%,#ef8f00 100%);box-shadow:0 0 6px rgba(255,186,40,.75),inset 0 1px 0 rgba(255,255,255,.6)}
.jjl-bar i[data-last]{animation:jjl-seg 1.6s ease-in-out infinite}
@keyframes jjl-seg{0%,100%{filter:brightness(1)}50%{filter:brightness(1.35)}}
.jjl-done .jjl-bar i.on{animation:jjl-seg 1.4s ease-in-out infinite}
.jjl-done .jjl-bar i.on:nth-child(2n){animation-delay:.2s}.jjl-done .jjl-bar i.on:nth-child(3n){animation-delay:.4s}
.jjl-claim{min-width:76px;height:32px;border-radius:4px;font-size:13px;font-weight:800;color:rgba(255,255,255,.55);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);overflow:hidden;position:relative}
.jjl-claim-on{color:#5a2a00;border:0;background:linear-gradient(180deg,#fff3b8 0,#ffcc3d 50%,#f29a0b 100%);box-shadow:0 0 0 1px rgba(255,236,170,.6),0 4px 14px rgba(255,170,30,.55)}
.jjl-claim-on::after{content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.75) 50%,rgba(255,255,255,0));transform:skewX(-18deg);animation:jjl-shine 2.4s ease-in-out infinite}
.jjl-claim span{position:relative;z-index:1}
.jjl-hint{display:none}

/* codex: box prize background, owner's star icons, thinner white frame, more room between items */
.jjl-codex-head{margin:16px 12px 10px}
.jjl-grid{gap:10px 9px;padding:0 12px}
.jjl-cell{padding:2px 2px 6px;border-radius:4px;box-shadow:0 1px 6px rgba(40,20,80,.06)}
.jjl-cell-img{position:relative;border-radius:3px;background:#e9e9ee center/cover no-repeat}
.jjl-cell .jjl-cell-img{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;background-color:#e9e9ee}
.jjl-cell-img .jjl-cell-pic{position:relative;z-index:1;width:88%;height:88%;object-fit:contain;filter:grayscale(1) brightness(.92);opacity:.7;transition:filter .4s,opacity .4s}
.jjl-cell:not(.jjl-on) .jjl-cell-img::after{content:"";position:absolute;inset:0;border-radius:3px;background:rgba(40,40,48,.32);z-index:0}
.jjl-cell.jjl-on .jjl-cell-img .jjl-cell-pic{filter:none;opacity:1}
.jjl-cell-img img.jjl-cell.jjl-on{box-shadow:0 0 0 1px #ffd056,0 3px 10px rgba(255,180,40,.25)}
.jjl-cell-name{margin-top:5px;padding:0 2px}



/* ===== v4 (2026-11-17 owner feedback) ===== */
.jjl-mask,.jjl-rank,.jjl-win,.jjl-float{font-family:var(--font-main,'PingFang SC','Noto Sans SC','Microsoft YaHei',system-ui,sans-serif)}
.jjl-mask button,.jjl-rank button,.jjl-win button{font-family:inherit}
/* only the codex list scrolls; the reward stage, progress and codex title stay */
.jjl-scroll{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
.jjl-stage,.jjl-progress,.jjl-codex-head{flex-shrink:0}
.jjl-grid-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 0 calc(16px + env(safe-area-inset-bottom))}
.jjl-grid-scroll::-webkit-scrollbar{display:none;width:0;height:0}
/* codex frames: red for SP sets, yellow for A sets */
.jjl-grid-sp .jjl-cell.jjl-on{box-shadow:0 0 0 1px #FF2D3A,0 3px 10px rgba(255,40,60,.22)}
.jjl-grid-a .jjl-cell.jjl-on{box-shadow:0 0 0 1px #FFC21A,0 3px 10px rgba(255,180,40,.25)}
/* the owner's five-point star, no round badge behind it */
.jjl-cell-img img.jjl-cstar{position:absolute;left:3px;top:3px;z-index:2;width:16px;height:16px;object-fit:contain;filter:none;opacity:1;background:none;border-radius:0;box-shadow:none;padding:0}

/* ---------- 集赏记录 (owner's screenshot 1) ---------- */
.jjl-rank{position:fixed;inset:0;z-index:100055;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:0 10px;opacity:0;pointer-events:none;transition:opacity .2s}
.jjl-rank.show{opacity:1;pointer-events:auto}
.jjl-rk-card{width:100%;max-width:400px;height:min(470px,82vh);height:min(470px,82dvh);background:#F2F2F6;border-radius:8px;display:flex;flex-direction:column;overflow:hidden;transform:scale(.94);transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.jjl-rank.show .jjl-rk-card{transform:scale(1)}
.jjl-rk-head{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:16px 10px 2px 16px}
.jjl-rk-head b{font-size:18px;font-weight:800;color:#111}
.jjl-rk-close{width:36px;height:36px;border:0;background:none;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.jjl-rk-close img{width:30px;height:30px;object-fit:contain}
.jjl-rk-tiers{flex-shrink:0;display:flex;justify-content:center;gap:14px;padding:12px 14px 14px}
.jjl-rk-tier{position:relative;flex:0 0 min(100px,calc((100% - 28px) / 3));height:128px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.jjl-rk-house{position:absolute;left:0;bottom:0;width:100%;height:auto;aspect-ratio:400/448;object-fit:fill;pointer-events:none;transition:opacity .3s ease}
.jjl-rk-house.h-on{opacity:0}
.jjl-rk-tier.on .jjl-rk-house.h-on{opacity:1}
.jjl-rk-tier.on .jjl-rk-house.h-off{opacity:0}
.jjl-rk-pic{position:absolute;left:50%;top:0;width:76px;height:76px;margin-left:-38px;border-radius:4px;background-size:100% 100%;display:flex;align-items:center;justify-content:center;overflow:hidden;
  transform:translateY(20px) scale(.72);transform-origin:50% 0;transition:transform .34s cubic-bezier(.3,1.3,.5,1);box-shadow:0 2px 6px rgba(120,0,0,.15)}
.jjl-rk-tier.on .jjl-rk-pic{transform:none}
.jjl-rk-pic img{width:82%;height:82%;object-fit:contain;filter:drop-shadow(0 3px 4px rgba(0,0,0,.28))}
.jjl-rk-code{position:absolute;left:0;top:0;z-index:1;padding:2px 6px 2px 5px;border-radius:4px 0 4px 0;background:rgba(20,0,0,.62);font-style:italic;font-weight:900;font-size:11px;line-height:1.2;color:#fff}
.jjl-rk-total{position:absolute;left:0;right:0;bottom:24px;display:flex;align-items:center;justify-content:center;gap:4px}
.jjl-rk-total b{font-family:'NoirPro-Bold',var(--font-num,system-ui);font-weight:700;font-size:calc(3.733333 * var(--pg-unit,1vw));line-height:1;color:rgb(68,68,68);transition:color .3s}
.jjl-rk-tier.on .jjl-rk-total b{color:#EC1C24}
.jjl-wing{position:relative;width:10px;height:15px;flex-shrink:0}
.jjl-wing img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .3s}
.jjl-wing .w-on{opacity:0}
.jjl-rk-tier.on .jjl-wing .w-on{opacity:1}
.jjl-rk-tier.on .jjl-wing .w-off{opacity:0}
.jjl-rk-sub{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:10px;line-height:1.2;color:#8A8796;white-space:nowrap}
.jjl-rk-panel{position:relative;flex:1;min-height:0;margin:0 14px 14px;background:#fff;border-radius:8px;display:flex;flex-direction:column}
.jjl-rk-notch{position:absolute;top:-7px;left:50%;width:22px;height:8px;margin-left:-11px;pointer-events:none;transition:left .34s cubic-bezier(.3,1.3,.5,1)}
.jjl-rk-notch.jjl-now{transition:none}
.jjl-rk-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding:4px 14px}
.jjl-rk-list::-webkit-scrollbar{display:none}
.jjl-rk-row{display:flex;align-items:center;gap:10px;padding:12px 0}
.jjl-rk-av{width:38px;height:38px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#eee}
.jjl-rk-mid{flex:1;min-width:0}
.jjl-rk-name{display:flex;align-items:center;gap:5px;font-size:14px;font-weight:600;color:#111;min-width:0}
.jjl-rk-name span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jjl-rk-lv{display:inline-flex;flex-shrink:0;font-style:normal;line-height:0}
.jjl-rk-lv svg{height:15px;width:auto}
.jjl-rk-time{font-size:11px;color:#8A8796;margin-top:4px}
.jjl-rk-times{flex-shrink:0;font-size:12px;font-weight:700;color:#111;white-space:nowrap}
.jjl-rk-times b{font-family:'NoirPro-Bold',var(--font-num,system-ui);font-weight:700;font-size:17px;color:#EC1C24;margin:0 3px}
.jjl-rk-empty{height:100%;min-height:120px;display:flex;align-items:center;justify-content:center;color:#8A8796;font-size:13px;text-align:center}
.jjl-rk-dots.pg-list-dots{min-height:44px}
.jjl-rk-list.jjl-rk-fade{animation:jjl-rkfade .28s ease both}
@keyframes jjl-rkfade{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:none}}

/* v4b: owner's reference — the chosen red square is much bigger and rises above the white house; the others sit small
   inside grey houses; dark slanted corner tags */
.jjl-rk-tier{height:136px}
.jjl-rk-pic{width:86px;height:86px;margin-left:-43px;border-radius:3px;overflow:visible;transform:translateY(34px) scale(.6);transform-origin:50% 0}
.jjl-rk-tier.on .jjl-rk-pic{transform:translateY(0) scale(1);box-shadow:0 6px 14px rgba(200,0,0,.25)}
.jjl-rk-tier:not(.on) .jjl-rk-house.h-off{opacity:1;filter:brightness(.93)}
.jjl-rk-code{left:-1px;top:-1px;padding:2px 10px 2px 5px;border-radius:3px 0 0 0;background:#141414;clip-path:polygon(0 0,100% 0,82% 100%,0 100%);
  font-style:italic;font-weight:900;font-size:11px;line-height:13px;letter-spacing:.3px;color:#fff;box-shadow:none}
.jjl-rk-tier:not(.on) .jjl-rk-code{font-size:13px;line-height:15px;padding:2px 12px 2px 6px}
.jjl-rk-total{bottom:25px}
/* v4c: grey house for the tiers that are not chosen (owner's reference) */
.jjl-rk-card{background:#F8F8FA}
.jjl-rk-tier:not(.on) .jjl-rk-house.h-off{filter:none}

/* v4d: darker backdrop behind 集赏记录 */
.jjl-rank{background:rgba(0,0,0,.72)}

/* ===== v5 (2026-11-17): draggable reward carousel, tag images ===== */
.jjl-viewport{position:absolute;inset:0;z-index:1;overflow:hidden;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.jjl-track{display:flex;height:100%;will-change:transform;transition:transform .38s cubic-bezier(.22,.8,.26,1)}
.jjl-slide{flex:0 0 100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:12px;box-sizing:border-box}
.jjl-slide .jjl-reward-img{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;padding-top:10px}
.jjl-slide .jjl-reward-img img{max-width:60%;max-height:160px;object-fit:contain;-webkit-user-drag:none;pointer-events:auto}
.jjl-slide .jjl-reward-price,.jjl-slide .jjl-reward-name{position:relative;z-index:1}
.jjl-arrow{z-index:3}
.jjl-tag-img{height:22px;width:auto;display:block;flex-shrink:0;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}
/* v5 fix: .jjl-below wraps progress + codex; it must pass the remaining height to the codex grid so it scrolls */
.jjl-below{flex:1;min-height:0;display:flex;flex-direction:column}
