:root{--g-N:linear-gradient(135deg,#16824a,#4ade80);--g-R:linear-gradient(135deg,#2863af,#60a5fa);--g-SR:linear-gradient(135deg,#7847aa,#c084fc);--g-SSR:linear-gradient(135deg,#c36315,#fb923c);--g-UR:linear-gradient(125deg,#a6efff,#c7a4ff,#ffbedc,#ffe4a1,#abffee)}
.tier-0{--card-accent:#4ade80;--card-frame:var(--g-N)}.tier-1{--card-accent:#60a5fa;--card-frame:var(--g-R)}.tier-2{--card-accent:#c084fc;--card-frame:var(--g-SR)}.tier-3{--card-accent:#fb923c;--card-frame:var(--g-SSR)}.tier-4{--card-accent:#dcc9ff;--card-frame:var(--g-UR)}
.t-N,.tier-pill.tp-0{background:var(--g-N);color:#102418}.t-R,.tier-pill.tp-1{background:var(--g-R);color:#0e1927}.t-SR,.tier-pill.tp-2{background:var(--g-SR);color:#231330}.t-SSR,.tier-pill.tp-3{background:var(--g-SSR);color:#2d1809}.t-UR,.tier-pill.tp-4{background:var(--g-UR);color:#20152b}.dex-item.t-border-0{border-color:#4ade80}.dex-item.t-border-1{border-color:#60a5fa}.dex-item.t-border-2{border-color:#c084fc}.dex-item.t-border-3{border-color:#fb923c}.dex-item.t-border-4{border-color:#c7b5e8}
.pk-wrap.dm-card-wrap,.pk-card .dm-card{height:540px}.pk-card .dm-card .dm-face{height:540px;min-height:540px}.pk-card .attributes,.pk-card .radar{height:177px!important}.card-stage{height:calc(540px * var(--card-scale))}.card-stage .card-viewport,.card-stage .card-stack,.card-stage .evo-card-slot,.card-stage .evo-card-wipe{height:540px}.pk-card .dm-stage{border-radius:0}.pk-card .dm-stage:after{border:0;border-radius:0}.pk-card .scene-canvas{cursor:pointer}.pk-card .dm-back{background-repeat:no-repeat}
.evo-overlay{padding:0;display:flex;align-items:center;justify-content:center;isolation:isolate}.evo-overlay .evo-stage{position:relative;left:auto;top:auto;width:min(100%,360px);height:auto;display:flex;flex-direction:column;align-items:center;gap:14px;padding:14px 12px max(18px,env(safe-area-inset-bottom));max-height:100dvh;z-index:2}.evo-overlay .evo-card-stage{position:relative;--card-scale:var(--pk-evo-scale,1);width:var(--pk-evo-w,300px);height:var(--pk-evo-h,540px);margin:0;flex:none}.evo-overlay .evo-cta-row{position:static;left:auto;top:auto;transform:none;width:100%;min-height:48px;flex:none;display:flex;margin:0}.evo-overlay .primary-cta{min-height:48px;width:100%;padding:10px 16px}.evo-overlay .evo-card-wipe{border-radius:0;clip-path:polygon(12px 0,288px 0,300px 12px,300px 528px,288px 540px,12px 540px,0 528px,0 12px)}
.dock-btn img{width:30px;height:30px;object-fit:contain;image-rendering:auto}.chest-ico-img{image-rendering:auto!important;width:34px;height:34px}.trophy-ball-ico{width:30px;height:30px;object-fit:contain;image-rendering:auto;flex:none}.trophy-ball-label{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:38px;padding:4px;font-size:9px;color:#76531d;border:1px solid #d2b263;border-radius:5px;background:#fff9e8}.pk-art-pending{font-size:10px;color:#786b54}
@media(max-height:760px){.card-stage{--card-scale:.82}}@media(max-height:700px){.card-stage{--card-scale:.73}}@media(max-height:640px){.card-stage{--card-scale:.64}}@media(max-width:360px){.evo-overlay .evo-stage{padding-left:10px;padding-right:10px}.dock-btn img{width:25px;height:25px}}

.pk-wrap .dm-back{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow:hidden;clip-path:polygon(12px 0,288px 0,300px 12px,300px 528px,288px 540px,12px 540px,0 528px,0 12px)}

.pk-playtest .topbar{height:24px}

/* v57 search stays mounted while grid/filter results render, preserving IME and focus. */
.binder-search{display:flex;align-items:center;gap:9px;margin:0 0 12px;color:var(--muted);font-size:12px}.binder-search input{box-sizing:border-box;min-width:0;flex:1;padding:9px 11px;border:1px solid #665736;border-radius:6px;background:#161b1f;color:#f5e4b5;font:inherit;font-size:16px;outline:none}.binder-search input:focus{border-color:#d4b15b;box-shadow:0 0 0 2px #d4b15b24}#importSaveInput{box-sizing:border-box;width:100%;resize:vertical;min-height:75px;font:12px/1.5 monospace;overflow-wrap:anywhere}
