/* 2026-11-02 play modes UI: home mode tabs (高爆赏 / 保底赏 / 魔王赏), 魔王赏 king card + leaderboard, 保底赏 combo card.
 * Sizes follow the 430pt-wide design: 1pt = .2326 * --pg-unit. */
:root{--pmu:var(--pg-unit,1vw);}

/* ---------- Home mode tabs ---------- */
.home-mode-tabs{--i:0;--gap:calc(2.1 * var(--pmu));position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);
  margin:calc(3.2 * var(--pmu)) calc(2.4 * var(--pmu)) calc(2.4 * var(--pmu));height:calc(9.3 * var(--pmu));
  -webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;}
.hmt-base{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);pointer-events:none;}
.hmt-base i{display:block;background:#fff;border:1px solid #ECECF0;border-radius:calc(2.33 * var(--pmu));box-shadow:0 1px 2px rgba(20,20,40,.04);}
.hmt-ink{position:absolute;left:0;top:0;bottom:0;width:calc((100% - 2 * var(--gap)) / 3);border-radius:calc(2.33 * var(--pmu));pointer-events:none;overflow:hidden;
  background:linear-gradient(180deg,#FF3B3F 0%,#EC1C24 100%);border:1px solid #EC1C24;box-sizing:border-box;
  box-shadow:0 calc(1.6 * var(--pmu)) calc(3.6 * var(--pmu)) calc(-1 * var(--pmu)) rgba(236,28,36,.55),inset 0 1px 0 rgba(255,255,255,.28);
  transform:translateX(calc(var(--i) * (100% + var(--gap))));transition:transform .52s cubic-bezier(.34,1.42,.5,1);will-change:transform;}
/* A soft light sweep runs across the red pill after it lands. */
.hmt-ink::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:45%;
  background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.38) 50%,rgba(255,255,255,0) 100%);transform:skewX(-18deg);opacity:0;}
.home-mode-tabs.hmt-swept .hmt-ink::after{animation:hmtSweep .9s .28s ease-out both;}
@keyframes hmtSweep{0%{left:-60%;opacity:0}15%{opacity:1}100%{left:120%;opacity:0}}
.hmt-ink.hmt-squash{animation:hmtSquash .52s cubic-bezier(.34,1.42,.5,1);}
@keyframes hmtSquash{0%{scale:1 1}30%{scale:1.06 .9}62%{scale:.98 1.04}100%{scale:1 1}}
.hmt-tab{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:calc(1.2 * var(--pmu));min-width:0;padding:0 calc(1.6 * var(--pmu));
  border:0;background:none;cursor:pointer;color:#2B2B30;font:700 calc(3.2 * var(--pmu))/1 "PingFang SC","Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;
  transition:color .28s ease,transform .18s ease;-webkit-tap-highlight-color:transparent;outline:none;}
