/* Clash Arena V2 — live ranked queue panel (/arena/play/). Shared V2 tokens only. */
.v2-qlive{padding-bottom:clamp(30px,5vw,60px)}
.v2-qlive-panel{display:grid;gap:clamp(12px,1.6vw,16px)}
.v2-qlive-panel>.v2-panel-head{margin-bottom:0}
.v2-qlive-heading{display:grid;gap:6px;min-width:0}
.v2-qlive-heading .v2-kicker{justify-content:flex-start}
.v2-qlive-intro{margin:0;max-width:72ch}
.v2-qlive-banner{margin:0;padding:10px 14px;border-radius:var(--v2-r-sm);background:rgba(242,195,95,.1);border:1px solid rgba(242,195,95,.35);color:var(--v2-gold-hi);font-weight:700}
.v2-qlive.is-offline .v2-qlive-banner{background:rgba(224,72,62,.1);border-color:rgba(255,125,110,.35);color:var(--v2-danger-hi)}
.v2-qlive.is-offline .v2-qlive-chip::before,.v2-qlive.is-paused .v2-qlive-chip::before{animation:none;background:var(--v2-text-3)}
.v2-qlive-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v2-qlive-total{display:flex;align-items:baseline;gap:10px;min-width:0;padding:12px 16px;border-radius:var(--v2-r-md);background:rgba(0,0,0,.28);border:1px solid var(--v2-stone-line)}
.v2-qlive-total b{font-size:clamp(1.8rem,3.4vw,2.4rem);line-height:1;color:var(--v2-gold-hi)}
.v2-qlive-total small{color:var(--v2-text-3);font-weight:800;overflow-wrap:anywhere}
.v2-qlive-grid{display:grid;gap:10px}
.v2-qlive-row{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:stretch;gap:10px}
.v2-qlive-th{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--v2-r-md);background:rgba(0,0,0,.22);border:1px solid var(--v2-stone-line)}
.v2-qlive-th img{width:44px;height:44px;object-fit:contain;flex:none}
.v2-qlive-th b{font-size:1.15rem}
.v2-qlive-cells{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.v2-qlive-cell{position:relative;display:grid;align-content:start;gap:4px;min-width:0;padding:10px 12px;border-radius:var(--v2-r-md);background:rgba(255,236,190,.04);border:1px solid var(--v2-stone-line);transition:border-color var(--v2-mid) var(--v2-ease),background var(--v2-mid) var(--v2-ease)}
.v2-qlive-mode{font-size:1rem;color:var(--v2-text-2,var(--v2-text))}
.v2-qlive-count{display:flex;align-items:baseline;gap:6px}
.v2-qlive-count b{font:700 1.7rem/1 var(--v2-display);color:var(--v2-text-3)}
.v2-qlive-count small,.v2-qlive-wait,.v2-qlive-live{color:var(--v2-text-3);font-size:.84rem;font-weight:700;overflow-wrap:anywhere}
.v2-qlive-live{color:var(--v2-ally)}
.v2-qlive-cell.is-hot{background:linear-gradient(180deg,rgba(124,204,60,.16),rgba(124,204,60,.05));border-color:rgba(168,232,106,.55);box-shadow:0 0 0 1px rgba(168,232,106,.18),0 0 22px rgba(124,204,60,.16)}
.v2-qlive-cell.is-hot .v2-qlive-count b{color:var(--v2-go-hi)}
.v2-qlive-cell.is-hot .v2-qlive-wait{color:var(--v2-go-hi)}
.v2-qlive-cell.is-hot::after{content:"";position:absolute;top:12px;right:12px;width:9px;height:9px;border-radius:50%;background:var(--v2-go-hi);box-shadow:0 0 0 0 rgba(168,232,106,.6);animation:v2-ping 1.8s infinite}
.v2-qlive-names{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.v2-qlive-name{max-width:100%;padding:2px 8px;border-radius:var(--v2-r-pill);background:rgba(0,0,0,.3);border:1px solid var(--v2-stone-line);font-size:.78rem;font-weight:700;color:var(--v2-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2-qlive-foot{margin:0}
.v2-qlive-grid[aria-busy="true"] .v2-qlive-cell{opacity:.6}
@media (max-width:860px){.v2-qlive-row{grid-template-columns:minmax(0,1fr)}.v2-qlive-th{padding:6px 10px}.v2-qlive-th img{width:32px;height:32px}}
@media (max-width:560px){.v2-qlive-cells{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-qlive-total{flex-direction:column;gap:4px;padding:10px 12px}}
@media (prefers-reduced-motion:reduce){.v2-qlive-cell{transition:none}.v2-qlive-cell.is-hot::after{animation:none}}

/* Lobby variant: one queue panel. Own searches on top (lobby JS), live overview below. */
.v2-qlive.is-embedded{margin-top:var(--v2-gap);padding-bottom:0}
.v2-qlive-sub{margin:0;font-size:1.05rem;color:var(--v2-gold-hi)}
.v2-qlive-own{display:grid;gap:10px;padding-bottom:clamp(12px,1.6vw,16px);border-bottom:1px solid var(--v2-stone-line)}
.v2-qlive-own .v2-state{margin:0}
/* The own list exists only once roster and clan are ready (same switch as the lobby lists). */
.v2-lobby:has(>[data-v2-lists][hidden]) :is(.v2-qlive-own,.v2-qlive-sub-all){display:none}
/* Only the match list is left in the lobby lists: give it the full width. */
.v2-lobby-lists{grid-template-columns:minmax(0,1fr)}
