/* DraftArena v1.4.4 — wider draft and a personal, animated queue state. */
main:has(.arena-draft){max-width:1520px}

/* Both teams share one display, with the selected map as its centrepiece. */
.draft-team-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,1.12fr) minmax(0,1fr);
  align-items:stretch;
  gap:16px;
  margin-bottom:16px;
}
.draft-team-grid>.team-card{padding:clamp(18px,1.8vw,26px);display:flex;flex-direction:column;justify-content:center;gap:15px;min-width:0;background:#202020;border-color:#484848}
.draft-team-grid .team-title{margin-bottom:2px}
.draft-team-grid .team-title>span:first-child{font-size:clamp(15px,1.35vw,19px);font-weight:900}
.draft-team-grid .roster{display:grid;gap:14px}
.draft-team-grid .roster-row{gap:13px;min-height:64px}
.draft-team-grid .roster-row .roster-avatar{
  width:62px;height:62px;min-width:62px;max-width:62px;
  border-radius:11px;border:1px solid #826b45;background:#171717;
  object-position:center center;
}
.draft-team-grid .roster-row .roster-avatar.character-art{object-fit:contain;padding:3px}
.draft-team-grid .roster-row .roster-avatar.portrait-art{object-fit:cover}
.draft-team-grid .roster-name{font-size:clamp(12px,1.05vw,16px);overflow-wrap:anywhere}
.draft-team-grid .roster-tag{flex:none;font-size:10px}
.draft-selected-map{display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:15px;border:1px solid #856b3f;border-radius:13px;background:linear-gradient(160deg,#2b2419,#181818 64%);min-width:0;text-align:center;gap:9px}
.draft-selected-map-label{color:#cbb58d;font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.draft-selected-map-image{width:100%;overflow:hidden;border-radius:9px;border:1px solid #8e7247;background:#141414;box-shadow:0 10px 24px #0005}
.draft-selected-map-image img{display:block;width:100%;aspect-ratio:5/3;object-fit:contain}
.draft-selected-map-image .map-unavailable{min-height:166px}
.draft-selected-map>strong{color:#f0c678;font-size:clamp(20px,2.1vw,29px);letter-spacing:-.02em}

/* Draft itself: larger pick slots, more comfortable class grid. */
.arena-draft{margin-top:8px;padding:clamp(20px,2.35vw,34px)}
.arena-draft-heading h2{font-size:clamp(27px,2.7vw,38px)}
.draft-sideboard{gap:20px}
.draft-side{padding:clamp(16px,1.7vw,24px)}
.draft-side-title strong{font-size:19px}
.draft-picked{gap:10px}
.draft-picked-slot{min-height:95px;padding:10px 8px;gap:9px}
.draft-picked-slot strong{font-size:clamp(12px,1.4vw,17px)}
.draft-banned{gap:7px;margin-top:15px}
.draft-banned span{padding:5px 9px;font-size:11px}
.draft-class-grid{grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:10px}
.draft-class{min-height:125px;padding:13px 8px;gap:8px}
.draft-class .draft-class-symbol{width:51px;height:51px;font-size:17px}
.draft-class b{font-size:13px}

/* The queue shows ONLY the signed-in player and their confirmed duo partner. */
.queue-search-scene{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:10px;min-height:345px;border:1px solid #765e37;border-radius:14px;background:radial-gradient(circle at 50% 39%,#66502b28,transparent 50%),linear-gradient(160deg,#24211d,#121212);padding:33px 12px 26px;text-align:center}
.queue-search-aura{position:absolute;left:50%;top:42%;width:225px;height:225px;transform:translate(-50%,-50%);pointer-events:none;z-index:-1}
.queue-search-aura span{position:absolute;inset:6px;border:1px solid #c29a4a42;border-radius:50%;animation:queue-ring 3.2s ease-out infinite}
.queue-search-aura span+span{animation-delay:1.6s}
.queue-search-portraits{display:flex;align-items:flex-start;justify-content:center;gap:23px;max-width:100%;margin:22px 0 8px}
.queue-search-person{min-width:0;max-width:134px;display:flex;align-items:center;flex-direction:column;gap:13px;animation:queue-float 3.4s ease-in-out infinite;animation-delay:var(--float-delay,0s)}
.queue-search-photo{width:100px;height:100px;max-width:100%;border:2px solid #c6a366;border-radius:18px;overflow:hidden;background:linear-gradient(150deg,#312919,#141414);box-shadow:0 9px 27px #000b,0 0 20px #b98d3240}
.queue-search-photo .queue-search-portrait{width:100%;height:100%;border:0;border-radius:0;object-fit:cover}
.queue-search-photo .queue-search-portrait.character-art{object-fit:contain;padding:6px}
.queue-search-person>strong{display:block;max-width:128px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f5e3c0;font-size:13px}
.queue-search-label{display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;font-weight:900;color:#f2ce8e;margin-top:9px}
.queue-search-pulse{width:9px;height:9px;flex:none;border-radius:50%;background:#e5bf74;box-shadow:0 0 0 5px #d6b06625;animation:queue-beat 1.65s ease-in-out infinite}
.queue-search-ellipsis::after{content:'...';display:inline-block;text-align:left;animation:queue-ellipsis 1.45s steps(4,end) infinite;overflow:hidden;white-space:nowrap;vertical-align:bottom}
.queue-search-meta{display:flex;justify-content:center;align-items:center;gap:11px;color:#c1b5a2;font-size:11px;letter-spacing:.04em}
.queue-search-divider{width:3px;height:3px;border-radius:50%;background:#8d764e}
.queue-search-timer{font-size:37px;line-height:1.1;font-weight:850;color:#fff;letter-spacing:.055em;font-variant-numeric:tabular-nums}
@keyframes queue-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes queue-ring{0%{opacity:.7;transform:scale(.7)}85%,100%{opacity:0;transform:scale(1.38)}}
@keyframes queue-beat{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.75)}}
@keyframes queue-ellipsis{0%{width:0}100%{width:16px}}

@media(max-width:1120px){
  .draft-team-grid{grid-template-columns:1fr;gap:12px}
  .draft-team-grid .team-card{padding:18px}
  .draft-team-grid .roster-row .roster-avatar{width:56px;height:56px;min-width:56px}
  .draft-selected-map{padding:15px}
  .draft-selected-map-image{max-width:600px;align-self:center}
}
@media(max-width:760px){
  .arena-draft{padding:17px}
  .draft-sideboard{gap:12px}
  .draft-picked-slot{min-height:72px}
  .draft-class-grid{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px}
  .draft-class{min-height:110px}
  .draft-team-grid>.team-card{gap:10px}
  .draft-selected-map>strong{font-size:22px}
}
@media(max-width:440px){
  .queue-search-scene{min-height:310px}
  .queue-search-photo{width:76px;height:76px}
  .queue-search-portraits{gap:13px}
  .queue-search-person{max-width:112px}
  .queue-search-timer{font-size:32px}
}
@media(prefers-reduced-motion:reduce){
  .queue-search-person,.queue-search-aura span,.queue-search-pulse,.queue-search-ellipsis::after{animation:none!important}
}

/* v1.4.5 — the map belongs in the draft selection phase, between the picks. */
.draft-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.draft-sideboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.84fr) minmax(0,1fr);align-items:stretch;gap:12px}
.draft-center-map{min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:14px;border:1px solid #ab8b53;border-radius:12px;background:radial-gradient(circle at 50% 30%,#58412530,transparent 75%),#1c1a18;text-align:center}
.draft-center-map-label{font-size:11px;text-transform:uppercase;letter-spacing:.16em;font-weight:900;color:#debb81}
.draft-center-map-image{width:100%;border-radius:9px;border:1px solid #886d43;overflow:hidden;background:#101010}
.draft-center-map-image img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain}
.draft-center-map-image .map-unavailable{min-height:130px}
.draft-center-map>strong{font-size:clamp(20px,2vw,27px);color:#eec982}
.draft-picked{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.draft-picked-slot{min-height:162px;gap:7px;padding:10px 5px}
.draft-picked-slot small{font-size:10px}
.draft-picked-slot strong{font-size:clamp(11px,1vw,15px);line-height:1.2;overflow-wrap:anywhere;white-space:normal;color:#e4cc9f}
.draft-picked-image{width:100%;aspect-ratio:4/5;max-height:118px;overflow:hidden;border-radius:8px;background:linear-gradient(150deg,#322b21,#181818);border:1px solid #83673d}
.draft-picked-image .draft-face-image{width:100%;height:100%;object-fit:cover;object-position:center 30%;display:block}
.draft-picked-empty{display:grid;place-items:center;flex:1;min-height:90px;color:#655d4e;font-size:24px}
.draft-class-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:11px}
.draft-class{min-height:156px;gap:7px}
.draft-class .draft-class-symbol{width:88px;height:92px;border-radius:10px;display:block;overflow:hidden;background:#211d18}
.draft-class .draft-class-symbol .draft-face-image{width:100%;height:100%;display:block;object-fit:cover;object-position:center 27%;transition:transform .18s}
.draft-class:not(:disabled):hover .draft-face-image{transform:scale(1.06)}
.draft-class.ban-used .draft-face-image{filter:grayscale(1)}
.draft-class.pick-used .draft-face-image{filter:none}
@media(max-width:1170px){
 .draft-sideboard{grid-template-columns:minmax(0,1fr) minmax(190px,.85fr) minmax(0,1fr);gap:8px}
 .draft-side{padding:12px}
 .draft-picked-slot{min-height:128px}
 .draft-picked-image{max-height:88px}
}
@media(max-width:820px){
 .draft-sideboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .draft-sideboard .draft-center-map{grid-column:1/-1;grid-row:1;justify-self:stretch}
 .draft-center-map-image{width:min(100%,460px);align-self:center}
 .draft-center-map-image img{aspect-ratio:5/3;max-height:280px}
 .draft-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .draft-picked-slot{min-height:138px}
}
@media(max-width:560px){
 .draft-sideboard{grid-template-columns:1fr}
 .draft-sideboard .draft-center-map{grid-column:1;grid-row:2}
 .draft-team-grid{grid-template-columns:1fr}
 .draft-picked-slot{min-height:156px}
 .draft-picked-image{max-height:110px}
 .draft-class-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:7px}
 .draft-class{min-height:130px;padding:8px 4px}
 .draft-class .draft-class-symbol{width:72px;height:74px}
}

/* v1.4.6: large competitive draft; map uses its natural dimensions (no letterboxing). */
main:has(.arena-draft){max-width:1730px;padding-inline:clamp(16px,2.5vw,44px)}
.arena-draft{padding:clamp(19px,2.5vw,38px)}
.draft-sideboard{
  grid-template-columns:minmax(0,1.22fr) minmax(270px,.97fr) minmax(0,1.22fr);
  gap:clamp(12px,1.4vw,23px);
  align-items:stretch;
}
.draft-side{padding:clamp(15px,1.7vw,27px)}
.draft-side-title strong{font-size:clamp(18px,1.7vw,23px)}
.draft-picked{gap:clamp(8px,.9vw,14px)}
.draft-picked-slot{min-height:210px;padding:11px 7px;gap:9px}
.draft-picked-image{max-height:none;width:100%;aspect-ratio:4/5}
.draft-picked-image .draft-face-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center 24%}
.draft-picked-slot strong{font-size:clamp(12px,1.14vw,17px)}
.draft-center-map{padding:clamp(12px,1.3vw,21px);gap:14px;min-width:0}
.draft-center-map-image{
  overflow:visible;border:0;border-radius:0;box-shadow:none;background:transparent;
  width:100%;display:grid;place-items:center;
}
.draft-center-map-image img{
  width:100%;height:auto;aspect-ratio:auto;max-height:none;
  object-fit:contain;object-position:center;display:block;
  border:0;border-radius:6px;background:transparent;
}
.draft-center-map>strong{font-size:clamp(24px,2.25vw,34px)}
.draft-class-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:12px}
.draft-class{min-height:170px}
.draft-class .draft-class-symbol{width:94px;height:100px}
/* Bigger participant portraits without cutting full-body character illustrations. */
.match-room-teams{gap:18px;margin-bottom:24px}
.match-room-teams .team-card{padding:clamp(20px,2.25vw,32px);min-width:0;background:#212121}
.match-room-teams .roster{gap:18px}
.match-room-teams .roster-row{display:flex;align-items:center;min-height:110px;gap:17px}
.match-room-teams .roster-row .roster-avatar{
  flex:0 0 clamp(84px,7.8vw,110px);width:clamp(84px,7.8vw,110px);height:clamp(84px,7.8vw,110px);
  max-width:none;max-height:none;min-width:0;
  border:1px solid #8e734b;border-radius:12px;background:#181818;padding:3px;object-position:center center;
}
.match-room-teams .roster-row .roster-avatar.character-art{object-fit:contain}
.match-room-teams .roster-row .roster-avatar.portrait-art{object-fit:cover;object-position:center 28%}
.match-room-teams .roster-details{min-width:0;flex:1}
.match-room-teams .roster-name{font-size:clamp(13px,1.1vw,17px);line-height:1.45}
.match-room-teams .roster-role{font-size:12px}
.match-room-teams .roster-tag{flex:none}
.next-match-cta{display:flex;justify-content:flex-start;margin:5px 0 24px}
/* Compact authenticated account dropdown in the top navigation. */
.topbar{position:relative;z-index:15}
.nav-item[hidden],.account-menu-popover[hidden]{display:none!important}
.account-menu{position:relative;z-index:22;min-width:0}
.account-menu-trigger{display:flex;align-items:center;gap:9px;border:1px solid #715d39;border-radius:12px;background:#28231d;color:#e9d8b5;min-height:44px;padding:4px 11px 4px 5px;max-width:245px}
.account-menu-trigger:hover,.account-menu-trigger[aria-expanded="true"]{border-color:#d6ab62;background:#332a1d}
.account-menu-trigger:focus-visible,.account-menu-popover button:focus-visible{outline:2px solid #dfba76;outline-offset:3px}
.account-menu-avatar{height:36px!important;width:36px!important;min-width:36px;max-width:36px!important;border:1px solid #a38859!important;border-radius:9px!important;background:#121212;object-position:center;}
.account-menu-avatar.character-art{object-fit:contain!important}
.account-menu-avatar.portrait-art{object-fit:cover!important}
.account-menu-trigger strong{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:125px}
.account-chevron{font-size:17px;line-height:1;color:#e9bf76}
.account-menu-popover{position:absolute;top:calc(100% + 9px);right:0;min-width:185px;padding:8px;background:#252321;border:1px solid #786342;box-shadow:0 16px 30px #0009;border-radius:12px;display:flex;flex-direction:column;gap:3px}
.account-menu-caption{font-size:11px;color:#c4b7a4;padding:9px 10px;border-bottom:1px solid #48413a;max-width:200px;overflow:hidden;text-overflow:ellipsis}
.account-menu-popover button{background:transparent;border:0;border-radius:7px;color:#f0e3c9;padding:10px 11px;font-size:12px;font-weight:700;text-align:left}
.account-menu-popover button:hover{background:#453822;color:#ffd588}
@media(max-width:1190px){
 .draft-sideboard{grid-template-columns:minmax(0,1fr) minmax(215px,.88fr) minmax(0,1fr);gap:10px}
 .draft-side{padding:13px}
 .draft-picked-slot{min-height:175px}
}
@media(max-width:900px){
 .draft-sideboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .draft-sideboard .draft-center-map{grid-column:1/-1;grid-row:1}
 .draft-center-map-image{max-width:650px;align-self:center}
 .draft-picked-slot{min-height:190px}
 .match-room-teams .roster-row{min-height:90px}
 .match-room-teams .roster-row .roster-avatar{width:78px;height:78px;flex-basis:78px}
}
@media(max-width:600px){
 .draft-sideboard{grid-template-columns:1fr}
 .draft-sideboard .draft-center-map{grid-column:1;grid-row:2}
 .draft-picked-slot{min-height:155px}
 .draft-picked-image{max-height:130px}
 .draft-class-grid{grid-template-columns:repeat(auto-fit,minmax(91px,1fr))}
 .draft-class{min-height:136px}
 .draft-class .draft-class-symbol{width:77px;height:80px}
 .match-room-teams{grid-template-columns:1fr}
 .match-room-teams .roster-row .roster-avatar{width:90px;height:90px;flex-basis:90px}
 .account-menu-trigger strong{max-width:84px}
}
