/* ================================================================
   DXED Arena — premium menu system styles.
   Play hub · Private Match · Game Mode browser · Armory.
   Same identity as arena.css (charcoal glass, steel-blue undertones,
   amber tactical accents, thin clipped borders) but with the larger
   type, bigger cards, stronger selected states and fewer visible
   borders of a finished shooter front-end.
   ================================================================ */

/* ── shared: wide panel sections ── */
.m2-panel[data-wide="1"] { width: auto; flex: 1 1 auto; max-width: none; display: flex; flex-direction: column; }
.m2-panel[data-wide="1"] > * { flex: 1; min-height: 0; }
.m2-panel { transition: opacity .18s ease; }
.m2-panel.switching { opacity: 0; }
.m2-panel .sec-in { animation: secIn .28s cubic-bezier(.2,.7,.3,1) both; }
@keyframes secIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* visible focus for keyboard + controller */
.menu2 :is(button, input, select, [tabindex="0"]):focus-visible,
body.gp-active .menu2 :is(button, input, select, [tabindex="0"]):focus {
  outline: 2px solid var(--amb, #ffb35c);
  outline-offset: 2px;
  box-shadow: 0 0 14px rgba(255, 179, 92, .28);
}

/* generic bits */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 'Inter', sans-serif; letter-spacing: .4px; color: #cfd6e0;
  background: rgba(174, 185, 208, .07); border: 1px solid rgba(174, 185, 208, .18);
  border-radius: 3px; padding: 7px 10px; cursor: default;
}
.chip i { display: inline-flex; width: 12px; height: 12px; color: var(--amb); }
.chip i svg { width: 12px; height: 12px; }
.chip em { font-style: normal; font-size: 9px; color: #7d8698; }
.chip.warn { color: #ffb35c; border-color: rgba(255, 179, 92, .4); }
.chip.acc { color: var(--amb); border-color: rgba(255, 179, 92, .35); }
button.chip { cursor: pointer; }
button.chip:hover { border-color: rgba(255, 179, 92, .5); color: #fff; }
.chip.rm svg { width: 10px; height: 10px; opacity: .7; }

.ph-kicker { font-size: 10px; font-weight: 800; letter-spacing: 4px; color: var(--amb); margin-bottom: 8px; }
.ph-title { font-size: clamp(26px, 3vw, 40px); font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
  line-height: 1.05; text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.ph-desc { color: #9aa6bb; font-size: 13px; line-height: 1.6; margin-top: 8px; max-width: 62ch;
  text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.ph-lab { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 800; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--amb); margin: 20px 0 9px; }
.ph-lab::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,179,92,.28), transparent); }
.ph-link { background: none; border: none; color: #aeb9d0; font: 600 10px 'Inter', sans-serif; letter-spacing: 1px;
  cursor: pointer; text-transform: uppercase; }
.ph-link:hover { color: var(--amb); }
.ph-note { font-size: 11px; color: #7d8698; margin-top: 10px; min-height: 14px; }

/* ════════ PLAY HUB ════════ */
.ph { display: flex; gap: 26px; height: 100%; min-height: 0; }
.ph-nav { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 7px; }
.ph-navlab { font-size: 9px; font-weight: 800; letter-spacing: 3px; color: #7d8698; text-transform: uppercase; margin: 2px 0 6px 2px; }
.ph-item {
  display: flex; align-items: center; gap: 13px; text-align: left;
  background: rgba(9, 12, 19, .55); border: 1px solid rgba(174, 185, 208, .1);
  padding: 13px 14px; cursor: pointer; color: #b8c2d4;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: border-color .16s, background .16s, transform .16s;
  backdrop-filter: blur(8px);
}
.ph-item:hover { border-color: rgba(174, 185, 208, .35); transform: translateX(3px); }
.ph-item .ic { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border: 1px solid rgba(174, 185, 208, .18); color: #8b96ab; flex-shrink: 0; transition: all .16s; }
.ph-item .ic svg { width: 17px; height: 17px; }
.ph-item .tx { flex: 1; min-width: 0; }
.ph-item .tx b { display: block; font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #dfe6f2; }
.ph-item .tx small { display: block; font-size: 10.5px; color: #77839a; margin-top: 3px; line-height: 1.35; }
.ph-item .tag { font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: 1.6px; color: #7d8698;
  border: 1px solid rgba(174, 185, 208, .2); padding: 4px 7px; flex-shrink: 0; }
.ph-item.sel {
  background: linear-gradient(90deg, rgba(255, 144, 56, .13), rgba(9, 12, 19, .6) 70%);
  border-color: rgba(255, 179, 92, .55);
  box-shadow: inset 3px 0 0 var(--amb), 0 8px 28px rgba(0, 0, 0, .45);
  color: #fff; transform: translateX(5px);
}
.ph-item.sel .ic { color: var(--amb); border-color: rgba(255, 179, 92, .5); background: rgba(255, 179, 92, .08);
  filter: drop-shadow(0 0 8px rgba(255, 144, 56, .5)); }
.ph-item.sel .tag { color: var(--amb); border-color: rgba(255, 179, 92, .45); }

.ph-feat { flex: 1; min-width: 0; max-width: 700px; overflow-y: auto; padding-right: 6px; opacity: 0; }
.ph-feat.in { animation: secIn .3s cubic-bezier(.2,.7,.3,1) both; opacity: 1; }

.ph-art { position: relative; height: 92px; margin: 16px 0 4px; overflow: hidden;
  border: 1px solid rgba(174, 185, 208, .12);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.ph-art i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; opacity: .5; }
.ph-art i svg { width: 100%; height: 100%; }
.ph-art::after { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 26px, rgba(255,255,255,.025) 26px 27px); }
.art-qp { background: linear-gradient(100deg, rgba(255,144,56,.24), rgba(10,13,22,.75) 65%); color: #ffb35c; }
.art-ranked { background: linear-gradient(100deg, rgba(240,160,47,.26), rgba(10,13,22,.75) 65%); color: #f0a02f; }
.art-arena { background: linear-gradient(100deg, rgba(46,155,255,.22), rgba(10,13,22,.75) 65%); color: #4fb2ff; }
.art-practice { background: linear-gradient(100deg, rgba(95,224,183,.2), rgba(10,13,22,.75) 65%); color: #5fe0b7; }
.art-wager { background: linear-gradient(100deg, rgba(125,255,217,.16), rgba(10,13,22,.75) 65%); color: #7dffd9; }

.ph-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.ph-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 18px; }
.pf { display: flex; align-items: center; gap: 10px; background: rgba(9, 12, 19, .5);
  border: 1px solid rgba(174, 185, 208, .09); padding: 11px 12px; backdrop-filter: blur(6px); }
.pf i { display: flex; width: 15px; height: 15px; color: #66738c; flex-shrink: 0; }
.pf i svg { width: 15px; height: 15px; }
.pf span { flex: 1; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #77839a; }
.pf b { font-size: 12px; font-weight: 700; color: #e8edf6; white-space: nowrap; }

.ph-pop { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pp { flex: 1; min-width: 120px; background: rgba(9, 12, 19, .5); border: 1px solid rgba(174, 185, 208, .09);
  padding: 10px 12px; text-align: left; }
.pp span { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #77839a; }
.pp b { display: block; font-size: 15px; font-weight: 800; color: var(--amb); margin-top: 3px; }
.pp.skel b { color: transparent; background: linear-gradient(90deg, rgba(174,185,208,.08) 25%, rgba(174,185,208,.2) 50%, rgba(174,185,208,.08) 75%);
  background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: 3px; width: 60%; }
@keyframes skel { to { background-position: -200% 0; } }

.ph-ctls { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.ph-ctl { display: flex; flex-direction: column; gap: 6px; font-size: 9.5px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase; color: #77839a; }
.ph-ctl em { font-style: normal; text-transform: none; letter-spacing: .3px; font-weight: 500; }
.ph-ctl select, .ph-ctl input { min-width: 210px; }
.ph-seg { display: flex; gap: 5px; flex-wrap: wrap; }
.ph-seg button { font: 700 10.5px 'Inter', sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
  color: #9aa6bb; background: rgba(9, 12, 19, .55); border: 1px solid rgba(174, 185, 208, .16);
  padding: 9px 14px; cursor: pointer; transition: all .14s; }
.ph-seg button:hover { border-color: rgba(174, 185, 208, .4); }
.ph-seg button.on { color: var(--amb); border-color: rgba(255, 179, 92, .55); background: rgba(255, 144, 56, .09);
  box-shadow: 0 0 12px rgba(255, 144, 56, .15); }

.ph-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; align-items: stretch; }
.ph-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 900 15px/1 'Inter', sans-serif; letter-spacing: 2.6px; text-transform: uppercase; color: #14100a;
  background: linear-gradient(180deg, #ffc37a, #ff9038);
  border: none; padding: 17px 34px; cursor: pointer; position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 6px 28px rgba(255, 144, 56, .35);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.ph-cta i { display: inline-flex; width: 14px; height: 14px; }
.ph-cta i svg { width: 14px; height: 14px; }
.ph-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(255, 144, 56, .5); filter: brightness(1.06); }
.ph-cta:active { transform: translateY(1px); }
.ph-cta:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; box-shadow: none; }
.ph-cta.alt { background: linear-gradient(180deg, #3e4b64, #232c3f); color: #dfe6f2; box-shadow: none;
  border: 1px solid rgba(174, 185, 208, .25); }
.ph-cta.small { padding: 12px 20px; font-size: 12px; }
.ph-sec {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 10.5px/1 'Inter', sans-serif; letter-spacing: 1.6px; text-transform: uppercase;
  color: #aeb9d0; background: rgba(9, 12, 19, .55); border: 1px solid rgba(174, 185, 208, .2);
  padding: 12px 16px; cursor: pointer; transition: all .14s; backdrop-filter: blur(6px);
}
.ph-sec svg { width: 13px; height: 13px; }
.ph-sec:hover { border-color: rgba(223, 228, 238, .5); color: #fff; }
.ph-sec.on { color: var(--amb); border-color: rgba(255, 179, 92, .5); }
.ph-sec.danger { color: #f0787c; border-color: rgba(207, 90, 94, .35); }
.ph-sec.danger:hover { background: rgba(207, 90, 94, .12); }

/* ════════ PRIVATE MATCH ════════ */
.pv-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 900px) { .pv-entry { grid-template-columns: 1fr; } }
.pv-card { background: rgba(9, 12, 19, .6); border: 1px solid rgba(174, 185, 208, .12); padding: 18px;
  display: flex; flex-direction: column; gap: 13px; backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.pv-card h3 { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: #dfe6f2; }
.pv-card h3 svg { width: 15px; height: 15px; color: var(--amb); }
.pv-card .ph-ctl input { min-width: 0; width: 100%; }
.pv-check { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: #9aa6bb; cursor: pointer; }
.pv-recent { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 9px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: #77839a; }

.pv-lobby { display: flex; flex-direction: column; gap: 14px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv-code { display: flex; align-items: center; gap: 12px; }
.pv-code span { font-size: 9px; font-weight: 800; letter-spacing: 2.4px; color: #77839a; }
.pv-code b { font-size: 30px; font-weight: 900; letter-spacing: 7px; color: #fff;
  text-shadow: 0 0 24px rgba(255, 179, 92, .35); }
.pv-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  background: rgba(9,12,19,.55); border: 1px solid rgba(174,185,208,.2); color: #aeb9d0; cursor: pointer; }
.pv-ic svg { width: 14px; height: 14px; }
.pv-ic:hover { color: var(--amb); border-color: rgba(255,179,92,.5); }
.pv-pw { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 9px; font-weight: 800;
  letter-spacing: 1.6px; color: #7dffd9; border: 1px solid rgba(125,255,217,.3); padding: 4px 8px; }
.pv-pw svg { width: 10px; height: 10px; }
.pv-pw.warn { color: #ffb35c; border-color: rgba(255,179,92,.4); }
.pv-headr { display: flex; gap: 8px; }

.pv-grid { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; }
@media (max-width: 980px) { .pv-grid { grid-template-columns: 1fr; } }
.pv-rules { background: rgba(9,12,19,.6); border: 1px solid rgba(174,185,208,.12); padding: 16px;
  display: flex; flex-direction: column; gap: 11px; backdrop-filter: blur(8px); }
.pv-rules .ph-ctl select, .pv-rules .ph-ctl input { min-width: 0; width: 100%; }
.pv-lab { font-size: 9.5px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; color: var(--amb); }
.pv-lab em { font-style: normal; color: #77839a; letter-spacing: .6px; text-transform: none; font-weight: 500; }
.pv-warn { font-size: 11px; color: #ffb35c; line-height: 1.5; border-left: 2px solid rgba(255,179,92,.5); padding-left: 9px; }
.pv-ok { font-size: 11px; color: #5fe0b7; }
.pv-presets { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pv-presets select { flex: 1; min-width: 120px; }

.pv-teams { display: flex; flex-direction: column; gap: 12px; }
.pv-team { display: flex; flex-direction: column; gap: 7px; }
.pv-player { position: relative; display: flex; align-items: center; gap: 11px;
  border: 1px solid rgba(174,185,208,.14); padding: 11px 13px; overflow: hidden; }
.pv-player::before { content: ''; position: absolute; inset: 0; background: var(--pb); opacity: .55; z-index: 0; }
.pv-player::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(6,8,13,.85)); z-index: 0; }
.pv-player > * { position: relative; z-index: 1; }
.pv-player.offline { opacity: .55; }
.pv-player.bot { --pb: linear-gradient(120deg, #1c2028, #0b0d12 70%); }
.pv-dot { width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 10px currentColor; flex-shrink: 0; }
.pv-pinfo { flex: 1; min-width: 0; }
.pv-pinfo b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .6px; color: #fff; }
.pv-pinfo b em { font-style: normal; font-weight: 500; color: #9aa6bb; font-size: 10.5px; }
.pv-pinfo small { display: block; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: #9aa6bb; margin-top: 2px; }
.pv-host { font-size: 8px; font-weight: 900; letter-spacing: 2px; color: #14100a;
  background: linear-gradient(180deg, #ffc37a, #ff9038); padding: 4px 7px; }
.pv-ready { font-size: 8.5px; font-weight: 800; letter-spacing: 1.6px; color: #77839a;
  border: 1px solid rgba(174,185,208,.25); padding: 5px 8px; }
.pv-ready.on { color: #5fe0b7; border-color: rgba(95,224,183,.45); }
.pv-tools { display: flex; gap: 4px; align-items: center; }
.pv-tools button { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px;
  font: 800 10px 'Inter', sans-serif; color: #aeb9d0; background: rgba(9,12,19,.7);
  border: 1px solid rgba(174,185,208,.22); cursor: pointer; padding: 0 5px; }
.pv-tools button svg { width: 12px; height: 12px; }
.pv-tools button:hover { color: var(--amb); border-color: rgba(255,179,92,.5); }
.pv-tools button.danger:hover { color: #ff8a8e; border-color: rgba(207,90,94,.6); }
.pv-tools select { font-size: 10px; padding: 4px 6px; }
.pv-empty { display: flex; align-items: center; justify-content: center; min-height: 46px;
  border: 1px dashed rgba(174,185,208,.2); color: #66738c; font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; }
.pv-team.spec .pv-player { opacity: .85; }
.pv-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(174,185,208,.1);
  padding-top: 14px; }
.pv-invite { font-size: 11px; color: #77839a; flex: 1; }
.pv-invite b { color: var(--amb); letter-spacing: 2px; }
.pv-blocked { font-size: 11px; color: #ffb35c; }

/* ════════ MODE BROWSER ════════ */
.mb { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0; }
.mb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mb-quick { display: flex; gap: 8px; align-items: center; }
.mb-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid rgba(174,185,208,.12); }
.mb-tabs button { font: 800 11px 'Inter', sans-serif; letter-spacing: 2px; text-transform: uppercase;
  color: #8b96ab; background: none; border: none; border-bottom: 2px solid transparent;
  padding: 11px 16px; cursor: pointer; transition: color .14s; }
.mb-tabs button:hover { color: #dfe6f2; }
.mb-tabs button.on { color: var(--amb); border-bottom-color: var(--amb); text-shadow: 0 0 16px rgba(255,144,56,.4); }
.mb-filters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mb-filters label { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase; color: #77839a; }
.mb-recent { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mb-recent span { font-size: 9px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #77839a; }

.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px;
  overflow-y: auto; padding: 2px 6px 30px 2px; }
.mb-card { position: relative; display: flex; flex-direction: column; gap: 10px;
  background: rgba(9,12,19,.62); border: 1px solid rgba(174,185,208,.11); padding: 15px;
  cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%); backdrop-filter: blur(8px); }
.mb-card:hover { border-color: rgba(255,179,92,.45); transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.mb-card.dev { opacity: .72; }
.mb-card.inqp { border-color: rgba(255,179,92,.35); box-shadow: inset 0 0 0 1px rgba(255,179,92,.12); }
.mb-card header { display: flex; align-items: center; gap: 11px; }
.mb-ic { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--amb); border: 1px solid rgba(255,179,92,.3); background: rgba(255,144,56,.06); }
.mb-ic svg { width: 20px; height: 20px; }
.mb-ic.big { width: 52px; height: 52px; }
.mb-ic.big svg { width: 26px; height: 26px; }
.mb-name { flex: 1; min-width: 0; }
.mb-name b { display: block; font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #eef2f9; }
.mb-name small { display: block; font-size: 10.5px; color: #8b96ab; margin-top: 2px; }
.mb-fav { background: none; border: none; color: #66738c; width: 26px; height: 26px; cursor: pointer; flex-shrink: 0; }
.mb-fav svg { width: 17px; height: 17px; }
.mb-fav:hover, .mb-fav.on { color: #f5d90a; }
.mb-card p { font-size: 11.5px; color: #9aa6bb; line-height: 1.55; flex: 1; }
.mb-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.mb-meta span { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #8b96ab; background: rgba(174,185,208,.07); padding: 4px 8px; }
.mb-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.mb-badges em { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; padding: 4px 8px; border: 1px solid; }
.b-cas { color: #4fb2ff; border-color: rgba(79,178,255,.35); }
.b-rank { color: #f0a02f; border-color: rgba(240,160,47,.4); }
.b-live { color: #5fe0b7; border-color: rgba(95,224,183,.4); }
.b-dev { color: #8b96ab; border-color: rgba(174,185,208,.25); }
.b-map { color: #d8c091; border-color: rgba(216,192,145,.3); }
.mb-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mb-qp { display: inline-flex; align-items: center; gap: 6px; font: 700 10px 'Inter', sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase; color: #aeb9d0; background: rgba(9,12,19,.6);
  border: 1px solid rgba(174,185,208,.25); padding: 8px 12px; cursor: pointer; }
.mb-qp svg { width: 11px; height: 11px; }
.mb-qp:hover { border-color: rgba(255,179,92,.5); color: #fff; }
.mb-qp.on { color: #5fe0b7; border-color: rgba(95,224,183,.45); }
.mb-qphint { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: #66738c; }
.mb-det { font: 700 10px 'Inter', sans-serif; letter-spacing: 1.4px; text-transform: uppercase;
  color: #8b96ab; background: none; border: none; cursor: pointer; padding: 8px 4px; }
.mb-det:hover { color: var(--amb); }

.mb-detail { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(3,4,8,.72); backdrop-filter: blur(6px); animation: fadeIn .18s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.mb-dcard { width: min(620px, 92vw); max-height: 86vh; overflow-y: auto; background: rgba(10,13,21,.97);
  border: 1px solid rgba(255,179,92,.3); padding: 22px; display: flex; flex-direction: column; gap: 13px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: secIn .22s ease both; }
.mb-dcard header { display: flex; align-items: center; gap: 14px; }
.mb-dcard h2 { font-size: 20px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; }
.mb-dcard header small { display: block; font-size: 10.5px; color: #8b96ab; letter-spacing: 1px; margin-top: 3px; }
.mb-dcard header .pv-ic { margin-left: auto; }
.mb-dd { font-size: 12.5px; color: #b8c2d4; line-height: 1.6; }
.mb-dlab { font-size: 9.5px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; color: var(--amb); }
.mb-dtut { font-size: 12px; color: #9aa6bb; line-height: 1.65; border-left: 2px solid rgba(255,179,92,.4); padding-left: 12px; }
.mb-dfacts { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-dfacts span { flex: 1; min-width: 100px; text-align: center; background: rgba(174,185,208,.05);
  border: 1px solid rgba(174,185,208,.1); padding: 10px; font-size: 8.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: #77839a; }
.mb-dfacts b { display: block; font-size: 15px; color: #eef2f9; letter-spacing: 0; margin-bottom: 4px; }
.mb-dcard footer { display: flex; gap: 8px; flex-wrap: wrap; }

/* ════════ ARMORY ════════ */
.av { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; }
.av-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: rgba(9,12,19,.55); border: 1px solid rgba(174,185,208,.1); padding: 12px 16px; backdrop-filter: blur(8px); }
.av-lvl { display: flex; flex-direction: column; align-items: center; padding: 6px 18px;
  border-right: 1px solid rgba(174,185,208,.14); }
.av-lvl b { font-size: 30px; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 0 20px rgba(255,179,92,.35); }
.av-lvl span { font-size: 8px; letter-spacing: 3px; color: #8b96ab; margin-top: 4px; }
.av-xp { flex: 1; min-width: 220px; }
.av-xpbar { height: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.av-xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #c9741e, var(--amb));
  box-shadow: 0 0 12px rgba(255,144,56,.5); transition: width .5s ease; }
.av-xp > span { font-size: 10px; letter-spacing: 1.4px; color: #8b96ab; display: block; margin-top: 6px; text-transform: uppercase; }
.av-next { display: flex; gap: 6px; flex-wrap: wrap; max-width: 46%; }
.av-next .chip i { width: 8px; height: 8px; background: var(--rc); border-radius: 2px; }

.av-trackwrap { background: rgba(9,12,19,.55); border: 1px solid rgba(174,185,208,.1); padding: 12px; backdrop-filter: blur(8px); }
.av-track { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.av-cell { position: relative; flex-shrink: 0; width: 44px; min-height: 52px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 7px 2px 6px; cursor: pointer;
  background: rgba(174,185,208,.04); border: 1px solid rgba(174,185,208,.08); color: #77839a; transition: all .12s; }
.av-cell span { font-size: 10px; font-weight: 800; }
.av-cell i { width: 18px; height: 4px; background: var(--rc); border-radius: 1px; }
.av-cell:hover { border-color: var(--rc); color: #fff; transform: translateY(-2px); }
.av-cell.done { background: rgba(95,224,183,.06); border-color: rgba(95,224,183,.2); color: #9fe8cf; }
.av-cell.cur { border-color: var(--amb); color: #fff; background: rgba(255,144,56,.12);
  box-shadow: 0 0 16px rgba(255,144,56,.3); }
.av-cell.m10 { border-bottom: 2px solid rgba(46,155,255,.5); }
.av-cell.m25 { border-bottom: 2px solid rgba(180,92,255,.6); }
.av-cell.m50 { border-bottom: 2px solid rgba(240,160,47,.75); min-height: 58px; }
.av-cell.prst { box-shadow: inset 0 0 14px rgba(125,255,217,.12); border-color: rgba(125,255,217,.4); }
.av-tracklegend { display: flex; gap: 16px; align-items: center; font-size: 9px; letter-spacing: 1.4px;
  text-transform: uppercase; color: #77839a; flex-wrap: wrap; margin-top: 6px; }
.av-tracklegend i { display: inline-block; width: 10px; height: 10px; border: 1px solid rgba(174,185,208,.3); margin-right: 5px; vertical-align: -1px; }
.av-tracklegend i.done { background: rgba(95,224,183,.25); border-color: rgba(95,224,183,.5); }
.av-tracklegend i.cur { background: rgba(255,144,56,.3); border-color: var(--amb); }
.av-tracklegend i.prst { border-color: rgba(125,255,217,.6); box-shadow: 0 0 8px rgba(125,255,217,.3); }
.av-tracklegend .hint { margin-left: auto; }

.av-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px 1fr 340px; gap: 12px; }
@media (max-width: 1100px) { .av-body { grid-template-columns: 180px 1fr; } .av-side { display: none; } }

.av-cats { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; padding-right: 4px; }
.av-cat { display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(9,12,19,.45); border: 1px solid transparent; border-left: 2px solid transparent;
  padding: 10px 11px; cursor: pointer; color: #9aa6bb; transition: all .13s; }
.av-cat i { display: flex; width: 15px; height: 15px; color: #66738c; flex-shrink: 0; }
.av-cat i svg { width: 15px; height: 15px; }
.av-cat span { flex: 1; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.av-cat em { font-style: normal; font-size: 9px; color: #66738c; }
.av-cat:hover { color: #fff; background: rgba(174,185,208,.06); }
.av-cat.sel { color: #fff; background: linear-gradient(90deg, rgba(255,144,56,.12), rgba(9,12,19,.5) 75%);
  border-left-color: var(--amb); }
.av-cat.sel i { color: var(--amb); }
.av-cat.sel em { color: var(--amb); }

.av-mid { display: flex; flex-direction: column; gap: 9px; min-width: 0; min-height: 0; }
.av-toolbar { display: flex; gap: 8px; align-items: center; }
.av-toolbar select { width: 190px !important; flex: 0 0 auto; }
.av-search { flex: 1 1 auto; min-width: 200px; display: flex; align-items: center; gap: 9px; background: rgba(9,12,19,.6);
  border: 1px solid rgba(174,185,208,.16); padding: 0 12px; }
.av-search input { width: 100%; }
.av-search svg { width: 14px; height: 14px; color: #66738c; flex-shrink: 0; }
.av-search input { flex: 1; background: none !important; border: none !important; padding: 11px 0 !important;
  color: #eef2f9; font: 500 12.5px 'Inter', sans-serif; outline: none; min-width: 0; }
.av-adv { display: flex; flex-direction: column; gap: 8px; background: rgba(9,12,19,.6);
  border: 1px solid rgba(174,185,208,.12); padding: 12px 14px; animation: secIn .2s ease both; }
.av-advrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.av-advrow > span { width: 76px; font-size: 9px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #77839a; }
.av-f { font: 600 10.5px 'Inter', sans-serif; letter-spacing: .5px; color: #aeb9c9; cursor: pointer;
  background: rgba(174,185,208,.05); border: 1px solid rgba(174,185,208,.15); padding: 6px 11px; transition: all .12s; }
.av-f:hover { border-color: var(--rc, rgba(255,179,92,.5)); }
.av-f.on { color: var(--rc, var(--amb)); border-color: var(--rc, var(--amb)); background: rgba(255,255,255,.04); }
.av-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.av-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 9px; align-content: start;
  padding: 2px 4px 30px 2px; }
.av-item { position: relative; display: flex; flex-direction: column; gap: 6px;
  background: rgba(9,12,19,.6); border: 1px solid rgba(174,185,208,.1); border-top: 2px solid var(--rc);
  padding: 10px; cursor: pointer; transition: transform .13s, border-color .13s, box-shadow .13s; }
.av-item:hover { border-color: var(--rc); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.av-item.sel { border-color: var(--rc); box-shadow: 0 0 0 1px var(--rc), 0 10px 26px rgba(0,0,0,.5); }
.av-item.eq { border-color: rgba(125,255,217,.55); }
.av-item.locked .av-th { filter: saturate(.55) brightness(.6); }
.av-item.locked b { color: #8b96ab; }
.av-th { display: flex; align-items: center; justify-content: center; height: 62px; border-radius: 2px;
  background: rgba(174,185,208,.06); font-size: 26px; overflow: hidden; }
.av-th.glyph { font-style: normal; }
.av-th.id { position: relative; background: radial-gradient(60px 40px at 50% 45%, rgba(255,255,255,.06), transparent); }
.av-th.id b { width: 34px; height: 34px; border-radius: 4px; background: var(--c); box-shadow: 0 0 22px var(--c); }
.av-th.ret { position: relative; }
.av-th.ret s, .av-th.ret u { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #eef2f9; }
.av-th.ret u { width: 4px; height: 4px; border-radius: 50%; }
.av-item > b { font-size: 12px; font-weight: 700; color: #eef2f9; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-rar { font-size: 8.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--rc); }
.av-badges { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.av-badges em { font-style: normal; font-size: 7.5px; font-weight: 900; letter-spacing: 1px; padding: 3px 5px; }
.av-badges .eq { color: #06231b; background: #7dffd9; }
.av-badges .new { color: #14100a; background: var(--amb); }
.av-badges .prst { color: #7dffd9; border: 1px solid rgba(125,255,217,.5); }
.av-badges .fav { color: #f5d90a; }
.av-badges .fav svg { width: 10px; height: 10px; }
.av-lockchip { position: absolute; bottom: 8px; right: 8px; display: flex; align-items: center; gap: 4px;
  font-size: 8.5px; font-weight: 800; letter-spacing: 1px; color: #b8c2d4;
  background: rgba(3,4,8,.75); border: 1px solid rgba(174,185,208,.25); padding: 4px 7px; }
.av-lockchip svg { width: 10px; height: 10px; }

.av-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.av-stage { position: relative; height: 340px; flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(174,185,208,.14);
  background: radial-gradient(420px 260px at 50% 38%, #131c2c, #07090f 82%);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.av-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.av-stage canvas:active { cursor: grabbing; }
.av-css { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.av-lockover { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #ffd9a8;
  background: rgba(3,4,8,.78); border: 1px solid rgba(255,179,92,.4); padding: 7px 11px; z-index: 3; }
.av-lockover svg { width: 12px; height: 12px; }
.av-stagectl { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.av-stagectl .grp { display: flex; flex-direction: column; gap: 3px; }
.av-stagectl button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  font: 800 11px 'Inter', sans-serif; color: #aeb9d0; background: rgba(6,8,13,.8);
  border: 1px solid rgba(174,185,208,.2); cursor: pointer; }
.av-stagectl button svg { width: 13px; height: 13px; }
.av-stagectl button:hover { color: var(--amb); border-color: rgba(255,179,92,.5); }
.menu2 .av-stage select.av-anim { position: absolute; left: 10px; bottom: 10px; z-index: 3;
  width: auto; font-size: 10px; padding: 6px 26px 6px 9px; }
.av-info { background: rgba(9,12,19,.55); border: 1px solid rgba(174,185,208,.1); padding: 14px 16px; backdrop-filter: blur(8px); }
.av-irar { font-size: 9px; font-weight: 800; letter-spacing: 2.4px; }
.av-info h3 { font-size: 19px; font-weight: 900; letter-spacing: .6px; margin: 5px 0 3px; }
.av-info p { font-size: 11px; color: #8b96ab; letter-spacing: .4px; }
.av-info p u { text-decoration: none; color: #b8c2d4; border-bottom: 1px dotted rgba(174,185,208,.4); }
.av-info em { display: block; font-style: normal; font-size: 11px; margin-top: 9px; }
.av-info em.ok { color: #5fe0b7; }
.av-info em.lk { color: #ffb35c; }
.av-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.av-actions .ph-cta { flex: 1; padding: 14px 18px; font-size: 12.5px; }
.av-actions .ph-sec.on { color: #f5d90a; border-color: rgba(245,217,10,.45); }

/* CSS preview stages */
.av-cssbanner { position: relative; width: 82%; height: 96px; border: 1px solid rgba(255,255,255,.2);
  display: flex; flex-direction: column; justify-content: center; padding: 0 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.av-cssbanner b { font-size: 19px; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.av-cssbanner em { font-style: normal; font-size: 9px; letter-spacing: 2.4px; color: rgba(255,255,255,.8); text-transform: uppercase; margin-top: 3px; }
.av-cssbanner span { position: absolute; right: 12px; top: 10px; font-size: 9px; font-weight: 800;
  color: rgba(255,255,255,.75); letter-spacing: 1.6px; }
.av-cssemblem { font-size: 84px; text-shadow: 0 0 44px currentColor; }
.av-csstitle { text-align: center; }
.av-csstitle b { display: block; font-size: 21px; letter-spacing: 1px; color: #fff; }
.av-csstitle em { display: block; font-style: normal; font-size: 11px; letter-spacing: 3.2px; color: var(--amb);
  text-transform: uppercase; margin-top: 7px; text-shadow: 0 0 18px rgba(255,144,56,.5); }
.av-cssret { position: relative; width: 130px; height: 130px; }
.av-cssret i { position: absolute; left: 50%; top: 50%; background: #eef2f9; box-shadow: 0 0 6px rgba(0,0,0,.8); }
.av-cssret b { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: #eef2f9; }
.av-cssfx { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.av-cssfx span { font-size: 21px; font-weight: 900; letter-spacing: 2.4px; text-shadow: 0 0 26px currentColor; }

/* ── in-game announcer ── */
#announcer { position: fixed; left: 50%; top: 21%; transform: translateX(-50%); z-index: 60;
  pointer-events: none; text-align: center; }
#announcer .an-major { font: 900 34px/1.1 'Inter', sans-serif; letter-spacing: 6px; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 34px rgba(255,144,56,.65), 0 4px 18px rgba(0,0,0,.8);
  animation: anPop .45s cubic-bezier(.2,1.4,.35,1) both, anOut .4s ease 1.6s both; }
#announcer .an-minor { font: 800 15px/1.2 'Inter', sans-serif; letter-spacing: 3px; text-transform: uppercase;
  color: #ffd9a8; text-shadow: 0 2px 12px rgba(0,0,0,.8);
  animation: anPop .3s ease both, anOut .35s ease 1.4s both; }
@keyframes anPop { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes anOut { to { opacity: 0; transform: translateY(-10px); } }

/* touch ergonomics */
@media (pointer: coarse) {
  .ph-item { padding: 16px 14px; }
  .av-cell { width: 52px; }
  .pv-tools button { min-width: 34px; height: 34px; }
}

/* ════════════════════════════════════════════════════════════
   Gunsmith — weapon builds (three-column: weapons / slots / stats)
   ════════════════════════════════════════════════════════════ */
.gs { display: grid; grid-template-columns: 210px 1fr 250px; gap: 16px; height: 100%; min-height: 0; }
.gs-rail { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-right: 2px; }
.gs-w { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; color: #c9d4e4; position: relative; }
.gs-w:hover { border-color: rgba(46,155,255,.4); }
.gs-w.sel { background: rgba(46,155,255,.12); border-color: rgba(46,155,255,.55); color: #eef4fd; }
.gs-w b { font-size: 13px; }
.gs-w small { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #7d8ba0; }
.gs-w em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 9px;
  color: #6fb9ff; letter-spacing: 1px; }
.gs-mid { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gs-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gs-head h3 { margin: 0; font-size: 18px; letter-spacing: .5px; }
.gs-head small { font-size: 9.5px; letter-spacing: 2px; color: #7d8ba0; }
.gs-xp { flex: 0 0 160px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.gs-xp i { display: block; height: 100%; background: linear-gradient(90deg, #2e9bff, #17d8c0); }
.gs-note { font-size: 11px; color: #8fa0b8; margin: 8px 0 10px; letter-spacing: .3px; }
/* Compact bench: one ROW per slot — label left, attachment chips wrapping
   right. The whole arsenal fits one screen; effects live in tooltips and
   the live stats panel, not in 35 stacked paragraph cards. */
.gs-slots { display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto; min-height: 0; padding-right: 4px; }
.gs-slot { display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 8px 12px; }
.gs-slot h5 { margin: 3px 0 0; flex: 0 0 84px; font-size: 9.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: #6fb9ff; }
.gs-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.gs-att { display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 999px;
  padding: 4px 12px; color: #c2cddd; font-size: 11.5px; font-weight: 600; line-height: 1.3;
  transition: border-color .12s, background .12s; }
.gs-att i { font-style: normal; font-size: 9px; color: #f0a63f; letter-spacing: .5px; }
.gs-att:hover { border-color: rgba(46,155,255,.5); background: rgba(46,155,255,.08); }
.gs-att.on { background: rgba(23,216,192,.14); border-color: rgba(23,216,192,.6); color: #e8fefa; }
.gs-att.on::after { content: '✓'; color: #17d8c0; font-size: 10px; }
.gs-att.locked { opacity: .4; cursor: not-allowed; }
.gs-att.full:not(.on) { opacity: .55; }
.gs-preview { max-height: 148px; object-fit: contain; }
.gs-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.gs-side h5 { margin: 0; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: #6fb9ff; }
.gs-stats { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 10px; overflow-y: auto; }
.gs-stat { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.05); }
.gs-stat:last-child { border-bottom: none; }
.gs-stat span { color: #8fa0b8; }
.gs-stat b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gs-stat.up b { color: #58d68b; }
.gs-stat.down b { color: #ff8087; }
.gs-empty { font-size: 11px; color: #7d8ba0; margin: 2px 0; line-height: 1.5; }
.gs-equipped { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-equipped small { color: #7d8ba0; font-size: 11px; }
.gs-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
#gsSave:disabled { opacity: .5; cursor: default; }
@media (max-width: 1100px) { .gs { grid-template-columns: 170px 1fr; } .gs-side { grid-column: 1 / -1; } }

/* Weapon-XP chips on the results screen */
.res-stats .wxp b { color: #6fb9ff; }
.res-stats .wxp.up b { color: #17d8c0; }
.gs-recoil { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; width: 100%; }

/* Daily challenges panel */
.chal-list { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.chal { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px 14px; }
.chal.done { border-color: rgba(23,216,192,.4); background: rgba(23,216,192,.06); }
.chal-top { display: flex; justify-content: space-between; align-items: baseline; }
.chal-top b { font-size: 13.5px; color: #eef4fd; }
.chal-top em { font-style: normal; font-size: 11px; color: #17d8c0; font-weight: 700; }
.chal p { margin: 4px 0 8px; font-size: 11.5px; color: #8fa0b8; }
.chal-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.chal-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2e9bff, #17d8c0); }
.chal.done .chal-bar i { background: #17d8c0; }
.chal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.chal-foot span { font-size: 9.5px; letter-spacing: 1.6px; color: #7d8ba0; font-weight: 700; }
.chal.done .chal-foot span { color: #17d8c0; }
.chal-reroll { font: 600 10.5px 'Inter', sans-serif; color: #aeb9c9; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.chal-reroll:hover { color: #eef4fd; border-color: rgba(46,155,255,.45); }
.gs-code { display: flex; gap: 8px; }
.gs-code .ph-sec { flex: 1; }

/* Loadout section tabs (Classes | Gunsmith) */
.lo-tabs { display: flex; gap: 6px; margin: 10px 0 14px; }
/* ── Class deck (Loadout → Classes) ── */
.cls-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.cls-card {
  position: relative; display: flex; flex-direction: column; gap: 9px; cursor: pointer;
  padding: 14px 15px 13px; border-radius: 12px;
  background: linear-gradient(165deg, rgba(20, 26, 40, 0.85), rgba(10, 13, 21, 0.92));
  border: 1px solid rgba(174, 185, 208, 0.14);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.cls-card:hover { transform: translateY(-3px); border-color: rgba(46, 155, 255, 0.45); }
.cls-card.sel {
  border-color: rgba(46, 155, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(46, 155, 255, 0.35), 0 10px 30px rgba(46, 155, 255, 0.1);
  background: linear-gradient(165deg, rgba(20, 36, 60, 0.9), rgba(10, 16, 28, 0.94));
}
.cls-top { display: flex; align-items: center; gap: 9px; }
.cls-glyph { font-style: normal; font-size: 15px; color: #2e9bff; }
.cls-top h4 { margin: 0; font-size: 13.5px; letter-spacing: 2px; text-transform: uppercase; }
.cls-equip { margin-left: auto; font-size: 8.5px; font-weight: 800; letter-spacing: 2px; color: #17d8c0; }
.cls-card .lo-preview { width: 100%; height: 74px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.cls-weps b { display: block; font-size: 12.5px; }
.cls-weps span { font-size: 10.5px; color: #7d8ba0; }
.cls-bars { display: flex; flex-direction: column; gap: 5px; }
.cb { display: flex; align-items: center; gap: 8px; }
.cb span { flex: 0 0 66px; font-size: 8.5px; font-weight: 800; letter-spacing: 1.6px; color: #7d8ba0; }
.cb-t { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.cb-t i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #2e9bff, #17d8c0); }
.cls-blurb { margin: 0; font-size: 10.5px; line-height: 1.5; color: #8fa0b8; }

.lo-tab { font: 700 11px 'Inter', sans-serif; letter-spacing: 2px; text-transform: uppercase;
  color: #8fa0b8; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 8px 18px; cursor: pointer; }
.lo-tab:hover { color: #eef4fd; border-color: rgba(46,155,255,.4); }
.lo-tab.on { color: #eaf3ff; background: rgba(46,155,255,.16); border-color: rgba(46,155,255,.55); }
#loTabBody { min-height: 0; }
#loTabBody .gs { min-height: 480px; }

/* Gunsmith live weapon render */
.gs-preview { width: 100%; max-width: 360px; height: 130px; object-fit: contain;
  background: radial-gradient(420px 120px at 50% 60%, rgba(46,155,255,.08), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,.06); border-radius: 12px; margin: 10px 0 4px; align-self: center; }

/* Party roster — leader card + invite slots */
.party-roster { display: flex; gap: 12px; flex-wrap: wrap; }
.party-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 150px; height: 120px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); }
.party-slot i { font-style: normal; font-size: 26px; line-height: 1; color: #17d8c0; }
.party-slot b { font-size: 13px; color: #eef4fd; letter-spacing: .5px; }
.party-slot span { font-size: 8.5px; letter-spacing: 2px; color: #7d8ba0; }
.party-slot.filled { border-color: rgba(23,216,192,.4); background: rgba(23,216,192,.06); }
.party-slot.add { cursor: pointer; border-style: dashed; }
.party-slot.add i { color: #6fb9ff; font-size: 30px; }
.party-slot.add:hover { border-color: rgba(46,155,255,.55); background: rgba(46,155,255,.08); }

/* ════════════════════════════════════════════════════════════════
   MOBILE LAYER — menu-system layouts refit for phones so every
   section fits the screen in portrait AND landscape.
   ════════════════════════════════════════════════════════════════ */

/* ── Shared phone rules ── */
@media (max-width: 760px), (max-height: 500px) {
  .ph { gap: 14px; }
  .ph-title { font-size: clamp(20px, 5.5vw, 30px); }
  .ph-desc { font-size: 12px; }
  .ph-ctl select, .ph-ctl input { min-width: 0; }
  .av-toolbar { flex-wrap: wrap; }
  .av-toolbar select { width: auto !important; flex: 1 1 140px; }
  .av-search { min-width: 140px; }
  .av-next { max-width: 100%; }
  .mb-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
  .cls-deck { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
}

/* ── Portrait phones: every multi-column section stacks ── */
@media (max-width: 760px) and (orientation: portrait) {
  /* play hub: the playlist rail becomes a horizontal chip strip */
  .ph { flex-direction: column; height: auto; }
  .ph-nav { width: auto; flex-direction: row; overflow-x: auto; gap: 6px;
    padding-bottom: 6px; scrollbar-width: none; flex-shrink: 0; }
  .ph-nav::-webkit-scrollbar { display: none; }
  .ph-navlab { display: none; }
  .ph-item { flex: 0 0 auto; width: auto; gap: 8px; padding: 9px 12px; }
  .ph-item .tx small { display: none; }
  .ph-item .tag { display: none; }
  .ph-feat { max-width: none; padding-right: 0; overflow: visible; }
  .ph-facts { grid-template-columns: 1fr 1fr; }

  /* armory: category rail becomes a chip strip; preview joins the flow */
  .av-body { display: flex; flex-direction: column; min-height: 0; }
  .av-cats { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0 0 6px;
    scrollbar-width: none; flex-shrink: 0; }
  .av-cats::-webkit-scrollbar { display: none; }
  .av-cat { flex: 0 0 auto; padding: 8px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  .av-cat.sel { border-left-color: transparent; border-bottom-color: var(--amb); }
  .av-cat em { display: none; }
  .av-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); max-height: none; }
  .av-side { display: block; }        /* the 1100px rule hid it — bring the preview back below */
  .av-body .av-side { order: 3; }
  .av-lvl b { font-size: 22px; }
  .av-top { padding: 10px 12px; gap: 10px; }

  /* gunsmith: single column, side summary last */
  .gs { display: flex; flex-direction: column; height: auto; }
  .gs-side { order: 3; }

  /* private lobby entry/cards already collapse at 900/980 — tighten pads */
  .pv-entry { gap: 10px; }

  /* challenges list uses the full width */
  .chal-list { max-width: none; }
}

/* ── Landscape phones (short + wide): two slim panes, inner scroll ── */
@media (max-height: 500px) and (orientation: landscape) {
  .ph { gap: 14px; }
  .ph-nav { width: 218px; overflow-y: auto; scrollbar-width: none; }
  .ph-item { padding: 8px 10px; gap: 9px; }
  .ph-item .tx small { display: none; }
  .ph-feat { padding-right: 4px; }
  .ph-facts { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
  .ph-hero { max-height: 24vh; }

  .av-body { grid-template-columns: 150px 1fr; }
  .av-side { display: none; }
  .av-top { padding: 8px 10px; }
  .av-lvl { padding: 2px 10px; }
  .av-lvl b { font-size: 20px; }
  .av-trackwrap { display: none; }   /* the level track needs height a phone doesn't have */

  .gs { grid-template-columns: 150px 1fr; }
  .gs-side { display: none; }
}

/* Same containment for the menu-system scroll strips (see arena.css note). */
@media (max-width: 760px) and (orientation: portrait) {
  .ph, .ph-feat { max-width: 100%; }
  .ph-nav { contain: inline-size; max-width: 100%; }
  .av-cats { contain: inline-size; max-width: 100%; }
  .av-body, .av-mid, .gs { max-width: 100%; }
  .ph-facts { grid-template-columns: repeat(auto-fill, minmax(min(150px, 45vw), 1fr)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .ph, .ph-feat { max-width: 100%; min-width: 0; }
}
