/* Camp-matched popup system. Existing bitmap controls, original game content. */
body.pb-refined-theme{
  --pc-button:url('../assets/camp/pixel-b/controls.png');
  --pc-frame:url('../assets/camp/pixel-b/material-v1/roster-frame.png');
}
#screen-lobby.pixel-b>.pb-sheet.pb-refined{
  box-sizing:border-box;border:14px solid transparent!important;
  border-image:var(--pc-frame) 216 / 14px / 0 stretch!important;
  background:#111515!important;box-shadow:0 24px 90px #000e,inset 0 0 0 1px #3c3e34;overflow:hidden;font-family:CampPixel,monospace;
}
#screen-lobby.pixel-b:has(>.pb-refined) .pb-backdrop{background:#020506c7!important;backdrop-filter:none}
#screen-lobby.pixel-b .pb-refined .camp-workspace{background:#111515!important}
#screen-lobby.pixel-b .pb-refined .camp-view{padding:0!important}
#screen-lobby.pixel-b .pb-refined .lobby-scroll{background:radial-gradient(ellipse at 0 15%,#9270470b,transparent 75%);scrollbar-color:#665d45 #111515;scrollbar-width:thin}
#screen-lobby.pixel-b .pb-refined .pb-dialog-head{
  min-height:110px;padding:20px 18px 17px;gap:16px;border:0;border-bottom:1px solid #766346;box-shadow:0 1px #030706;
  background:linear-gradient(90deg,#0c1318f5 10%,#0c1318c9 65%,#0c1318cf),url('../assets/camp/pixel-b/scene.png') 50% 22% / 100% auto;
}
#screen-lobby.pixel-b .pb-refined .pb-dialog-eyebrow{font-size:8px;color:#af9a6c;letter-spacing:2.4px}
#screen-lobby.pixel-b .pb-refined #pb-dialog-title{font-size:27px;color:#f0dfb7;line-height:1.5;margin:3px 0 4px;text-shadow:0 2px #000}
#screen-lobby.pixel-b .pb-refined #pb-dialog-hint{font-size:11px;color:#a3a89f;line-height:1.6}
#screen-lobby.pixel-b .pb-refined .pb-panel-close,
#screen-lobby.pixel-b .pb-refined .pb-view-tabs>button,
#screen-lobby.pixel-b .pb-refined .mini-btn,
#screen-lobby.pixel-b .pb-refined .btn,
#screen-lobby.pixel-b .pb-refined .pb-return-depart{
  position:relative;isolation:isolate;border:0!important;border-radius:0;background:#1d211d;box-shadow:none;color:#c7c4ad;
  min-height:44px;font-family:CampPixel,monospace;text-shadow:0 2px #080b0a;cursor:pointer;
  clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 3px,100% 3px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px),0 3px,4px 3px);
}
#screen-lobby.pixel-b .pb-refined .pb-panel-close:before,
#screen-lobby.pixel-b .pb-refined .pb-view-tabs>button:before,
#screen-lobby.pixel-b .pb-refined .mini-btn:before,
#screen-lobby.pixel-b .pb-refined .btn:before,
#screen-lobby.pixel-b .pb-refined .pb-return-depart:before{
  content:'';display:block!important;position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:var(--pc-button);background-size:105.08% 259.5%;background-position:50.48% 11.91%;
  background-repeat:no-repeat;image-rendering:pixelated;filter:saturate(.15) brightness(.34);
}
#screen-lobby.pixel-b .pb-refined .pb-panel-close{width:44px;height:44px;flex:none;color:#e5d3aa}
#screen-lobby.pixel-b .pb-refined .pb-panel-close svg{width:18px;height:18px}
#screen-lobby.pixel-b .pb-refined .pb-view-tabs{padding:16px 0 14px;background:#111515;gap:10px}
#screen-lobby.pixel-b .pb-refined .pb-view-tabs>button{font-size:14px;letter-spacing:2px;height:46px}
#screen-lobby.pixel-b .pb-refined .pb-view-tabs>button.on{color:#fff0c7;text-shadow:0 2px #533215}
#screen-lobby.pixel-b .pb-refined .pb-view-tabs>button.on:before{filter:saturate(.8) brightness(.91)}
#screen-lobby.pixel-b .pb-refined .pb-view-tabs>button:hover:before,
#screen-lobby.pixel-b .pb-refined .pb-panel-close:hover:before,
#screen-lobby.pixel-b .pb-refined .mini-btn:hover:before,
#screen-lobby.pixel-b .pb-refined .btn:hover:before{filter:saturate(.55) brightness(.67)}
#screen-lobby.pixel-b .pb-refined .pb-view-tabs>button.on:hover:before{filter:brightness(1.08)}
#screen-lobby.pixel-b .pb-refined .pb-view-tabs>button:active,
#screen-lobby.pixel-b .pb-refined .pb-panel-close:active,
#screen-lobby.pixel-b .pb-refined .mini-btn:active,
#screen-lobby.pixel-b .pb-refined .btn:active{transform:translateY(2px);filter:brightness(.85)}
#screen-lobby.pixel-b .pb-refined .camp-roster-lead{min-height:68px;margin:0 0 20px;padding:8px 2px 16px;gap:12px;border:0;border-bottom:1px solid #3d4239;background:none;box-shadow:none}
#screen-lobby.pixel-b .pb-refined .camp-roster-portrait{width:44px;height:52px;border-radius:0;display:grid;place-items:center;background:radial-gradient(ellipse at bottom,#7d693133,transparent 70%);border:0;box-shadow:none}
#screen-lobby.pixel-b .pb-refined .camp-roster-portrait img{width:44px;height:52px;image-rendering:pixelated}
#screen-lobby.pixel-b .pb-refined .camp-roster-copy{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:20px}
#screen-lobby.pixel-b .pb-refined .camp-roster-copy small{grid-column:1/-1;font-size:10px;color:#90958a}
#screen-lobby.pixel-b .pb-refined .camp-roster-copy b{font-size:19px;color:#e9d6ac;letter-spacing:1px}
#screen-lobby.pixel-b .pb-refined .camp-roster-copy span{font-size:12px;color:#bfab7d}
#screen-lobby.pixel-b .pb-refined .panel{background:none;border:0!important;box-shadow:none;padding:0;margin:0 0 16px}
#screen-lobby.pixel-b .pb-refined .panel:before,#screen-lobby.pixel-b .pb-refined .panel:after{display:none!important}
#screen-lobby.pixel-b .pb-refined .panel,#screen-lobby.pixel-b .pb-refined .class-card{font-family:CampPixel,monospace}
#screen-lobby.pixel-b .pb-refined .panel-title{font-size:12px;color:#aba58d;font-weight:400;letter-spacing:1px;margin-bottom:10px}
#screen-lobby.pixel-b .pb-refined #class-tabs{gap:16px;padding:0 0 8px;margin-bottom:12px;border-bottom:1px solid #343b33;scrollbar-width:thin;scrollbar-color:#60573e transparent}
#screen-lobby.pixel-b .pb-refined #class-tabs .cls-tab{min-height:44px;padding:8px 2px;background:none;border:0;box-shadow:none;color:#9aa295;font-size:12px;gap:4px}
#screen-lobby.pixel-b .pb-refined #class-tabs .cls-tab.on{background:none;color:#e4c88a;box-shadow:inset 0 -2px #b69453}
#screen-lobby.pixel-b .pb-refined #class-tabs .cls-tab:hover{color:#f0d6a0}
#screen-lobby.pixel-b .pb-refined #class-row{gap:12px;align-items:stretch}
#screen-lobby.pixel-b .pb-refined #class-row .class-card{
  position:relative;min-height:192px;padding:14px 9px 29px;border:1px solid #495044;
  background:radial-gradient(ellipse at 50% 12%,#82734717,transparent 65%),#161c1a;
  box-shadow:inset 0 1px #a4a08718,inset 0 -3px #080d0b;color:#bec1b1;overflow:hidden;
}
#screen-lobby.pixel-b .pb-refined #class-row .class-card:before{content:'';position:absolute;inset:3px;border-top:1px solid #98906b22;border-left:1px solid #98906b0f;pointer-events:none}
#screen-lobby.pixel-b .pb-refined #class-row .class-card.sel{padding:14px 9px 29px;border:1px solid #c9a661;background:radial-gradient(ellipse at 50% 0,#b5863438,transparent 75%),#25281e;box-shadow:inset 0 0 0 2px #7b65324a,inset 0 -3px #0c110c}
#screen-lobby.pixel-b .pb-refined .class-card.sel:after{right:6px;top:6px;width:17px;height:17px;background:#c9a661;color:#252012;box-shadow:0 2px #080c08;content:'✓'}
#screen-lobby.pixel-b .pb-refined .class-card>img{width:44px;height:52px;margin:0 0 8px;image-rendering:pixelated;object-fit:contain}
#screen-lobby.pixel-b .pb-refined .class-card>img.cls-front{width:72px;height:88px;image-rendering:auto}
#screen-lobby.pixel-b .pb-refined .class-card .cname{font-size:16px;line-height:1.5;color:#edddba;letter-spacing:1px;margin:0 0 7px;text-shadow:0 2px #000}
#screen-lobby.pixel-b .pb-refined .class-card .cmech{width:100%;background:none;border:0;color:#c5ad77;font-weight:400;font-size:12px!important;line-height:1.6!important;padding:0 0 7px;white-space:normal}
#screen-lobby.pixel-b .pb-refined .class-card .cmech{margin:0}
#screen-lobby.pixel-b .pb-refined .class-card .cdesc{font-size:12px!important;line-height:1.8;color:#b0b9a9!important}
#screen-lobby.pixel-b .pb-refined .class-card .cls-diff{font-size:10px;left:7px;bottom:8px;background:none}
#screen-lobby.pixel-b .pb-refined .class-card .cls-lv-badge{font-size:10px!important;bottom:7px!important;right:7px!important;border:0!important;border-radius:0!important;background:none!important;color:#bdaa78!important}
#screen-lobby.pixel-b .pb-refined .class-card.locked{background:#121816;box-shadow:inset 0 1px #a4a08710,inset 0 -3px #080d0b}
#screen-lobby.pixel-b .pb-refined .class-card.locked .cls-lock{position:static;inset:auto;order:8;width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:4px;margin-top:auto;padding:8px 0 0;background:none;font-size:10px;color:#b3a481}
#screen-lobby.pixel-b .pb-refined .class-card.locked .cls-lock>br{display:none}
#screen-lobby.pixel-b .pb-refined .class-card.locked .cls-diff{position:static;order:9;align-self:flex-start;margin-top:9px}
#screen-lobby.pixel-b .pb-refined .skill-chip{background:#20261f;border:1px solid #5a5e49;box-shadow:inset 0 1px #c5b87b19;color:#d2ceb7}
#screen-lobby.pixel-b .pb-refined .skill-chip .desc,#screen-lobby.pixel-b .pb-refined .skill-chip .dim{color:#b0b5a6}
#screen-lobby.pixel-b .pb-refined .skill-chip-main>b{color:#e2d3af}
#screen-lobby.pixel-b .pb-refined .skill-chip-main>span{color:#b0b5a6;font-size:12px;line-height:1.7}
#screen-lobby.pixel-b .pb-refined .support-pill{background:#23291f;border-color:#756a45;color:#ccc19e}
#screen-lobby.pixel-b .pb-refined button:focus-visible,#screen-lobby.pixel-b .pb-refined [role=button]:focus-visible{outline:2px solid #efd499;outline-offset:-4px}
@media(max-width:600px){
  #screen-lobby.pixel-b>.pb-sheet.pb-refined{border-width:10px!important;border-image-width:10px!important;width:calc(100% - 16px)!important;height:calc(100% - 32px)!important;bottom:16px!important}
  #screen-lobby.pixel-b .pb-refined .pb-dialog-head{padding:12px 12px 11px;gap:12px;min-height:100px}
  #screen-lobby.pixel-b .pb-refined #pb-dialog-title{font-size:24px}
  #screen-lobby.pixel-b .pb-refined #pb-dialog-hint{font-size:10px}
  #screen-lobby.pixel-b .pb-refined .pb-dialog-eyebrow{font-size:8px;letter-spacing:1.5px}
  #screen-lobby.pixel-b .pb-refined .lobby-scroll{padding:0 12px 18px!important}
  #screen-lobby.pixel-b .pb-refined .pb-view-tabs{padding-top:14px;gap:8px}
  #screen-lobby.pixel-b .pb-refined #class-row{grid-template-columns:1fr;gap:10px}
  #screen-lobby.pixel-b .pb-refined #class-row .class-card,
  #screen-lobby.pixel-b .pb-refined #class-row .class-card.sel{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-areas:'portrait name' 'portrait mech' 'portrait desc' 'diff lock';column-gap:12px;row-gap:0;align-items:start;text-align:left;min-height:0;padding:14px 14px 10px}
  #screen-lobby.pixel-b .pb-refined .class-card>img{grid-area:portrait;align-self:center;justify-self:center;width:44px;height:52px;margin:0}
  #screen-lobby.pixel-b .pb-refined .class-card>img.cls-front{width:60px;height:73px}
  #screen-lobby.pixel-b .pb-refined .class-card .cname{grid-area:name;font-size:16px;letter-spacing:1px;line-height:1.5;margin:0 0 5px;padding-right:20px}
  #screen-lobby.pixel-b .pb-refined .class-card .cmech{grid-area:mech;font-size:11px!important;line-height:1.6!important;padding:0 0 7px}
  #screen-lobby.pixel-b .pb-refined .class-card .cdesc{grid-area:desc;font-size:11px!important;line-height:1.7}
  #screen-lobby.pixel-b .pb-refined .class-card .cls-diff,
  #screen-lobby.pixel-b .pb-refined .class-card.locked .cls-diff{grid-area:diff;position:static;align-self:end;justify-self:center;white-space:nowrap;margin:10px 0 0;font-size:8px;line-height:1.7}
  #screen-lobby.pixel-b .pb-refined .class-card .cls-lv-badge{grid-area:lock;position:static!important;align-self:end;justify-self:end;line-height:1.7;font-size:9px!important;margin-top:10px;padding:0!important}
  #screen-lobby.pixel-b .pb-refined .class-card.locked .cls-lock{grid-area:lock;width:auto;justify-self:end;align-self:end;justify-content:flex-end;margin:10px 0 0;padding:0;font-size:9px;line-height:1.7}
  #screen-lobby.pixel-b .pb-refined .class-card .cls-lock>span{font-size:9px}
  #screen-lobby.pixel-b .pb-refined .camp-roster-lead{margin-bottom:14px;min-height:64px;padding-bottom:12px}
}
@media(max-width:360px){
  #screen-lobby.pixel-b .pb-refined .lobby-scroll{padding-left:8px!important;padding-right:8px!important}
  #screen-lobby.pixel-b .pb-refined .pb-dialog-head{padding-left:8px;padding-right:8px}
  #screen-lobby.pixel-b .pb-refined #pb-dialog-title{font-size:21px}
  #screen-lobby.pixel-b .pb-refined #class-row .class-card{padding-left:6px;padding-right:6px}
}
