/* Ấn Long v2.1: responsive production skin. No baked labels or per-dragon UI textures. */
.pk-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.pk-frame{z-index:3}.pk-plate{z-index:5}.pk-bg{z-index:0}.pk-select{z-index:-1;inset:-3.333%;width:106.667%;height:104.762%}.pk-rim{position:absolute;inset:0;z-index:4;background:var(--pk-element,var(--pk-diff));-webkit-mask:var(--pk-mask) center/100% 100% no-repeat;mask:var(--pk-mask) center/100% 100% no-repeat;pointer-events:none}.pk-portrait{width:100%;height:100%;object-fit:contain;display:block}.pk-element{width:12px;height:12px;object-fit:contain}.pk-layer.pk-gem{position:static;width:12px;height:12px;object-fit:contain}
html.app-look body .pk-card{box-sizing:border-box;position:relative;isolation:isolate;width:181px;min-width:0;height:253.4px;display:block;flex:none;gap:0;padding:0!important;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;color:#EAF4ED;overflow:visible;text-align:center;animation:none;transform:none}
.pk-card::before,.pk-card::after{display:none!important}.pk-card>.pk-bg{inset:2%;width:96%;height:96%;clip-path:polygon(6% 0,94% 0,100% 6%,100% 94%,94% 100%,6% 100%,0 94%,0 6%)}
html.app-look body .pk-card .mine-pic{position:absolute;inset:10% 6% auto;height:42%;aspect-ratio:auto;z-index:2;margin:0;padding:0;background:none;display:block}
html.app-look body .pk-card .mine-name{position:absolute;left:4%;right:4%;top:53%;height:10%;min-height:0;z-index:6;display:flex;align-items:center;justify-content:center;white-space:normal;overflow:hidden;line-height:1.2;font-size:12px;font-weight:800;padding:0 2px;margin:0;color:#EAF4ED;-webkit-line-clamp:unset;text-shadow:none}
html.app-look body .pk-card .mine-name.pk-long{font-size:10.5px}html.app-look body .pk-card .mine-lv{position:absolute;left:auto;right:3%;top:2.5%;z-index:7;color:#EAF4ED!important;background:#10252e url('assets/ui/cards/v2-1/1x/dragon-card/card-badge-level.webp') center/100% 100% no-repeat!important;border:0;border-radius:10px;font-size:11px;line-height:16px;padding:2px 5px}
html.app-look body .pk-card .mine-rar{position:absolute;top:63%;left:4%;right:4%;height:5%;display:flex;align-items:center;justify-content:center;gap:3px;font-size:10px;z-index:6;color:#DCE5D8;white-space:nowrap}
html.app-look body .pk-card .mine-el{position:absolute;top:69%;height:5%;left:4%;right:4%;z-index:6;display:flex;justify-content:center;align-items:center;gap:2px;font-size:10px}
html.app-look body .pk-card .mine-pow{position:absolute;top:75%;height:7%;left:3%;right:3%;z-index:6;display:flex;align-items:center;justify-content:center;gap:3px;font-size:14px;font-weight:800;line-height:1;color:#FFE5A2;white-space:nowrap}
html.app-look body .pk-card .mine-pow.weak{color:#FF795E}.pk-hunger{position:absolute;left:40%;top:24%;width:20%;z-index:7}.pk-hungry{filter:grayscale(1)}
html.app-look body .pk-card .mine-gear{position:absolute;top:82%;height:10%;left:0;right:0;z-index:6;display:flex;justify-content:center;align-items:center;gap:5px;margin:0}.pk-card .mine-gear>span{width:22px;height:22px;display:grid;place-items:center;border:0;background:url('assets/ui/cards/v2-1/1x/dragon-card/card-gear-slot.webp') center/100% 100%;padding:2px}.pk-card .mine-gear>span.on{outline:1px solid var(--tier);outline-offset:-2px}.pk-card .mine-gear img{max-width:18px;max-height:18px}.pk-card .mine-gear svg{width:18px;height:18px}
html.app-look body .pk-card .pv-pick-n,.pk-order{position:absolute;top:2.5%;left:3%;width:23px;height:23px;z-index:8;border:0;background:url('assets/ui/cards/v2-1/1x/dragon-card/card-badge-order.webp') center/100% 100%;color:#FFE3A0;font-size:11px;font-weight:800;line-height:23px;text-align:center;font-style:normal;box-shadow:none}
html.app-look body .pk-card .pw-corner{position:absolute;top:2.5%;left:23%;right:23%;z-index:8;transform:none;display:flex;justify-content:center}.pk-card .pw-corner .pw-tag{font-size:9px;white-space:nowrap;padding:2px 4px}.pk-card .mine-howto{position:absolute;top:92%;left:3%;right:3%;height:8%;z-index:9;font-size:9px;padding:2px}
html.app-look body .pk-card .pick-foot{position:absolute;top:92%;left:3%;right:3%;height:8%;z-index:9;display:grid;grid-template-columns:minmax(0,1fr) 61px;gap:3px;margin:0;padding:0;align-items:center}.pk-card .pick-foot .pick-state{margin:0;padding:2px 1px;line-height:10px;font-size:9px;border-radius:3px;border:1px dashed #608079;color:#BDD9D3;background:#102C32;white-space:normal;text-align:center}.pk-card .pick-foot .pick-state.on{background:#FFD77A;color:#273039;border-style:solid}.pk-card .pick-foot .solo-up{font-size:9px;line-height:10px;padding:2px 1px;margin:0;border-radius:3px;background:#DCB766;color:#1C2F35;white-space:nowrap;text-align:center}.pk-card:active{transform:scale(.97)}
html body .solo-grid,html body .team-grid{display:grid;grid-template-columns:repeat(auto-fit,181px);gap:9px;justify-content:center}html.app-look body .pk-card.pk-small{width:94px;height:131.6px}
.pk-small .pk-bg{height:124%!important;clip-path:inset(0 0 24% 0)!important}html.app-look body .pk-small .mine-pic{top:14%;height:55%}html.app-look body .pk-small .mine-name,html.app-look body .pk-small .mine-name.pk-long{top:70%;height:14%;display:block;white-space:nowrap;text-overflow:ellipsis;font-size:9px;line-height:18px;padding:0 4px;text-align:left}html.app-look body .pk-small .mine-lv{font-size:9px;padding:0 4px;line-height:15px}html.app-look body .pk-small .pk-order{width:16px;height:16px;font-size:9px;line-height:16px}html.app-look body .pk-small .mine-el{left:4%;right:auto;top:87%;height:10%;justify-content:flex-start;gap:0}.pk-small .pk-element{width:8px;height:8px}html.app-look body .pk-small .mine-pow{top:85%;height:14%;left:auto;right:3%;font-size:10px;gap:0}
.pk-first{transform:translateY(-3px) scale(1.06)!important;filter:drop-shadow(0 0 3px #FFD77A)}.pk-searching{filter:saturate(.7)}.pk-empty{opacity:.5}.pk-empty>span{position:absolute;inset:25% 0;font-size:30px}.pk-cup-cards{display:flex;justify-content:center;align-items:center;gap:8px;padding:12px 5px 6px;min-width:0}.cup-room-grid{grid-template-columns:minmax(0,2.1fr) minmax(0,1fr)}.cup-line.pk-cup-line{flex:none;min-height:0;overflow:visible;background:none}.pk-cup-line .cup-count{position:static;align-self:flex-start;margin:0 0 2px}.cup-room .cup-panel{background:#10252E;border-color:#56636a;border-radius:9px}.cup-room .cup-who>div>b{font-size:16px}.cup-room .cup-stats em{font-size:10px;padding:0 3px}.cup-room .cup-who .avatar{width:38px!important;height:38px!important}.cup-room .cup-sched{font-size:10px}.cup-room .cup-open-line{font-size:10px}.cup-room .cup-mine{gap:6px}.cup-room .cup-go{min-height:32px;font-size:14px}.cup-room .cup-rank h3{font-size:14px}
.pk-artifact{position:relative;isolation:isolate;width:100%;height:170px;text-align:left;color:#EAF4ED}.pk-art-aura{position:absolute;left:-4%;top:0;width:49%;height:95%;background:var(--pk-aura);opacity:.68;-webkit-mask:var(--pk-mask) center/100% 100% no-repeat;mask:var(--pk-mask) center/100% 100% no-repeat}.pk-artifact .pk-pedestal{left:0;top:80%;width:40%;height:20%}.pk-weapon{position:absolute;left:-4%;top:0;width:49%;height:94%;display:flex;align-items:center;justify-content:center;z-index:2}.pk-weapon>img{width:100%;height:100%;object-fit:contain;display:block}.pk-artifact .pk-art-kicker,.pk-art-name,.pk-art-form,.pk-art-power,.pk-art-desc{position:absolute;left:47%;right:0;z-index:4}.pk-art-kicker{top:4%;font-size:9px;letter-spacing:.12em;color:#a1d9ec}.pk-art-name{top:15%;font-size:14px;line-height:1.15;font-weight:800}.pk-art-name i{font-style:normal;color:#9DFF9D}.pk-art-form{top:37%;font-size:9.5px;display:flex;align-items:center;gap:4px;white-space:nowrap}.pk-art-form>span{display:flex;gap:1px}.pk-art-form .pk-layer{position:static;width:7px;height:7px}.pk-art-power{top:46%;height:20%;display:flex;align-items:center;gap:5px;white-space:nowrap}.pk-art-power small{font-size:8px;font-weight:800;color:#C6DEDA}.pk-art-power strong{font-size:28px;font-weight:800;color:#FFE5A2}.pk-art-desc{top:70%;font-size:10.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html body .solo-team{grid-template-columns:minmax(0,1fr) 330px;gap:14px}.solo-team .solo-box{background:none;border:0;padding:0;gap:4px}.solo-team .solo-box>h4{font-size:13px}.solo-team .solo-box>h4 small{font-size:9px}.solo-team .solo-box:nth-child(2)>h4{color:#dbc894}.solo-team .solo-artcur{display:block;flex:none}.solo-team .solo-swap{font-size:11px;padding:5px 8px;border:1px dashed #64787a;background:none;color:#c6deda}
html body .solo-team .solo-slot{position:relative;height:146px;min-height:0;padding:0;display:block;gap:0;background:#132b35;border:1px solid #49636a;border-radius:7px;text-align:center}.solo-slot .pk-team-art{position:absolute;left:6px;right:6px;top:8px;height:80px}.solo-team .solo-slot>b{position:absolute;left:4px;right:4px;bottom:33px;font-size:10px;line-height:12px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.solo-team .solo-slot>.pk-team-power{position:absolute;bottom:8px;left:4px;right:4px;display:flex;justify-content:center;align-items:center;gap:5px;font-size:12px;color:#FFE5A2;white-space:nowrap}.pk-team-power em{font-style:normal;font-size:8px;color:#C6DEDA}.solo-team .solo-slot>.pw-tag{position:absolute;left:4%;right:4%;top:2%;font-size:8px;white-space:nowrap}.solo-team .solo-slot>.pv-pick-n{display:none}.solo-bar{border-top:1px solid #3c5660;padding-top:8px;margin-top:8px}.solo-total b{font-size:16px}.solo-total small{font-size:9px}
.pk-exp-body{display:contents}.pk-exp-select .pk-exp-body{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px;min-height:0;align-items:start}.pk-exp-select .exp-map{overflow:visible}.pk-exp-select .exp-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:6px;padding:4px}.pk-exp-select .exp-path::before{display:none}.pk-exp-select .exp-panel{display:flex!important;flex-direction:column;gap:6px;min-height:214px!important;max-height:calc(100dvh - 110px);overflow:auto;padding:10px;background:#10252e;border-color:#56636a}.pk-exp-select .exp-panel>*{margin:0!important}.pk-exp-select .exp-boss-card{padding:0;background:none;border:0}.pk-exp-select .exp-boss-icon{display:none}.pk-exp-select .exp-boss-card h3{font-size:16px}.pk-exp-select .exp-boss-card small{font-size:10px}.pk-exp-select .exp-boss-card p{font-size:11px}.pk-exp-select .exp-go-row{display:flex;gap:5px}.pk-exp-select .exp-go-row button{flex:1;min-width:0;font-size:10px!important;padding:8px 3px!important}.pk-exp-select .exp-info-actions{display:flex;flex-wrap:wrap}.pk-clears{font-size:10px;color:#C6DEDA}.expedition-view.in-arena>.pk-exp-body{display:none}
html.app-look body .pk-boss{position:relative;isolation:isolate;display:block;width:100%;aspect-ratio:1;height:auto;min-width:0;padding:0;border:0;background:none;border-radius:0;box-shadow:none;color:#fff4da}.pk-boss::before,.pk-boss::after{display:none!important}.pk-boss .pk-select{inset:-4.167%;width:108.334%;height:108.334%}.pk-boss-portrait{position:absolute;left:5%;top:8%;width:90%;height:66%;object-fit:contain;z-index:2}.pk-boss.locked .pk-boss-portrait{filter:brightness(0) drop-shadow(0 0 1px #b98a65)}.pk-boss.locked .pk-bg{filter:grayscale(1) brightness(.6)}.pk-boss:disabled{opacity:1;filter:none}.pk-boss .pk-boss-num{position:absolute;left:3%;top:3%;width:18%;height:18%;display:grid;place-items:center;z-index:8;font-size:13px;background:url('assets/ui/cards/v2-1/1x/expedition-card/exp-badge-number.webp') center/100% 100%}.pk-boss .pk-boss-name{position:absolute;top:72%;height:16%;left:3%;right:3%;z-index:7;font-size:9.5px;line-height:1.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}.pk-boss .pk-boss-mark{inset:3% 3% auto auto;width:18%;height:18%;z-index:8}.pk-stars{position:absolute;top:88%;left:0;right:0;height:10%;display:flex;justify-content:center;align-items:center;gap:2px;z-index:7}.pk-stars i{width:10px;height:10px;background:var(--pk-star);-webkit-mask:var(--pk-mask) center/contain no-repeat;mask:var(--pk-mask) center/contain no-repeat}.pk-boss .pk-smoke{inset:auto 0 0;width:100%;height:33.333%;z-index:5}.pk-party{position:absolute;left:24%;top:0;width:52%;height:15%;z-index:9;background:url('assets/ui/cards/v2-1/1x/expedition-card/exp-badge-party.webp') center/100% 100%;font-size:7px;font-weight:800;display:grid;place-items:center}
.pk-banner{position:relative;width:100%;aspect-ratio:4.5;overflow:hidden;border-radius:14px}.pk-banner .pk-layer{position:absolute}.pk-banner b{position:absolute;top:88%;transform:translateX(-50%);font-size:10px;color:#f4e8cb;white-space:nowrap;font-weight:800;text-shadow:0 1px 2px #000}
@media(min-width:1000px){html.app-look body .pk-card{width:230px;height:322px}html body .solo-grid,html body .team-grid{grid-template-columns:repeat(auto-fit,230px)}html.app-look body .pk-card .mine-name.pk-long{font-size:12px}html.app-look body .pk-card .mine-pow{font-size:18px}html.app-look body .pk-card.pk-small{width:140px;height:196px}html.app-look body .pk-small .mine-pow{font-size:11px}html.app-look body .pk-small .mine-name,html.app-look body .pk-small .mine-name.pk-long{font-size:10.5px;line-height:12px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.pk-cup-cards{gap:10px}.cup-room-grid{grid-template-columns:minmax(0,2.22fr) minmax(0,1fr)}html body .solo-team{grid-template-columns:minmax(0,1fr) 410px}.pk-artifact{height:246px}.pk-art-name{font-size:18px}.pk-art-form{font-size:12px}.pk-art-desc{font-size:13px}.pk-art-power strong{font-size:34px}.solo-team .solo-slot{height:216px!important}.solo-team .solo-slot .pk-team-art{height:136px}.solo-team .solo-slot>b{font-size:12px;line-height:15px;bottom:38px}.solo-team .solo-slot>.pk-team-power{font-size:15px;bottom:10px}.pk-team-power em{font-size:10px}.pk-boss .pk-boss-name{font-size:12px}.pk-boss .pk-boss-num{font-size:17px}.pk-stars i{width:13px;height:13px}.pk-banner b{font-size:12px}}
@media(max-height:360px){.pk-artifact{height:142px}.pk-art-name{font-size:12.5px}.pk-art-desc{font-size:10px}.pk-art-power strong{font-size:24px}html body .solo-team .solo-slot{height:138px}.solo-team .solo-slot .pk-team-art{height:70px}}
@media(max-width:600px) and (orientation:portrait){html body .solo-team,.pk-exp-select .pk-exp-body,.cup-room-grid{grid-template-columns:1fr}.pk-cup-cards{gap:4px}html.app-look body .pk-card.pk-small{width:calc((100vw - 80px)/5);height:auto;aspect-ratio:5/7}.pk-artifact{max-width:410px}.pk-exp-select .exp-panel{max-height:none}.cup-room{overflow:auto}.cup-room-grid{display:block}.cup-rank{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.pk-selected,.pk-first{animation:none!important}.pk-card:active{transform:none}}

#modal:has(.solo-pick){padding:0;width:calc(100% - 32px);max-width:1180px;max-height:calc(100dvh - 16px);border:1px solid #776849;border-radius:12px;background:#10252e}
#modal:has(.solo-pick) .modal-top{height:34px;min-height:0;padding:4px 14px;background:#19343f}
#modal:has(.solo-pick) .modal-top .icon-button{width:30px;height:28px;min-height:0;padding:2px;border-width:1px;border-radius:4px;font-size:16px}
#modal:has(.solo-pick) #modal-content{padding:10px 14px}.solo-pick>h2{font-size:14px;margin:0 0 8px}.solo-pick>h2 small{font-size:10px}
.solo-team-actions{display:flex;gap:8px;margin-top:4px}.solo-team-actions .solo-swap{width:auto;flex:1;white-space:nowrap}
.solo-pick:has(.solo-grid)>.solo-team,.solo-pick:has(.solo-grid)>.solo-bar,.solo-pick:has(.solo-grid)>h2{display:none}
.solo-pick .solo-h{font-size:14px;margin:0 0 10px;display:flex;gap:8px;align-items:center}.solo-pick .solo-h small{font-size:10px}
.cup-room .cup-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex-direction:row} /* Đổi đội hình | Tìm trận, the same size (the owner 01/12) */.cup-room .cup-actions>.quiet{width:auto;min-height:30px;padding:5px 8px;font-size:13px}.cup-room .cup-go{width:100%;min-height:32px;font-size:14px;padding:5px 8px}
.pk-card:has(.pick-state.full){filter:brightness(.8)}

html.app-look body .mine-card.pk-card{outline:none!important;outline-offset:0!important}
html.app-look body .mine-card.pk-card .mine-lv{color:#EAF4ED!important;background:#10252e url('assets/ui/cards/v2-1/1x/dragon-card/card-badge-level.webp') center/100% 100% no-repeat!important}
html.app-look body .pk-card .mine-gear>span{width:22px!important;height:22px!important;aspect-ratio:auto;flex:none}
#modal:has(.solo-pick) .modal-top{margin:0}.solo-pick{display:block}.pk-art-current{display:block;flex:none}
.solo-team .solo-slots{flex:none}.solo-team .solo-box{justify-content:flex-start}
.solo-bar{flex-wrap:nowrap;align-items:center;gap:8px}.solo-total{display:flex;align-items:center;gap:4px 7px;flex-wrap:wrap;max-width:calc(100% - 250px)}.solo-total>small:first-child{font-size:9px;letter-spacing:0}.solo-total>b{font-size:16px;line-height:20px}.solo-total .pw-tag{font-size:10px;margin:0}.solo-total>small.ok,.solo-total>small.bad{flex-basis:100%;font-size:9px;line-height:12px;margin:0}
#modal:has(.solo-pick) .solo-bar>button{width:auto;min-height:32px;height:32px;margin:0;padding:5px 10px;font-size:12px}
@media(min-width:1000px){html.app-look body .pk-card .mine-gear>span{width:28px!important;height:28px!important}}
html.app-look body .pk-card .mine-gear{display:flex!important;justify-content:center;align-items:center;gap:5px!important;max-width:none}
html.perf-low .pk-card,html.perf-low .pk-artifact{animation:none!important}
html.app-look body #modal.is-wide:has(.solo-pick){max-width:1180px!important;width:calc(100% - 32px)}
@media(min-width:1000px){.solo-team .solo-slots{grid-template-columns:repeat(3,minmax(0,160px));justify-content:center}}
/* Siêu Cúp: the lineup's cards share the whole row (29/11) */
html.app-look body .pk-cup-cards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:clamp(6px,1.4vw,12px);padding:12px 4px 6px;container-type:inline-size}
html.app-look body .pk-cup-cards .pk-card.pk-small{width:100%;height:auto;aspect-ratio:5/7}
html.app-look body .pk-cup-cards .pk-small .mine-name,html.app-look body .pk-cup-cards .pk-small .mine-name.pk-long{font-size:clamp(9px,2.3cqw,13px);line-height:1.9;display:block;white-space:nowrap;-webkit-line-clamp:unset}
html.app-look body .pk-cup-cards .pk-small .mine-pow{font-size:clamp(10px,2.9cqw,17px)}
html.app-look body .pk-cup-cards .pk-small .mine-lv{font-size:clamp(9px,2.3cqw,13px);line-height:1.6}
html.app-look body .pk-cup-cards .pk-small .pk-order{width:clamp(16px,3.6cqw,24px);height:clamp(16px,3.6cqw,24px);line-height:clamp(16px,3.6cqw,24px);font-size:clamp(9px,2.1cqw,12px)}
html.app-look body .pk-cup-cards .pk-small .pk-element{width:clamp(8px,2cqw,13px);height:clamp(8px,2cqw,13px)}
html.app-look body .pk-cup-cards .pk-empty>span{font-size:clamp(24px,6cqw,40px)}
/* Siêu Cúp: Đổi đội hình as tall as Tìm trận (29/11) */
html.app-look body .cup-room .cup-actions{align-items:stretch}
html.app-look body .cup-room .cup-actions>.quiet{height:auto;min-height:0;align-self:stretch;box-sizing:border-box}
