:root { --ui: "Avenir Next Condensed", "DIN Condensed", "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif; --accent: #ffb020; --red: #ff3b30; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0c0e11; color: #fff; font-family: var(--ui); user-select: none; -webkit-user-select: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
[hidden] { display: none !important; }

/* ---------- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.65); }
#perf { position: absolute; left: 14px; top: 10px; font-size: 13px; letter-spacing: .04em; opacity: .85; font-variant-numeric: tabular-nums; }
#timer { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font-size: 26px; font-style: italic; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
#feed { position: absolute; right: 14px; top: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 15px; }
#feed div { background: rgba(10,12,15,.5); padding: 3px 9px; border-radius: 3px; animation: feedIn .15s ease-out; }
#feed .me { color: var(--accent); } #feed .hs { color: var(--red); margin: 0 5px; } #feed .hs.wb { color: #ffd27a; font-size: .85em; } #feed .arrow { opacity: .6; margin: 0 6px; }
@keyframes feedIn { from { opacity: 0; transform: translateX(14px); } }
#hp { position: absolute; left: 22px; bottom: 16px; font-style: italic; display: flex; align-items: baseline; gap: 6px; }
#hp::before { content: "+"; font-size: 34px; color: #57e06c; font-style: normal; margin-right: 2px; }
#hp b { font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; } #hp span { font-size: 20px; opacity: .8; }
#hp.low b, #hp.low::before { color: var(--red); }
#ammo { position: absolute; right: 22px; bottom: 16px; text-align: right; font-style: italic; }
#ammo .wname { font-size: 15px; letter-spacing: .12em; opacity: .8; }
#ammo .count b { font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; } #ammo .count span { font-size: 20px; opacity: .7; margin-left: 6px; }
#ammo.low .count b { color: var(--red); }
#bullets { display: flex; gap: 2px; justify-content: flex-end; margin-top: 4px; }
#bullets i { width: 3px; height: 13px; background: #fff; border-radius: 1px 1px 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
#bullets i.off { background: rgba(255,255,255,.2); box-shadow: none; }
#slide { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 120px; text-align: center; font-size: 11px; letter-spacing: .2em; opacity: .75; }
#slide i { display: block; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; margin-bottom: 5px; overflow: hidden; position: relative; }
#slide i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--k, 1)); }
#slide.on i::after { background: var(--accent); }

#xhair, #hitm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#xhair i { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
#xhair i:nth-child(1) { width: 2px; height: 9px; left: -1px; bottom: var(--g, 6px); }
#xhair i:nth-child(2) { width: 2px; height: 9px; left: -1px; top: var(--g, 6px); }
#xhair i:nth-child(3) { height: 2px; width: 9px; top: -1px; right: var(--g, 6px); }
#xhair i:nth-child(4) { height: 2px; width: 9px; top: -1px; left: var(--g, 6px); }
#xhair u { position: absolute; width: 2px; height: 2px; left: -1px; top: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
#hitm { opacity: 0; will-change: opacity; }
#hitm i { position: absolute; width: 14px; height: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); transform-origin: left center; left: 0; top: -1.5px; }
#hitm i:nth-child(1) { transform: rotate(45deg) translateX(9px); } #hitm i:nth-child(2) { transform: rotate(135deg) translateX(9px); }
#hitm i:nth-child(3) { transform: rotate(225deg) translateX(9px); } #hitm i:nth-child(4) { transform: rotate(315deg) translateX(9px); }
#hitm.head i, #hitm.kill i { background: var(--red); }
#pop { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); text-align: center; font-style: italic; }
#pop div { font-size: 30px; animation: pop 1.3s ease-out forwards; }
#pop div small { display: block; font-size: 16px; color: var(--accent); letter-spacing: .08em; }
@keyframes pop { 0% { opacity: 0; transform: scale(1.5); } 10% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
#dmgdir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; will-change: opacity, transform; }
#dmgdir i { position: absolute; left: -50px; top: -150px; width: 100px; height: 18px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: linear-gradient(rgba(255,50,40,.95), rgba(255,50,40,0)); }
#note { position: absolute; left: 50%; top: 64%; transform: translateX(-50%); font-size: 15px; letter-spacing: .2em; opacity: .9; }
#dead { position: absolute; left: 0; right: 0; bottom: 14vh; display: flex; flex-direction: column; align-items: center; }
#dead .by { font-size: 30px; font-style: italic; } #dead .by b { color: var(--red); }
#dead .hint { font-size: 16px; letter-spacing: .15em; opacity: .85; margin-top: 8px; }
#score { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); min-width: 440px; background: rgba(10,12,15,.78); border-radius: 6px; padding: 14px 18px; text-shadow: none; }
#score h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: .2em; opacity: .7; font-weight: 700; }
#score table { width: 100%; border-collapse: collapse; font-size: 17px; } #score th { font-size: 12px; letter-spacing: .15em; opacity: .6; text-align: right; padding: 3px 8px; }
#score th:first-child, #score td:first-child { text-align: left; } #score td { padding: 5px 8px; text-align: right; font-variant-numeric: tabular-nums; border-top: 1px solid rgba(255,255,255,.08); }
#score tr.me td { color: var(--accent); }
#end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(8,10,13,.6); font-style: italic; }
#end h2 { font-size: 64px; margin: 0; letter-spacing: .04em; } #end p { font-size: 20px; opacity: .85; margin: 6px 0 0; letter-spacing: .1em; }

/* ---------- HUD (continued) */
kbd { font: 700 12px var(--ui); background: rgba(255,255,255,.14); padding: 2px 7px; border-radius: 3px; margin: 0 3px 0 8px; letter-spacing: .06em; } kbd:first-child { margin-left: 0; }
#bullets.big i { width: 9px; height: 20px; border-radius: 3px 3px 1px 1px; margin-left: 2px; }
#slots { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; font-size: 13px; letter-spacing: .08em; font-style: normal; opacity: .9; }
#slots span { opacity: .45; } #slots span.on { opacity: 1; color: var(--accent); } #slots b { font-size: 10px; margin-right: 3px; padding: 1px 4px; border-radius: 2px; background: rgba(255,255,255,.18); color: #fff; }
#dnum { position: absolute; left: calc(50% + 34px); top: calc(50% - 40px); font-size: 26px; font-style: italic; opacity: 0; will-change: opacity, transform; animation: dn .18s ease-out; font-variant-numeric: tabular-nums; }
#dnum.head { color: var(--accent); } #dnum.kill { color: var(--red); }
@keyframes dn { from { transform: scale(1.45); } to { transform: scale(1); } }
#pop em { display: block; font-size: 38px; color: var(--accent); letter-spacing: .04em; font-style: italic; }
#end table { margin-top: 14px; border-collapse: collapse; font-size: 20px; font-style: normal; min-width: 420px; } #end td { padding: 5px 14px; text-align: right; border-top: 1px solid rgba(255,255,255,.12); font-variant-numeric: tabular-nums; }
#end td:nth-child(2) { text-align: left; } #end tr.me td { color: var(--accent); } #end tr:first-child td { font-size: 24px; }
#teams { position: absolute; left: 50%; top: 42px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 12px; font-style: italic; }
#teams b { font-size: 26px; font-variant-numeric: tabular-nums; } #teams i { font-size: 11px; letter-spacing: .16em; opacity: .7; font-style: normal; }
.mate { color: #5fb4ff; } .foe { color: #ff5a4d; } #score tr.mate td { color: #8cc8ff; } #score tr.foe td { color: #ff8a80; } #feed .mate { color: #5fb4ff; } #feed .foe { color: #ff7a70; }
#slots b { text-transform: uppercase; }
#note { position: fixed; z-index: 5; pointer-events: none; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.8); background: rgba(10,12,15,.6); padding: 6px 14px; border-radius: 4px; }
.bot { font: 700 10px var(--ui); font-style: normal; letter-spacing: .1em; padding: 1px 5px; margin-left: 6px; border-radius: 3px; background: rgba(255,255,255,.2); color: #fff; vertical-align: 2px; }
#shield { position: absolute; left: 50%; top: calc(50% + 74px); transform: translateX(-50%); font-size: 13px; letter-spacing: .16em; color: #9fd0ff; background: rgba(10,14,20,.45); padding: 4px 12px; border-radius: 3px; white-space: nowrap; }
#score .hint { margin: 8px 0 0; font-size: 11px; letter-spacing: .14em; opacity: .6; text-align: center; }
/* =====================================================================================================================
   FRONT END. Screens (home, private match, room, pause, loadout, settings) stacked in one place; one shows at a time.
   Sizes follow the window's height so every screen fits 1024 x 600 to 2560 x 1080 without the page scrolling; on very
   wide windows the content keeps to a 1760 px column in the middle (--gx is the side margin).
   ===================================================================================================================== */
:root { --top: 58px; --foot: 38px; --gx: max(4.5vw, calc((100vw - 1760px) / 2)); --box: calc(100vw - 2 * var(--gx));
  --panel: rgba(14,17,22,.78); --panel2: rgba(22,26,33,.82); --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16);
  --mute: #9aa3ae; --ink: #17120a; --danger: #ff6a55; --ok: #5fe07a; --ease: cubic-bezier(.2,.7,.2,1); }
#menu { position: fixed; inset: 0; color: #f3f5f8; font-family: var(--ui); }
#menu button { font-family: var(--ui); }
#menu :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#menu small { font-weight: 600; }

/* the darkening over the flying camera: lighter on home and loadout, where the operator stands */
.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim::before, .scrim::after { content: ""; position: absolute; inset: 0; transition: opacity .18s var(--ease); }
.scrim::before { background: radial-gradient(ellipse 34% 62% at 62% 62%, rgba(255,176,32,.10), rgba(255,176,32,0) 70%),
  linear-gradient(90deg, rgba(7,9,12,.93) 0%, rgba(7,9,12,.8) 32%, rgba(7,9,12,.5) 52%, rgba(7,9,12,.46) 76%, rgba(7,9,12,.7) 100%),
  linear-gradient(0deg, rgba(7,9,12,.75) 0%, rgba(7,9,12,0) 26%); }
.scrim::after { background: linear-gradient(90deg, rgba(7,9,12,.94), rgba(7,9,12,.86) 55%, rgba(7,9,12,.8)); opacity: 1; }
#menu[data-screen="home"] .scrim::after { opacity: 0; }
#menu[data-screen="loadout"] .scrim::after { opacity: .55; }

/* ---------------------------------------------------------------- top bar */
#topbar { position: absolute; top: 0; left: 0; right: 0; height: var(--top); z-index: 2; display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding: 0 var(--gx);
  background: linear-gradient(rgba(5,7,9,.8), rgba(5,7,9,0)); }
.slotL { flex: none; width: 150px; display: flex; align-items: center; }   /* BACK on a screen opened from another (the same place always) */
@keyframes blink { 50% { opacity: .25; } }

/* ---------------------------------------------------------------- the screens */
#screens { position: absolute; top: var(--top); bottom: var(--foot); left: 0; right: 0; }
.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s; }
.screen.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .screen, .scrim::before, .scrim::after { transition: none; } }
.screen h2 { margin: 0; font: italic 800 clamp(30px, 5.4vh, 46px)/1 var(--ui); letter-spacing: .03em; }
.field h3, .box h3 { margin: 0 0 clamp(6px, 1vh, 10px); font-size: 12px; letter-spacing: .26em; color: var(--mute); font-weight: 700; }
.field h3 small { margin-left: 10px; letter-spacing: .12em; font-size: 10.5px; opacity: .8; }
kbd { margin: 0 2px; }