.hmt-tab:active{transform:scale(.955);}
.hmt-tab.on{color:#fff;text-shadow:0 1px 1px rgba(160,0,8,.25);}
.hmt-tx{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.02em;}
html:not([lang^="zh"]) .hmt-tx{font-size:calc(2.9 * var(--pmu));letter-spacing:0;}
.hmt-ic{position:relative;flex:0 0 auto;width:calc(4.5 * var(--pmu));height:calc(4.5 * var(--pmu));}
.hmt-ic img{position:absolute;inset:0;width:100%;height:100%;transition:opacity .22s ease;}
.hmt-ic-s{opacity:0;}
.hmt-tab.on .hmt-ic-s{opacity:1;}
.hmt-tab.on .hmt-ic-n{opacity:0;}
.hmt-tab.hmt-pop .hmt-ic{animation:hmtPop .56s cubic-bezier(.3,1.6,.5,1);}
@keyframes hmtPop{0%{transform:scale(.55) rotate(-14deg)}55%{transform:scale(1.2) rotate(6deg)}100%{transform:scale(1) rotate(0)}}
#allGrid.hmt-in-l{animation:hmtInL .38s cubic-bezier(.2,.8,.25,1) both;}
#allGrid.hmt-in-r{animation:hmtInR .38s cubic-bezier(.2,.8,.25,1) both;}
@keyframes hmtInL{from{opacity:0;transform:translateX(calc(-4 * var(--pmu)))}to{opacity:1;transform:none}}
@keyframes hmtInR{from{opacity:0;transform:translateX(calc(4 * var(--pmu)))}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hmt-ink,.hmt-tab{transition:none}.hmt-ink.hmt-squash,.home-mode-tabs.hmt-swept .hmt-ink::after,.hmt-tab.hmt-pop .hmt-ic,#allGrid.hmt-in-l,#allGrid.hmt-in-r{animation:none}}

/* ---------- Detail: the right-hand cover is replaced by the mode card ---------- */
.dt-cover-wrap.pm-wrap>.dt-cover-box,.dt-cover-wrap.pm-wrap>.dt-data-row{display:none!important;}
.pm-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;}

/* 魔王赏 king card */
.pm-king-card{cursor:pointer;-webkit-tap-highlight-color:transparent;padding-top:calc(2.4 * var(--pmu));}
.pm-king-card:active .pm-frame{transform:scale(.97);}
.pm-frame{position:relative;flex:0 0 auto;width:calc(26.05 * var(--pmu));height:calc(27.21 * var(--pmu));transition:transform .18s ease;
  filter:drop-shadow(0 calc(1 * var(--pmu)) calc(1.6 * var(--pmu)) rgba(160,0,10,.18));}
.pm-frame-av{position:absolute;left:17.68%;top:20.09%;width:60.63%;height:58.04%;border-radius:50%;object-fit:cover;background:#f3e9ff;}
.pm-frame-empty{position:absolute;left:17.68%;top:20.09%;width:60.63%;height:58.04%;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle at 50% 40%,#5b2a86 0%,#2c1245 100%);color:#ffd36b;font:900 calc(7.5 * var(--pmu))/1 "Arial Black",Arial,sans-serif;}
.pm-frame-img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.pm-king-card.pm-has-king .pm-frame::after{content:"";position:absolute;left:17.68%;top:20.09%;width:60.63%;height:58.04%;border-radius:50%;pointer-events:none;
  box-shadow:0 0 0 0 rgba(255,59,63,.45);animation:pmAura 2.4s ease-out infinite;}
@keyframes pmAura{0%{box-shadow:0 0 0 0 rgba(255,59,63,.45)}70%,100%{box-shadow:0 0 0 calc(2.6 * var(--pmu)) rgba(255,59,63,0)}}
.pm-pill{position:relative;z-index:2;display:flex;align-items:center;gap:calc(.6 * var(--pmu));max-width:calc(20.5 * var(--pmu));min-width:calc(13 * var(--pmu));
  justify-content:center;height:calc(4.75 * var(--pmu));margin-top:calc(-4.6 * var(--pmu));padding:0 calc(2.4 * var(--pmu)) 0 calc(2.9 * var(--pmu));box-sizing:border-box;
  border-radius:999px;background:linear-gradient(180deg,#FF4347 0%,#E3141B 100%);box-shadow:0 calc(.5 * var(--pmu)) calc(1.4 * var(--pmu)) rgba(227,20,27,.35),inset 0 1px 0 rgba(255,255,255,.3);
  color:#fff;font:700 calc(3.1 * var(--pmu))/1 "PingFang SC","Noto Sans SC",system-ui,sans-serif;}
.pm-pill b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;}
.pm-pill i{flex:0 0 auto;width:0;height:0;border-left:calc(1.1 * var(--pmu)) solid #fff;border-top:calc(.85 * var(--pmu)) solid transparent;border-bottom:calc(.85 * var(--pmu)) solid transparent;}
.pm-king-info,.pm-combo-card{position:relative;z-index:1;box-sizing:border-box;background:#fff;border-radius:calc(2.13 * var(--pmu));
  box-shadow:0 calc(.5 * var(--pmu)) calc(2.4 * var(--pmu)) rgba(30,30,60,.07);}
.pm-king-info{width:calc(38.4 * var(--pmu));margin-top:calc(-1.1 * var(--pmu));padding:calc(2.6 * var(--pmu)) calc(2.9 * var(--pmu)) calc(1.9 * var(--pmu));
  color:#6b6b73;font:500 calc(3.1 * var(--pmu))/1.5 "PingFang SC","Noto Sans SC",system-ui,sans-serif;}
.pm-line{display:flex;align-items:center;gap:calc(.8 * var(--pmu));white-space:nowrap;}
.pm-line em{font-style:normal;color:#2B2B30;font-weight:600;}
.pm-line .pm-earn{color:#EC1C24;font:800 calc(4.1 * var(--pmu))/1.35 var(--font-num,"DIN Alternate",Arial,sans-serif);letter-spacing:.01em;}
.pm-coin{width:calc(3.7 * var(--pmu));height:calc(3.7 * var(--pmu));object-fit:contain;flex:0 0 auto;}
.pm-earn.pm-bump{animation:pmBump .6s cubic-bezier(.3,1.6,.5,1);}
@keyframes pmBump{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}

/* 保底赏 shield + COMBO card */
.pm-combo{padding-top:calc(2.4 * var(--pmu));}
.pm-shield{position:relative;flex:0 0 auto;width:calc(21.4 * var(--pmu));height:calc(24.9 * var(--pmu));
  filter:drop-shadow(0 calc(.5 * var(--pmu)) calc(1.4 * var(--pmu)) rgba(0,0,0,.08));}
.pm-shield img{width:100%;height:100%;display:block;}
.pm-combo.pm-hit .pm-shield{animation:pmShieldHit .7s cubic-bezier(.3,1.6,.5,1);}
@keyframes pmShieldHit{0%{transform:scale(1)}30%{transform:scale(1.12) rotate(-4deg)}60%{transform:scale(.97) rotate(2deg)}100%{transform:scale(1)}}
.pm-combo-card{width:calc(34.3 * var(--pmu));margin-top:calc(.8 * var(--pmu));padding:calc(2.1 * var(--pmu)) calc(3.2 * var(--pmu)) calc(1.9 * var(--pmu));text-align:center;}
.pm-combo-title{display:flex;align-items:baseline;justify-content:center;gap:calc(1.2 * var(--pmu));font:italic 900 calc(4.1 * var(--pmu))/1.1 "Arial Black","Helvetica Neue",Arial,sans-serif;color:#141418;letter-spacing:.02em;}
.pm-combo-title .pm-n{color:#EC1C24;}
.pm-combo-title .pm-d{color:#b9b9c2;}
.pm-combo-title .pm-n.pm-bump{display:inline-block;animation:pmBump .6s cubic-bezier(.3,1.6,.5,1);}
.pm-combo-hint{margin-top:calc(1.3 * var(--pmu));color:#8a8a93;font:500 calc(2.6 * var(--pmu))/1.2 "PingFang SC","Noto Sans SC",system-ui,sans-serif;white-space:nowrap;}

/* Liquid progress bar: two drifting wave layers + rising bubbles + a gentle heartbeat swell. */
.pm-bar{position:relative;height:calc(2.4 * var(--pmu));margin-top:calc(1.3 * var(--pmu));border-radius:999px;background:#ECECF0;overflow:hidden;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.08);}
.pm-liquid{position:absolute;left:0;top:0;bottom:0;min-width:calc(2.6 * var(--pmu));border-radius:999px;overflow:hidden;
  background:linear-gradient(180deg,#FF6A55 0%,#FF2D33 45%,#D80F18 100%);transition:width .9s cubic-bezier(.34,1.35,.5,1);
  animation:pmBeat 1.6s ease-in-out infinite;transform-origin:left center;}
.pm-liquid::before,.pm-liquid::after{content:"";position:absolute;left:0;top:0;bottom:0;width:calc(100% + 7 * var(--pmu));background-repeat:repeat-x;background-position:0 0;background-size:calc(7 * var(--pmu)) 100%;will-change:transform;}
.pm-liquid::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0H60V9C52 15 45 15 37.5 9S22 3 15 9 7 15 0 9Z' fill='%23fff' fill-opacity='.42'/%3E%3C/svg%3E");animation:pmWave 1.25s linear infinite;}
.pm-liquid::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' preserveAspectRatio='none'%3E%3Cpath d='M0 13C8 9 15 9 22.5 13S38 17 45 13 52 9 60 13V20H0Z' fill='%23a3000c' fill-opacity='.38'/%3E%3C/svg%3E");animation:pmWaveR 1.9s linear infinite;}
.pm-liquid i{position:absolute;bottom:-40%;width:calc(.9 * var(--pmu));height:calc(.9 * var(--pmu));border-radius:50%;background:rgba(255,255,255,.7);animation:pmBubble 1.9s ease-in infinite;}
.pm-liquid i:nth-child(1){left:18%;animation-delay:.1s}
.pm-liquid i:nth-child(2){left:46%;animation-delay:.8s;width:calc(.6 * var(--pmu));height:calc(.6 * var(--pmu))}
.pm-liquid i:nth-child(3){left:74%;animation-delay:1.35s}
.pm-liquid-gloss{position:absolute;left:calc(1.2 * var(--pmu));right:calc(1.2 * var(--pmu));top:12%;height:22%;border-radius:999px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55) 30%,rgba(255,255,255,.55) 70%,rgba(255,255,255,0));z-index:1;}
@keyframes pmWave{from{transform:translateX(0)}to{transform:translateX(calc(-7 * var(--pmu)))}}
@keyframes pmWaveR{from{transform:translateX(calc(-7 * var(--pmu)))}to{transform:translateX(0)}}
@keyframes pmBeat{0%,100%{transform:scaleY(1);filter:brightness(1)}12%{transform:scaleY(1.12);filter:brightness(1.12)}24%{transform:scaleY(.96)}36%{transform:scaleY(1.06);filter:brightness(1.06)}50%{transform:scaleY(1)}}
@keyframes pmBubble{0%{transform:translateY(0) scale(.6);opacity:0}25%{opacity:.9}100%{transform:translateY(calc(-3 * var(--pmu))) scale(1);opacity:0}}
.pm-bar.pm-full .pm-liquid{background:linear-gradient(180deg,#FFB443 0%,#FF5A2B 50%,#E3141B 100%);}
@media (prefers-reduced-motion:reduce){.pm-liquid,.pm-liquid::before,.pm-liquid::after,.pm-liquid i,.pm-king-card.pm-has-king .pm-frame::after{animation:none}}

/* ---------- Prize grid badges ---------- */
.dt-prize-card .pm-grade-badge{position:absolute!important;top:calc(-.533333 * var(--pmu));left:calc(-.533333 * var(--pmu));z-index:7;height:calc(5.07 * var(--pmu));width:auto;pointer-events:none;}
.dt-prize-card.pm-badged>img:first-child{visibility:hidden;}
.dt-prize-card.pm-card-combo .dt-pc-prob{background:#E3F2FF!important;color:#1f2a44!important;font-weight:600!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  border-radius:calc(.8 * var(--pmu))!important;padding:calc(.4 * var(--pmu)) calc(1.4 * var(--pmu))!important;box-shadow:0 1px 3px rgba(0,0,0,.12);white-space:nowrap;}
.dt-prize-card.pm-card-combo .dt-pc-prob .pm-left-n{color:#EC1C24;font-weight:800;margin:0 .15em;}
.dt-prob-item.dt-prob-d{position:relative;}

/* ---------- Leaderboard popup (魔王榜) ---------- */
#pmKingModal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;flex-direction:column;
  background:rgba(8,6,14,.62);opacity:0;transition:opacity .25s ease;-webkit-tap-highlight-color:transparent;}
#pmKingModal.show{opacity:1;}
.pmk-box{position:relative;width:calc(87 * var(--pmu));margin-top:calc(10 * var(--pmu));transform:translateY(calc(6 * var(--pmu))) scale(.94);
  transition:transform .42s cubic-bezier(.34,1.4,.5,1);}
#pmKingModal.show .pmk-box{transform:none;}
.pmk-head{position:relative;height:calc(38 * var(--pmu));border-radius:calc(2.6 * var(--pmu)) calc(2.6 * var(--pmu)) 0 0;
  background:#3a1a4f url(/assets/play-modes-20261101/img/pk-bg.webp) center/cover no-repeat;color:#fff;text-align:center;cursor:pointer;}
.pmk-head .pm-frame{position:absolute;left:50%;top:calc(-11.5 * var(--pmu));margin-left:calc(-13.02 * var(--pmu));}
.pmk-name{position:absolute;left:4%;right:4%;top:calc(17.2 * var(--pmu));font:700 calc(4.6 * var(--pmu))/1.2 "PingFang SC","Noto Sans SC",system-ui,sans-serif;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pmk-stat{position:absolute;left:0;right:0;font:500 calc(3.3 * var(--pmu))/1.3 "PingFang SC","Noto Sans SC",system-ui,sans-serif;color:rgba(255,255,255,.82);
  display:flex;align-items:center;justify-content:center;gap:calc(.8 * var(--pmu));}
.pmk-stat em{font-style:normal;color:#fff;font-weight:600;}
.pmk-stat .pmk-gold{color:#FFD45C;font:800 calc(3.9 * var(--pmu))/1.3 var(--font-num,"DIN Alternate",Arial,sans-serif);}
.pmk-s1{top:calc(24.2 * var(--pmu));}
.pmk-s2{top:calc(30.1 * var(--pmu));}
.pmk-body{background:#fff;border-radius:0 0 calc(2.6 * var(--pmu)) calc(2.6 * var(--pmu));padding:calc(1.6 * var(--pmu)) 0 calc(1.2 * var(--pmu));}
.pmk-th{display:flex;justify-content:space-between;padding:calc(1.4 * var(--pmu)) calc(5.4 * var(--pmu));color:#a0a0a8;font:500 calc(2.8 * var(--pmu))/1.3 "PingFang SC","Noto Sans SC",system-ui,sans-serif;}
.pmk-list{max-height:min(calc(70 * var(--pmu)),46vh);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
.pmk-row{display:flex;align-items:center;gap:calc(2.6 * var(--pmu));height:calc(13.3 * var(--pmu));padding:0 calc(4.3 * var(--pmu)) 0 calc(5.4 * var(--pmu));cursor:pointer;
  opacity:0;transform:translateY(calc(2 * var(--pmu)));animation:pmkRow .4s ease-out forwards;}
.pmk-row:active{background:#f6f6f9;}
@keyframes pmkRow{to{opacity:1;transform:none}}
.pmk-rank{flex:0 0 calc(4.5 * var(--pmu));text-align:center;font:500 calc(4 * var(--pmu))/1 var(--font-num,"DIN Alternate",Arial,sans-serif);color:#2B2B30;}
.pmk-rank.r1,.pmk-rank.r2,.pmk-rank.r3{font:italic 900 calc(4.4 * var(--pmu))/1 "Arial Black",Arial,sans-serif;-webkit-background-clip:text;background-clip:text;color:transparent;}
.pmk-rank.r1{background-image:linear-gradient(180deg,#FFE27A,#F2A900);}
.pmk-rank.r2{background-image:linear-gradient(180deg,#9CCBFF,#3E7FD8);}
.pmk-rank.r3{background-image:linear-gradient(180deg,#FFB27A,#F2652B);}
.pmk-av{flex:0 0 auto;width:calc(8.7 * var(--pmu));height:calc(8.7 * var(--pmu));border-radius:50%;object-fit:cover;background:#f0f0f4;}
.pmk-row.is-current .pmk-av{box-shadow:0 0 0 calc(.5 * var(--pmu)) #fff,0 0 0 calc(.9 * var(--pmu)) #EC1C24;}
.pmk-who{flex:1;min-width:0;}
.pmk-n{display:flex;align-items:center;gap:calc(1.1 * var(--pmu));font:600 calc(3.5 * var(--pmu))/1.3 "PingFang SC","Noto Sans SC",system-ui,sans-serif;color:#1f1f24;}
.pmk-n b{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pmk-n .invite-rank-level-tag{position:relative;flex:0 0 auto;display:inline-block;width:calc(8.6 * var(--pmu));height:calc(3.6 * var(--pmu));}
.pmk-n .invite-rank-level-tag img{width:100%;height:100%;display:block;}
.pmk-sub{margin-top:calc(.6 * var(--pmu));color:#8a8a93;font:400 calc(2.7 * var(--pmu))/1.2 "PingFang SC","Noto Sans SC",system-ui,sans-serif;white-space:nowrap;}
.pmk-pts{flex:0 0 auto;display:flex;align-items:center;gap:calc(1 * var(--pmu));font:600 calc(3.5 * var(--pmu))/1 var(--font-num,"DIN Alternate",Arial,sans-serif);color:#1f1f24;}
.pmk-pts .pm-coin{width:calc(3.6 * var(--pmu));height:calc(3.6 * var(--pmu));}
.pmk-empty{padding:calc(8 * var(--pmu)) calc(6 * var(--pmu));text-align:center;color:#9a9aa3;font:500 calc(3.2 * var(--pmu))/1.6 "PingFang SC","Noto Sans SC",system-ui,sans-serif;}
.pmk-rule{margin:calc(1.2 * var(--pmu)) calc(5.4 * var(--pmu)) 0;padding-top:calc(2 * var(--pmu));border-top:1px solid #f0f0f3;color:#9a9aa3;
  font:400 calc(2.6 * var(--pmu))/1.5 "PingFang SC","Noto Sans SC",system-ui,sans-serif;}
.pmk-close{margin-top:calc(5 * var(--pmu));width:calc(9.6 * var(--pmu));height:calc(9.6 * var(--pmu));border-radius:50%;border:0;padding:0;cursor:pointer;
  background:rgba(255,255,255,.16);position:relative;}
.pmk-close::before,.pmk-close::after{content:"";position:absolute;left:50%;top:50%;width:calc(4.8 * var(--pmu));height:calc(.6 * var(--pmu));margin:calc(-.3 * var(--pmu)) 0 0 calc(-2.4 * var(--pmu));
  background:#fff;border-radius:2px;transform:rotate(45deg);}
.pmk-close::after{transform:rotate(-45deg);}

/* ---------- Draw result: combo bonus line ---------- */
.pm-result-combo{display:flex;align-items:center;justify-content:center;gap:calc(2.133333 * var(--pmu));margin:0 auto calc(2.666667 * var(--pmu));
  padding:calc(1.6 * var(--pmu)) calc(3.2 * var(--pmu));border-radius:999px;background:#fff1f1;color:#b4141a;width:max-content;max-width:90%;}
.pm-result-combo span{background:#EC1C24;color:#fff;border-radius:999px;padding:0 calc(1.6 * var(--pmu));font-size:calc(2.666667 * var(--pmu));}
.pm-result-combo img{width:calc(8 * var(--pmu));height:calc(8 * var(--pmu));object-fit:contain;}

/* ---------- 2026-11-02: home list ---------- */
/* Chinese box names on one line (play-modes.js shrinks the font a little before the ellipsis). */
html[lang^="zh"] #allGrid .bx .bn .name{display:block!important;-webkit-line-clamp:unset!important;-webkit-box-orient:unset;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;}
/* Skeleton cards while a tab loads. */
#allGrid .pm-skel{background:#fff;border-radius:4px;overflow:hidden;}
#allGrid .pm-skel-img{aspect-ratio:1/1;width:100%;}
#allGrid .pm-skel-body{padding:10px 8px 12px;display:flex;flex-direction:column;gap:8px;}
#allGrid .pm-skel-body i{display:block;height:12px;border-radius:6px;}
#allGrid .pm-skel-l1{width:82%;}
#allGrid .pm-skel-l2{width:46%;height:10px!important;}
#allGrid .pm-skel-l3{width:100%;height:6px!important;}
#allGrid .pm-skel-l4{width:58%;height:14px!important;}
#allGrid .pm-skel-img,#allGrid .pm-skel-body i{background:linear-gradient(100deg,#eef0f4 30%,#f8f9fb 50%,#eef0f4 70%);background-size:300% 100%;animation:pmSkel 1.25s ease-in-out infinite;}
@keyframes pmSkel{from{background-position:100% 0}to{background-position:0 0}}
/* 魔王 on 魔王赏 cards. */
#allGrid .bx .bi .pm-hk{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;align-items:center;gap:calc(1.6 * var(--pmu));
  padding:calc(6 * var(--pmu)) calc(2.1 * var(--pmu)) calc(1.9 * var(--pmu));pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.28) 55%,rgba(0,0,0,.48) 100%);animation:pmHkIn .4s ease-out both;}
@keyframes pmHkIn{from{opacity:0;transform:translateY(calc(1.5 * var(--pmu)))}to{opacity:1;transform:none}}
#allGrid .pm-hk-frame{position:relative;flex:0 0 auto;width:calc(10.4 * var(--pmu));height:calc(10.9 * var(--pmu));filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));}
#allGrid .pm-hk-av{position:absolute;left:17.68%;top:20.09%;width:60.63%;height:58.04%;border-radius:50%;object-fit:cover;background:#f3e9ff;}
#allGrid .pm-hk-img{position:absolute;inset:0;width:100%;height:100%;}
#allGrid .pm-hk-txt{min-width:0;display:flex;flex-direction:column;gap:calc(.4 * var(--pmu));color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.55);
  font:600 calc(3 * var(--pmu))/1.25 "PingFang SC","Noto Sans SC",system-ui,sans-serif;}
#allGrid .pm-hk-txt b{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#allGrid .pm-hk-txt span{display:flex;align-items:center;gap:calc(.6 * var(--pmu));white-space:nowrap;font-weight:500;}
#allGrid .pm-hk-txt .pm-coin{width:calc(3.2 * var(--pmu));height:calc(3.2 * var(--pmu));}
#allGrid .pm-hk-txt em{font-style:normal;font-weight:800;color:#FFD45C;font-family:var(--font-num,"DIN Alternate",Arial,sans-serif);}

/* ---------- 2026-11-02: no cover flash when a 保底赏 / 魔王赏 box opens ---------- */
#p-detail.pm-pre-guarantee .dt-cover-wrap:not(.pm-wrap)>.dt-cover-box,#p-detail.pm-pre-guarantee .dt-cover-wrap:not(.pm-wrap)>.dt-data-row,
#p-detail.pm-pre-devil .dt-cover-wrap:not(.pm-wrap)>.dt-cover-box,#p-detail.pm-pre-devil .dt-cover-wrap:not(.pm-wrap)>.dt-data-row{visibility:hidden!important;}
#p-detail.pm-pre-guarantee .dt-cover-wrap:not(.pm-wrap)::before,#p-detail.pm-pre-devil .dt-cover-wrap:not(.pm-wrap)::before{content:"";position:absolute;left:50%;
  top:calc(2.4 * var(--pmu));transform:translateX(-50%);background:center/contain no-repeat;z-index:1;}
#p-detail.pm-pre-guarantee .dt-cover-wrap:not(.pm-wrap)::before{width:calc(21.4 * var(--pmu));height:calc(24.9 * var(--pmu));background-image:url(/assets/play-modes-20261101/img/shield.webp);}
#p-detail.pm-pre-devil .dt-cover-wrap:not(.pm-wrap)::before{width:calc(26.05 * var(--pmu));height:calc(27.21 * var(--pmu));background-image:url(/assets/play-modes-20261101/img/devil-frame.webp);}

/* ---------- 2026-11-02: 抽赏记录 保底赏 / 魔王赏 tab ---------- */
#boxRecordModal .pm-rec-panel{flex:1 1 0%;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;position:relative;}
#boxRecordModal .pm-rec-more{display:none;justify-content:center;padding:calc(3 * var(--pmu)) 0;}
#boxRecordModal .pm-rec-empty{flex-direction:column;align-items:center;justify-content:center;}
#boxRecordModal .pm-rec-demon{height:calc(4.8 * var(--pmu));width:auto;display:block;}
#boxRecordModal .pm-rec-combo{display:inline-flex;align-items:center;gap:calc(1 * var(--pmu));}
#boxRecordModal .pm-rec-combo img{height:calc(4.2 * var(--pmu));width:auto;}
#boxRecordModal .pm-rec-combo b{font:800 calc(3.4 * var(--pmu))/1 var(--font-num,"DIN Alternate",Arial,sans-serif);color:#1f1f24;}

/* ---------- 2026-11-02 (2) ---------- */
/* Portrait prize art (e.g. trading cards): whole card over the box background, not cropped over it. */
#pGrid .dt-pc-img-wrap img.pm-portrait{object-fit:contain!important;top:6%!important;height:84%!important;left:0!important;width:100%!important;transform:none!important;
  border-radius:0!important;filter:drop-shadow(0 calc(.6 * var(--pmu)) calc(1.2 * var(--pmu)) rgba(0,0,0,.35));}
/* 抽赏记录 tabs: no tap flash / fade on mobile. */
#boxRecordModal .box-record-tab{-webkit-tap-highlight-color:transparent;transition:none;}
#boxRecordModal .box-record-tab .chart-tab-icon{transition:none;}

/* ---------- 2026-11-02 (3): 保底赏 combo reward broadcast banner ---------- */
.detail-win-banner.pm-combo-banner{background-image:url(/assets/play-modes-20261101/img/combo-banner@3x.webp)!important;background-size:106% 106.33%!important;background-position:left bottom!important;background-repeat:no-repeat!important;}

/* ---------- 2026-11-02 (4): long COMBO / DEMON badge in the prize preview ---------- */
.ppm-grade-icon.pm-ppm-badge{height:min(calc(6.4 * var(--pmu)),28px)!important;width:auto!important;max-width:none!important;object-fit:contain;}

/* ---------- 2026-11-02 (5): no scrollbar in the 抽赏记录 lists ---------- */
#boxRecordModal .pm-rec-panel,#boxRecordModal #boxRecordListWrap{scrollbar-width:none;-ms-overflow-style:none;}
#boxRecordModal .pm-rec-panel::-webkit-scrollbar,#boxRecordModal #boxRecordListWrap::-webkit-scrollbar{display:none;width:0;height:0;}

/* ---------- 2026-11-02 (6): 魔王榜 without a scrollbar ---------- */
.pmk-list{scrollbar-width:none;-ms-overflow-style:none;}
.pmk-list::-webkit-scrollbar{display:none;width:0;height:0;}

/* ---------- 2026-11-02 (7): play-mode shaped skeleton in the detail loading shell ---------- */
.dt-cover-wrap.pm-wrap>.dt-loading-cover,.dt-cover-wrap.pm-wrap>.dt-loading-data-row{display:none!important;}
.pm-skel-cover{padding-top:calc(2.4 * var(--pmu));gap:0;}
.pm-skel-cover .dt-skeleton{display:block;}
.pm-sk-frame{width:calc(19 * var(--pmu));height:calc(19 * var(--pmu));margin-top:calc(4 * var(--pmu));border-radius:50%;}
.pm-sk-pill{width:calc(18 * var(--pmu));height:calc(4.75 * var(--pmu));margin-top:calc(1.6 * var(--pmu));border-radius:999px;}
.pm-sk-shield{width:calc(21.4 * var(--pmu));height:calc(24.9 * var(--pmu));border-radius:28%;}
.pm-sk-card{box-sizing:border-box;margin-top:calc(1.2 * var(--pmu));padding:calc(2.6 * var(--pmu)) calc(2.9 * var(--pmu));border-radius:calc(2.13 * var(--pmu));
  background:#fff;box-shadow:0 calc(.5 * var(--pmu)) calc(2.4 * var(--pmu)) rgba(30,30,60,.07);display:flex;flex-direction:column;gap:calc(1.6 * var(--pmu));}
.pm-sk-king{width:calc(38.4 * var(--pmu));}
.pm-sk-combo{width:calc(34.3 * var(--pmu));align-items:center;}
.pm-sk-line{width:80%;height:calc(3 * var(--pmu));border-radius:999px;}
.pm-sk-title{width:70%;height:calc(3.6 * var(--pmu));}
.pm-sk-short{width:55%;}
.pm-sk-bar{width:100%;height:calc(2.4 * var(--pmu));border-radius:999px;}

/* ---------- 2026-11-02 (8): result card for the combo reward, names, header, 我的抽赏记录 ---------- */
#resultModal .pm-rc-item .goodsImgBox .tag.pm-rc-tag{width:auto;max-width:72%;object-fit:contain;object-position:left top;}
/* non-Chinese names: two lines at most on every engine (clamp + a hard height) */
html:not([lang^="zh"]) #allGrid .bx .bn .name{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  white-space:normal!important;overflow:hidden!important;line-height:1.5!important;max-height:3em!important;height:auto!important;}
/* detail header: the right icons keep their own width, the title takes what is left */
#p-detail .dt-header-left,#p-detail .dt-header-right{flex:0 0 auto!important;width:auto!important;min-width:calc(26.6667 * var(--pg-unit, 1vw));}
#p-detail .dt-header-right{justify-content:flex-end;}
#p-detail .dt-header-center{flex:1 1 0!important;min-width:0!important;width:auto!important;padding:0 calc(1.6 * var(--pg-unit, 1vw));box-sizing:border-box;}
#p-detail .dt-header-center .dt-title{max-width:100%;}
/* 我的 → 抽赏记录 categories */
#p-draw-record.pm-dr .dr-tabs{display:flex!important;}
#p-draw-record.pm-dr .dr-list{top:calc(var(--dr-tabs-top) + var(--dr-tabs-h) + calc(2.13 * var(--pg-unit, 1vw)));}
.pm-dr-badge{display:inline-flex;align-items:center;margin-right:calc(1.07 * var(--pg-unit, 1vw));}
.pm-dr-badge img{height:calc(4.32 * var(--pg-unit, 1vw));width:auto;object-fit:contain;}
.pm-dr-badge span{font-size:.75em;font-weight:700;color:#333;margin-left:calc(.533333 * var(--pg-unit, 1vw));}

/* ---------- 2026-11-02 (9): combo / DEMON icons in the feeds ---------- */
#cList .ci-prize-icon.pm-mini,.dt-feed-grade-img.pm-mini{object-fit:contain;}
/* 2026-11-03: two-digit counts (e.g. 11/16) stayed on one line only by wrapping: keep the title on one line and size it down */
.pm-combo-title,.pm-combo-title>span{white-space:nowrap;}
.pm-combo-title.pm-wide{font-size:calc(3.45 * var(--pmu));gap:calc(.9 * var(--pmu));letter-spacing:0;}
/* 2026-11-04: DEMON badge in the stock record rows / result popup; card prizes (portrait) drawn smaller in record rows. */
#boxRecordModal .box-record-grade-icon.pm-demon-grade{width:auto;height:calc(4.8 * var(--pmu));}
#boxRecordModal .box-record-prize-img img.pm-rec-portrait{max-height:76%;border-radius:calc(.6 * var(--pmu));}

/* ---------- 2026-11-06: 仓库 COMBO / DEMON badge (long artwork, same height as the grade icon) ---------- */
img.pm-wh-badge{object-fit:contain!important;}

/* ---------- 2026-11-06 QA: demon-king congrats toast sits above the result prize instead of on it ---------- */
.toast.pm-toast-top{top:calc(14 * var(--pg-unit, 1vw))!important;transform:translate(-50%,0)!important;max-width:86vw;text-align:center;}
