body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #2a3d47 0%, #10161f 55%, #0a1116 100%);
  color: #edf4f7;
}

.hidden {
  display: none !important;
}

.zeroad-panel {
  width: min(1120px, calc(100vw - 32px));
}

.zeroad-overlay-card {
  background: rgba(11, 18, 24, 0.94);
  border: 1px solid rgba(129, 182, 199, 0.22);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

/* Map-loading progress bar (shown on match start while terrain/units init). */
.zeroad-progress {
  width: 100%;
  height: 14px;
  margin: 16px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(145, 199, 215, 0.25);
  overflow: hidden;
}
.zeroad-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #61c798, #91c7d7);
  transition: width 0.15s linear;
}

.zeroad-topbar,
.zeroad-top-actions,
.zeroad-section-heading,
.zeroad-actions,
.zeroad-host-summary,
.zeroad-hud-strip,
.zeroad-phase-pills,
.zeroad-map-footer {
  display: flex;
  gap: 12px;
  align-items: center;
}

.zeroad-topbar,
.zeroad-section-heading,
.zeroad-map-footer {
  justify-content: space-between;
}

.zeroad-kicker {
  margin: 0 0 6px;
  color: #91c7d7;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.zeroad-lobby-panel {
  padding: 28px;
}

.zeroad-lobby-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(320px, 1fr);
  gap: 18px;
}

.zeroad-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(16, 26, 34, 0.92);
  border: 1px solid rgba(129, 182, 199, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.zeroad-audio-card {
  grid-column: 1 / -1;
}

.zeroad-banner {
  margin: 18px 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(233, 213, 111, 0.35);
  background: rgba(233, 213, 111, 0.12);
  color: #f6df9b;
}

.zeroad-banner-strong {
  background: rgba(233, 213, 111, 0.18);
}

.zeroad-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
  position: relative;
}

.zeroad-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(145, 199, 215, 0.28);
}

.zeroad-logo-core {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #f3ebc1;
}

.zeroad-shell {
  padding: 14px 18px 18px;
}

.zeroad-session-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100vh;
  min-height: 100vh;
}

.zeroad-hud-strip {
  justify-content: space-between;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.zeroad-hud-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 17, 22, 0.82);
  border: 1px solid rgba(145, 199, 215, 0.18);
}

.zeroad-resource-bar {
  flex: 1 1 480px;
}

.resource-pill,
.zeroad-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zeroad-chip-accent {
  background: rgba(97, 199, 152, 0.16);
  border-color: rgba(97, 199, 152, 0.34);
}

.zeroad-session-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.zeroad-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 22, 29, 0.96), rgba(7, 12, 16, 1));
  border: 1px solid rgba(108, 84, 51, 0.78);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* The canvas layer now fills the flexible stage (it no longer derives its
 * height from the hidden 960x640 #gameCanvas — see the three-full rule below).
 * #modelCanvas is position:absolute width/height:100%, so it fills this. */
#canvasLayer {
  width: 100%;
  height: 100%;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #8a734e 0%, #5c7240 100%);
  cursor: crosshair;
}

/* ===================================================================
 * Phase 41 / C1 strangler-fig: ?renderer=three full-canvas mode.
 * ModelRenderer's fullCanvas constructor sets data-render-mode on
 * #canvasWrap. These rules hand the canvas wrap over to Three.js:
 * hide the PIXI #gameCanvas, lift #modelCanvas above it, and re-enable
 * pointer events so click/marquee handlers on game.js still fire.
 * Default rule (no data-render-mode or other values) keeps the PIXI
 * baseline from Phase 36.1 untouched.
 *
 * 41-02 bugfix: use `visibility: hidden` instead of `display: none` so
 * #gameCanvas STAYS in layout flow and continues to provide the 960x640
 * intrinsic dimensions that #canvasLayer derives its size from. Without
 * this, #modelCanvas (position:absolute width:100% height:100%) inherits
 * 0x0 from a collapsed canvasLayer, the canvas region shrinks to ~9px,
 * and the brown HUD panels below dominate the viewport at desktop sizes.
 * =================================================================== */
#canvasWrap[data-render-mode="three-full"] #gameCanvas {
  visibility: hidden;
  /* Out of flow so it no longer dictates #canvasLayer's height; the flex stage
   * + #canvasLayer{height:100%} drive sizing, and game.js's ResizeObserver
   * matches the render buffer to the real pixel size. */
  position: absolute;
}

