@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rubik:wght@500;700;900&display=swap');

:root {
  --p1: #4cc9f0;
  --p2: #ff4d6d;
  --gold: #ffd23f;
  --panel: rgba(14, 20, 34, 0.86);
  --edge: rgba(255, 255, 255, 0.14);
  --pix: 'Press Start 2P', 'Courier New', monospace;
  --ui: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --uiz: 1;   /* menu scale, set from the window size in ui.js */
  --hudz: 1;  /* HUD scale */
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1020; color: #fff; font-family: var(--ui); user-select: none; }
#c { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.hidden { display: none !important; }
b { font-weight: 900; }

/* ---------------- HUD ---------------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
#scoreboard { position: absolute; top: 16px; left: 16px; background: linear-gradient(180deg, #13213f, #0c1528); border: 3px solid #000; box-shadow: 0 0 0 2px #2c3e66, 6px 6px 0 rgba(0,0,0,0.35); font-weight: 700; }
#scoreboard table { border-collapse: collapse; }
#scoreboard td { padding: 6px 9px; font-size: 18px; text-align: center; border-top: 2px solid rgba(255,255,255,0.06); }
#scoreboard td.nm { text-align: left; min-width: 150px; font-weight: 900; letter-spacing: 0.5px; }
#scoreboard td.srv { width: 20px; padding: 0 0 0 8px; }
#scoreboard td.set { color: rgba(255,255,255,0.55); font-size: 16px; }
#scoreboard td.set.won { color: #fff; }
#scoreboard td.set sup { font-size: 10px; }
#scoreboard td.games { background: rgba(255,255,255,0.08); min-width: 34px; }
#scoreboard td.pts { background: var(--gold); color: #111; min-width: 48px; font-weight: 900; font-family: var(--pix); font-size: 14px; }
#scoreboard .dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 2px solid #000; }
#scoreboard .sball { display: inline-block; width: 10px; height: 10px; background: #d4f53c; border: 2px solid #000; animation: pulse 1s infinite; }
#scoreboard .train { padding: 8px 12px 10px; min-width: 190px; }
#scoreboard .tdrill { font-family: var(--pix); font-size: 10px; color: var(--gold); letter-spacing: 1px; margin-bottom: 6px; }
#scoreboard .trow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; padding: 2px 0; }
#scoreboard .trow span { color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 1px; }
#scoreboard .trow b { font-family: var(--pix); font-size: 14px; }
#scoreboard .trow i { font-style: normal; color: #ff8a00; font-size: 11px; }
#scoreboard .tb { background: #ff4d6d; text-align: center; font-family: var(--pix); font-size: 9px; padding: 4px; letter-spacing: 2px; }
#pressure { position: absolute; top: 112px; left: 16px; background: #ff4d6d; color: #fff; font-family: var(--pix); font-size: 10px; padding: 7px 10px; border: 3px solid #000; opacity: 0; transform: translateX(-20px); transition: all .25s; }
#pressure.on { opacity: 1; transform: none; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { filter: brightness(1.35); } }

#serveSpeed { position: absolute; top: 16px; right: 16px; background: var(--panel); border: 3px solid #000; box-shadow: 0 0 0 2px #2c3e66; padding: 10px 14px; text-align: right; opacity: 0; transform: translateY(-10px); transition: all .25s; }
#serveSpeed.on { opacity: 1; transform: none; }
#serveSpeed small { display: block; font-size: 10px; letter-spacing: 2px; opacity: 0.7; font-family: var(--pix); }
#serveSpeed b { font-family: var(--pix); font-size: 26px; color: var(--gold); }

#banner { position: absolute; top: 18%; left: 0; right: 0; text-align: center; opacity: 0; transform: scale(0.85); transition: opacity .2s, transform .25s cubic-bezier(.2,1.6,.4,1); }
#banner.on { opacity: 1; transform: scale(1); }
#banner .big { display: inline-block; font-family: var(--pix); font-size: clamp(22px, 4.2vw, 54px); color: #fff; padding: 16px 26px; background: rgba(10, 14, 28, 0.78); border: 4px solid #000; box-shadow: 0 0 0 3px var(--gold), 8px 8px 0 rgba(0,0,0,0.4); text-shadow: 4px 4px 0 #000; }
#banner .big:empty { display: none; }
#banner .small { margin-top: 14px; font-size: clamp(14px, 1.6vw, 20px); font-weight: 900; text-shadow: 2px 2px 0 #000; }

#tags { position: absolute; inset: 0; }
.ptag { position: absolute; left: 0; top: 0; text-align: center; min-width: 120px; }
.ptag .pname { display: inline-block; font-size: 12px; font-weight: 900; padding: 3px 8px; background: rgba(0,0,0,0.65); border-bottom: 3px solid var(--pc); white-space: nowrap; }
.meter { width: 90px; height: 9px; margin: 4px auto 0; background: rgba(0,0,0,0.6); border: 2px solid #000; position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; }
.meter.charge { display: none; height: 12px; }
.meter.charge i { background: linear-gradient(90deg, #6cff6c, #ffe14d, #ff5f3b); }
.meter.charge.full { box-shadow: 0 0 8px #ff8a00; }
.meter.super { width: 60px; height: 6px; }
.meter.super i { background: #ff8a00; }
.meter.super.full i { background: linear-gradient(90deg, #ff3d00, #ffd000, #ff3d00); animation: pulse .4s infinite; }
.meter.toss { display: none; width: 130px; height: 16px; overflow: visible; }
.meter.toss i { width: 4px; background: #fff; box-shadow: 0 0 6px #fff; top: -3px; bottom: -3px; transform: translateX(-2px); }
.meter.toss .sweet { position: absolute; top: 0; bottom: 0; width: 22px; transform: translateX(-11px); background: #3bd16f; }
.superReady { display: none; font-family: var(--pix); font-size: 8px; color: #ffb000; margin-top: 4px; text-shadow: 1px 1px 0 #000; animation: pulse .5s infinite; white-space: nowrap; }

#popups { position: absolute; inset: 0; }
.popup { position: absolute; transform: translate(-50%, -50%); font-family: var(--pix); font-size: 16px; color: #fff; text-shadow: 3px 3px 0 #000; animation: popup 1.1s ease-out forwards; white-space: nowrap; }
@keyframes popup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 30% { transform: translate(-50%, -70%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -160%); } }

#hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 3px solid #000; box-shadow: 0 0 0 2px #2c3e66; padding: 10px 16px; font-size: 15px; font-weight: 700; opacity: 0; transition: opacity .2s; max-width: 92vw; text-align: center; }
#hint.on { opacity: 1; }
#hint b { color: var(--gold); }

#hud.replaying #scoreboard, #hud.replaying #pressure, #hud.replaying #serveSpeed, #hud.replaying #banner, #hud.replaying #hint, #hud.replaying #popups { display: none; }
#replay .rec { position: absolute; top: 76px; right: 24px; font-family: var(--pix); font-size: 16px; text-shadow: 3px 3px 0 #000; z-index: 2; }
#replay .dotrec { display: inline-block; width: 14px; height: 14px; background: #ff3b3b; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#replay .bars { position: absolute; left: 0; right: 0; height: 7vh; background: #000; }
#replay .bars.top { top: 0; } #replay .bars.bottom { bottom: 0; }
#replaySkip { position: absolute; bottom: 2vh; left: 0; right: 0; text-align: center; font-size: 14px; color: rgba(255,255,255,0.8); }
#replaySkip b { color: var(--gold); }
#hawkeye { position: absolute; bottom: 14vh; left: 50%; transform: translateX(-50%) scale(.8); opacity: 0; transition: all .25s cubic-bezier(.2,1.6,.4,1); text-align: center; background: rgba(8,12,24,0.85); border: 4px solid #000; box-shadow: 0 0 0 3px #fff; padding: 14px 28px; }
#hawkeye.on { opacity: 1; transform: translateX(-50%) scale(1); }
#hawkeye b { display: block; font-family: var(--pix); font-size: 44px; text-shadow: 4px 4px 0 #000; }
#hawkeye b.out { color: #ff4b4b; } #hawkeye b.in { color: #4bff7a; }
#hawkeye span { display: block; margin-top: 8px; font-weight: 900; font-size: 18px; }

/* ---------------- Menus ---------------- */
#menu { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(ellipse at center, rgba(5,10,25,0.25), rgba(5,10,25,0.7)); }
.panel { background: var(--panel); border: 4px solid #000; box-shadow: 0 0 0 3px #2c3e66, 10px 10px 0 rgba(0,0,0,0.4); padding: 26px 30px; max-width: 96vw; max-height: 94vh; overflow: auto; text-align: center; }
.panel h2 { font-family: var(--pix); font-size: 20px; margin: 0 0 18px; color: var(--gold); text-shadow: 3px 3px 0 #000; }
.logo { font-family: var(--pix); font-size: clamp(30px, 6vw, 64px); margin: 4px 0 10px; line-height: 1.1; text-shadow: 5px 5px 0 #000; }
.logo span { display: inline-block; color: #d4f53c; }
.logo span.b { color: #fff; margin-left: 12px; }
.tagline { font-weight: 700; opacity: 0.8; margin-bottom: 20px; }
.list { display: flex; flex-direction: column; gap: 8px; margin: 10px auto; min-width: min(420px, 86vw); }
.list.row { flex-direction: row; justify-content: center; flex-wrap: wrap; }
.list.scroll { max-height: 60vh; overflow-y: auto; overflow-x: hidden; padding: 4px 14px 8px 4px; } /* room for the focused item's slide + shadow: never scroll sideways */
.item { padding: 11px 16px; background: rgba(255,255,255,0.06); border: 3px solid rgba(0,0,0,0.6); font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .08s, background .08s; text-align: left; }
.item.big { font-size: 19px; padding: 14px 18px; }
.item.focus { background: var(--gold); color: #111; transform: translateX(6px); border-color: #000; box-shadow: 4px 4px 0 #000; }
.list.row .item.focus { transform: translateY(-3px); }
.item.start { text-align: center; background: #2dc653; color: #fff; margin-top: 6px; }
.item.start.focus { background: #6dff8f; color: #111; }
.item.opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.item .ov { display: flex; align-items: center; gap: 10px; }
.item .ov b { min-width: 170px; text-align: center; }
.arrow { opacity: 0.5; padding: 0 4px; }
.item.focus .arrow { opacity: 1; }
.foot { margin-top: 14px; font-weight: 700; font-size: 14px; }
.dim { opacity: 0.6; font-size: 13px; }
.small { font-size: 11px; }
.vs { font-family: var(--pix); font-size: 13px; margin-bottom: 10px; }
.vs i { color: #aaa; font-style: normal; margin: 0 8px; }

.chars .charwrap { display: flex; gap: 18px; align-items: stretch; justify-content: center; }
.grid { display: grid; grid-template-columns: repeat(4, 112px); gap: 10px; }
.card { position: relative; background: rgba(255,255,255,0.06); border: 3px solid #000; padding: 8px 4px; cursor: pointer; }
.card canvas { width: 64px; height: 64px; image-rendering: pixelated; display: block; margin: 0 auto 4px; }
.card .cn { font-weight: 900; font-size: 14px; }
.card .ct { font-size: 11px; opacity: 0.7; }
.card.sel0 { box-shadow: 0 0 0 3px var(--p1); }
.card.sel1 { box-shadow: 0 0 0 3px var(--p2); }
.card.sel0.sel1 { box-shadow: 0 0 0 3px var(--p1), 0 0 0 6px var(--p2); }
.card .cur { position: absolute; top: -10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.card .cur span { font-family: var(--pix); font-size: 8px; padding: 3px 4px; color: #000; border: 2px solid #000; }
.slot { width: 210px; background: rgba(0,0,0,0.35); border: 3px solid rgba(255,255,255,0.2); padding: 12px; text-align: left; }
.slot .sh { font-family: var(--pix); font-size: 12px; margin-bottom: 8px; }
.slot canvas { width: 96px; height: 96px; image-rendering: pixelated; display: block; margin: 0 auto; }
.slot .sn { font-weight: 900; font-size: 20px; text-align: center; }
.slot .st { text-align: center; opacity: 0.7; font-size: 13px; margin-bottom: 8px; }
.slot .join { margin-top: 40px; text-align: center; font-weight: 700; line-height: 1.6; animation: pulse 1.2s infinite; }
.slot .machineArt { font-size: 54px; text-align: center; margin: 14px 0 10px; }
.slot .dev { margin-top: 8px; font-size: 11px; opacity: 0.7; text-align: center; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin: 3px 0; }
.stat span { width: 54px; }
.stat .bar { flex: 1; height: 9px; background: rgba(255,255,255,0.1); border: 2px solid #000; }
.stat .bar i { display: block; height: 100%; background: linear-gradient(90deg, #d4f53c, #ffd23f); }

.howto .cols { display: flex; gap: 24px; text-align: left; flex-wrap: wrap; justify-content: center; }
.ctl { border-collapse: collapse; font-size: 14px; }
.ctl th, .ctl td { padding: 6px 10px; border-bottom: 1px solid var(--edge); }
.ctl th { color: var(--gold); font-size: 12px; }
.ctl td:not(:first-child) { text-align: center; font-weight: 900; }
.tips { max-width: 440px; font-size: 14px; line-height: 1.5; }
.tips p { margin: 0 0 10px; }

.over .trophy { font-size: 56px; }
.over .final { font-family: var(--pix); font-size: 18px; margin-bottom: 14px; display: flex; gap: 14px; justify-content: center; }
.over .final sup { font-size: 9px; }
.stats { margin: 0 auto 10px; border-collapse: collapse; min-width: 380px; }
.stats td, .stats th { padding: 5px 14px; border-bottom: 1px solid var(--edge); }
.stats td { font-weight: 900; font-size: 16px; text-align: center; }
.stats th { font-size: 13px; opacity: 0.75; font-weight: 700; }
.score-mini { margin-top: 10px; opacity: 0.6; font-weight: 700; }

#toast { position: fixed; bottom: 20px; right: 20px; background: var(--panel); border: 3px solid #000; box-shadow: 0 0 0 2px #2c3e66; padding: 10px 16px; font-weight: 700; opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: none; }
#toast.on { opacity: 1; transform: none; }
#fsHint { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); padding: 6px 12px; font-size: 13px; font-weight: 700; transition: opacity .5s; pointer-events: none; border: 2px solid #000; }
#fsHint.hide { opacity: 0; }

@media (max-width: 900px) {
  .chars .charwrap { flex-direction: column; align-items: center; }
  .grid { grid-template-columns: repeat(4, 76px); }
  .card canvas { width: 48px; height: 48px; }
  .slot { width: 100%; max-width: 360px; }
  #scoreboard td { font-size: 14px; padding: 4px 6px; }
  #scoreboard td.nm { min-width: 100px; }
}

/* fullscreen + controller: no mouse pointer */
body.nocursor, body.nocursor * { cursor: none !important; }

/* ---------------- 2P split screen ---------------- */
#splitBar { display: none; position: fixed; top: 0; bottom: 0; left: 50%; width: 6px; transform: translateX(-50%); background: #000; box-shadow: 0 0 0 2px rgba(255,255,255,0.18); pointer-events: none; }
body.split #splitBar { display: block; }
#hud.splitui #scoreboard { left: 50%; transform: translateX(-50%); z-index: 1; }
#hud.splitui #pressure { left: 50%; transform: translate(-50%, -10px); z-index: 1; }
#hud.splitui #pressure.on { transform: translate(-50%, 0); }
#hud.splitui #serveSpeed.p0 { right: auto; left: 16px; text-align: left; }
#hud.splitui #hint { max-width: 46vw; font-size: 14px; }
#hud.splitui #hint.h0 { left: 25%; }
#hud.splitui #hint.h1 { left: 75%; }
#hud.splitui #banner .big { font-size: clamp(18px, 3.4vw, 46px); }
#hud.splitui #replay .rec { top: 24px; }
body.split #fsHint { top: auto; bottom: 12px; }

/* ---------- doubles team picker ---------- */
.teamcol { display: flex; flex-direction: column; gap: 10px; }
.teamcol .th { font-family: var(--pix); font-size: 12px; text-align: center; }
.slot.small { padding: 8px 10px; flex: 1; min-height: 0; }
.slot.small .sh { margin-bottom: 6px; }
.slot.small .srow { display: flex; align-items: center; gap: 10px; }
.slot.small canvas { width: 64px; height: 64px; margin: 0; flex: none; }
.slot.small .sn, .slot.small .st { text-align: left; margin: 0; }
.slot.small .sn { font-size: 17px; }
.slot.small .st { font-size: 12px; }
.slot.small .cpuQ { width: 64px; height: 64px; flex: none; display: grid; place-items: center; font-family: var(--pix); font-size: 22px; opacity: 0.4; border: 2px dashed rgba(255,255,255,0.3); }
.slot.small .join { margin: 18px 0; }
.slot.small .dev { text-align: left; }
.vs small { font-size: 9px; opacity: 0.7; }
#scoreboard td.nm u { text-decoration: none; border-bottom: 2px solid var(--gold); }
@media (max-width: 900px) {
  .dbl .teamcol { width: 100%; max-width: 360px; }
}

/* CPU difficulty on the character screens */
.slot .lvl { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font-weight: 900; font-size: 13px; }
.slot .lvl .lt { opacity: 0.65; font-weight: 700; font-size: 11px; margin-right: 2px; }
.slot .lvl b { min-width: 74px; text-align: center; color: var(--gold); }
.slot .lvl .arrow { cursor: pointer; opacity: 0.8; padding: 0 2px; }
.slot .lvl .arrow:hover { opacity: 1; }
/* doubles: per-card stats toggle */
.slot.small { cursor: pointer; }
.slot.small .sh { display: flex; justify-content: space-between; align-items: baseline; }
.slot.small .stog { font-family: inherit; font-size: 10px; opacity: 0.55; font-weight: 700; }
.slot.small.statsview .sn { font-size: 15px; margin-bottom: 3px; }
.slot.small.statsview .sn .st { font-size: 11px; display: inline; }
.slot.small .stat { font-size: 11px; margin: 2px 0; }
.slot.small .stat .bar { height: 7px; }
.slot.small .lvl { justify-content: flex-start; margin-top: 6px; }

/* ---------- TV-size scaling ---------- */
/* menus: the whole panel scales (limits divided back so it still fits the window) */
.panel { zoom: var(--uiz); max-width: calc(96vw / var(--uiz)); max-height: calc(94vh / var(--uiz)); }
.list.scroll { max-height: calc(60vh / var(--uiz)); }
/* HUD: scale the contents, never the positioned boxes themselves (their placement stays exact) */
#scoreboard > * { zoom: var(--hudz); }
#pressure { top: calc(16px + 96px * var(--hudz)); font-size: calc(10px * var(--hudz)); padding: calc(7px * var(--hudz)) calc(10px * var(--hudz)); }
#serveSpeed { zoom: var(--hudz); }
#hint { bottom: calc(22px * var(--hudz)); font-size: calc(15px * var(--hudz)); padding: calc(10px * var(--hudz)) calc(16px * var(--hudz)); }
#hud.splitui #hint { font-size: calc(14px * var(--hudz)); }
.ptag > * { zoom: var(--hudz); }
.popup { font-size: calc(16px * var(--hudz)); }
#replaySkip { font-size: calc(14px * var(--hudz)); }
#replay .rec { font-size: calc(16px * var(--hudz)); }

/* button chips under the character select */
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 16px; }
.keys span { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.07); border: 2px solid rgba(0,0,0,0.5); padding: 5px 10px 5px 6px; font-weight: 700; font-size: 14px; }
.keys b { display: inline-block; min-width: 26px; padding: 2px 6px; background: #000; color: var(--gold); text-align: center; font-size: 13px; }
.keys + .foot { margin-top: 8px; }
/* doubles cards keep one size whatever they show (portrait, stats, join prompt) */
.slot.small { height: 218px; flex: none; display: flex; flex-direction: column; overflow: hidden; }
.slot.small .dev { margin-top: auto; padding-top: 6px; line-height: 1.35; }
.slot.small .dev b { color: var(--gold); }
.chars .grid { align-content: center; }

/* ---------------- online ---------------- */
.center { text-align: center; }
.panel.online { min-width: 620px; }
.panel.online .list { max-height: calc(62vh / var(--uiz)); overflow-y: auto; overflow-x: hidden; padding: 4px 14px 8px 4px; } /* room for the focused item's slide + shadow, so it never scrolls sideways */
.netline { font-weight: 900; font-size: 15px; margin: -6px 0 10px; }
.netline .ok { color: #2dc653; } .netline .wait { color: var(--gold); } .netline .bad { color: #ff4d6d; }
.tin { font: 700 16px var(--ui); color: #fff; background: rgba(0,0,0,0.45); border: 3px solid #000; padding: 6px 10px; width: 220px; outline: none; user-select: text; }
.tin:focus { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.tin.code { width: 120px; text-transform: uppercase; letter-spacing: 6px; font-family: var(--pix); font-size: 14px; text-align: center; }
.tin.wide { width: 300px; }
.item.focus .tin { color: #fff; }
.item.room { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.item.room .rc { font-family: var(--pix); font-size: 11px; opacity: 0.85; align-self: center; }
.item.locked { opacity: 0.55; }
.warnline { color: var(--gold); max-width: 620px; margin-left: auto; margin-right: auto; }
.item.off { filter: grayscale(0.8); opacity: 0.6; }
.lobby h2 { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
.lobby .rcode { background: #000; color: var(--gold); padding: 4px 10px; letter-spacing: 6px; border: 2px solid var(--gold); }
.lobby .rmode { font-family: var(--ui); font-size: 15px; color: #fff; text-shadow: none; opacity: 0.8; }
.lobby .peers { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 10px; }
.lobby .peers span { background: rgba(255,255,255,0.08); border: 2px solid rgba(0,0,0,0.6); padding: 3px 9px; font-size: 13px; font-weight: 700; }
.lobby .peers span.me { border-color: rgba(255,255,255,0.5); }
.lobby .peers i { font-style: normal; opacity: 0.6; margin-left: 6px; font-size: 11px; }
.lobby .lbinfo { margin-top: 10px; font-size: 13px; opacity: 0.85; }
.lobby .lbinfo b { color: var(--gold); }
.lobby .slot.small { height: 188px; }
.lobby h2 { margin-bottom: 12px; }
.lobby .slot.small .stog { white-space: nowrap; flex: none; }
.lobby .slot.small .sh .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-right: 8px; }
.lobby .lbbottom { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.lobby .lbstatus { font-weight: 900; color: var(--gold); }
.lobby .list.row { margin: 0; gap: 8px; }
.lobby .list.row .item { padding: 8px 14px; font-size: 15px; }
.lobby .list.row .item { text-align: center; }
.lobby .list.row .item:hover { background: var(--gold); color: #111; }
.slot .carr { font-size: 12px; margin-left: 4px; }
.slot .carr .arrow { cursor: pointer; padding: 0 3px; opacity: 0.8; }
#netStatus { position: fixed; bottom: 12px; left: 12px; background: rgba(0,0,0,0.6); border: 2px solid #000; padding: 4px 10px; font-size: calc(12px * var(--hudz)); font-weight: 700; opacity: 0; transition: opacity .3s; pointer-events: none; }
#netStatus.on { opacity: 0.8; }
#netStatus.warn { opacity: 1; color: #111; background: var(--gold); font-size: calc(15px * var(--hudz)); left: 50%; bottom: auto; top: 40%; transform: translateX(-50%); padding: 10px 18px; border-width: 3px; }
