.roster-picker{
  box-sizing:border-box;width:min(100%,580px);margin-inline:auto;
  padding:clamp(.8rem,3vw,1.55rem);border:1px solid #dab887;border-radius:20px;
  background:radial-gradient(ellipse at 50% 0,#294455,#112337 72%);
  color:#fff2d3;box-shadow:0 14px 34px #050d1db0,inset 0 0 0 3px #f7cc8623;
  text-align:center;
}
.roster-picker h3{
  display:block;margin:0 0 .4rem;color:#ffebbb;font:700 clamp(1.6rem,6vw,2.5rem)/1.1 Georgia,serif;
}
.roster-limit{margin:.2rem auto .4rem;width:fit-content;padding:.18rem .65rem;border-radius:2rem;background:#203f4e;color:#ffedc9;font-weight:750;font-size:.88rem}
.roster-hint{margin:.55rem 0;color:#dae8ee;font-size:.94rem}
.roster-slots,.roster-lineup{display:flex;justify-content:center;gap:.45rem;flex-wrap:wrap;margin:.55rem auto}
.roster-slot{
  display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:38px;min-width:clamp(112px,36%,143px);
  padding:.22rem .45rem;border:1px dashed #ad9b7b;border-radius:9px;background:#0c2031;color:#edf4ee;font-size:.86rem;
}
.roster-slot-number,.roster-order{
  display:grid;place-items:center;min-width:1.45rem;aspect-ratio:1;border-radius:50%;
  background:#ffdf95;color:#2b1822;font:800 .83rem/1 system-ui,sans-serif;
}
.roster-order{position:absolute;right:.22rem;top:.22rem;box-shadow:0 2px 6px #0c1927b0}
.roster-badge{display:inline-flex;align-items:center;gap:.26rem;max-width:100%;font-weight:700;overflow-wrap:anywhere}
.roster-badge .roster-avatar{width:1.75rem}
.roster-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:.42rem;max-width:510px;margin:.7rem auto}
.roster-picker .roster-card{
  position:relative;box-sizing:border-box;display:grid;justify-items:center;align-content:start;gap:.19rem;
  padding:.28rem .22rem .34rem;border:1px solid #ae987780;border-radius:11px;
  background:radial-gradient(ellipse at 50% 36%,#31586b,#182e43 74%);color:#fff0cd;
  min-width:0;min-height:70px;margin:0;box-shadow:inset 0 1px #ffffff1a;
}
.roster-picker .roster-card[aria-pressed="true"]{border-color:#ffe09d;background:radial-gradient(ellipse at 50% 36%,#3c806e,#214743 74%);box-shadow:0 0 0 1px #ffe09d}
.roster-picker .roster-card:not(:disabled):hover{border-color:#f3d49c}
.roster-picker button:focus-visible{outline:3px solid #fff3b2;outline-offset:2px}
.roster-picker .roster-card:disabled{opacity:.65}
.roster-avatar{display:inline-grid;place-items:center;width:clamp(45px,11vw,69px);aspect-ratio:1;flex:none;font-size:clamp(1.35rem,7vw,2.25rem)}
.roster-avatar img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.roster-card-label{display:block;max-width:100%;color:inherit;font-size:.87rem;font-weight:750;line-height:1.17;overflow-wrap:anywhere}
.roster-picker .roster-add{border-style:dashed;background:#162c3c}
.roster-plus{
  display:grid;place-items:center;width:clamp(45px,11vw,69px);aspect-ratio:1;border-radius:50%;color:#ffedbe;
  font:700 clamp(1.8rem,8vw,2.55rem)/1 Georgia,serif;
}
.roster-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.38rem;margin-top:.6rem}
.roster-actions .roster-play{
  flex:1 0 100%;min-height:46px;margin:0;background:linear-gradient(#a3384e,#741d33);
  color:#fff4db;border:1px solid #ffdb93;font-weight:850;font-size:1.08rem;
}
.roster-actions .roster-play:disabled{opacity:.5}
.roster-actions .roster-secondary{min-height:44px;margin:0;background:#183145;color:#fff0cd;border-color:#b7a2827a}
.roster-profile label{display:block;font-weight:700;text-align:left;max-width:27rem;margin:auto}
.roster-profile input{box-sizing:border-box;width:100%;min-height:44px;margin:.25rem 0 0;background:#0b1f31;border:1px solid #b6a17c;border-radius:8px;color:#fff5df;padding:.5rem .7rem;font:inherit}
.roster-avatar-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.roster-avatar-options .roster-avatar{width:clamp(38px,10vw,60px)}
.roster-avatar-options .roster-card-label{font-size:.76rem}
.roster-lineup .roster-badge{border-radius:22px;padding:.16rem .65rem .16rem .24rem;border:1px solid #c3a77b86;background:#182c3fee;color:#fff2cb;font-size:.9rem}
.roster-lineup .roster-badge:nth-child(2){border-color:#b1daf5}
.game-grid .roster-token{position:relative}
.game-grid .roster-token .roster-avatar{width:min(73%,64px)}
.game-grid .roster-token[data-side="0"]{box-shadow:inset 0 0 0 2px #e9b766}
.game-grid .roster-token[data-side="1"]{box-shadow:inset 0 0 0 2px #8dd6fb}
.rock-paper-arena .game-intro:has(.roster-picker),.village-game-arena .game-intro:has(.roster-picker){padding:0;border:0;background:none;box-shadow:none}
.bauble-stage:has(.roster-picker){align-content:center}
.game-stage[data-game="tic"] .match-score{display:flex;justify-content:center;gap:.6rem;flex-wrap:wrap}
.game-stage[data-game="tic"] .rps-score-card{display:inline-flex;align-items:center;gap:.35rem;padding:.12rem .35rem;background:#132b3a;border-radius:7px}
.roster-pawns{display:flex;justify-content:center;min-height:.9rem}
.roster-pawns .roster-avatar{width:clamp(.9rem,3vw,1.32rem)}
.roster-taken{display:block;color:#e5d6bd;font-size:.69rem;line-height:1.14;overflow-wrap:anywhere;max-width:100%}
.roster-profile [role="status"]:empty{display:none}