#canvasWrap[data-render-mode="three-full"] #modelCanvas {
  pointer-events: auto;
  z-index: 2;
  cursor: crosshair;
}

.zeroad-map-banner,
.zeroad-event-toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(10, 18, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.zeroad-map-banner {
  top: 18px;
}

.zeroad-event-toast {
  bottom: 18px;
}

.zeroad-session-bottom {
  /* Panels are floating overlays now (minimap bottom-left, selection bottom-
   * centre popup, commands right popup). The container itself carries no
   * in-flow content, so it collapses and hands all vertical space to the map. */
  display: block;
  margin: 0;
}

.zeroad-session-panel {
  padding: 10px 12px 12px;
  background:
    linear-gradient(180deg, rgba(78, 58, 33, 0.96), rgba(45, 32, 18, 0.98)),
    linear-gradient(180deg, rgba(14, 20, 26, 0.2), rgba(14, 20, 26, 0.2));
  border: 1px solid rgba(111, 84, 46, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.08),
    inset 0 0 0 1px rgba(40, 24, 10, 0.62);
}

/* ---- Floating HUD overlays (over the map) ------------------------------- */
.zeroad-minimap-panel,
.zeroad-selection-panel,
.zeroad-commands-panel {
  position: fixed;
  z-index: 30;
  margin: 0;
  border-radius: 12px;
}

/* Minimap: bottom-left, always visible, slightly larger. */
.zeroad-minimap-panel {
  left: 16px;
  bottom: 16px;
  width: 300px;
}

/* Selection: bottom-centre popup — only while something is selected. */
.zeroad-selection-panel {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  /* Wider + shorter: more horizontal room for text on fewer lines, capped
   * height with its own scroll box so it never eats ~half the screen. */
  width: min(760px, 72vw);
  max-height: 30vh;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
#gameShell.has-selection .zeroad-selection-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Commands: right-side popup — only when an owned entity (with orders) is up. */
.zeroad-commands-panel {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  max-height: 82vh;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
#gameShell.has-commands .zeroad-commands-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.zeroad-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.zeroad-panel-title h2,
.zeroad-command-group h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6d8ac;
}

.zeroad-minimap-frame {
  padding: 6px;
  border: 1px solid rgba(212, 183, 124, 0.22);
  background: rgba(18, 12, 7, 0.28);
}

#minimapCanvas {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(212, 183, 124, 0.22);
  background: #8f7448;
}

.zeroad-minimap-copy {
  margin-top: 8px;
  font-size: 13px;
  color: #d7cebf;
}

.zeroad-selection-shell {
  display: grid;
  gap: 10px;
}

.zeroad-selection-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}

.zeroad-selection-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border: 1px solid rgba(212, 183, 124, 0.3);
  background: linear-gradient(180deg, rgba(17, 15, 12, 0.86), rgba(57, 43, 25, 0.92));
  color: #f0e6c8;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.08em;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.zeroad-selection-portrait.has-image {
  color: transparent;
}

.zeroad-selection-meta,
.zeroad-selection-stats,
.zeroad-session-command-grid {
  display: grid;
  gap: 8px;
}

.zeroad-selection-headline {
  display: grid;
  gap: 6px;
}

.zeroad-selection-emblems {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zeroad-selection-emblem,
.zeroad-selection-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(212, 183, 124, 0.3);
  background: rgba(16, 12, 8, 0.42);
  color: #f0e6c8;
}

.zeroad-stat-row {
  display: grid;
  gap: 6px;
}

.zeroad-stat-row span,
.zeroad-selection-copy,
.zeroad-selection-status {
  font-size: 13px;
  color: #e2d8c4;
}

.zeroad-stat-bar {
  position: relative;
  height: 14px;
  border: 1px solid rgba(235, 224, 198, 0.16);
  background: rgba(10, 8, 5, 0.54);
  overflow: hidden;
}

.zeroad-stat-fill {
  height: 100%;
  width: 0;
}

