:root {
  --bg: #0b1410; --panel: #12201a; --panel2: #182b22; --line: #2a4436;
  --text: #eef5f0; --muted: #8fa89a; --accent: #ffd23f; --accent2: #3ee08f; --ammo: #ffb13b; --blood: #ff5a5f;
  --danger: #ff5a5f;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-user-select: none; user-select: none; touch-action: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.h { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }

/* ------------------------------------------------------------ screens */
.screen { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  background: radial-gradient(120% 60% at 50% 0%, #1e4a30 0%, var(--bg) 60%); padding: var(--sat) var(--sar) var(--sab) var(--sal); }
.screen.overlay { background: rgba(6, 11, 8, .86); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.screen .wrap { padding: 22px 16px 28px; max-width: 540px; margin: 0 auto; }
.logo { text-align: center; margin: 6px 0 14px; }
.logo .t1, .logo .t2 { font-size: 40px; line-height: .9; }
.logo .t2 { color: var(--accent); }
.logo .sub { color: var(--muted); font-size: 11px; letter-spacing: .3em; margin-top: 6px; font-weight: 700; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.card p, .card li { font-size: 13px; line-height: 1.45; color: #cfdcd4; }
.card ul { padding-left: 18px; display: grid; gap: 5px; }
.card b { color: var(--text); }
.lbl { font-size: 11px; font-weight: 900; color: var(--muted); letter-spacing: .14em; margin-bottom: 8px; text-transform: uppercase; }
.lbl.mt { margin-top: 12px; }
.inp { width: 100%; min-width: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-weight: 800; font-size: 15px; text-transform: uppercase; user-select: text; -webkit-user-select: text; outline: none; margin-bottom: 6px; }
.inp:focus { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel2); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip.sel { background: var(--accent); color: #1a1400; border-color: var(--accent); }
.player { display: flex; gap: 12px; align-items: center; }
.pinfo { flex: 1; min-width: 0; }
.note { font-size: 11px; color: var(--muted); }
.hint { font-size: 11px; color: var(--muted); margin-top: 9px; line-height: 1.35; }
.hint b { color: var(--accent); }
.go { display: block; width: 100%; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #ffe066, #f0b400);
  color: #241900; font-size: 20px; box-shadow: 0 8px 20px #f0b40044; text-align: center; }
.go:active { transform: translateY(1px); }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; }
.set { background: var(--panel2); border-radius: 10px; padding: 8px 9px; display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; }
.set b { color: var(--accent); white-space: nowrap; }
.record { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 12px; letter-spacing: .04em; }
.foot { display: flex; justify-content: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.link { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; gap: 10px; }
.head .t { font-size: 26px; }
.head .s { font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; }
.btn { padding: 9px 12px; border-radius: 10px; font-weight: 900; font-size: 13px; letter-spacing: .03em; }
.btn.ghost { background: var(--panel2); border: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 2px; text-align: center; font-size: 13px; font-weight: 900; line-height: 1.15; text-transform: uppercase; font-style: italic; }
.seg button.sel { background: var(--accent); color: #1a1400; border-color: var(--accent); }

/* scoreboard tables */
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px 8px; margin-bottom: 10px; font-size: 12px; overflow-x: auto; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { color: var(--muted); font-size: 10px; letter-spacing: .08em; font-weight: 900; text-align: center; padding: 5px 3px; }
.board th:first-child, .board td:first-child { text-align: left; }
.board td { padding: 6px 3px; text-align: center; font-weight: 800; border-top: 1px solid #ffffff10; }
.board td.nm { white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.board td.nm i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.board tr.you td { color: var(--accent); }
.board tr.sep td { border-top: 2px solid var(--line); }
.board .mvp { font-size: 9px; background: var(--accent); color: #1a1400; border-radius: 4px; padding: 1px 4px; margin-left: 5px; font-style: italic; }
.statgrid.small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.statgrid.small div { background: var(--panel2); border-radius: 10px; padding: 7px 4px; }
.statgrid.small b { display: block; font-size: 18px; }
.statgrid.small span { font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ft-head { text-align: center; font-size: 34px; color: var(--accent); margin-top: 8px; }
.ft-head.bad { color: #ff8a8d; }
.ft-score { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 8px 0 6px; font-weight: 900; font-size: 15px; letter-spacing: .06em; }
.ft-score b { font-size: 46px; font-style: italic; }
.ft-goals { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
.card.you .rating { display: flex; align-items: baseline; gap: 8px; justify-content: center; margin-bottom: 10px; }
.card.you .rating b { font-size: 40px; font-style: italic; color: var(--accent); }
.card.you .rating span { color: var(--muted); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.card.you .rating span.mvp { color: #1a1400; background: var(--accent); border-radius: 6px; padding: 2px 7px; font-style: italic; }


/* ------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button, #hud .zone { pointer-events: auto; }
.wavebox, .bank, .mini, .wpn, .team > div, .prompt { background: rgba(8, 14, 11, .84); border: 1px solid #ffffff22; border-radius: 12px; box-shadow: 0 6px 20px #0008; }
.wavebox { position: absolute; top: calc(10px + var(--sat)); left: calc(10px + var(--sal)); padding: 4px 11px 6px; min-width: 76px; line-height: 1; }
.wavebox .wl { display: block; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--muted); margin-top: 2px; }
.wavebox b { display: block; font-size: 34px; font-weight: 900; font-style: italic; color: var(--blood); }
.wavebox.horde b { animation: blink .5s steps(2) infinite; }
.wavebox .left { font-size: 11px; font-weight: 900; letter-spacing: .08em; margin-top: 2px; white-space: nowrap; }
.bank { position: absolute; top: calc(10px + var(--sat)); left: 50%; transform: translateX(-50%); padding: 4px 14px 6px; text-align: center; min-width: 118px; }
.bank > b { display: block; font-size: 26px; font-weight: 900; font-style: italic; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.05; }
.bank > b.up { animation: bump .25s ease-out; }
.bank > b.down { color: #ffb0a0; }
@keyframes bump { 40% { transform: scale(1.18); } }
.bank > span { display: block; font-size: 9px; font-weight: 900; letter-spacing: .16em; color: var(--muted); }
.combo { margin-top: 4px; }
.combo .ct { font-size: 11px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.combo i { font-style: italic; color: var(--accent2); font-size: 15px; }
.combo em { font-style: normal; color: var(--accent); }
.combo.hot i { color: #ff8a3b; }
.combo.max i { color: #ff5a5f; animation: blink .4s steps(2) infinite; }
.cbar { height: 4px; background: #ffffff1a; border-radius: 2px; margin-top: 3px; overflow: hidden; }
.cbar div { height: 100%; background: var(--accent2); width: 0; }
.combo.hot .cbar div { background: #ff8a3b; } .combo.max .cbar div { background: var(--blood); }
.pows { position: absolute; top: calc(104px + var(--sat)); left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; width: max-content; max-width: calc(100vw - 250px); }
body.touch .pows div { font-size: 9px; padding: 1px 7px; }
.pows div { background: rgba(8, 14, 11, .88); border: 2px solid; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.pause { position: absolute; top: calc(12px + var(--sat)); right: calc(12px + var(--sar)); width: 38px; height: 38px; border-radius: 10px; border: 1px solid #ffffff2a;
  background: rgba(8, 14, 11, .8); font-weight: 900; display: grid; place-items: center; font-size: 13px; }
.mini { position: absolute; top: calc(58px + var(--sat)); right: calc(10px + var(--sar)); padding: 3px; }
.mini canvas { display: block; width: 96px; }
.team { position: absolute; top: calc(78px + var(--sat)); left: calc(10px + var(--sal)); display: flex; flex-direction: column; gap: 4px; }
.team > div { padding: 3px 8px 4px; width: 104px; border-radius: 9px; }
.team .nm { font-size: 10px; font-weight: 900; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; }
.team .nm i { font-style: normal; color: var(--muted); }
.team .hp { height: 5px; background: #ffffff1a; border-radius: 3px; margin-top: 3px; overflow: hidden; }
.team .hp div { height: 100%; background: var(--accent2); border-radius: 3px; }
.team .you .hp { height: 7px; }
.team .down { border-color: var(--blood); animation: blink .6s steps(2) infinite; }
.team .down .nm i { color: var(--blood); }
.team .dead { opacity: .45; }
.feed { position: absolute; top: calc(78px + var(--sat)); left: calc(124px + var(--sal)); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.feed div { background: rgba(8, 14, 11, .85); border: 1px solid #ffffff1c; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; animation: fin .2s ease-out; }
.feed i { color: var(--accent); font-style: normal; font-weight: 900; } .feed i.up { color: var(--accent2); } .feed i.dn { color: #ff8a8d; }
@keyframes fin { from { opacity: 0; transform: translateY(-4px); } }
@keyframes blink { 50% { opacity: .35; } }
.tip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(150px + var(--sat)); background: rgba(8, 14, 11, .9);
  border: 1px solid #ffffff22; border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 10px; font-size: 13px;
  width: max-content; max-width: min(92vw, 460px); line-height: 1.35; }
.tip b { color: var(--accent); }

.wpn { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--sab)); padding: 4px 12px 5px; text-align: center; min-width: 120px; }
.wpn .wn { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.wpn .am { white-space: nowrap; }
.wpn .am b { font-size: 24px; font-weight: 900; font-style: italic; font-variant-numeric: tabular-nums; }
.wpn .am b.low { color: var(--ammo); } .wpn .am b.out { color: var(--blood); }
.wpn .am span { font-size: 12px; font-weight: 800; color: var(--muted); margin-left: 3px; font-variant-numeric: tabular-nums; }
.nades { display: flex; gap: 3px; justify-content: center; margin-top: 2px; min-height: 8px; }
.nades i { width: 8px; height: 8px; border-radius: 50%; background: #6a8a3a; border: 1px solid #b6d36a; }
.prompt { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--sab)); padding: 7px 14px; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.prompt kbd { font-family: inherit; font-weight: 900; background: #ffffff1c; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.prompt b { color: var(--accent); margin-left: 6px; }
.prompt.no b { color: var(--blood); }
.prompt i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent2); }
.skip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(150px + var(--sat)); padding: 9px 16px; border-radius: 999px; background: linear-gradient(180deg, #ffe066, #f0b400);
  color: #241900; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 14px; box-shadow: 0 6px 16px #0008; }

/* touch controls */
.zone { position: absolute; bottom: 0; height: 62vh; touch-action: none; }
.zone.left { left: 0; width: 50vw; }
.zone.right { right: 0; width: 50vw; }
.stick { position: absolute; bottom: calc(40px + var(--sab)); width: 124px; height: 124px; border-radius: 50%;
  background: radial-gradient(circle, #ffffff14, #ffffff08); border: 2px solid #ffffff30; transition: opacity .2s; }
.zone.left .stick { left: calc(22px + var(--sal)); }
.zone.right .stick { right: calc(22px + var(--sar)); border-color: #ff5a5f66; background: radial-gradient(circle, #ff5a5f22, #ff5a5f08); }
.stick.idle { opacity: .5; }
.knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffffcc, #ffffff66); box-shadow: 0 4px 12px #0007; }
.stick.aim .knob { background: radial-gradient(circle at 35% 30%, #ffb0b2, #e0383e); }
.stick.aim.firing .knob { box-shadow: 0 0 0 4px #ff5a5f55, 0 4px 12px #0007; }
.side { position: absolute; right: calc(14px + var(--sar)); bottom: calc(184px + var(--sab)); display: flex; flex-direction: column; gap: 10px; }
.sb { width: 58px; height: 58px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 10px; letter-spacing: .04em;
  border: 2px solid #ffffff55; box-shadow: 0 6px 16px #0008; touch-action: none; line-height: 1.05; transition: transform .06s; }
.sb b { font-size: 16px; font-style: italic; }
.sb.down { transform: scale(.92); filter: brightness(1.15); }
.sb.nade { background: radial-gradient(circle at 35% 30%, #c6e38a, #5a8a2a); color: #142400; }
.sb.swap { background: radial-gradient(circle at 35% 30%, #a3c8ff, #2f6ad0); color: #00122a; }
.sb.reload { background: radial-gradient(circle at 35% 30%, #ffd08a, #f07a1a); color: #2a1200; }
.sb.off { filter: grayscale(.8) brightness(.7); }
.fire { position: absolute; right: calc(24px + var(--sar)); bottom: calc(36px + var(--sab)); width: 118px; height: 118px; border-radius: 50%; font-weight: 900; font-size: 18px;
  background: radial-gradient(circle at 35% 30%, #ff9a9d, #c0262d); color: #2a0002; border: 2px solid #ffffff55; box-shadow: 0 6px 16px #0008; touch-action: none; }
.fire.down { transform: scale(.94); filter: brightness(1.15); }
.act { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(62px + var(--sab)); min-width: 132px; height: 52px; padding: 0 16px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #ffe066, #f0b400); color: #241900; font-weight: 900; font-style: italic; text-transform: uppercase; box-shadow: 0 6px 18px #0009;
  display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #ffffff66; touch-action: none; white-space: nowrap; }
.act span { font-size: 14px; position: relative; } .act b { font-size: 13px; background: #0002; border-radius: 6px; padding: 2px 6px; position: relative; }
.act i { position: absolute; left: 0; top: 0; bottom: 0; background: #3ee08f; width: 0; }
.act.no { background: linear-gradient(180deg, #8a8a8a, #5a5a5a); color: #1a1a1a; }
.act.revive { background: linear-gradient(180deg, #8af0b8, #1fb46d); color: #00230f; }
.act.down { filter: brightness(1.1); }
body.touch .wpn { bottom: calc(10px + var(--sab)); padding: 2px 10px 3px; min-width: 104px; }
body.touch .wpn .am b { font-size: 19px; }
body.touch .prompt { display: none; }

.banner { position: absolute; left: 0; right: 0; top: 30%; text-align: center; }
.banner .big { font-size: min(64px, 15vw); color: var(--accent); text-shadow: 0 4px 0 #0007, 0 0 30px #ffd23f66; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.banner.good .big { color: var(--accent2); text-shadow: 0 4px 0 #0007, 0 0 30px #3ee08f55; }
.banner.bad .big { color: #ff8a8d; text-shadow: 0 4px 0 #0007, 0 0 30px #ff5a5f55; }
.banner.multi .big { color: #ff8a3b; font-size: min(54px, 13vw); text-shadow: 0 4px 0 #0007, 0 0 30px #ff8a3b88; }
.banner.info .big { font-size: min(42px, 10vw); color: var(--text); }
.banner .small { font-size: min(14px, 3.6vw); font-weight: 800; letter-spacing: .1em; padding: 0 12px; text-shadow: 0 2px 6px #000a; text-transform: uppercase; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* menu extras */
.maps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; touch-action: pan-x pan-y; scrollbar-width: thin; }
.map-card { flex: 0 0 116px; scroll-snap-align: start; background: var(--panel2); border: 2px solid transparent; border-radius: 12px; padding: 5px; text-align: left; }
.map-card canvas { display: block; width: 102px; height: 68px; border-radius: 8px; }
.map-card .nm { font-size: 11px; font-weight: 900; margin-top: 5px; line-height: 1.15; }
.map-card .mt2 { font-size: 10px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.map-card.sel { border-color: var(--accent); background: #2a2a10; }
.tinfo { font-size: 12px; color: #cfdcd4; line-height: 1.4; margin-top: 6px; }
.tinfo b { color: var(--accent); }
.tinfo .tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0 5px; }
.tinfo .tags span { background: #7fe8ff18; color: #9fefff; border: 1px solid #7fe8ff44; border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.map-card .new { display: inline-block; font-size: 8px; background: var(--accent2); color: #002a12; border-radius: 4px; padding: 1px 4px; margin-left: 4px; font-style: italic; vertical-align: 1px; }
.livs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.liv { width: 22px; height: 22px; border-radius: 50%; border: 3px solid; }
.liv.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.prev { width: 96px; height: 64px; flex: 0 0 96px; background: radial-gradient(circle at 50% 60%, #6a4a2c, #12201a 85%); border-radius: 12px; border: 1px solid var(--line); }
.seg.four { grid-template-columns: repeat(4, 1fr); }
.ft-sub { text-align: center; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; margin: 2px 0 12px; text-transform: uppercase; }
.board .new { font-size: 9px; background: var(--accent2); color: #002a12; border-radius: 4px; padding: 1px 4px; margin-left: 5px; font-style: italic; }
.statgrid.small.four { grid-template-columns: repeat(3, 1fr); }

@media (max-height: 560px) and (orientation: landscape) {
  .tip { top: auto; bottom: calc(80px + var(--sab)); }
  .zone { height: 100vh; }
  .stick { bottom: calc(18px + var(--sab)); }
  .side { flex-direction: row; bottom: calc(150px + var(--sab)); right: calc(14px + var(--sar)); gap: 8px; }
  .sb { width: 50px; height: 50px; }
  .act { bottom: calc(52px + var(--sab)); }
  .mini canvas { width: 80px; }
  .team > div { width: 96px; }
  .skip { top: calc(70px + var(--sat)); }
}
body.touch .team > div { width: 92px; padding: 2px 7px 3px; }
body.touch .team .nm { font-size: 9px; }
body.touch .team .hp { height: 4px; margin-top: 2px; }
body.touch .team .you .hp { height: 6px; }
body.touch .feed { left: calc(110px + var(--sal)); }
body.desk .mini canvas { width: 168px; }
body.desk .wavebox b { font-size: 40px; }
body.desk .team > div { width: 132px; }
body.desk .feed { left: calc(152px + var(--sal)); }
body.desk.play, body.desk.play canvas#game { cursor: none; }
@media (min-width: 900px) { .screen .wrap { max-width: 600px; } }

/* Studio credit and link back to the games page, the same on every Game Golem Studios title screen */
.ggs-foot { text-align: center; font-size: 11px; margin-top: 12px; }
.ggs-foot a { color: var(--muted); text-underline-offset: 2px; }

/* ------------------------------------------------------------ play together */
.mp .lbl small { color: var(--accent2); letter-spacing: .1em; margin-left: 6px; }
.mprow { display: grid; grid-template-columns: 1fr 88px auto; gap: 6px; align-items: center; }
.chip.big { padding: 10px 14px; font-size: 13px; font-weight: 900; }
#btn-host { background: var(--accent); color: #1a1400; border-color: var(--accent); }
.inp.code { margin: 0; text-align: center; letter-spacing: .25em; font-size: 17px; }
.hint.err { color: var(--danger); }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg.mptabs { margin-bottom: 8px; }
.seg.mptabs button { padding: 7px 2px; }
#btn-quick { width: 100%; background: var(--accent); color: #1a1400; border-color: var(--accent); }
.srvl { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.srow { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; }
.srow:hover { border-color: var(--accent); }
.srow.off { opacity: .5; cursor: default; }
.srow div { flex: 1; min-width: 0; }
.srow b { display: block; font-size: 13px; }
.srow small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow span { font-weight: 900; font-size: 12px; color: var(--accent2); }
.srow.off span { color: var(--muted); }
.qpwait { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; font-size: 13px; }
.qpwait b { color: var(--accent); }
.center { text-align: center; }
.logo.small .t1 { font-size: 30px; }
#l-code { letter-spacing: .12em; color: var(--accent); }
#l-settings { font-weight: 800; }
#l-players .pl { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #ffffff10; font-size: 14px; font-weight: 900; }
#l-players .pl i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid; flex: 0 0 14px; }
#l-players .pl b { margin-left: auto; font-size: 9px; background: var(--accent); color: #1a1400; border-radius: 4px; padding: 1px 5px; font-style: italic; }
#l-players .pl.me { color: var(--accent); }
#l-players .bots { color: var(--muted); font-size: 12px; font-weight: 800; padding: 7px 4px 2px; }
/* a big room: up to eight in the squad list, so the rows shrink */
body .team.many { gap: 2px; }
body .team.many > div { padding: 1px 6px 2px; }
body .team.many .nm { font-size: 9px; }
body .team.many .hp { height: 3px; margin-top: 1px; }
body.touch .team.many > div { width: 86px; }
/* a huge room (more than eight): the squad list goes into two columns */
body .team.huge { display: grid; grid-template-columns: repeat(2, auto); }
body.touch .team.huge > div { width: 74px; }
body .team.huge .nm { font-size: 8px; }
#l-players.huge { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
#l-players.huge .pl { font-size: 12px; padding: 5px 2px; }
body .team.huge .nm { display: flex; gap: 3px; }
body .team.huge .nm span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .team.huge .nm i { flex: none; }
body.touch .team.huge > div { width: 80px; }