/* buttons */
.primary { border: 0; background: var(--accent); color: var(--ink); font-weight: 800; font-style: italic; letter-spacing: .08em; cursor: pointer; transition: filter .12s, transform .06s; }
.primary:hover { filter: brightness(1.1); } .primary:active { transform: scale(.985); }
.btn { padding: 8px 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line2); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .16em; cursor: pointer; white-space: nowrap; transition: border-color .12s, color .12s, background .12s; }
.btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,176,32,.1); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); background: rgba(255,90,70,.1); }
.link { background: none; border: 0; color: var(--mute); font-size: 11px; font-weight: 700; letter-spacing: .18em; cursor: pointer; padding: 4px 0; } .link:hover { color: #fff; }
.ghost { background: rgba(8,10,13,.45); border: 1px solid var(--line2); color: #fff; padding: 10px 16px; font-size: 12px; font-weight: 700; letter-spacing: .2em; cursor: pointer; transition: border-color .12s, color .12s; }
.ghost:hover { border-color: var(--accent); color: var(--accent); }
.back { background: none; border: 0; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .2em; cursor: pointer; padding: 8px 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; } .back:hover { color: var(--accent); }
.back kbd { margin: 0; font-size: 10px; color: var(--mute); }
/* a second action beside the main one: outlined, never filled like the main button */
.second { border: 2px solid var(--accent); background: rgba(255,176,32,.08); color: var(--accent); font-weight: 800; font-style: italic; letter-spacing: .08em; cursor: pointer; transition: background .12s; }
.second:hover { background: rgba(255,176,32,.2); }
.seg { display: inline-flex; border: 1px solid var(--line2); background: rgba(10,12,16,.6); }
.seg button { padding: 9px 18px; background: none; border: 0; border-right: 1px solid var(--line); color: var(--mute); font-size: 13px; font-weight: 700; letter-spacing: .16em; cursor: pointer; white-space: nowrap; transition: color .12s, background .12s; }
.seg button:last-child { border-right: 0; } .seg button:hover { color: #fff; background: rgba(255,255,255,.05); }
.seg button.on { background: var(--accent); color: var(--ink); }
.seg.small button { padding: 7px 12px; font-size: 12px; letter-spacing: .12em; }
#menu.loading .needsReady { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------- HOME */
.homeCol { position: absolute; left: var(--gx); top: 50%; transform: translateY(-50%); width: clamp(330px, 31vw, 440px); display: flex; flex-direction: column; gap: clamp(9px, 1.7vh, 16px); }
.logo { margin: 0; font: italic 800 min(clamp(46px, 8.8vh, 88px), calc(clamp(330px, 31vw, 440px) / 5.7))/.86 var(--ui); letter-spacing: -.005em; text-shadow: 0 4px 30px rgba(0,0,0,.5); white-space: nowrap; }
.logo span { color: var(--accent); }
.tagline { margin: 0 0 clamp(2px, 1vh, 10px); font-size: 13px; letter-spacing: .3em; font-weight: 700; color: var(--mute); white-space: nowrap; }
#invite { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(255,176,32,.1); border-left: 3px solid var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
#invite .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: blink 1.4s ease-in-out infinite; }
#inviteInfo { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #inviteInfo b { color: var(--accent); letter-spacing: .16em; user-select: text; -webkit-user-select: text; }
#playWrap { position: relative; }
#play { position: relative; width: 100%; height: clamp(64px, 11.5vh, 96px); padding: 0 26px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left;
  font: italic 800 clamp(32px, 6.2vh, 52px)/1 var(--ui); letter-spacing: .06em; color: var(--ink); border: 0; cursor: pointer;
  background: linear-gradient(105deg, var(--accent) 0 70%, #ffc14a 70% 71.5%, var(--accent) 71.5% 76%, #ffc14a 76% 77.5%, var(--accent) 77.5%);
  box-shadow: 0 12px 34px rgba(255,176,32,.2); transition: filter .12s, transform .06s, box-shadow .12s; }
#play::after { content: attr(data-sub); font: normal 700 11.5px var(--ui); letter-spacing: .26em; opacity: .72; margin-top: clamp(4px, .8vh, 8px); }
#play::before { content: ""; position: absolute; right: 26px; top: 50%; width: 0; height: 0; margin-top: -13px; border-left: 20px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; transition: transform .12s var(--ease); }
#play:hover { filter: brightness(1.08); box-shadow: 0 14px 40px rgba(255,176,32,.32); } #play:hover::before { transform: translateX(5px); } #play:active { transform: scale(.99); }
#play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#play.wait { cursor: progress; filter: saturate(.6) brightness(.82); box-shadow: none; } #play.wait::before { display: none; }
#play.long { font-size: clamp(17px, 3vh, 24px); letter-spacing: .04em; }
#play.failed { background: #ff6a5a; } #play.failed::before { display: none; }
#loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.25); overflow: hidden; pointer-events: none; }
#loadbar i { display: block; height: 100%; width: calc(var(--k, 0) * 100%); background: var(--ink); transition: width .25s linear; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; text-align: left; min-height: clamp(58px, 9.6vh, 80px); padding: 10px 16px;
  background: var(--panel2); border: 1px solid var(--line2); color: #fff; cursor: pointer; transition: border-color .12s, background .12s, transform .06s; }
.card b { font: italic 800 clamp(16px, 2.6vh, 20px)/1 var(--ui); letter-spacing: .06em; transition: color .12s; }
.card small { font-size: 10.5px; letter-spacing: .14em; color: var(--mute); white-space: nowrap; }
.card:hover { border-color: var(--accent); background: rgba(40,32,18,.85); } .card:hover b { color: var(--accent); } .card:active { transform: scale(.99); }
#loadmsg { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .03em; color: #ffd27a; line-height: 1.4; }
.callsign { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--line2); padding: 2px 2px 0; transition: border-color .12s; cursor: text; }
.callsign:focus-within { border-color: var(--accent); }
.callsign span { font-size: 11px; letter-spacing: .26em; color: var(--mute); font-weight: 700; }
#name { flex: 1; min-width: 0; padding: clamp(5px, 1vh, 9px) 0; font: 700 20px var(--ui); letter-spacing: .04em; color: #fff; background: none; border: 0; outline: none; user-select: text; -webkit-user-select: text; }
#name::placeholder { color: rgba(255,255,255,.35); }
#menu #name:focus-visible { outline: none; }

/* the operator's name beside the 3D view (home, loadout) */
.plate { position: absolute; right: var(--gx); bottom: clamp(12px, 3vh, 34px); width: min(25vw, 400px); display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 4px; pointer-events: none; }
.plate > * { pointer-events: auto; }
.plate small { font-size: 11px; letter-spacing: .3em; color: var(--mute); }
.opName { font: italic 800 clamp(38px, 7.6vh, 72px)/.9 var(--ui); letter-spacing: .03em; padding-bottom: 10px; text-shadow: 0 4px 24px rgba(0,0,0,.6);
  background: linear-gradient(var(--op, var(--accent)), var(--op, var(--accent))) no-repeat right bottom / 64px 4px; }
.opLine { font-size: 14px; color: #d7dce2; line-height: 1.35; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.opKit { font-size: 12px; letter-spacing: .18em; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
#opStage { position: absolute; top: var(--top); bottom: var(--foot); left: calc(var(--gx) + var(--box) * .37); width: calc(var(--box) * .43); cursor: grab; touch-action: none; visibility: hidden; }
#opStage.drag { cursor: grabbing; }
#menu[data-screen="home"] #opStage { visibility: visible; }
#homePlate .opKit { margin-bottom: 10px; }



/* ---------------------------------------------------------------- PAUSE: the light pause over the match (the match stays in sight, dimmed) */
#menu[data-screen="pause"] #topbar, #menu[data-screen="pause"] #menufoot { display: none; }
#menu[data-screen="pause"] .scrim::before { opacity: 0; }
#menu[data-screen="pause"] .scrim::after { opacity: 1; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(6,8,11,.5), rgba(6,8,11,.3)); }
.screen[data-screen="pause"] { cursor: pointer; }
.lightPause { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2.2vh, 22px); text-align: center; }
.kicker { font-size: 12px; letter-spacing: .34em; color: var(--accent); font-weight: 800; }
.pauseWhere { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
#pauseMap { font: italic 800 clamp(18px, 3.2vh, 26px)/1 var(--ui); letter-spacing: .06em; }
#pauseInfo { font-size: 12px; letter-spacing: .14em; color: #c9ced5; }
.resumeBig { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(14px, 3vh, 26px) clamp(30px, 5vw, 64px); background: rgba(10,12,15,.62); border: 0; border-top: 3px solid var(--accent); color: #fff; cursor: pointer; transition: background .12s; }
.resumeBig b { font: italic 800 clamp(30px, 6.4vh, 58px)/1 var(--ui); letter-spacing: .07em; white-space: nowrap; }
.resumeBig small { font-size: 11px; letter-spacing: .24em; color: var(--mute); } .resumeBig kbd { color: #fff; }
.resumeBig:hover { background: rgba(10,12,15,.78); } .resumeBig:hover b { color: var(--accent); }
.pauseRow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; cursor: default; }
.pauseRow button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: clamp(150px, 14vw, 200px); padding: 9px 14px; text-align: left; background: rgba(12,15,19,.8); border: 1px solid var(--line2); border-left: 3px solid rgba(255,255,255,.2);
  color: #fff; font: 800 13px var(--ui); letter-spacing: .14em; cursor: pointer; transition: border-color .12s, background .12s; }
.pauseRow button small { font: 700 9.5px var(--ui); letter-spacing: .14em; color: var(--mute); white-space: nowrap; }
.pauseRow button kbd { margin: 0 0 0 4px; font-size: 10px; padding: 0 5px; }
.pauseRow button:hover, .pauseRow button:focus-visible { border-left-color: var(--accent); background: rgba(30,26,18,.92); }
.pauseRow .danger { color: #ff8b7b; } .pauseRow .danger:hover { border-left-color: var(--danger); background: rgba(60,20,16,.85); }

/* ---------------------------------------------------------------- LOADOUT: one card per operator (the operator is the loadout) */
:is(#skins, #qcards) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, .8vw, 12px); }
:is(#skins, #qcards) button { position: relative; min-width: 0; padding: 0 0 clamp(8px, 1.4vh, 14px); text-align: left; background: var(--panel); border: 1px solid var(--line); color: #fff; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; transition: border-color .12s, background .12s, transform .12s var(--ease); }
:is(#skins, #qcards) button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--op); opacity: 0; transition: opacity .12s; z-index: 1; }
:is(#skins, #qcards) .pic { position: relative; display: block; flex: none; height: clamp(96px, calc(30vh - 24px), 300px); background: radial-gradient(ellipse 70% 60% at 50% 34%, color-mix(in srgb, var(--op) 34%, transparent), transparent 72%), linear-gradient(#232b35, #12161c); }
:is(#skins, #qcards) .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; opacity: 0; transition: opacity .25s; }
:is(#skins, #qcards) .pic img.in { opacity: 1; }
:is(#skins, #qcards) .pic::after { content: "LOADING"; position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 10px; letter-spacing: .3em; color: var(--mute); }
:is(#skins, #qcards) .pic.has::after { content: none; }
:is(#skins, #qcards) .top { display: flex; align-items: center; gap: 7px; padding: clamp(6px, 1.1vh, 11px) var(--cp) 0; min-width: 0; }
:is(#skins, #qcards) .top kbd { margin: 0; font-size: 10.5px; padding: 1px 5px; flex: none; }
:is(#skins, #qcards) .top b { min-width: 0; font: italic 800 clamp(15px, 2.6vh, 22px)/1.05 var(--ui); letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#skins, #qcards) .cname { padding: 3px var(--cp) 0; font-size: 10.5px; letter-spacing: .22em; font-weight: 800; color: var(--op); }
:is(#skins, #qcards) small { display: block; padding: 3px var(--cp) 0; font-size: 11.5px; line-height: 1.3; color: var(--mute); font-weight: 500; min-height: 2.6em; }
:is(#skins, #qcards) .gpic { position: relative; display: block; flex: none; height: clamp(30px, 7.5vh, 84px); margin: clamp(2px, .8vh, 8px) calc(var(--cp) - 6px) 0; }
:is(#skins, #qcards) .gpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
:is(#skins, #qcards) .gpic img.in { opacity: 1; }
:is(#skins, #qcards) .fam { padding: 0 var(--cp); font-size: 11.5px; letter-spacing: .12em; font-weight: 700; color: #d9dde3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#skins, #qcards) .wline { padding: 1px var(--cp) 0; font-size: 11px; color: var(--mute); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#skins, #qcards) .bars { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; margin: clamp(4px, .9vh, 9px) var(--cp) 0; }
:is(#skins, #qcards) .bars em { font-size: 9px; letter-spacing: .12em; font-style: normal; color: var(--mute); font-weight: 700; white-space: nowrap; }
:is(#skins, #qcards) .bars i { display: block; height: 4px; background: rgba(255,255,255,.12); overflow: hidden; } :is(#skins, #qcards) .bars u { display: block; height: 100%; background: #fff; transition: background .12s; }
:is(#skins, #qcards) .tag { position: absolute; left: 8px; top: 9px; z-index: 1; font-style: normal; font-size: 9.5px; letter-spacing: .14em; font-weight: 800; padding: 2px 6px; background: #5fb4ff; color: var(--ink); }
:is(#skins, #qcards) .tag.now { background: #fff; }
/* "SELECT" on the card under the mouse (the picked one has its tick instead): one click picks it */
:is(#skins, #qcards) .pick { position: absolute; right: 8px; top: 9px; z-index: 1; font-size: 9.5px; letter-spacing: .16em; font-weight: 800; padding: 3px 7px; background: var(--op); color: var(--ink); opacity: 0; transition: opacity .1s; pointer-events: none; }
:is(#skins, #qcards) button:hover .pick, :is(#skins, #qcards) button:focus-visible .pick { opacity: 1; } :is(#skins, #qcards) button.on .pick { display: none; }
:is(#skins, #qcards) .bars em .s { display: none; }
:is(#skins, #qcards) button:hover { border-color: color-mix(in srgb, var(--op) 70%, transparent); transform: translateY(-2px); } :is(#skins, #qcards) button:hover::before { opacity: .6; }
:is(#skins, #qcards) button.on { border-color: var(--op); background: color-mix(in srgb, var(--op) 10%, rgba(14,17,21,.9)); box-shadow: 0 0 0 1px var(--op), 0 10px 30px rgba(0,0,0,.35); } :is(#skins, #qcards) button.on::before { opacity: 1; }
:is(#skins, #qcards) button.on .top b { color: var(--op); } :is(#skins, #qcards) button.on .bars u { background: var(--op); }
:is(#skins, #qcards) button.on .pic::before { content: "✓"; position: absolute; right: 8px; top: 9px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ink); background: var(--op); z-index: 1; }

/* ---------------------------------------------------------------- SETTINGS */
.settings { position: absolute; left: var(--gx); top: clamp(4px, 1.4vh, 16px); bottom: clamp(6px, 1.6vh, 18px); width: min(var(--box), 1080px); display: flex; flex-direction: column; }
#stabs { display: flex; gap: clamp(2px, 1vw, 12px); border-bottom: 1px solid var(--line2); flex: none; }
#stabs button { position: relative; padding: clamp(9px, 1.6vh, 14px) clamp(10px, 1.4vw, 18px); background: none; border: 0; color: var(--mute); font-size: 14px; font-weight: 700; letter-spacing: .2em; cursor: pointer; transition: color .12s; }
#stabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .16s var(--ease); }
#stabs button:hover { color: #fff; } #stabs button.on { color: #fff; } #stabs button.on::after { transform: scaleX(1); }
.panes { position: relative; flex: 1; min-height: 0; margin-top: clamp(6px, 1.4vh, 14px); }
.pane { position: absolute; inset: 0; overflow-y: auto; display: none; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.pane.on { display: block; animation: paneIn .14s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(4px); } }
.set { display: grid; grid-template-columns: minmax(200px, 40%) 1fr; align-items: center; gap: 24px; padding: clamp(8px, 1.6vh, 13px) 18px; background: rgba(12,15,19,.62); border-bottom: 1px solid var(--line); }
.set:hover { background: rgba(20,24,30,.8); }
.set .lbl b { display: block; font-size: 15px; letter-spacing: .05em; font-weight: 700; }
.set .lbl small { display: block; margin-top: 3px; font-size: 12px; color: var(--mute); font-weight: 500; line-height: 1.35; letter-spacing: .01em; }
.set .ctl { display: flex; align-items: center; gap: 14px; min-width: 0; }
.set.tall { align-items: start; }
.set input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 80px; height: 4px; margin: 10px 0; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--k, 50%) 100% no-repeat, rgba(255,255,255,.16); outline: none; cursor: pointer; }
.set input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: #fff; border: 3px solid var(--accent); border-radius: 50%; transition: transform .1s; }
.set input[type=range]::-moz-range-thumb { width: 12px; height: 12px; background: #fff; border: 3px solid var(--accent); border-radius: 50%; }
.set input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.set input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.set output { min-width: 58px; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tog { position: relative; display: inline-block; width: 46px; height: 24px; flex: none; cursor: pointer; }
.tog input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tog i { position: absolute; inset: 0; background: rgba(255,255,255,.14); border: 1px solid var(--line2); transition: background .14s; pointer-events: none; }
.tog i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: #c9ced5; transition: transform .14s var(--ease), background .14s; }
.tog input:checked + i { background: var(--accent); border-color: var(--accent); } .tog input:checked + i::after { transform: translateX(22px); background: var(--ink); }
.tog input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.sw { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.2); cursor: pointer; transition: transform .1s; }
.sw:hover { transform: scale(1.1); } .sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.swPick { position: relative; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#ff4d4d, #ffe83d, #35ff6b, #3df2ff, #5f6bff, #ff4df0, #ff4d4d); border: 2px solid rgba(255,255,255,.2); cursor: pointer; overflow: hidden; }
.swPick input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; }
.set input[type=number] { width: 130px; padding: 8px 10px; font: 700 14px var(--ui); color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--line2); outline: none; user-select: text; -webkit-user-select: text; }
.set input[type=number]:focus { border-color: var(--accent); }
.imp { display: flex; flex-direction: column; gap: 8px; } .impIn { display: flex; gap: 8px; } #sout { font-size: 12px; color: var(--ok); min-height: 1.2em; } #sout.bad { color: #ffd27a; }
.pane.xhPane.on { display: grid; grid-template-columns: clamp(220px, 30%, 340px) 1fr; gap: 18px; align-items: start; }
.xprevWrap { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; } .xprevWrap small { font-size: 10px; letter-spacing: .16em; color: var(--mute); }
#xprev { position: relative; aspect-ratio: 4 / 3; max-height: 36vh; overflow: hidden; border: 1px solid var(--line2); }
#xprev span { position: absolute; top: 0; bottom: 0; width: 34%; } #xprev .bgA { left: 0; background: linear-gradient(#2a3038, #1c2026); }
#xprev .bgB { left: 33%; background: linear-gradient(#cfd8df, #a9b3ba); } #xprev .bgC { left: 66%; background: repeating-linear-gradient(45deg, #6b5a3e 0 6px, #3f4a3a 6px 12px, #8b8f93 12px 18px); }
.xlist .set { grid-template-columns: minmax(120px, 30%) 1fr; }
#binds { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
#binds label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(5px, 1vh, 8px) 16px; background: rgba(12,15,19,.62); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
#binds label button { min-width: 112px; padding: 6px 10px; font: 700 12px var(--ui); letter-spacing: .1em; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line2); cursor: pointer; transition: border-color .12s, color .12s; }
#binds label button:hover { border-color: var(--accent); color: var(--accent); }
#binds button.wait { background: var(--accent); color: var(--ink); border-color: var(--accent); animation: blink 1s ease-in-out infinite; }
#bindReset { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
.keys { margin: 14px 0 0; font-size: 12px; color: var(--mute); line-height: 2; font-weight: 600; }
.keys kbd { color: #fff; }

/* ---------------------------------------------------------------- footer, notes */
#menufoot { position: absolute; left: 0; right: 0; bottom: 0; height: var(--foot); padding: 0 var(--gx); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--mute); font-weight: 600; letter-spacing: .04em; }
.footL { display: flex; gap: 24px; min-width: 0; } .footL p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#who b { color: #d7dce2; } #lan { user-select: text; -webkit-user-select: text; } #lan b { color: var(--accent); }
#menu[data-screen="settings"] #who, #menu[data-screen="loadout"] #who, #menu[data-screen="pause"] #who, #menu[data-screen="lobby"] #who { display: none; }
.footR { display: flex; gap: 16px; white-space: nowrap; } .footR span { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
.footR kbd { margin: 0; color: #fff; }
#menu:not([hidden]) + #note { left: 0; right: 0; top: 0; height: var(--top); transform: none; display: flex; align-items: center; justify-content: center; padding: 0 24px; background: rgba(12,15,19,.97); border-bottom: 2px solid var(--accent); border-radius: 0; letter-spacing: .14em; font-size: 13px; text-shadow: none; text-align: center; box-shadow: 0 8px 26px rgba(0,0,0,.4); animation: toast .16s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translateY(-100%); } }
#resumeHint { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 34px; background: rgba(10,12,15,.72); border-top: 3px solid var(--accent); }
#resumeHint b { font: italic 800 30px var(--ui); letter-spacing: .08em; } #resumeHint span { font-size: 11px; letter-spacing: .24em; color: var(--mute); font-weight: 700; }
#mapLoad { position: fixed; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; text-align: center; background: rgba(8,10,13,.92); color: #f3f5f8; font-family: var(--ui); }   /* (no z-index: the menu, later in the page, stays over it) */
#mapLoad b { font: italic 800 30px var(--ui); letter-spacing: .08em; } #mapLoad span { font-size: 11px; letter-spacing: .24em; color: var(--mute); font-weight: 700; }

/* ---------------------------------------------------------------- smaller windows */

/* ---------------------------------------------------------------- the quick operator overlay (B in a match): the same cards, smaller */
#qlo { position: fixed; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 0 16px; font-family: var(--ui); color: #f3f5f8;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6,8,11,.5), rgba(6,8,11,.18)); }
.qbox { width: min(100%, 1180px); padding: clamp(10px, 1.8vh, 18px); background: rgba(12,15,19,.74); border-top: 3px solid var(--accent); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.qhead { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(8px, 1.4vh, 12px); white-space: nowrap; min-width: 0; }
.qhead b { font: italic 800 clamp(18px, 3vh, 26px)/1 var(--ui); letter-spacing: .06em; }
.qhead span { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: var(--mute); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.opSub { color: var(--accent); } .qhead .qkeys { margin-left: auto; flex: none; } .qkeys kbd { color: #fff; margin: 0 2px; }
#qlo:not([hidden]) ~ #note { top: auto; bottom: 9vh; }   /* (a message while the overlay is open goes under it, not over the cards) */

/* =====================================================================================================================
   LEGIBILITY (small laptops and Chromebooks: 11.6 to 14 inch, 1366 x 768 or 1280 x 720, zoom 100 %). These rules come
   last and win over the sizes above. At 1366 x 768 nothing is smaller than 13 px, a control's own words 15 px, an action
   prompt 18 px; key caps are 28 px tall and anything clickable at least 40 x 40 px. Everything grows with the window:
   --u is 1 at 1366 x 768 and follows the smaller of width and height, so 1920 x 1080 is about 1.4x (never less than
   the 1366 sizes, however small the window). research/menu/tests/walk.mjs measures all of it (legible()).
   ===================================================================================================================== */
:root { --u: min(calc(100vw / 1366), calc(100vh / 768));   /* a length: 1px at 1366 x 768, so sizes are written calc(N * var(--u)) */
  --t13: max(13px, calc(13 * var(--u))); --t15: max(15px, calc(15 * var(--u))); --t16: max(16px, calc(16 * var(--u))); --t18: max(18px, calc(18 * var(--u)));
  --t20: max(20px, calc(20 * var(--u))); --kbd: max(28px, calc(28 * var(--u))); --ctl: max(40px, calc(40 * var(--u)));
  --top: max(58px, calc(58 * var(--u))); --foot: max(48px, calc(48 * var(--u))); --mute: #a9b1bb; }
@media (max-height: 680px) { :root { --top: 52px; --foot: 46px; } }

/* key caps: the same everywhere a key is named */
kbd { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: var(--kbd); height: var(--kbd); padding: 0 .45em; margin: 0 .2em;
  font: normal 800 var(--t13)/1 var(--ui); letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-bottom-width: 3px; border-radius: 4px; vertical-align: middle; text-shadow: none; }

/* the prompts over the match: big, white on a dark plate, under the middle of the screen where the player is looking */
#dead { top: 56%; bottom: auto; gap: max(10px, calc(10 * var(--u))); }
#dead .by { font-size: max(30px, calc(30 * var(--u))); }
#dead .hint { display: flex; flex-direction: column; align-items: center; gap: max(8px, calc(8 * var(--u))); margin-top: 0; opacity: 1; letter-spacing: .08em; }
.prompt { display: inline-flex; align-items: center; gap: .35em; font-size: var(--t20); font-weight: 800; letter-spacing: .08em; color: #fff; }
#dead .prompt { padding: max(5px, calc(5 * var(--u))) max(16px, calc(16 * var(--u))) max(5px, calc(5 * var(--u))) max(6px, calc(6 * var(--u))); background: rgba(8,10,13,.8); border-radius: 4px; font-style: normal; text-shadow: none; }
#dead .prompt b { color: var(--accent); font-variant-numeric: tabular-nums; } #dead .prompt small { font-size: var(--t15); color: #d3d9df; font-weight: 700; letter-spacing: .06em; }
#hud > #note, #note { font-size: var(--t16); }
#hud ~ #note, body > #note { top: 22%; }
#qlo:not([hidden]) ~ #note { top: auto; bottom: 9vh; }
#menu:not([hidden]) + #note { font-size: var(--t15); top: 0; }
#shield { font-size: var(--t13); background: rgba(10,14,20,.75); padding: 5px 14px; }
#resumeHint b { font-size: max(30px, calc(30 * var(--u))); } #resumeHint span { font-size: var(--t13); color: #c4cbd3; }

/* top bar and footer */
.slotL { width: max(150px, calc(150 * var(--u))); }
.brand { font-size: max(22px, calc(22 * var(--u))); }
.back { font-size: var(--t15); min-height: var(--ctl); padding: 0 4px; }
#menufoot { font-size: var(--t13); }
.footR span { font-size: var(--t13); } .footR kbd { margin-right: .3em; }
#menu small { font-size: var(--t13); }

/* buttons and fields */
.btn, .ghost, .link, .second, #roomPlayers button, #binds label button, #bindReset { font-size: var(--t15); min-height: var(--ctl); }
.link { padding: 0 6px; }
.seg button, .seg.small button { font-size: var(--t15); min-height: var(--ctl); padding-top: 0; padding-bottom: 0; }
.card small { font-size: var(--t13); white-space: normal; }
.card b { font-size: max(18px, calc(20 * var(--u))); }

/* HOME */
.tagline { font-size: var(--t13); }
.callsign span { font-size: var(--t13); }
#name { font-size: var(--t20); min-height: var(--ctl); }
#play::after { font-size: var(--t13); }
.plate small { font-size: var(--t13); } .opLine { font-size: var(--t15); } .opKit { font-size: var(--t13); }
#invite { font-size: var(--t13); } #loadmsg { font-size: var(--t15); }


/* PAUSE (the light pause): the actions are large; OPERATOR shows its key */
.kicker { font-size: var(--t13); } #pauseInfo { font-size: var(--t13); color: #dde2e7; } #pauseMap { font-size: max(22px, calc(24 * var(--u))); }
.resumeBig small { font-size: var(--t18); color: #dde2e7; letter-spacing: .14em; }
.pauseRow button { font-size: var(--t18); min-width: max(170px, calc(170 * var(--u))); padding: max(9px, calc(9 * var(--u))) max(16px, calc(16 * var(--u))); gap: 5px; }
.pauseRow button small { font-size: var(--t13); color: #c4cbd3; }
.pauseRow button kbd { margin-left: .35em; }

/* OPERATOR cards (the screen and the B overlay) */
.field h3 small kbd { margin: 0 .15em; }
:is(#skins, #qcards) .top kbd { font-size: var(--t13); padding: 0 .3em; margin: 0; }
:is(#skins, #qcards) .cname, :is(#skins, #qcards) small, :is(#skins, #qcards) .fam, :is(#skins, #qcards) .wline, :is(#skins, #qcards) .bars em, :is(#skins, #qcards) .tag, :is(#skins, #qcards) .pick { font-size: var(--t13); }
:is(#skins, #qcards) small { min-height: 0; color: #b9c0c9; } :is(#skins, #qcards) .wline { color: #b9c0c9; }
:is(#skins, #qcards) .bars { gap: 4px 10px; }
:is(#skins, #qcards) .top b { font-size: max(17px, calc(21 * var(--u))); }

/* the B overlay: title and what a pick will do on top, the keys under the cards */
.qhead { flex-wrap: wrap; gap: 4px 16px; } .qhead b { font-size: max(22px, calc(24 * var(--u))); } .opSub { font-size: var(--t15); }
.qkeys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin-top: max(10px, calc(10 * var(--u))); font-size: var(--t15); font-weight: 700; letter-spacing: .1em; color: #e3e7eb; }
.qkeys span { display: inline-flex; align-items: center; gap: .2em; }
.qbox { width: min(100%, max(1180px, calc(1180 * var(--u)))); }

/* SETTINGS */
#stabs button { font-size: var(--t15); min-height: var(--ctl); }
.set .lbl b { font-size: var(--t15); } .set .lbl small { font-size: var(--t13); color: #b9c0c9; } .set output { font-size: var(--t15); }
.tog { height: var(--ctl); } .tog i { top: calc(50% - 12px); bottom: auto; height: 24px; }
.set input[type=range] { height: var(--ctl); margin: 0; background: none; }
.set input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--k, 50%) 100% no-repeat, rgba(255,255,255,.16); }
.set input[type=range]::-webkit-slider-thumb { margin-top: -6px; }
.set input[type=range]::-moz-range-track { height: 4px; background: rgba(255,255,255,.16); } .set input[type=range]::-moz-range-progress { height: 4px; background: var(--accent); }
.sw { width: var(--ctl); height: var(--ctl); border: 0; background: radial-gradient(circle, var(--c) 0 12px, rgba(255,255,255,.22) 12.5px 14px, transparent 14.5px); }
.sw.on { box-shadow: none; background: radial-gradient(circle, var(--c) 0 12px, #fff 12.5px 14.5px, var(--accent) 15px 17px, transparent 17.5px); }
.swPick { width: var(--ctl); height: var(--ctl); }
.set input[type=number] { font-size: var(--t15); min-height: var(--ctl); }
#binds label { font-size: var(--t15); } .keys { font-size: var(--t13); line-height: 2.7; color: #b9c0c9; }
.xprevWrap small, #sout { font-size: var(--t13); }
/* (legibility, continued) key caps that older rules made small, labels on the light pause and the dead screen given a plate */
.back kbd, .pauseRow button kbd, #menu .back kbd { font-size: var(--t13); padding: 0 .4em; color: #fff; }
.tagline { font-size: var(--t15); }
#menu .resumeBig small { font-size: var(--t18); }
.pauseWhere { padding: 6px 16px; background: rgba(8,10,13,.72); border-radius: 4px; }
#dead .by { padding: 2px 18px; background: rgba(8,10,13,.72); border-radius: 4px; text-shadow: none; }
:is(#skins, #qcards) .cname { color: color-mix(in srgb, var(--op) 70%, #fff); }
.seg button { transition: none; }
:root { --gx: max(4.5vw, calc((100vw - max(1760px, calc(1760 * var(--u)))) / 2)); }
/* PLAY THIS MAP (from the map builder): no menu, just the map loading, then CLICK TO PLAY over it */
.autoplay #menu { visibility: hidden; }
#autoPlay { position: fixed; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: max(10px, calc(10 * var(--u))); font-family: var(--ui); color: #fff;
  background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(8,10,13,.82), rgba(8,10,13,.55)); }
#autoPlay small { font-size: var(--t15); font-weight: 800; letter-spacing: .3em; color: var(--accent); padding: 4px 12px; background: rgba(8,10,13,.7); }
#autoPlay b { font: italic 800 max(34px, calc(48 * var(--u)))/1 var(--ui); letter-spacing: .06em; }
#autoPlay span { font-size: var(--t15); font-weight: 700; letter-spacing: .2em; color: #d3d9df; min-height: 1.2em; }
#autoPlay.ready { cursor: pointer; background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(8,10,13,.7), rgba(8,10,13,.3)); }
#autoPlay.ready:hover b { color: var(--accent); }
#autoPlay b { padding: max(10px, calc(12 * var(--u))) max(28px, calc(36 * var(--u))); background: rgba(8,10,13,.78); border-top: 3px solid var(--accent); }
#autoPlay span:not(:empty) { padding: 4px 12px; background: rgba(8,10,13,.78); }
:is(#skins, #qcards) .bars { margin-top: auto; padding-top: max(4px, calc(8 * var(--u))); }   /* (the bars line up along the bottom of every card) */
/* quick play's end-of-match vote */
#mapVote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#mapVote button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: max(64px, calc(70 * var(--u))); padding: 8px 14px; text-align: left; color: #fff; background: var(--panel); border: 1px solid var(--line2); border-left: 4px solid #5fb4ff; cursor: pointer; }
#mapVote button b { font-size: var(--t18); letter-spacing: .08em; } #mapVote button small { font-size: var(--t13); letter-spacing: .14em; color: #c4cbd3; }
#mapVote button kbd { margin-bottom: 2px; }
#mapVote button:hover { background: rgba(30,34,42,.9); } #mapVote button.on { border-color: var(--accent); background: rgba(255,176,32,.16); } #mapVote button.on b { color: var(--accent); }
#end .prompt { font-size: var(--t20); font-style: normal; margin-top: 16px; }
#end .evote { display: flex; gap: 12px; margin-top: 10px; font-style: normal; }
#end .evote > div { display: flex; align-items: center; gap: 10px; padding: 8px 16px; min-width: 200px; background: rgba(10,12,16,.75); border: 1px solid rgba(255,255,255,.2); border-left: 4px solid #5fb4ff; }
#end .evote b { font-size: var(--t18); letter-spacing: .06em; flex: 1; } #end .evote small { font-size: var(--t18); font-variant-numeric: tabular-nums; color: #dde2e7; }
#end .evote .mine { border-color: var(--accent); } #end .evote .mine b { color: var(--accent); }

/* =====================================================================================================================
   ONE DECISION PER SCREEN (BUILD 16 menus, simplified). The default state of a screen shows at most about eight things
   to click; everything else is one tap away in a sheet. research/menu/simplify.md has the counts, walk.mjs holds them.
   ===================================================================================================================== */
/* top bar: BACK (with Esc) and the title; HOME has only the gear */
#topbar { gap: max(16px, calc(20 * var(--u))); }
#title { margin: 0; flex: 1; min-width: 0; font: italic 800 max(22px, calc(24 * var(--u)))/1 var(--ui); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topR { margin-left: auto; display: flex; align-items: center; }
#gear { display: none; width: var(--ctl); height: var(--ctl); padding: 0; place-items: center; background: rgba(8,10,13,.45); border: 1px solid var(--line2); border-radius: 50%; color: #fff; cursor: pointer; transition: color .12s, border-color .12s; }
#gear svg { width: 60%; height: 60%; fill: currentColor; }
#gear:hover { color: var(--accent); border-color: var(--accent); }
#menu[data-screen="home"] #gear { display: grid; }
#netBanner { position: absolute; z-index: 3; top: var(--top); left: 50%; transform: translateX(-50%); padding: 8px 18px; font-size: var(--t15); font-weight: 800; letter-spacing: .1em; color: var(--ink); background: #ffd27a; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* footer: the LAN address on HOME, the map builder under SETTINGS, the Enter key on HOME */
#menufoot > p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#menufoot #lan, #menufoot #builder { display: none; }
#menu[data-screen="home"] #menufoot #lan { display: block; }
#menu[data-screen="settings"] #menufoot #builder { display: inline-flex; align-items: center; gap: 6px; color: #c4cbd3; text-decoration: none; letter-spacing: .14em; }
#menufoot #builder:hover { color: var(--accent); }
.footR { margin-left: auto; }

/* HOME: name, PLAY, PLAY WITH FRIENDS and PRACTICE on the left; the operator card on the right (one click: change) */
.homeCol { gap: max(10px, calc(14 * var(--u))); }
.callsign span { letter-spacing: .2em; }
.pair .card b { font-size: max(17px, calc(19 * var(--u))); white-space: nowrap; }
#homePlate { pointer-events: auto; padding: max(12px, calc(14 * var(--u))) max(16px, calc(18 * var(--u))); background: rgba(8,10,13,.55); border: 1px solid var(--line2); border-right: 4px solid var(--op, var(--accent)); color: #fff; font-family: var(--ui); cursor: pointer; transition: background .12s, border-color .12s; }
#homePlate:hover { background: rgba(30,26,18,.82); border-color: var(--accent); border-right-color: var(--op, var(--accent)); }
#homePlate .opName { font-size: max(34px, calc(46 * var(--u))); padding-bottom: 8px; }
#homePlate .opLine { font-size: var(--t15); }
#homePlate .opKit { margin-bottom: 4px; }
.opGo { font-size: var(--t15); font-weight: 800; letter-spacing: .16em; color: var(--accent); }

/* PLAY WITH FRIENDS: CREATE ROOM, or a code */
.friends { position: absolute; left: var(--gx); top: 50%; transform: translateY(-50%); width: min(var(--box), max(440px, calc(440 * var(--u)))); display: flex; flex-direction: column; gap: max(12px, calc(14 * var(--u))); }
#roomNew { height: max(64px, calc(76 * var(--u))); font-size: max(28px, calc(34 * var(--u))); }
.friends .or { margin: max(10px, calc(18 * var(--u))) 0 0; font-size: var(--t18); font-weight: 700; letter-spacing: .06em; color: #dde2e7; }
.codeRow { display: flex; gap: 8px; } .codeRow .second { width: max(120px, calc(120 * var(--u))); flex: none; font-size: var(--t20); }
#roomCode { flex: 1; min-width: 0; height: max(56px, calc(56 * var(--u))); padding: 0 16px; font: 800 max(24px, calc(26 * var(--u))) var(--ui); letter-spacing: .32em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line2); outline: none; user-select: text; -webkit-user-select: text; }
#roomCode:focus { border-color: var(--accent); } #menu #roomCode:focus-visible { outline: none; } #roomCode::placeholder { color: rgba(255,255,255,.4); letter-spacing: .26em; }

/* ROOM: code and INVITE on top (LEAVE in the corner), the map card, the players, the way in (READY, START MATCH, JOIN MATCH, PLAY, RESUME) */
.room { position: absolute; left: var(--gx); right: var(--gx); top: max(4px, calc(10 * var(--u))); bottom: max(8px, calc(14 * var(--u))); display: flex; flex-direction: column; gap: max(10px, calc(14 * var(--u))); }
.roomTop { display: flex; align-items: center; gap: max(14px, calc(18 * var(--u))); flex: none; }
.roomId { display: flex; flex-direction: column; gap: 2px; }
.roomId small { font-size: var(--t13); letter-spacing: .22em; color: #c4cbd3; }
#roomCodeBig { font: italic 800 max(30px, calc(38 * var(--u)))/1 var(--ui); letter-spacing: .16em; color: var(--accent); user-select: text; -webkit-user-select: text; }
#roomCodeBig:empty { display: none; }
#roomCopy { min-width: max(120px, calc(130 * var(--u))); font-size: var(--t15); }
#roomInfo { flex: 1; min-width: 0; font-size: var(--t15); letter-spacing: .1em; font-weight: 700; color: #dde2e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#roomLeave { margin-left: auto; }
.roomMain { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr clamp(260px, 28vw, max(380px, calc(380 * var(--u)))); gap: max(16px, calc(26 * var(--u))); }
.roomLeft { min-height: 0; display: flex; flex-direction: column; gap: max(10px, calc(14 * var(--u))); }
#mapCard { position: relative; flex: 1; min-height: max(150px, calc(170 * var(--u))); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: max(14px, calc(18 * var(--u))) max(16px, calc(22 * var(--u))); overflow: hidden; background: linear-gradient(135deg, #2a323c, #141920); border: 1px solid var(--line2); border-left: 4px solid var(--accent); }
#mapCard .mapPic { position: absolute; inset: 0; background: center / cover no-repeat; }
#mapCard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,13,.92) 0%, rgba(8,10,13,.55) 45%, rgba(8,10,13,.1) 100%); pointer-events: none; }
#mapCard > :not(.mapPic) { position: relative; z-index: 1; }
.mapTxt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mapTxt small { font-size: var(--t13); letter-spacing: .26em; color: #dde2e7; }
#mapName { font: italic 800 max(34px, calc(48 * var(--u)))/1 var(--ui); letter-spacing: .04em; text-shadow: 0 2px 12px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mapInfo { font-size: var(--t15); font-weight: 800; letter-spacing: .1em; color: #fff; }
#mapNext { font-size: var(--t13); font-weight: 700; letter-spacing: .12em; color: #ffd27a; } #mapNext:empty { display: none; }
#mapChange { flex: none; min-width: max(110px, calc(120 * var(--u))); background: rgba(8,10,13,.78); }
#hostLine { margin: 0; font-size: var(--t15); font-weight: 700; letter-spacing: .1em; color: #dde2e7; } #hostLine b { color: var(--accent); }
.roomGo { display: flex; align-items: center; gap: max(10px, calc(14 * var(--u))); flex: none; }
#deploy { width: clamp(220px, 26vw, max(340px, calc(340 * var(--u)))); height: max(56px, calc(64 * var(--u))); font-size: max(26px, calc(32 * var(--u))); }
#roomSet { height: max(56px, calc(64 * var(--u))); padding: 0 max(18px, calc(22 * var(--u))); font-size: var(--t18); }
.roomSide { min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
#roomPlayers { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
#roomPlayers h4 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 12px 16px; display: flex; justify-content: space-between; font-size: var(--t13); letter-spacing: .22em; color: #c4cbd3; background: var(--panel2); border-bottom: 1px solid var(--line); }
#roomPlayers h4 span { color: #fff; letter-spacing: .1em; }
#roomPlayers .row { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; min-height: max(44px, calc(46 * var(--u))); padding: 0 14px 0 16px; text-align: left; font: 600 var(--t15) var(--ui); color: #fff; background: none; border: 0; border-bottom: 1px solid var(--line); }
#roomPlayers button.row { cursor: pointer; } #roomPlayers button.row:hover { background: rgba(255,176,32,.08); }
#roomPlayers .row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#roomPlayers .row.me .nm { color: var(--accent); }
#roomPlayers .row .op { font: italic 800 var(--t13)/1 var(--ui); letter-spacing: .1em; color: color-mix(in srgb, var(--op) 75%, #fff); }
#roomPlayers .row .more { font-size: var(--t18); color: #c4cbd3; }
#roomPlayers .bot, #roomPlayers .you, #roomPlayers .done { display: inline-block; margin-left: 8px; padding: 2px 6px; font: normal 800 var(--t13)/1.1 var(--ui); letter-spacing: .1em; color: #dde2e7; background: rgba(255,255,255,.12); vertical-align: middle; }
#roomPlayers .empty { padding: 16px; color: #c4cbd3; font-size: var(--t15); margin: 0; }
#roomPlayers .tm { width: 4px; align-self: stretch; margin-left: -16px; margin-right: 6px; } #roomPlayers .tm.t1 { background: #5fb4ff; } #roomPlayers .tm.t2 { background: #ff5a4d; }
.hostTag { display: inline-block; margin-left: 8px; padding: 2px 6px; font: normal 800 var(--t13)/1.1 var(--ui); letter-spacing: .12em; color: var(--ink); background: var(--accent); vertical-align: middle; }
#roomVote h3 { margin: 0 0 6px; font-size: var(--t13); letter-spacing: .2em; color: #c4cbd3; } #roomVote h3 small { margin-left: 8px; }
/* quick play: no code, no INVITE, no CHANGE; a smaller map card */
.room[data-role="public"] #mapCard { flex: 0 1 auto; min-height: max(130px, calc(150 * var(--u))); }
.room[data-role="public"] #roomInfo { font: italic 800 max(22px, calc(26 * var(--u)))/1 var(--ui); color: #fff; }
/* an older server: maps and modes only */
.room[data-role="old"] .roomMain { grid-template-columns: 1fr; }

/* PAUSE: one row of four */
.pauseRow button { justify-content: center; }
.pauseRow button > span { display: inline-flex; align-items: center; }

/* OPERATOR: the very same box and cards as the B overlay */
.loadout { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; }   /* (the same box as the B overlay: the same width, so the same cards) */
.qbox { padding: clamp(10px, 1.8vh, 18px); background: rgba(12,15,19,.74); border-top: 3px solid var(--accent); box-shadow: 0 20px 60px rgba(0,0,0,.45); --cp: clamp(8px, .9vw, 13px); }
:is(#skins, #qcards) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, .8vw, 12px); }
:is(#skins, #qcards) button { font-family: var(--ui); }
:is(#skins, #qcards) .pic { height: clamp(70px, calc(22vh - 52px), 240px); }
:is(#skins, #qcards) small, :is(#skins, #qcards) .gpic { display: block; }
:is(#skins, #qcards) .gpic { height: clamp(26px, calc(6vh - 4px), 76px); }
:is(#skins, #qcards) .bars { grid-template-columns: auto 1fr; gap: 3px 10px; }
:is(#skins, #qcards) .bars em .l { display: inline; } :is(#skins, #qcards) .bars em .s { display: none; }
@media (max-width: 1180px) { :is(#skins, #qcards) .bars em .l { display: none; } :is(#skins, #qcards) .bars em .s { display: inline; } }
.qhead .opSub { font-size: var(--t15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* SETTINGS: three tabs, rows of one setting each */
.settings { width: min(var(--box), max(980px, calc(980 * var(--u)))); }
.set { padding-top: max(6px, calc(8 * var(--u))); padding-bottom: max(6px, calc(8 * var(--u))); }
.set .lbl .link { display: inline-flex; align-items: center; margin-top: 2px; padding: 0; color: var(--accent); letter-spacing: .12em; }
.set .lbl .link:hover { color: #fff; }
.set select, .sheet select { min-height: var(--ctl); min-width: max(150px, calc(150 * var(--u))); padding: 0 12px; font: 700 var(--t15) var(--ui); letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--line2); cursor: pointer; }
.set select option, .sheet select option { color: #111; }
.xmini { position: relative; width: var(--ctl); height: var(--ctl); flex: none; background: #2a3038; border: 1px solid var(--line2); }
.xmini #xhair3 { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: none; }
.sheetNote { margin: 0 0 12px; font-size: var(--t15); color: #dde2e7; }

/* SHEETS: over the screen, one at a time */
.sheet { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; padding: max(10px, calc(16 * var(--u))) 16px; background: rgba(5,7,9,.6); }
.sheet.on { display: flex; }
.sheet.on .sheetBox { animation: paneIn .14s var(--ease); }
.sheetBox { position: relative; display: flex; flex-direction: column; width: min(100%, max(640px, calc(640 * var(--u)))); max-height: 100%; background: #12161c; border: 1px solid var(--line2); border-top: 3px solid var(--accent); box-shadow: 0 24px 70px rgba(0,0,0,.55); cursor: default; }
.sheet.wide .sheetBox { width: min(100%, max(1080px, calc(1080 * var(--u)))); }
.sheet.small .sheetBox { width: min(100%, max(440px, calc(440 * var(--u)))); padding-bottom: max(14px, calc(16 * var(--u))); }
.sheetBox > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(8px, calc(10 * var(--u))) max(14px, calc(18 * var(--u))); border-bottom: 1px solid var(--line); flex: none; }
.sheetBox > header h3 { margin: 0; min-width: 0; font: italic 800 max(20px, calc(24 * var(--u)))/1.1 var(--ui); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheetBody { min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: max(10px, calc(14 * var(--u))) max(14px, calc(18 * var(--u))); }
.group { padding: max(8px, calc(10 * var(--u))) 0; }
.group + .group { border-top: 1px solid var(--line); }
.group.sep { margin-top: max(6px, calc(10 * var(--u))); border-top: 2px solid var(--line2); }
.group h4 { margin: 0 0 max(6px, calc(8 * var(--u))); font-size: var(--t13); letter-spacing: .22em; color: #c4cbd3; font-weight: 800; }
.group h4 small { margin-left: 10px; letter-spacing: .1em; color: #ffd27a; }
.group .row { display: flex; flex-wrap: wrap; align-items: center; gap: max(8px, calc(12 * var(--u))); }
.group .sel { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t15); font-weight: 700; letter-spacing: .08em; color: #dde2e7; }
#penNote { font-size: var(--t15); color: #dde2e7; letter-spacing: .02em; }
#roomLock[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
/* the map picker: picture cards */
#maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(180px, calc(190 * var(--u))), 1fr)); gap: max(8px, calc(10 * var(--u))); }
#maps button { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: max(108px, calc(118 * var(--u))); padding: 8px 12px; text-align: left; color: #fff; background: linear-gradient(135deg, #2a323c, #141920); border: 2px solid var(--line); overflow: hidden; cursor: pointer; }
#maps button .mapPic { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .2s var(--ease); }
#maps button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,13,.92), rgba(8,10,13,.2) 70%); }
#maps button > :not(.mapPic) { position: relative; z-index: 1; }
#maps button b { font-size: var(--t18); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#maps button small { font-size: var(--t13); letter-spacing: .12em; color: #dde2e7; }
#maps button em { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: var(--t13); letter-spacing: .12em; font-weight: 800; padding: 2px 6px; background: var(--accent); color: var(--ink); }
#maps button em.vote { background: #5fb4ff; } #maps button em.next { background: #9fd8ff; }
#maps button:hover { border-color: var(--accent); } #maps button:hover .mapPic { transform: scale(1.04); }
#maps button.on { border-color: var(--accent); } #maps button.pick { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
#mapAsk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px max(14px, calc(18 * var(--u))); background: rgba(255,176,32,.12); border-bottom: 1px solid var(--line2); }
#mapAsk span { flex: 1; font-size: var(--t18); font-weight: 700; letter-spacing: .08em; } #mapAsk span b { color: var(--accent); }
#mapAsk .btn.yes, #suggest .btn.yes, #playerMenu .btn.yes { background: var(--accent); color: var(--ink); border-color: var(--accent); }
/* a player's menu */
#playerMenu > header h3 { text-transform: none; font-style: normal; }
#playerMenu .pmOp { padding: 10px max(14px, calc(18 * var(--u))) 0; }
#playerMenu .pmOp .op { font: italic 800 var(--t15)/1 var(--ui); letter-spacing: .1em; color: color-mix(in srgb, var(--op) 75%, #fff); }
#playerMenu p { margin: 0; padding: 10px max(14px, calc(18 * var(--u))) 0; font-size: var(--t15); font-weight: 700; letter-spacing: .08em; color: #fff; }
#playerMenu .acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px max(14px, calc(18 * var(--u))) 0; }
#playerMenu .btn.kick:hover, #playerMenu .btn.yes[data-do="kick"] { border-color: var(--danger); }
#playerMenu .btn.yes[data-do="kick"] { background: #ff6a55; border-color: #ff6a55; }
#playerMenu .done { align-self: center; font-style: normal; font-size: var(--t15); letter-spacing: .1em; color: #c4cbd3; }
/* the keys sheet */
#binds { grid-template-columns: 1fr 1fr; }
/* a guest's map suggestion, for the host: a toast that goes by itself */
#suggest { position: absolute; z-index: 6; right: var(--gx); bottom: calc(var(--foot) + max(10px, calc(12 * var(--u)))); display: flex; flex-direction: column; gap: 8px; width: clamp(280px, 28vw, max(400px, calc(400 * var(--u)))); }
#suggest > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px 10px 16px; background: #12161c; border: 1px solid var(--line2); border-left: 4px solid var(--accent); box-shadow: 0 8px 28px rgba(0,0,0,.5); animation: toast .16s var(--ease); }
#suggest span { flex: 1 1 100%; font-size: var(--t15); letter-spacing: .08em; color: #fff; font-weight: 700; } #suggest span b { color: var(--accent); }
#suggest .btn { padding: 0 14px; }
#menu[data-screen="pause"] #suggest { bottom: max(14px, calc(16 * var(--u))); }

/* small windows (1024 x 600 and the like) */
@media (max-height: 680px) {
  .set { padding-top: 4px; padding-bottom: 4px; }
  .set .lbl small { display: none; }
  #mapCard { min-height: 120px; }
  #maps button { min-height: 96px; }
}
@media (max-width: 1100px) { .roomMain { grid-template-columns: 1fr 240px; } #roomInfo { display: none; } .room[data-role="public"] #roomInfo { display: block; } }
.xhPane { display: grid; grid-template-columns: clamp(200px, 30%, 320px) 1fr; gap: 18px; align-items: start; }
#suggest { display: none; } #menu[data-screen="lobby"] #suggest:not([hidden]), #menu[data-screen="pause"] #suggest:not([hidden]) { display: flex; }
.slotL:has(> #backBtn[hidden]) { width: 0; margin-right: calc(-1 * max(16px, calc(20 * var(--u)))); }
.sheet input[type=number] { width: max(150px, calc(150 * var(--u))); min-height: var(--ctl); padding: 0 12px; font: 700 var(--t15) var(--ui); color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--line2); outline: none; user-select: text; -webkit-user-select: text; }
.sheet input[type=number]:focus { border-color: var(--accent); }
#bindReset { margin-top: 12px; }
/* a private room's lobby: READY / NOT READY, START MATCH, who is ready, the countdown */
#ready { height: max(56px, calc(64 * var(--u))); padding: 0 max(18px, calc(22 * var(--u))); font-size: var(--t18); min-width: max(150px, calc(170 * var(--u))); }
#ready.primary { width: clamp(220px, 26vw, max(340px, calc(340 * var(--u)))); font-size: max(26px, calc(32 * var(--u))); }
#ready[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); background: rgba(95,224,122,.1); }
#readyLine { margin: 0; font-size: var(--t15); font-weight: 800; letter-spacing: .1em; color: #dde2e7; }
#readyLine.count { font: italic 800 max(22px, calc(26 * var(--u)))/1.1 var(--ui); letter-spacing: .06em; color: var(--ok); }
#roomPlayers .rdy { flex: none; padding: 2px 6px; font: normal 800 var(--t13)/1.1 var(--ui); letter-spacing: .1em; color: #c4cbd3; background: rgba(255,255,255,.1); }
#roomPlayers .rdy.on { color: #0d2814; background: var(--ok); }

/* =====================================================================================================================
   TOUCH PLAY (phones, tablets, touch-screen Chromebooks: public/js/touch.js). html.touchmode is set while the player
   plays by touch; html.touchcap wherever there is a touch screen (the TOUCH / MOUSE & KEYBOARD switch in Settings).
   Landscape first; the safe-area insets (notches, rounded corners) are kept clear; touch targets are at least 44 px.
   ===================================================================================================================== */
html { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.touchmode body { touch-action: manipulation; overscroll-behavior: none; }
.touchmode { --ctl: max(44px, calc(40 * var(--u))); --gx: max(4.5vw, calc((100vw - 1760px) / 2), calc(env(safe-area-inset-left) + 12px), calc(env(safe-area-inset-right) + 12px)); }
html:not(.touchmode) .t-only, html:not(.touchcap) .t-cap, .touchmode .m-only { display: none !important; }
.qtouch { display: none; }
.touchmode .qkeys { display: none; } .touchmode .qtouch { display: block; margin-top: 8px; text-align: center; font-size: var(--t15); font-weight: 700; letter-spacing: .1em; color: #e3e7eb; }
.touchmode #menu kbd, .touchmode #keyhint, .touchmode .resumeBig small, .touchmode #qlo kbd { display: none; }
.touchmode #menu button, .touchmode #menu .tog, .touchmode #menu input, .touchmode #menu select { touch-action: manipulation; }
.touchmode .pane, .touchmode .sheetBody, .touchmode #roomPlayers { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* the player's input: a small icon beside each name (room list, scoreboard) */
.inp { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; margin-right: 6px; vertical-align: -5px; color: #c4cbd3; }
.inp svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#roomPlayers .row .inp { margin-right: 0; }
#score td .inp { width: 18px; height: 18px; } #score td .inp svg { width: 17px; height: 17px; }
/* a private room's host: who may join by input */
.chk { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t15); font-weight: 700; letter-spacing: .08em; color: #dde2e7; cursor: pointer; }
.chk .tog:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- the on-screen controls, over the match */
#touch { position: fixed; inset: 0; z-index: 3; touch-action: none; user-select: none; -webkit-user-select: none; font-family: var(--ui); color: #fff; --ta: .55; }
#touch .tb { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 50%;
  background: rgba(10,12,15,calc(var(--ta) * .75)); border: 2px solid rgba(255,255,255,calc(var(--ta) + .15)); opacity: calc(.35 + var(--ta)); box-shadow: 0 2px 10px rgba(0,0,0,.25); touch-action: none; }
#touch .tb svg, #tedit .tb svg { width: 44%; height: 44%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#touch .tb svg .f, #tedit .tb svg .f { fill: #fff; }
#touch .tb span, #tedit .tb span { font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
#touch .tb-fire, #tedit .tb-fire { border-color: rgba(255,176,32,calc(var(--ta) + .3)); }
#touch .tb-fire span { font-size: 12px; }
#touch .tb.on { background: rgba(255,176,32,.55); border-color: var(--accent); }
#touch .tb-aim.lit { background: rgba(255,176,32,.42); border-color: var(--accent); }
#touch.dead .tb:not(.tb-jump):not(.tb-op):not(.tb-pause):not(.tb-score) { display: none; }
#touch.dead .tb-jump span { font-size: 0; } #touch.dead .tb-jump span::after { content: "RESPAWN"; font-size: 10px; }
#touch.ended { pointer-events: none; } #touch.ended .tb:not(.tb-pause):not(.tb-score) { display: none; } #touch.ended .tb { pointer-events: auto; }
.touchmode #end .evote > div { pointer-events: auto; cursor: pointer; min-height: 48px; }
/* the floating stick: where the left thumb lands */
#touch .stick { position: absolute; width: calc(var(--r, 60px) * 2); height: calc(var(--r, 60px) * 2); margin: calc(var(--r, 60px) * -1) 0 0 calc(var(--r, 60px) * -1); border-radius: 50%;
  border: 2px solid rgba(255,255,255,calc(var(--ta) + .1)); background: radial-gradient(circle, rgba(255,255,255,.06), rgba(10,12,15,calc(var(--ta) * .45))); pointer-events: none; }
#touch .stick i { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; margin: -23% 0 0 -23%; border-radius: 50%; background: rgba(255,255,255,calc(var(--ta) + .2)); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
#touch .stickHint { position: absolute; left: calc(env(safe-area-inset-left) + 9vmin); bottom: calc(env(safe-area-inset-bottom) + 7vmin); width: 22vmin; height: 22vmin; border-radius: 50%; border: 2px dashed rgba(255,255,255,.18); pointer-events: none; }
#touch .stickHint i { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; margin: -15% 0 0 -15%; border-radius: 50%; background: rgba(255,255,255,.12); }
#touch:has(.stick:not([hidden])) .stickHint { display: none; }

/* the HUD, by touch: health and ammo at the top corners (beside PAUSE and OPERATOR), the kill feed under the health */
.touchmode #perf { left: 50%; top: auto; bottom: calc(env(safe-area-inset-bottom) + 2px); transform: translateX(-50%); font-size: 10px; opacity: .55; white-space: nowrap; }
.touchmode #hp { left: calc(env(safe-area-inset-left) + 6px + clamp(60px, 15.5vmin, 84px) * .94 + 14px); top: calc(env(safe-area-inset-top) + 8px); bottom: auto; }
.touchmode #hp::before { font-size: 24px; } .touchmode #hp b { font-size: 32px; } .touchmode #hp span { font-size: 14px; }
.touchmode #ammo { right: calc(env(safe-area-inset-right) + 6px + clamp(60px, 15.5vmin, 84px) * .94 + 14px); top: calc(env(safe-area-inset-top) + 6px); bottom: auto; }
.touchmode #ammo .count b { font-size: 32px; } .touchmode #ammo .count span { font-size: 14px; } .touchmode #ammo .wname { font-size: 12px; }
.touchmode #bullets, .touchmode #slots { display: none; }
.touchmode #slide { bottom: calc(env(safe-area-inset-bottom) + 18px); width: 90px; } .touchmode #slide span { display: none; }
.touchmode #feed { right: auto; left: calc(env(safe-area-inset-left) + 12px); top: calc(env(safe-area-inset-top) + 74px); align-items: flex-start; font-size: 13px; }
.touchmode #feed div:nth-child(n+4) { display: none; }
.touchmode #timer { top: calc(env(safe-area-inset-top) + 8px); font-size: 22px; }
.touchmode #teams { top: calc(env(safe-area-inset-top) + 36px); }
.touchmode #score { min-width: min(440px, 92vw); max-height: 70vh; overflow: hidden; top: 12%; }
.touchmode #hud ~ #note, .touchmode body > #note { top: 24%; max-width: 70vw; text-align: center; }
.touchmode #dead { top: 52%; }

/* ---------------------------------------------------------------- the layout editor */
#tedit { position: fixed; inset: 0; z-index: 9; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(20,24,30,.82), rgba(6,8,11,.92)); touch-action: none; font-family: var(--ui); color: #fff; --ta: .55; }
#tedit .tb { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 50%; cursor: grab;
  background: rgba(10,12,15,calc(var(--ta) * .75)); border: 2px solid rgba(255,255,255,calc(var(--ta) + .15)); opacity: calc(.35 + var(--ta)); touch-action: none; }
#tedit .tb.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,176,32,.45); opacity: 1; }
.tePane { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, 44vw); max-height: min(210px, 56vh); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: #12161c; border: 1px solid var(--line2); border-top: 3px solid var(--accent); box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.tePane > b { font: italic 800 18px/1 var(--ui); letter-spacing: .08em; } .tePane > small { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #c4cbd3; }
.teRow { display: flex; align-items: center; gap: 8px; min-width: 0; } .teRow > span { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teRow .seg button { min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 15px; }
.teRow input[type=range] { -webkit-appearance: none; appearance: none; flex: 2; min-width: 60px; height: 44px; margin: 0; background: none; cursor: pointer; }
.teRow input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--k, 50%) 100% no-repeat, rgba(255,255,255,.16); }
.teRow input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: #fff; border: 3px solid var(--accent); border-radius: 50%; }
.teRow output { min-width: 44px; text-align: right; font-size: 15px; font-weight: 700; }
.teRow .btn { flex: 1; min-height: 44px; font-size: 15px; } .teRow .btn.yes { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------------------------------------------------------------- held upright: turn the phone */
#rotate { display: none; }
@media (orientation: portrait) {
  .touchmode #rotate { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: #0c0e11; font-family: var(--ui); color: #fff; }
  .touchmode #rotate svg { width: 96px; height: 96px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: turnMe 2.4s var(--ease) infinite; }
  .touchmode #rotate b { font: italic 800 26px/1.1 var(--ui); letter-spacing: .06em; } .touchmode #rotate span { font-size: 15px; font-weight: 700; letter-spacing: .14em; color: #c4cbd3; }
}
@keyframes turnMe { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

/* ---------------------------------------------------------------- the menus on a phone (landscape, 360 to 430 px tall) */
.touchmode #menu.typing .homeCol { top: calc(env(safe-area-inset-top) + 6px); transform: none; }
.touchmode #menu.typing .plate, .touchmode #menu.typing #opStage { visibility: hidden !important; }
@media (max-height: 500px) {
  .touchmode { --top: 46px; --foot: 4px; }
  .touchmode #menufoot { display: none; }
  .touchmode .settings { top: 0; bottom: 4px; }
  .touchmode #stabs button { min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .touchmode .panes { margin-top: 4px; }
  .touchmode .set { padding-top: 2px; padding-bottom: 2px; min-height: 48px; }
  .touchmode .room { top: 2px; bottom: 6px; gap: 8px; }
}
#touch .tb-op span, #tedit .tb-op span { font-size: 8.5px; letter-spacing: .04em; }
.touchmode :is(#skins, #qcards) .pick { display: none; }   /* (no hover by touch: a tap picks) */
@media (max-height: 500px) {
  .touchmode :is(#skins, #qcards) small { display: none; }
  .touchmode :is(#skins, #qcards) .pic { height: clamp(56px, calc(22vh - 26px), 90px); }
  .touchmode :is(#skins, #qcards) .bars { gap: 1px 8px; padding-top: 4px; }
  .touchmode .qbox { padding: 8px 10px; } .touchmode .qhead { margin-bottom: 6px; } .touchmode .qtouch { margin-top: 4px; }
}
@media (max-width: 960px) {
  .roomMain { grid-template-columns: minmax(0, 1fr) clamp(220px, 35vw, 300px); }
  #roomPlayers .row { gap: 6px; padding: 0 8px 0 10px; } #roomPlayers .row .rdy { padding: 2px 4px; }
  #deploy, #ready.primary { width: clamp(160px, 24vw, 340px); }
  #roomSet, #ready { padding: 0 12px; min-width: 0; }
  #mapChange { min-width: 0; }
}
@media (max-height: 380px) {
  .touchmode :is(#skins, #qcards) .gpic { display: none; }
  .touchmode :is(#skins, #qcards) .pic { height: 52px; }
}

/* ---------------------------------------------------------------- touch, version 2 (owner's phone tests, 2026-11-26) */
/* no page gesture by touch: no double-tap zoom, no pinch, no bounce, no long-press callout or text selection. The lists
   that scroll (a settings tab, a sheet's body, the players) keep a vertical pan; a tap still works everywhere. */
.touchmode, .touchmode body, .touchmode #menu, .touchmode #game, .touchmode #hud, .touchmode #qlo, .touchmode #rotate { touch-action: none; }
.touchmode .pane, .touchmode .sheetBody, .touchmode #roomPlayers { touch-action: pan-y; }
.touchmode input[type=text], .touchmode input:not([type]), .touchmode input[type=number] { touch-action: manipulation; -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.touchmode *:not(input):not(textarea) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.touchmode body { position: fixed; inset: 0; overscroll-behavior: none; }
/* the buttons: small, see-through, icons only (the words show in the layout editor) */
#touch .tb span { display: none; }
#touch .tb { background: rgba(255,255,255,calc(var(--ta) * .12)); border: 1.5px solid rgba(255,255,255,calc(var(--ta) * .75)); opacity: 1; box-shadow: none; }
#touch .tb svg { width: 46%; height: 46%; opacity: calc(.45 + var(--ta) * .6); stroke-width: 1.8; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
#touch .tb-fire, #touch .tb-lfire, #touch .tb-aimfire { border-color: rgba(255,176,32,calc(.35 + var(--ta) * .65)); }
#touch .tb-aimfire { border-width: 2px; } #touch .tb-aimfire svg { width: 56%; height: 56%; }
#touch .tb.on, #touch .tb-aim.lit { background: rgba(255,176,32,.42); border-color: var(--accent); }
#touch .tb-op, #touch .tb-score, #touch .tb-pause { background: rgba(10,12,15,calc(var(--ta) * .35)); }
#touch.dead .tb-jump span, #touch.dead .tb-jump span::after { display: none; }
#touch.dead .tb:not(.tb-jump):not(.tb-op):not(.tb-pause):not(.tb-score) { display: none; }
/* the weapon slots: a pill low in the middle, the weapon in hand lit; a tap switches */
.tb.pill { border-radius: 23px !important; flex-direction: row !important; gap: 0 !important; overflow: hidden; }
.tb.pill b { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; font: 800 12px/1 var(--ui); letter-spacing: .1em; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.tb.pill b + b { border-left: 1px solid rgba(255,255,255,.3); }
.tb.pill b.on { color: #fff; background: rgba(255,176,32,.35); }
#tedit .tb.pill b:empty::before { content: "SLOT"; opacity: .6; }
/* the HUD by touch: health top left, ammo top right, the kill feed under the top row in the middle */
.touchmode #hp { left: calc(env(safe-area-inset-left) + 14px); }
.touchmode #ammo { right: calc(env(safe-area-inset-right) + 14px); }
.touchmode #feed { left: 50%; right: auto; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 58px); align-items: center; font-size: 12px; white-space: nowrap; }
.touchmode #feed div { padding: 2px 8px; }
/* the stick's resting place: lower left */
#touch .stickHint { left: calc(env(safe-area-inset-left) + 7vmin); bottom: calc(env(safe-area-inset-bottom) + 6vmin); width: 26vmin; height: 26vmin; border-color: rgba(255,255,255,.14); }
/* the layout editor: a compact panel in the middle, the words under every button */
.tePane { width: min(400px, 46vw); max-height: min(222px, 62vh); gap: 4px; padding: 8px 10px; }
.teHead b { flex: 1; font: italic 800 17px/1 var(--ui); letter-spacing: .08em; } .teHead .btn { flex: none; min-width: 72px; }
.teOpt { gap: 14px; flex-wrap: wrap; } .teOpt .chk { font-size: 13px; gap: 6px; } .teOpt .tog { height: 44px; } .teOpt .tog i { top: calc(50% - 12px); bottom: auto; height: 24px; }
#tedit .tb span { font-size: 9.5px; letter-spacing: .06em; white-space: nowrap; }
#tedit .tb.pill span { position: absolute; bottom: -14px; left: 0; right: 0; text-align: center; }
/* the LAYOUT sheet: the built-in layouts as picture cards */
.lays { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lays button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 44px; padding: 8px 10px; text-align: left; color: #fff; background: var(--panel); border: 2px solid var(--line); cursor: pointer; font-family: var(--ui); }
.lays button.on { border-color: var(--accent); background: rgba(255,176,32,.1); }
.lays b { font-size: var(--t15); letter-spacing: .08em; } .lays small { font-size: var(--t13); color: #c4cbd3; line-height: 1.3; }
.lpic { width: 100%; height: auto; max-height: 86px; }
.lpic .scr { fill: #1b2129; stroke: rgba(255,255,255,.25); } .lpic .stk { fill: none; stroke: rgba(255,255,255,.35); stroke-dasharray: 2 2; } .lpic .xh { stroke: #fff; stroke-width: 1.2; }
.lpic .btn { fill: rgba(255,255,255,.18); stroke: rgba(255,255,255,.7); } .lpic .fire { fill: rgba(255,176,32,.25); stroke: #ffb020; } .lpic .sm { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.45); }
.layEdit { display: flex; align-items: center; gap: 12px; margin-top: 10px; } .layEdit small { font-size: var(--t13); color: #c4cbd3; line-height: 1.3; }
#layoutName { color: var(--accent); }
/* iPhone Safari: how to play full screen (once) */
#a2hs { position: fixed; z-index: 7; top: calc(env(safe-area-inset-top) + 4px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 0 0 0 12px; max-width: calc(100vw - 2 * var(--gx) - 120px); background: rgba(12,15,19,.92); border: 1px solid var(--line2); border-left: 3px solid var(--accent); font: 700 13px/1.2 var(--ui); letter-spacing: .06em; color: #e3e7eb; }
#a2hs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #a2hs b { color: var(--accent); }
#a2hs svg { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#a2hs .btn { min-width: 52px; min-height: 44px; }
#menu[data-screen]:not([data-screen="home"]) ~ #a2hs, #menu[hidden] ~ #a2hs { display: none; }
.touchmode #slide { bottom: calc(env(safe-area-inset-bottom) + 64px); }   /* (above the weapon slots) */

/* who is where (main.js lobbyDraw) */
#lobbyLine { margin: 10px 0 0; font-size: var(--t15, 15px); font-weight: 800; letter-spacing: .1em; color: #dde2e7; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
#inviteBar { position: fixed; z-index: 6; top: 64px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 18px; background: rgba(12,15,19,.92); border-left: 4px solid var(--accent, #ffb020); font-size: var(--t15, 15px); letter-spacing: .1em; color: #fff; pointer-events: auto; }
#inviteBar[hidden], #waitNote[hidden], #lobbyLine[hidden] { display: none; }
#inviteBar b { font-weight: 800; }
#inviteBar button { min-height: 40px; padding: 0 14px; font: inherit; font-weight: 800; letter-spacing: .1em; color: #111; background: var(--accent, #ffb020); border: 0; cursor: pointer; }
#inviteBar kbd { margin-left: 6px; padding: 1px 7px; border: 2px solid rgba(0,0,0,.5); border-radius: 3px; font: inherit; }
#waitNote { position: fixed; z-index: 4; top: 64px; left: 50%; transform: translateX(-50%); padding: 6px 14px; background: rgba(12,15,19,.75); font-size: var(--t15, 15px); font-weight: 700; letter-spacing: .1em; color: #dde2e7; pointer-events: none; white-space: nowrap; }
@media (max-width: 960px) { #waitNote { white-space: normal; width: max-content; max-width: 92vw; text-align: center; } #inviteBar { max-width: 96vw; } }