.zeroad-stat-fill-health {
  background: linear-gradient(90deg, #547527, #8eb14f);
}

.zeroad-stat-fill-resource {
  background: linear-gradient(90deg, #7b6030, #c79a51);
}

.zeroad-selection-copy p {
  margin: 6px 0 0;
}

.zeroad-selection-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zeroad-command-group {
  padding: 8px;
  border: 1px solid rgba(212, 183, 124, 0.14);
  background: rgba(17, 13, 9, 0.2);
}

.zeroad-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  /* The build palette can now list all 13 structures (towers/walls/fortress/…);
     cap the height so a long list scrolls inside the panel instead of overflowing. */
  max-height: 232px;
  overflow-y: auto;
}

.zeroad-command-btn {
  min-height: 64px;
  padding: 8px;
  border-radius: 0;
  border: 1px solid rgba(230, 214, 173, 0.16);
  background: linear-gradient(180deg, rgba(59, 47, 30, 0.95), rgba(36, 26, 17, 0.98));
  color: #f0e7ca;
}

.zeroad-command-icon-btn {
  display: grid;
  grid-template-rows: 28px auto;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.zeroad-command-btn-active {
  border-color: #ffd700;
  background: linear-gradient(180deg, rgba(120, 96, 40, 0.98), rgba(80, 60, 24, 0.98));
  box-shadow: 0 0 0 1px #ffd700 inset;
}

/* Locked command (e.g. phase-up before prerequisites met): greyed + non-clickable. */
.zeroad-command-btn.is-disabled {
  opacity: 0.4;
  filter: grayscale(0.8);
  cursor: not-allowed;
}
/* Unaffordable build/train item: dimmed but still clickable (resources may accrue
   while placing). A red-tinted border + the missing-resource reason in the tooltip. */
.zeroad-command-btn.is-unaffordable {
  opacity: 0.62;
  border-color: rgba(200, 70, 60, 0.7);
}

.zeroad-detail-classes {
  color: #c9b88a;
  font-size: 11px;
  margin: 2px 0;
}
.zeroad-rank-badge {
  color: #ffd700;
  font-size: 11px;
  font-weight: bold;
}
.zeroad-detail-tip {
  color: #ffe9a8;
  font-size: 12px;
  margin: 4px 0;
}
.zeroad-detail-stat {
  color: #e7dcc0;
  font-size: 12px;
  margin: 2px 0;
}
.zeroad-detail-desc {
  color: #cabf9f;
  font-size: 11px;
  font-style: italic;
  margin: 4px 0;
}
.zeroad-detail-history {
  color: #b6a980;
  font-size: 11px;
  margin-top: 4px;
}
.zeroad-detail-history summary {
  cursor: pointer;
  color: #d8c98f;
}

.zeroad-delete-btn {
  margin-top: 8px;
  border-color: rgba(200, 60, 50, 0.6);
  color: #ffd9d2;
}
.zeroad-delete-btn:hover {
  background: rgba(150, 40, 32, 0.85);
}
.zeroad-confirm-card {
  max-width: 420px;
  text-align: center;
}
.zeroad-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.zeroad-confirm-actions button {
  min-width: 120px;
}

.zeroad-command-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 18px;
  border: 1px solid rgba(232, 220, 186, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.zeroad-command-icon[data-has-art="true"] {
  background-color: rgba(255, 255, 255, 0.04);
}

.zeroad-command-label {
  font-size: 11px;
  line-height: 1.2;
}

.zeroad-command-empty {
  padding: 14px 10px;
  border: 1px dashed rgba(232, 220, 186, 0.12);
  color: #c8bda6;
  font-size: 12px;
  text-align: center;
}

/* B3 production queue: head item shows a live progress fill + ETA; click cancels. */
.zeroad-production-queue {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zeroad-queue-item {
  position: relative;
  overflow: hidden;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(230, 214, 173, 0.16);
  background: rgba(36, 26, 17, 0.95);
  color: #f0e7ca;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.zeroad-queue-item:hover {
  border-color: rgba(214, 75, 75, 0.7); /* hint that click cancels */
}

.zeroad-queue-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, rgba(111, 174, 70, 0.55), rgba(73, 120, 45, 0.55));
  transition: width 0.2s linear;
  z-index: 0;
}

.zeroad-queue-label {
  position: relative;
  z-index: 1;
}

/* C1 hover affordance: small action glyph that follows the cursor (food/wood/
   attack/repair…) so the player sees what a right-click would do. */
.zeroad-hover-badge {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(20, 14, 8, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.player-list {
  display: grid;
  gap: 10px;
}

.player-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.player-row.is-me {
  border-color: rgba(97, 199, 152, 0.34);
}

.zeroad-inline-note {
  color: #f6df9b;
  font-size: 12px;
}

.zeroad-host-summary {
  flex-wrap: wrap;
  margin: 14px 0;
}

.zeroad-host-summary > div {
  flex: 1 1 120px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.zeroad-host-summary span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9dcbd7;
}

.zeroad-note {
  color: #c7d6dd;
}

.zeroad-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  width: min(420px, calc(100vw - 36px));
}

.zeroad-drawer-card {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.zeroad-table-wrap {
  max-height: 360px;
  overflow: auto;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(156, 201, 216, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f6f8;
  box-sizing: border-box;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
}

.audio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.audio-controls input[type="range"] {
  width: 150px;
  margin: 0;
}

.rankings-empty {
  text-align: center;
  padding: 18px 0 12px;
}

code,
a {
  color: #f6df9b;
}

@media (max-width: 1100px) {
  .zeroad-session-bottom {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  #commandPanel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .zeroad-lobby-grid,
  .zeroad-session-bottom,
  .zeroad-selection-main,
  .zeroad-icon-grid {
    grid-template-columns: 1fr;
  }

  .zeroad-topbar,
  .zeroad-section-heading,
  .zeroad-actions,
  .zeroad-panel-title {
    flex-direction: column;
    align-items: stretch;
  }

  .zeroad-top-actions {
    width: 100%;
  }

  .zeroad-top-actions button,
  .zeroad-actions button {
    width: 100%;
  }

  #minimapCanvas {
    width: 100%;
    height: auto;
    max-width: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────
   Single-card lobby (41-24): brings the 0AD lobby in line with the other
   games' shared look (tanks/bomberman/etc.) — single centered .overlay-card
   with a map grid, toggle rows, per-player team selectors and bot rows.
   ─────────────────────────────────────────────────────────────────────── */
.lobby-card {
  max-width: 520px;
  width: 92vw;
  max-height: 92dvh;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: center;
}
.lobby-card h1 { margin: 6px 0 2px; }

/* Map selector grid */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.map-grid .map-btn {
  width: auto;
  margin: 0;
  padding: 10px 12px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(156, 201, 216, 0.28);
  border-radius: 8px;
  color: #eef6f8;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.map-grid .map-btn:hover { border-color: #91c7d7; }
.map-grid .map-btn.active {
  border-color: #91c7d7;
  background: rgba(145, 199, 215, 0.16);
  color: #d8eef4;
}
.map-grid .map-btn:disabled { cursor: default; opacity: 0.85; }

/* Toggle rows (fog of war, add bot) */
.lobby-settings { margin: 8px 0 14px; text-align: left; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}
.toggle-row .toggle-btn {
  width: auto;
  margin: 0;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(156, 201, 216, 0.28);
  border-radius: 8px;
  color: #eef6f8;
  font-size: 0.85rem;
  cursor: pointer;
}
.toggle-row .toggle-btn.active {
  border-color: #61c798;
  background: rgba(97, 199, 152, 0.16);
  color: #9fe6c4;
}
.toggle-row .toggle-btn:disabled { cursor: default; opacity: 0.7; }

/* Max game time stepper: − value + */
.duration-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.duration-stepper .duration-step {
  padding: 6px 12px;
  font-weight: 700;
  line-height: 1;
}
.duration-value {
  min-width: 56px;
  text-align: center;
  color: #eef6f8;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Roster rows: name + tags on the left, team selector / remove on the right */
.player-row .player-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.player-faction { color: #9dcbd7; font-size: 12px; }
.lobby-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.4;
}
.lobby-tag.tag-host { color: #f6df9b; background: rgba(246, 223, 155, 0.16); }
.lobby-tag.tag-bot  { color: #91c7d7; background: rgba(145, 199, 215, 0.16); }
.player-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.player-controls .team-select {
  width: auto;
  margin: 0;
  padding: 5px 8px;
  font-size: 0.8rem;
  border-radius: 8px;
}
.bot-remove {
  width: auto;
  margin: 0;
  padding: 4px 9px;
  background: rgba(214, 92, 92, 0.18);
  border: 1px solid rgba(214, 92, 92, 0.5);
  border-radius: 8px;
  color: #f0a8a8;
  font-size: 0.8rem;
  line-height: 1;
}
.bot-remove:hover { background: rgba(214, 92, 92, 0.32); }

/* Faction select on the join screen */
#joinSection .settings-select { width: 100%; margin: 4px 0 12px; }

/* Persistent leaderboard / about row */
.lobby-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 12px;
}
.lobby-actions-row .btn-secondary { width: auto; margin: 0; }

/* Lobby audio controls centered under the card */
.lobby-card .audio-controls { justify-content: center; margin-top: 6px; }
