/* ═══════════════════════════════════════════
   LittleScreen — Lobby 2.5D scene + Splash + Identity + Tools drawer
   ═══════════════════════════════════════════ */

body.ls-page-lobby {
  padding-top: 56px;
  /* 2026-05-25 — Same fix as room.css: lobby.js relocates the lobby-say-bar
     into the bottombar, growing its height from ~56px to ~98px. Override
     the shared --ls-page-bottom-offset (consumed by lib-ticker.css's
     lobby-map height calc) so the bottom of the floor and chat don't run
     under the toolbar. */
  --ls-page-bottom-offset: calc(108px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  height: 100vh;
  overflow: hidden;
  /* Allow pinch-to-zoom + 2-finger pan but suppress accidental swipe-to-scroll
     since the page layout is meant to fit one viewport. */
  touch-action: pinch-zoom;
}
body.ls-page-lobby .lobby-world { touch-action: pan-x pan-y pinch-zoom; }



/* ── LOBBY MAP (themed-station scene) ──────────── */
/* v2.17: full-viewport play area — no perspective floor split, no padding
   when chrome is hidden (also handles VR mode where padding is 78+90). */
/* 2026-05-06 — Slim status row above the lobby canvas. Owns the controls
   that used to float over the chandelier (BG audio toggle, online count,
   active/away pill, radio bar). lobby.js relocates the existing elements
   into this strip on boot — the original IDs and handlers stay intact. */
.lobby-toprow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  min-height: 40px;
  background: rgba(20, 14, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  flex-wrap: wrap;
}
.lobby-toprow:empty { display: none; }
/* When the relocated elements live inside the toprow, kill their absolute
   positioning + transforms so they sit inline. */
.lobby-toprow > .lobby-online-pill,
.lobby-toprow > .lobby-away-btn,
.lobby-toprow > .lobby-bg-audio-btn,
.lobby-toprow > .lobby-radio-bar {
  position: static;
  top: auto; left: auto; right: auto; bottom: auto;
  transform: none;
  margin: 0;
}
.lobby-toprow > .lobby-radio-bar {
  /* The radio bar is the wide one — push it to the right of the pill row. */
  margin-left: auto;
}
.lobby-toprow > .lobby-bg-audio-btn {
  /* BG button was a tiny circle in the corner; give it a label-style chip. */
  width: auto;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}
@media (max-width: 540px){
  .lobby-toprow {
    padding: 4px 8px;
    gap: 6px;
    min-height: 36px;
  }
  .lobby-toprow > .lobby-radio-bar {
    margin-left: 0;
    flex-basis: 100%;
    order: 99;
  }
}

.lobby-map {
  position: relative;
  /* Subtract topnav (~56px) + toprow (~40px) + bottombar (~56px). */
  height: calc(100vh - 56px - 40px - 56px);
  background: #0a0612;
  overflow: hidden;
}
/* 2026-05-25 — Bottom toolbar stays visible when chrome is "hidden" now,
   so only zero out the top padding; keep --ls-page-bottom-offset doing
   its job for the bar that's still on screen. */
body.chrome-hidden .lobby-map           { height: calc(100vh - var(--ls-page-bottom-offset)); }
body.chrome-hidden.ls-page-lobby,
body.chrome-hidden.vr-mode.ls-page-lobby { padding-top: 0; }
body.vr-mode.ls-page-lobby .lobby-map   { height: calc(100vh - 78px - 90px); }
body.chrome-hidden.vr-mode.ls-page-lobby .lobby-map { height: calc(100vh - var(--ls-page-bottom-offset)); }

.lobby-world {
  position: absolute;
  /* World fits between the rooms-rail (left, 200px + 12px gap) and chat-rail
     (right, 240px + 24px gap) on desktop. On phone the rails collapse and the
     world claims the full viewport (see the @media block lower in this file). */
  top: 0; bottom: 0;
  left: 212px; right: 264px;
  overflow: hidden;
  touch-action: pinch-zoom;
}
.lobby-stations.hidden { display: none; }

/* ── Left rooms rail ──
   Vertical scrollable list on desktop; horizontal strip on phone (≤720px). */
.lobby-rooms-rail {
  position: absolute;
  /* 2026-05-06 — D: "still extra space between the lobby chat and top of
     the user toolbar (same for rooms)". 8px gap was still visible — drop
     to 0 so the panel hugs the toolbar's top edge. */
  top: 12px; left: 12px; bottom: 0;
  width: 192px;
  z-index: 8;
  background: rgba(20,14,26,.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.55);
  overflow: hidden;
}
.lobby-rooms-head {
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.lobby-rooms-head h3 { margin: 0; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lobby-rooms-hint { font-size: .62rem; }
.lobby-rooms-list {
  list-style: none; margin: 0; padding: 6px 8px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  flex: 1;
}
.lobby-rooms-list .ls-rooms-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.lobby-rooms-list .ls-rooms-row:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--door-color, var(--accent));
  transform: translateX(2px);
}
.lobby-rooms-list .ls-rooms-row.full { opacity: .55; pointer-events: none; }
.lobby-rooms-list .lr-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: .98rem;
  background: var(--door-color, var(--accent));
  border: 1px solid rgba(255,255,255,.18);
  background-image: var(--art-img);
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
.lobby-rooms-list .lr-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.35));
  pointer-events: none;
}
.lobby-rooms-list .lr-icon-glyph {
  position: relative; z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.lobby-rooms-list .lr-name {
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lobby-rooms-list .lr-pres {
  background: var(--door-color, var(--accent));
  color: #1a0e05;
  font-size: .72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
  /* PEOPLE-COUNT VISIBILITY (ls-2.44): bumped from .58rem → .72rem and a
     subtle pulse when there's actually someone in the room. */
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.lobby-rooms-list .lr-pres:not(.idle) {
  animation: ls-rail-pres-pulse 2.4s ease-in-out infinite;
}
@keyframes ls-rail-pres-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 0 4px rgba(255,255,255,.10); }
}
.lobby-rooms-list .lr-pres.idle {
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-weight: 600;
  animation: none;
}

/* ── Collapsible groups (hubs → child rooms) ──
   The hub head is a button that mimics a row; clicking expands the body
   below it which contains the children (indented with .nested). */
.lobby-rooms-list .ls-rooms-group {
  display: flex; flex-direction: column;
}
.lobby-rooms-list .ls-rooms-group + .ls-rooms-group { margin-top: 2px; }
.lobby-rooms-list .ls-rooms-group-head {
  /* Same shape as .ls-rooms-row, plus a caret column */
  all: unset;
  display: grid;
  grid-template-columns: 30px 1fr auto 14px;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  transition: background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.lobby-rooms-list .ls-rooms-group-head:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--door-color, var(--accent));
}
.lobby-rooms-list .ls-rooms-group-head.open {
  background: rgba(255,255,255,.07);
  border-color: var(--door-color, var(--accent));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.lobby-rooms-list .lr-caret {
  font-size: .7rem;
  color: var(--muted);
  transition: transform .18s ease;
  transform: rotate(-90deg);
}
.lobby-rooms-list .ls-rooms-group-head.open .lr-caret {
  transform: rotate(0deg);
  color: var(--door-color, var(--accent));
}
.lobby-rooms-list .ls-rooms-group-body {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 4px 4px 6px 14px;
  margin: -1px 4px 0;
  border: 1px solid var(--border);
  border-top: 0;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
  background: rgba(0,0,0,.18);
}
.lobby-rooms-list .ls-rooms-group-body.open { display: flex; }
.lobby-rooms-list .ls-rooms-row.nested {
  padding: 4px 8px;
  background: rgba(255,255,255,.02);
}
.lobby-rooms-list .ls-rooms-row.nested .lr-icon {
  width: 24px; height: 24px;
  font-size: .85rem;
  border-radius: 6px;
}
.lobby-rooms-list .ls-rooms-row.nested .lr-name {
  font-size: .72rem;
  font-weight: 600;
}
.lobby-rooms-list .ls-rooms-row.nested .lr-pres {
  font-size: .55rem;
  padding: 1px 5px;
}

/* Floor layers — flat (no perspective) so the entire viewport reads as one
   walking space. Soft purple wash + center warm glow + corner vignette. */
.lobby-world-floor { position: absolute; inset: 0; pointer-events: none; }
.lobby-floor-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 50% 50%;
  opacity: .85;
  /* Show grid only as a perimeter ring; centre stays clear */
  -webkit-mask: radial-gradient(ellipse 50% 42% at 50% 50%, transparent 50%, black 100%);
          mask: radial-gradient(ellipse 50% 42% at 50% 50%, transparent 50%, black 100%);
}
.lobby-floor-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 130% 130% at 50% 50%, rgba(80,40,120,.10) 0%, transparent 90%),
    radial-gradient(ellipse 26% 22% at 50% 50%, rgba(240,160,80,.10) 0%, transparent 75%);
}
.lobby-floor-haze {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 130% 130% at 50% 50%, transparent 75%, rgba(0,0,0,.30) 100%);
}

/* ── Ambient background video slideshow ──
   Two stacked <video> elements injected by lobby-bg.js. They live BEHIND
   the floor layers (which mute the video and provide the warm wash). The
   video fills the world but is darkened ~50% so avatars/UI stay readable. */
.lobby-bg-video {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0510;
  pointer-events: none;
}
.lobby-bg-video > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  filter: brightness(.50) saturate(.92) contrast(1.04);
  will-change: opacity;
}
/* Floor layers sit ABOVE the video so the wash/grid still apply */
.lobby-world-floor { z-index: 1; }
/* Push avatars and UI above the floor wash */
body.ls-page-lobby .lobby-avatars { z-index: 2; }
.lobby-id-float, .lobby-online-pill,
.lobby-say-bar, .lobby-voice-overlay,
.lobby-bg-audio-btn { z-index: 7; }

/* Tiny audio toggle for the BG video — top-right of the world, below the
   identity card so it doesn't fight for attention. */
.lobby-bg-audio-btn {
  position: absolute;
  top: 60px; right: 16px;
  z-index: 7;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(20,14,26,.70);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .12s, transform .12s;
}
.lobby-bg-audio-btn:hover { background: rgba(40,28,52,.85); transform: scale(1.06); }
.lobby-bg-audio-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
@media (max-width: 720px){
  .lobby-bg-audio-btn { top: 56px; right: 12px; width: 28px; height: 28px; font-size: 12px; }
}

/* Hard reset: styles.css ships legacy .lobby-avatars rules from the old grid
   layout that paint a dark gradient "box" with a clamped height. In the v2.x
   world-map layout, .lobby-avatars is a transparent positioning wrapper. */
body.ls-page-lobby .lobby-avatars {
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  z-index: 3;
  overflow: visible !important;
  flex: none !important;
}
body.ls-page-lobby .lobby-avatars::before,
body.ls-page-lobby .lobby-avatars::after {
  content: none !important;
  display: none !important;
}

/* ── Stations (rooms) ──
   v2.17: smaller square doorways with rich hover cards + right-click menu.
   Smaller so lots of people fit on the floor without crowding the rooms. */
.lobby-stations { position: absolute; inset: 0; pointer-events: none; }
.ls-station {
  pointer-events: auto;
  position: absolute;
  left: calc(var(--x, .5) * 100%);
  top:  calc(var(--y, .5) * 100%);
  transform: translate(-50%, -50%);
  width: 60px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: transform .15s;
  z-index: 4;
}
.ls-station:hover { transform: translate(-50%, calc(-50% - 3px)); }
.ls-station.full { opacity: .5; }

.ls-station-pad {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(circle at 50% 100%, var(--door-color, var(--accent)), transparent 70%);
  border: 2px solid var(--door-color, var(--accent));
  box-shadow: 0 0 18px -4px var(--door-color, var(--accent)), 0 8px 18px rgba(0,0,0,.4);
  transition: box-shadow .15s, transform .15s;
}
.ls-station:hover .ls-station-pad {
  box-shadow: 0 0 36px -2px var(--door-color, var(--accent)), 0 14px 26px rgba(0,0,0,.5);
}
/* Soft glow on the floor under the station */
.ls-station-pad::before {
  content: '';
  position: absolute;
  bottom: -12px; left: -6px; right: -6px;
  height: 16px;
  border-radius: 12px;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--door-color, var(--accent)), transparent 70%);
  opacity: .3;
  filter: blur(6px);
  z-index: -1;
}
.ls-station-icon {
  font-size: 1.15rem; line-height: 1;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.6));
  position: relative; z-index: 1;
}
.ls-station-name {
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(0,0,0,.65);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--door-color, var(--border));
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-station-pres {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--door-color, var(--accent));
  color: #1a0e05;
  font-weight: 800;
  font-size: .56rem;
  border-radius: 999px;
  padding: 1px 5px;
  min-width: 16px; text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.4);
  border: 2px solid rgba(20,18,28,.95);
}
.ls-station-pres.idle {
  background: rgba(255,255,255,.10);
  color: var(--muted);
}
.ls-station.full .ls-station-name::after {
  content: ' · FULL';
  color: var(--danger);
}

/* ── Hover card ──
   Pops up next to the station with description, player count, big Join button.
   Pure CSS visibility — JS adds .show-card for context-click pinning. */
.ls-station-card {
  position: absolute;
  left: 50%; bottom: calc(100% + 16px);
  transform: translateX(-50%) translateY(6px);
  width: 240px;
  background: rgba(20, 18, 28, .98);
  border: 1px solid var(--door-color, rgba(255,255,255,.18));
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  z-index: 50;
}
.ls-station:hover .ls-station-card,
.ls-station:focus-within .ls-station-card,
.ls-station.show-card .ls-station-card {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Flip the card BELOW the station for top-row rooms (CSS class added in JS) */
.ls-station.flip-card .ls-station-card {
  bottom: auto; top: calc(100% + 16px);
  transform: translateX(-50%) translateY(-6px);
}
.ls-station.flip-card:hover .ls-station-card,
.ls-station.flip-card:focus-within .ls-station-card,
.ls-station.flip-card.show-card .ls-station-card {
  transform: translateX(-50%) translateY(0);
}
.ls-card-head {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 10px; align-items: center;
  margin-bottom: 8px;
}
.ls-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 70%),
              radial-gradient(circle at 50% 100%, var(--door-color, var(--accent)), transparent 70%);
  border: 2px solid var(--door-color, var(--accent));
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.ls-card-name { font-size: .98rem; font-weight: 800; color: var(--text); display: block; }
.ls-card-type { font-size: .64rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.ls-card-desc {
  font-size: .8rem;
  line-height: 1.4;
  color: rgba(255,255,255,.78);
  margin: 0 0 10px;
}
.ls-card-stats {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.ls-card-stat {
  font-size: .68rem;
  font-weight: 700;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 4px;
}
.ls-card-stat.live  { background: rgba(80, 200, 120, .15); border-color: rgba(120, 220, 160, .35); }
.ls-card-stat.full  { background: rgba(220, 80, 80, .18);  border-color: rgba(240, 120, 120, .55); color: #ffbcbc; }
.ls-card-actions {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px;
}
.ls-card-join {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--door-color, var(--accent));
  color: #1a0e05;
  font-weight: 800; font-size: .85rem;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.ls-card-join:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ls-card-more {
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: .85rem;
}
.ls-card-more:hover { background: rgba(255,255,255,.05); border-color: var(--door-color, var(--accent)); }

/* ── Context menu (right-click on a station) ── */
.ls-station-ctx {
  position: fixed;
  z-index: 80;
  min-width: 200px;
  background: rgba(20,18,28,.98);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  display: flex; flex-direction: column; gap: 2px;
}
.ls-station-ctx.hidden { display: none; }
.ls-station-ctx button {
  background: transparent; border: 0;
  color: var(--text);
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.ls-station-ctx button:hover { background: rgba(255,255,255,.06); }
.ls-station-ctx .ls-ctx-sep {
  height: 1px; background: rgba(255,255,255,.08);
  margin: 4px 0;
}
.ls-station-ctx .danger { color: #ffb7b7; }

.lobby-floor-title {
  position: absolute;
  top: 14px; left: 16px;
  text-align: left;
  pointer-events: none;
  z-index: 2;
  max-width: 50vw;
}
.lobby-floor-title .eyebrow { font-size: .56rem; color: var(--accent); }
.lobby-floor-title h1 {
  font-size: clamp(.85rem, 1.4vw, 1rem);
  font-weight: 700; color: var(--muted);
  letter-spacing: 0;
}

/* Online pill (top-center of world) */
.lobby-online-pill {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.lobby-online-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Identity float — top-right of floor */
.lobby-id-float {
  position: absolute;
  top: 12px; right: 16px;
  z-index: 8;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(20,14,26,.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lobby-id-float:hover { border-color: var(--accent); }
.lobby-id-pip {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem;
  background: var(--bg2);
  border: 2px solid var(--border-hi);
}
.lobby-id-meta { min-width: 0; }
.lobby-id-meta .eyebrow { color: var(--accent); font-size: .58rem; }
.lobby-id-meta span { font-weight: 700; font-size: .9rem; }

/* ── Avatars (movable) ───────────────────────── */
.lobby-avatars {
  position: absolute; inset: 0;
  z-index: 3;
}
.ls-avatar {
  position: absolute;
  width: 34px; height: 34px;
  left: calc(var(--x, .5) * 100%);
  top:  calc(var(--y, .5) * 100%);
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--av-color, #888);
  font-size: 1.05rem;
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 18px rgba(0,0,0,.4);
  transition: left .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1);
  cursor: grab;
  user-select: none; touch-action: none;
  z-index: 1;
}
.ls-avatar.is-me {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 0 22px var(--av-color, var(--accent)), 0 10px 18px rgba(0,0,0,.4);
  z-index: 5;
  transition: none; /* responsive drag */
}
.ls-avatar:hover { filter: brightness(1.1); }
.ls-avatar:active { cursor: grabbing; }
/* Other users are clickable → opens DM thread in the private toolkit */
.ls-avatar.lobby-av-clickable { cursor: pointer; }
.ls-avatar.lobby-av-clickable:active { cursor: pointer; }
.ls-av-dm-hint {
  position: absolute;
  bottom: -6px; right: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(14, 10, 22, .92);
  border: 2px solid rgba(120, 100, 220, .6);
  color: #fff;
  font-size: .72rem;
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.ls-avatar.lobby-av-clickable .ls-av-dm-hint { display: flex; }
.ls-avatar.lobby-av-clickable:hover { box-shadow: 0 0 0 3px rgba(120, 100, 220, .35), 0 16px 24px rgba(0,0,0,.45); }
body.vr-mode .ls-av-dm-hint { width: 28px; height: 28px; font-size: .9rem; }
.ls-avatar::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 4px; right: 4px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,0,0,.45), transparent 70%);
  filter: blur(4px);
  z-index: -1;
}
.ls-av-name {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 4px);
  font-size: .58rem;
  font-weight: 700;
  background: rgba(0,0,0,.65);
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  pointer-events: none;
}
/* Bubble stays comfortably readable even though the avatar shrunk —
   D's call: "avatars smaller but still want to be able to see their chat bubbles." */
.ls-av-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 6px);
  background: rgba(36,26,32,.96);
  border: 1px solid var(--av-color, var(--accent));
  color: #fff;
  font-size: .78rem;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 12px 12px 12px 4px;
  min-width: 44px;
  max-width: 200px;
  box-shadow: 0 12px 24px rgba(0,0,0,.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 9;
}
.ls-av-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 16px;
  width: 12px; height: 12px;
  background: rgba(36,26,32,.96);
  border-right: 1px solid var(--av-color, var(--accent));
  border-bottom: 1px solid var(--av-color, var(--accent));
  transform: rotate(45deg);
}
.ls-avatar.has-bubble .ls-av-bubble {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Say-bar (now in bottom toolbar) ── */
.lobby-say-bar {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 4px 3px 10px;
  background: transparent;
  border: none;
  border-radius: 999px;
  width: auto;
  flex: 1;
  min-width: 200px;
  z-index: 7;
  box-shadow: none;
}
.lobby-say-icon { font-size: .92rem; opacity: .85; }
.lobby-say-bar input {
  flex: 1; background: transparent; border: none; color: var(--text);
  padding: 5px 4px;
  min-height: 26px;
  /* 16px font-size on inputs prevents iOS Safari from auto-zooming when focused */
  font-size: 16px;
}
/* Tighten the inline buttons (📜 chat-log + Say) on the say-bar */
.lobby-say-bar .btn-sm,
.lobby-say-bar button[type="submit"] {
  padding: 5px 12px;
  font-size: .82rem;
  min-height: 28px;
  border-radius: 999px;
}
/* Mode + STT + voice-record buttons share a compact-circle look.
   Mode button is wider (pill) so it can carry a label like "📢 Chat". */
.ls-say-mode-btn,
.ls-say-mic-btn,
.ls-say-voice-btn {
  height: 30px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: .92rem;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s, transform .12s, border-color .12s;
}
.ls-say-mic-btn,
.ls-say-voice-btn {
  width: auto;
  min-width: 52px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}
.ls-say-mode-btn {
  width: auto;
  min-width: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.ls-say-mode-btn:hover,
.ls-say-mic-btn:hover,
.ls-say-voice-btn:hover { background: var(--accent-dim); border-color: var(--accent); }
.ls-say-mic-btn.active,
.ls-say-voice-btn.active {
  background: var(--accent); color: #1a0e05;
  border-color: var(--accent);
  animation: lsRecPulse 1.1s ease-in-out infinite;
}
@keyframes lsRecPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(240,160,80,.6); }
  50%     { box-shadow: 0 0 0 6px rgba(240,160,80,0); }
}
/* Bubble-mode shows 💬, broadcast-mode shows 📢. Default broadcast (matches old behavior). */
.ls-say-mode-btn[data-mode="bubble"] { color: var(--muted); }
.ls-say-mode-btn[data-mode="broadcast"] { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

/* Voice-record overlay (now in bottom toolbar) */
.lobby-voice-overlay {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px;
  background: rgba(40,12,16,.96);
  border: 1px solid #e74c3c;
  border-radius: 999px;
  width: auto;
  flex: 1;
  min-width: 200px;
  z-index: 8;
  box-shadow: none;
  font-size: .82rem;
  color: var(--text);
}
.lobby-voice-overlay.hidden { display: none; }
.lobby-voice-overlay .lvr-pulse {
  width: 12px; height: 12px;
  background: #e74c3c;
  border-radius: 50%;
  animation: lsRecBlink .9s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes lsRecBlink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(.8); }
}
.lobby-voice-overlay .lvr-label { font-weight: 800; }
.lobby-voice-overlay .lvr-time { color: #f0a050; font-variant-numeric: tabular-nums; }
.lobby-voice-overlay .lvr-hint { margin-left: auto; color: var(--muted); font-size: .68rem; }
.lobby-voice-overlay.cancelling { background: rgba(40,12,16,.96); border-color: #888; }
.lobby-voice-overlay.cancelling .lvr-label { color: #888; }
.lobby-voice-overlay.cancelling .lvr-pulse { animation: none; opacity: .4; }
/* Make the chat-log button distinct so users notice there IS a saved chat —
   D's note: "easier to see that there is a chat room that shows the chat logs". */
#lobby-chat-toggle-btn {
  position: relative;
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid var(--border-hi);
}
#lobby-chat-toggle-btn:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
#lobby-chat-toggle-btn.has-unread::after {
  content: '';
  position: absolute;
  top: 2px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.lobby-say-bar input:focus { outline: none; }

/* ── Lobby chat history panel (slides up) ─────── */
/* ── Persistent chat rail (right column, Camp-Chat style) ──
   On desktop the rail is always visible at the right edge of the lobby world,
   showing the saved lobby chat. On phone it collapses behind the 📜 button
   and slides up as an overlay (legacy behavior preserved). The world width
   shrinks to make room for the rail on desktop. */
.lobby-chat-panel {
  position: absolute;
  /* See .lobby-rooms-rail note (2026-05-06): hug the bottombar's top edge. */
  top: 12px; right: 12px; bottom: 0;
  width: 240px;
  z-index: 8;
  background: rgba(20,14,26,.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.55);
  /* Desktop: always visible, no fade-in */
  opacity: 1; pointer-events: auto;
  transition: opacity .2s, transform .2s;
}
.lobby-chat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.lobby-chat-panel-head h3 { margin: 0; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lobby-chat-panel-head #lobby-chat-close { display: none; }
.lobby-chat-log {
  list-style: none; padding: 8px 10px;
  flex: 1; overflow-y: auto;
  /* 2026-05-06 — D: lobby chat panel had a single message at top
     and a giant gap before the input. Pin messages to the bottom
     of the panel so the conversation reads like Discord/WhatsApp. */
  display: flex; flex-direction: column; gap: 6px;
  justify-content: flex-end;
}
.lobby-chat-log:empty { justify-content: center; }
.lobby-chat-log:empty::before {
  content: 'No messages yet — say hi.';
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
  padding: 16px 8px;
  opacity: .7;
}
.lobby-chat-msg {
  display: grid;
  /* 2026-05-06 — D: "the player icon should be next to the chat text".
     Bumped from 18px → 28px so the icon reads as a real avatar pip,
     not a stray letter. Click the icon to open profile / DM / mute. */
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  align-items: start;
  padding: 6px 8px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.lobby-chat-msg .lc-icon {
  grid-row: 1 / span 2;
  align-self: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  color: #1a0e05;
  background: var(--user-color, var(--accent, #f0a050));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  flex-shrink: 0;
}
.lobby-chat-msg .lc-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--accent, #f0a050);
}
.lobby-chat-msg .lc-icon.has-pic { color: transparent; }
.lobby-chat-msg .lc-name { font-weight: 700; font-size: .72rem; }
.lobby-chat-msg .lc-text { font-size: .78rem; line-height: 1.35; word-break: break-word; grid-column: 2; }
.lobby-chat-msg .lc-time { color: var(--muted); font-size: .58rem; grid-column: 2; }
/* Voice-message embed inside a chat row (rendered when message has voiceUrl) */
/* The floating "YOU [name] Edit" card in the upper-right of the lobby
   is now redundant — the toolkit drawer header (.tk-id-strip) shows
   the same identity info and is reachable from any page. Hide it to
   declutter the lobby world. */
.lobby-id-float { display: none !important; }

.lobby-chat-msg .lc-voice {
  grid-column: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px;
  background: rgba(120,100,220,.08);
  border-radius: 6px;
  border: 1px solid rgba(120,100,220,.18);
}
.lobby-chat-msg .lc-voice audio { height: 26px; flex: 1; min-width: 0; }
.lobby-chat-msg .lc-voice .lc-voice-dur { font-size: .64rem; color: var(--muted); }

/* Phone (≤720px): collapse to slide-up overlay (legacy behavior) */
/* 2026-05-25 — REMOVED: this block conflicted with the side-drawer
   layout farther down (lobby.css:1885 + :1898). The phone-portrait
   full-bleed and tablet width overrides at end of file handle the
   responsive sizing now; the open trigger is body.ls-chat-open set by
   lobby.js:976, not the legacy .open class. Keeping just the per-row
   tightening + tap-target bumps. */
@media (max-width: 720px) {
  .lobby-chat-panel-head { padding: 10px 14px 8px; font-size: 1rem; }
  .lobby-chat-panel-head h3 { font-size: .92rem; }
  .lobby-chat-panel-head #lobby-chat-close {
    display: inline-flex; min-width: 44px; min-height: 36px;
    align-items: center; justify-content: center;
  }
  .lobby-chat-log { padding: 10px 12px; gap: 6px; }
  .lobby-chat-msg { padding: 7px 10px; }
  .lobby-chat-msg .lc-name { font-size: .82rem; }
  .lobby-chat-msg .lc-text { font-size: .92rem; }
  .lobby-chat-msg .lc-time { font-size: .66rem; }
  /* Make the open-chat toggle button more findable */
  #ls-chat-toggle {
    min-width: 72px; min-height: 44px;
    font-size: .92rem; font-weight: 700;
  }
  #ls-chat-toggle.has-unread::after {
    content: ''; position: absolute;
    top: 4px; right: 4px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent2, #ff7043);
    box-shadow: 0 0 0 2px var(--bg, #1a1118);
  }
}

/* ── Identity GATE (full overlay until name set) ── */
.lobby-id-gate {
  position: absolute; inset: 0;
  z-index: 90;
  background: radial-gradient(ellipse at 50% 50%, #1a1028 0%, #050308 70%);
  display: grid; place-items: center;
  padding: 16px;
  overflow: hidden; /* compact layout fits one viewport — no scroll */
}
.lobby-id-gate[hidden] { display: none; }

/* Soft drifting orbs in the gate background */
.lobby-id-gate-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.lobby-id-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  animation: lobbyIdOrb 6s ease-in-out infinite alternate;
}
.lobby-id-orb-a { width: 50vmax; height: 50vmax; background: var(--accent); top: -22vmax; left: -18vmax; opacity: .35; }
.lobby-id-orb-b { width: 45vmax; height: 45vmax; background: var(--accent2); bottom: -22vmax; right: -18vmax; opacity: .3; animation-delay: -3s; }
@keyframes lobbyIdOrb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vmax, -4vmax) scale(1.12); }
}

.lobby-id-gate-card {
  position: relative; z-index: 1;
  max-width: 440px; width: 100%;
  max-height: 100%; /* never taller than the gate, even on tiny viewports */
  background: rgba(20, 14, 28, .82);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 14px 18px 12px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  backdrop-filter: blur(14px);
  animation: lobbyIdRise .6s cubic-bezier(.2,1.05,.3,1) both;
  overflow-y: auto; /* safety net — only scrolls if the viewport is unusually short */
}
@keyframes lobbyIdRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.lobby-id-head { display: flex; flex-direction: column; gap: 2px; }
.lobby-id-head .eyebrow { margin: 0; font-size: .66rem; letter-spacing: .16em; }
.lobby-id-gate-card h2 {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; margin: 2px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Live avatar preview — circle of color + icon + name */
.lobby-id-preview {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}
.lobby-id-preview-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.55rem;
  background: var(--accent);
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  transition: background-color .15s;
}
.lobby-id-preview-meta { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.lobby-id-preview-meta .eyebrow { margin: 0; font-size: .62rem; letter-spacing: .16em; }
.lobby-id-preview-meta strong {
  font-size: 1.1rem; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}

.lobby-id-gate-card input#gate-name {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: .98rem;
  color: var(--text);
}
.lobby-id-gate-card input#gate-name:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,160,80,.18);
}

.lobby-id-section { display: flex; flex-direction: column; gap: 4px; }
.lobby-id-section .eyebrow { margin: 0; font-size: .62rem; letter-spacing: .14em; }

/* Tight icon grid: 8 cols × 2 rows = all 16 icons visible without scroll */
.gate-icons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}
.gate-icons button {
  font-size: .76rem; line-height: 1;
  font-weight: 900;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,.04);
  border: 2px solid var(--border);
  border-radius: 9px;
  cursor: pointer; padding: 0;
  transition: border-color .12s, background .12s, transform .12s;
}
.gate-icons button:hover { border-color: rgba(255,255,255,.25); }
.gate-icons button.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
}

/* Color row: 12 in a single line */
.gate-colors {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
}
.gate-colors button {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer; padding: 0;
  transition: transform .12s, border-color .12s;
}
.gate-colors button:hover { transform: scale(1.08); }
.gate-colors button.active { border-color: var(--text); transform: scale(1.12); }

/* Big punchy enter button */
.lobby-id-enter {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 2px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: #150a04;
  border-radius: 999px;
  font-weight: 900; font-size: 1rem; letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 14px 30px -8px rgba(240,160,80,.45);
  transition: transform .15s, box-shadow .15s;
}
.lobby-id-enter:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 18px 38px -8px rgba(240,160,80,.6); }
.lobby-id-enter:active { transform: scale(.98); }
.lobby-id-enter-arrow { transition: transform .2s; }
.lobby-id-enter:hover .lobby-id-enter-arrow { transform: translateX(3px); }
.lobby-id-foot { text-align: center; margin: 0; font-size: .68rem; letter-spacing: .02em; }
/* On very short viewports drop the helper text + the WELCOME eyebrow so the
   button always stays in view without scrolling. */
@media (max-height: 620px) {
  .lobby-id-foot { display: none; }
  .lobby-id-head .eyebrow { display: none; }
  .lobby-id-gate-card h2 { font-size: 1.15rem; }
  /* 2026-05-04 — compress card so it fits one viewport without scrolling */
  .lobby-id-gate { padding: 8px; }
  .lobby-id-gate-card { padding: 10px 14px 10px; gap: 6px; overflow-y: hidden; }
  .lobby-id-preview { padding: 6px 8px; gap: 8px; }
  .lobby-id-preview-circle { width: 40px; height: 40px; font-size: 1.2rem; }
  .lobby-id-section { gap: 3px; }
  .lobby-id-section .eyebrow { margin-bottom: 2px; }
  .gate-icons button { min-height: 30px; font-size: .6rem; border-radius: 7px; }
  .gate-colors button { width: 22px; height: 22px; }
  .lobby-id-enter { padding: 10px 20px; font-size: .9rem; }
}
@media (max-height: 500px) {
  /* Very tight (landscape phone): hide preview entirely, collapse further */
  .lobby-id-preview { display: none; }
  .lobby-id-gate-card { gap: 4px; }
  .gate-icons { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .lobby-id-enter { padding: 8px 16px; font-size: .84rem; }
}

/* Phone: drop to 6-cols icon grid so cells stay tappable */
@media (max-width: 480px) {
  .lobby-id-gate { padding: 10px; }
  .lobby-id-gate-card { padding: 14px 14px 12px; gap: 8px; max-width: 100%; }
  .lobby-id-gate-card h2 { font-size: 1.25rem; }
  .lobby-id-preview { padding: 8px 10px; grid-template-columns: 52px 1fr; gap: 10px; }
  .lobby-id-preview-circle { width: 52px; height: 52px; font-size: 1.5rem; }
  .lobby-id-preview-meta strong { font-size: 1rem; }
  .gate-icons { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
  .gate-icons button { font-size: .72rem; border-width: 1.5px; border-radius: 8px; }
  .gate-colors { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
  .gate-colors button { border-width: 2px; }
}

/* VR mode: bigger targets for controllers */
body.vr-mode .lobby-id-gate-card { max-width: 540px; padding: 22px 24px 20px; }
body.vr-mode .lobby-id-gate-card h2 { font-size: 1.8rem; }
body.vr-mode .lobby-id-preview-circle { width: 84px; height: 84px; font-size: 2.4rem; }
body.vr-mode .gate-icons button { font-size: 1.05rem; }
body.vr-mode .lobby-id-enter { font-size: 1.2rem; padding: 16px 30px; }

/* ── IDENTITY MODAL — v2.5 (touch-friendly, big preview) ── */
.id-card { max-width: 460px; padding: 0; overflow: hidden; }
.id-close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: var(--text);
  font-size: 1rem; cursor: pointer;
  z-index: 2;
}
.id-close:hover { background: rgba(0,0,0,.6); }
.id-body {
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 22px 22px 18px;
}

/* Live preview avatar */
.id-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, var(--user-color, #3498db) 0%, transparent 70%);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  transition: background .35s ease;
  margin-bottom: 4px;
}
.id-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--user-color, #3498db);
  display: grid; place-items: center;
  font-size: 2.4rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.18);
  flex-shrink: 0;
  transition: background .25s ease, transform .15s ease;
}
.id-avatar.bump { animation: id-avatar-bump .35s cubic-bezier(.2,.9,.3,1.4); }
@keyframes id-avatar-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-8deg); }
  100% { transform: scale(1); }
}
.id-avatar-icon { line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.id-preview-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.id-preview-name {
  font-size: 1.2rem; font-weight: 600;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.id-preview-hint { font-size: .75rem; color: var(--muted); }

/* Name input */
.id-name-wrap { display: flex; flex-direction: column; gap: 6px; }
.id-name-label { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.id-name-wrap input {
  background: rgba(255,255,255,.05);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1.1rem;
  color: var(--text);
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.id-name-wrap input:focus {
  outline: none;
  border-color: var(--user-color, var(--accent));
  background: rgba(255,255,255,.08);
}

/* Tab toggle */
.id-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 4px;
}
.id-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .92rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.id-tab.active {
  background: rgba(255,255,255,.1);
  color: var(--text);
}
.id-tab-pane { display: none; min-height: 200px; }
.id-tab-pane.active { display: block; animation: id-pane-fade .2s ease; }
@keyframes id-pane-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Icon grid: 6 cols on phones, scroll if needed */
.id-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.id-icons button {
  font-size: .86rem; line-height: 1;
  font-weight: 900;
  aspect-ratio: 1;
  min-height: 52px;
  background: rgba(255,255,255,.05);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer; padding: 0;
  display: grid; place-items: center;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.id-icons button:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }
.id-icons button:active { transform: scale(.92); }
.id-icons button.active {
  border-color: var(--user-color, var(--accent));
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--user-color, var(--accent)) 25%, transparent);
}

/* Color grid: 8 cols, big circle taps */
.id-colors {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.id-colors button {
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer; padding: 0;
  transition: transform .12s ease, box-shadow .15s;
}
.id-colors button:hover { transform: translateY(-2px); }
.id-colors button:active { transform: scale(.88); }
.id-colors button.active {
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(0,0,0,.55), 0 4px 14px rgba(0,0,0,.4);
}

/* Action row */
.id-actions {
  display: flex; gap: 10px;
  margin-top: 4px;
}
.id-shuffle {
  flex-shrink: 0;
  width: 54px; height: 54px;
  font-size: 1.5rem;
  border-radius: 12px;
  display: grid; place-items: center;
  cursor: pointer;
  background: rgba(255,255,255,.05);
  border: 2px solid var(--border);
  color: var(--text);
  transition: background .15s, transform .15s;
}
.id-shuffle:hover { background: rgba(255,255,255,.1); }
.id-shuffle:active { transform: rotate(180deg) scale(.9); }
.id-enter {
  flex: 1;
  min-height: 54px;
  font-size: 1.1rem; font-weight: 600;
  border-radius: 12px;
  background: var(--user-color, var(--accent));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: filter .15s, transform .12s;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--user-color, var(--accent)) 35%, transparent);
}
.id-enter:hover { filter: brightness(1.1); }
.id-enter:active { transform: translateY(1px); }

.id-foot { text-align: center; font-size: .75rem; margin: 0; }

/* Phone tweaks */
@media (max-width: 480px) {
  .id-card { max-width: 100%; margin: 0 8px; }
  .id-body { padding: 18px 16px 14px; gap: 12px; }
  .id-avatar { width: 64px; height: 64px; font-size: 2.1rem; }
  .id-icons { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .id-icons button { min-height: 48px; font-size: .82rem; }
  .id-colors { grid-template-columns: repeat(8, 1fr); gap: 6px; }
  .id-colors button { min-height: 36px; }
}

/* VR mode: bigger everything */
body.vr-mode .id-card { max-width: 560px; }
body.vr-mode .id-avatar { width: 96px; height: 96px; font-size: 3rem; }
body.vr-mode .id-preview-name { font-size: 1.5rem; }
body.vr-mode .id-name-wrap input { font-size: 1.3rem; padding: 18px 18px; }
body.vr-mode .id-tab { font-size: 1.05rem; padding: 14px; }
body.vr-mode .id-icons { grid-template-columns: repeat(5, 1fr); gap: 12px; }
body.vr-mode .id-icons button { min-height: 72px; font-size: 1.2rem; }
body.vr-mode .id-colors { grid-template-columns: repeat(8, 1fr); gap: 10px; }
body.vr-mode .id-colors button { min-height: 52px; }
body.vr-mode .id-shuffle { width: 64px; height: 64px; font-size: 1.7rem; }
body.vr-mode .id-enter { min-height: 64px; font-size: 1.25rem; }

/* ── TOOLS DRAWER (unchanged) ──────────────────── */
.ls-tools-drawer {
  position: fixed;
  bottom: 70px; left: 0; right: 0;
  z-index: 65;
  background: var(--bg);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -16px 40px -10px rgba(0,0,0,.55);
  max-height: 80vh; overflow-y: auto;
  transform: translateY(0);
  transition: transform .25s cubic-bezier(.2,.9,.25,1), opacity .2s;
}
.ls-tools-drawer.hidden { display: block; transform: translateY(110%); opacity: 0; pointer-events: none; }
.ls-tools-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.ls-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 16px;
}
.ls-tool {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.ls-tool h4 { font-size: .92rem; }
.ls-tool input, .ls-tool textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  width: 100%;
}
.ls-tool textarea { min-height: 110px; resize: vertical; }
.tool-timer-display {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 2.6rem; font-weight: 800;
  text-align: center;
  letter-spacing: .04em;
  color: var(--accent);
}
.tool-timer-display.warn { color: #ffd76b; animation: pulse .6s ease infinite alternate; }
.tool-timer-display.done { color: var(--danger); }
.tool-timer-row { display: flex; gap: 6px; }
.tool-timer-row input { flex: 0 0 80px; }
.tool-timer-presets { display: flex; gap: 4px; flex-wrap: wrap; }
.tool-timer-presets button {
  flex: 1; min-width: 50px;
  font-size: .8rem; padding: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}
.tool-timer-presets button:hover { border-color: var(--accent); }
.tool-calc-out {
  font-family: ui-monospace, monospace;
  font-size: 1.4rem; font-weight: 700;
  text-align: right;
  color: var(--accent);
}
.tool-dice-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-dice-out {
  font-family: ui-monospace, monospace;
  font-size: 1.6rem; font-weight: 800;
  text-align: center; padding: 10px;
  background: var(--bg2);
  border-radius: 8px;
}
.tool-notepad textarea { min-height: 140px; }

/* ── VR Mode scaling ─────────────────────────
   Headsets need bigger tap targets for controllers — keep stations + say-bar
   beefy in VR mode while desktop/phone stay compact. */
body.vr-mode .ls-station { width: 96px; }
body.vr-mode .ls-station-pad { width: 72px; height: 72px; border-radius: 14px; }
body.vr-mode .ls-station-icon { font-size: 2rem; }
body.vr-mode .ls-station-name { font-size: .82rem; padding: 3px 10px; }
body.vr-mode .ls-station-pres { font-size: .78rem; min-width: 22px; }
body.vr-mode .ls-avatar { width: 56px; height: 56px; font-size: 1.7rem; }
body.vr-mode .ls-av-bubble { font-size: 1rem; }
body.vr-mode .lobby-say-bar { width: min(700px, calc(100% - 40px)); padding: 8px 8px 8px 14px; }
body.vr-mode .lobby-say-bar input { min-height: 44px; font-size: 1.1rem; }
body.vr-mode .lobby-floor-title h1 { font-size: 2.2rem; }

/* ── Mobile (≤720px wide) ────────────────────
   Both rails collapse: rooms-rail becomes a horizontal strip across the top of
   the world; chat-panel slides up as overlay (defined elsewhere). World goes
   full-width minus the small horizontal padding. */
@media (max-width: 720px) {
  .lobby-world { left: 0; right: 0; top: 64px; }
  /* Rooms rail flips to a top horizontal strip on phone */
  .lobby-rooms-rail {
    top: 8px; left: 8px; right: 8px; bottom: auto;
    width: auto;
    height: 56px;
    border-radius: 10px;
    z-index: 9;
  }
  .lobby-rooms-head { display: none; }
  .lobby-rooms-list {
    flex-direction: row;
    padding: 6px 8px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .lobby-rooms-list .ls-rooms-row {
    grid-template-columns: 24px auto;
    gap: 6px;
    padding: 4px 8px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .lobby-rooms-list .lr-icon { width: 24px; height: 24px; font-size: .8rem; border-radius: 6px; }
  .lobby-rooms-list .lr-name { font-size: .68rem; }
  .lobby-rooms-list .lr-pres { display: none; }
  /* Identity float / floor title polish for phone */
  .lobby-id-float { padding: 4px 10px 4px 4px; }
  .lobby-id-pip { width: 28px; height: 28px; font-size: .95rem; }
  .lobby-id-meta span { font-size: .78rem; }
  .ls-splash-mark { font-size: 4.5rem; }
  /* Say-bar full-width on phone, tight padding */
  .lobby-say-bar { width: calc(100% - 16px); bottom: 6px; padding: 4px 6px 4px 10px; }
  .lobby-say-icon { font-size: .9rem; }
}

/* ── Very narrow phones (<420px) — final compaction ── */
@media (max-width: 420px) {
  .lobby-rooms-list .ls-rooms-row { padding: 3px 6px; }
  .lobby-rooms-list .lr-name { font-size: .62rem; max-width: 70px; }
}

/* ── Stopwatch laps + Reactions tool (v2.5) ── */
.tool-sw-laps { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 140px; overflow-y: auto; }
.sw-lap { display: flex; justify-content: space-between; padding: 4px 8px; background: rgba(255,255,255,.04); border-radius: 6px; font-size: .85rem; }
.sw-lap span { color: var(--muted); }

.tool-fx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.tool-fx {
  font-size: 1.4rem;
  aspect-ratio: 1;
  min-height: 44px;
  background: rgba(255,255,255,.05);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .12s ease, background .15s;
}
.tool-fx:hover { background: rgba(255,255,255,.1); }
.tool-fx:active, .tool-fx.pop { transform: scale(1.25); }

/* Floating reaction layer (body-level overlay) */
.ls-fx-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.ls-fx-bubble {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  animation: ls-fx-rise linear forwards;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
  user-select: none;
}
@keyframes ls-fx-rise {
  0%   { transform: translateY(0) translateX(0) scale(.8); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(var(--drift, 0)) scale(1.1); opacity: 0; }
}

body.vr-mode .tool-fx-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
body.vr-mode .tool-fx { min-height: 64px; font-size: 2rem; }

/* ── Chat-input OSK toggle (v2.5) ── */
.chat-osk-btn { font-size: 1.1rem; padding: 6px 8px; }
.chat-osk-btn.active { background: var(--accent); color: #000; }
/* Compact mode: a smaller OSK that docks above the chat input area */
body.osk-compact #ls-osk {
  font-size: 0.9rem;
  max-height: 38vh;
  padding: 6px;
}
body.osk-compact #ls-osk .ls-osk-key {
  min-height: 36px;
  font-size: 0.95rem;
}
/* "Big mode" button for VR */
.ls-osk-size-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: var(--fg); border-radius: 6px; padding: 4px 8px; font-size: .8rem; cursor: pointer; }
.ls-osk-size-btn:hover { background: rgba(255,255,255,.15); }

/* ── Timer end-flash overlay (v2.5) ── */
.ls-timer-flash {
  position: fixed; inset: 0;
  background: var(--accent, #ffd76b);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
}
.ls-timer-flash.on {
  animation: ls-timer-flash-anim 1.8s ease-out;
}
@keyframes ls-timer-flash-anim {
  0%   { opacity: 0; }
  5%   { opacity: 0.85; }
  20%  { opacity: 0.2; }
  35%  { opacity: 0.85; }
  50%  { opacity: 0.2; }
  65%  { opacity: 0.85; }
  100% { opacity: 0; }
}

/* ── Speaker queue (the "conch") ── */
.speaker-queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  margin-bottom: 10px;
}
.speaker-queue-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem;
  color: var(--muted);
}
.speaker-queue-list { display: flex; flex-direction: column; gap: 4px; }
.speaker-queue-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  font-size: .9rem;
}
.speaker-queue-item.current {
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent, #ffd76b) 40%, transparent), transparent);
  border-left: 3px solid var(--accent, #ffd76b);
  font-weight: 600;
}
.speaker-queue-item .pos { font-weight: 700; min-width: 22px; color: var(--accent, #ffd76b); }
.speaker-queue-item .ic { font-size: 1.1rem; }
.speaker-queue-item .nm { flex: 1; }
.speaker-queue-item .x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .9rem; }
.speaker-queue-item .x:hover { color: var(--danger, #f55); }
.speaker-queue-actions { display: flex; gap: 6px; }
.speaker-queue-actions .btn-sm { font-size: .8rem; padding: 4px 10px; }

/* ── Debate notes (shared + private) ── */
.debate-notes-cell textarea,
.debate-private-cell textarea {
  width: 100%;
  background: rgba(0,0,0,.25);
  color: var(--fg, #f5ede8);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
  margin-top: 6px;
}
.debate-notes-cell textarea:focus,
.debate-private-cell textarea:focus {
  outline: none;
  border-color: var(--accent, #ffd76b);
}
.debate-notes-actions {
  display: flex; gap: 8px;
  margin-top: 8px;
}
.debate-private-cell { background: linear-gradient(180deg, rgba(255,215,107,.04), transparent); }

/* ════════════════════════════════════════════════════════════════════
   ── v2.28 (2026-04-30) — Phase 1 + 2 polish ──
   • Say-bar pill is a touch wider so the labeled mode button fits.
   • Chat panel: kill horizontal scroll bleed from long voice rows.
   • Voice-record overlay relocates INTO the chat panel (sticky bottom),
     instead of covering the say-bar. Recording while typing is fine now.
   • Mobile (≤720px): rooms-rail and chat-panel turn into slide-in drawers
     triggered by 🚪 Rooms / 💬 Chat toggle chips at the top of the world.
     The old top-strip rooms-rail is replaced.
   ════════════════════════════════════════════════════════════════════ */

/* Say-bar wider to fit the label on the mode pill ("📢 Chat" / "💬 Bubble"). */
.lobby-say-bar { width: min(440px, calc(100% - 24px)); }

/* Chat panel: clamp horizontal overflow (long URLs / wide voice rows). */
.lobby-chat-panel { overflow-x: hidden; }
.lobby-chat-log { overflow-x: hidden; word-break: break-word; }
.lobby-chat-msg { min-width: 0; }
.lobby-chat-msg .lc-text,
.lobby-chat-msg .lc-voice { min-width: 0; overflow-wrap: anywhere; }

/* Voice-record overlay lives INSIDE the chat panel now. Absolutely
   positioned at the bottom of the panel (above the quick-reply strip)
   so it doesn't fight with the say-bar input. */
.lobby-chat-panel { position: absolute; }
.lobby-chat-panel .lobby-voice-overlay {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  transform: none;
  width: auto; max-width: none;
  border-radius: 12px;
}

/* Rail toggle chips — visible only on phone (CSS-hidden on desktop). */
.lobby-rail-toggles {
  display: none;
  position: absolute;
  top: 8px; left: 8px;
  gap: 6px;
  z-index: 10;
}
.lobby-rail-toggle {
  background: rgba(20,14,26,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 6px 10px;
  border-radius: 999px;
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lobby-rail-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: #1a0e05;
  border-color: var(--accent);
}

/* Mobile drawer behavior — rails become slide-in panels.
   Override the v2.27 "top horizontal strip" rooms-rail rule so the new
   chip-based UX takes effect on phone. */
@media (max-width: 720px) {
  /* World goes full-bleed; the old top:64px gap (which made room for the
     horizontal rooms strip) is no longer needed. */
  .lobby-world { top: 0; }

  /* Show the toggle chips */
  .lobby-rail-toggles { display: flex; }

  /* Rooms rail — slides in from the LEFT */
  .lobby-rooms-rail {
    top: 0; left: 0; right: auto; bottom: 0;
    width: min(280px, 78vw);
    height: auto;
    border-radius: 0 14px 14px 0;
    z-index: 11;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: 6px 0 24px -12px rgba(0,0,0,.7);
  }
  .lobby-rooms-head { display: flex; }
  .lobby-rooms-list {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: none;
  }
  .lobby-rooms-list .ls-rooms-row {
    grid-template-columns: 32px 1fr auto;
    gap: 8px;
    padding: 6px 10px;
    flex-shrink: 0;
  }
  .lobby-rooms-list .lr-icon { width: 32px; height: 32px; font-size: 1rem; border-radius: 8px; }
  .lobby-rooms-list .lr-name { font-size: .82rem; max-width: none; }
  .lobby-rooms-list .lr-pres { display: inline-flex; }
  body.ls-rooms-open .lobby-rooms-rail { transform: translateX(0); }

  /* Chat panel — slides in from the RIGHT, full height drawer.
     2026-05-25 — D wants chat to be more visible on phone portrait.
     Was 320px wide; bumped to full viewport on phones (≤480) and 86vw
     on small tablets so the conversation gets the spotlight when open. */
  .lobby-chat-panel {
    top: 0; bottom: 0; right: 0; left: auto;
    width: min(420px, 92vw);
    max-height: none;
    border-radius: 14px 0 0 14px;
    transform: translateX(102%);
    transition: transform .22s ease;
    opacity: 1; pointer-events: none;
    z-index: 11;
    box-shadow: -6px 0 24px -12px rgba(0,0,0,.7);
  }
  body.ls-chat-open .lobby-chat-panel {
    transform: translateX(0);
    pointer-events: auto;
  }
  /* legacy `.open` flag still works for backward compat */
  .lobby-chat-panel.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .lobby-chat-panel-head #lobby-chat-close { display: inline-flex; }

  /* Backdrop tint when a drawer is open (just dims the world bg slightly) */
  body.ls-rooms-open .lobby-world::before,
  body.ls-chat-open  .lobby-world::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 10;
    pointer-events: none;
  }

  /* Mode pill is text-only on phone — keep the icon+label combo */
  .lobby-say-bar { width: calc(100% - 16px); }

  /* When chat-toggle 📜 is removed from say-bar, no more chat-toggle-btn
     selector exists. The mobile chat toggle is now the chip up top. */
}

/* ═══════════════════════════════════════════════════════════════════════
   Phase 4 — Away/mood quick toggle (next to online pill)
   ═══════════════════════════════════════════════════════════════════════ */
.lobby-away-btn {
  position: absolute;
  top: 14px; left: 50%;
  /* Sit just to the right of the centered online pill. */
  transform: translateX(calc(-50% + 92px));
  z-index: 7;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.lobby-away-btn:hover { border-color: var(--accent); color: var(--text); }
.lobby-away-btn.away {
  background: rgba(110, 80, 160, .35);
  border-color: #8e7bbf;
  color: #d8c8ff;
}

/* ═══════════════════════════════════════════════════════════════════════
   Phase 5 — Lobby radio bar (anchored bottom-left of the world)
   ═══════════════════════════════════════════════════════════════════════ */
.lobby-radio-bar {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 6;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 4px 4px 6px;
  background: rgba(0,0,0,.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  max-width: 240px;
  box-shadow: 0 4px 14px -8px rgba(0,0,0,.6);
}
.lobby-radio-bar.is-playing { border-color: var(--accent); }
.lobby-radio-toggle {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.lobby-radio-toggle:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.lobby-radio-bar.is-playing .lobby-radio-toggle { border-color: var(--accent); }
.lobby-radio-title {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 0 8px 0 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.lobby-radio-title:hover { color: var(--accent); }
.lobby-radio-mute {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 6px;
}
.lobby-radio-mute:hover { background: rgba(255,255,255,.08); }
.lobby-radio-mute.is-muted { color: #ff9b6b; }
.lobby-radio-prev,
.lobby-radio-next {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 6px;
}
.lobby-radio-prev:hover,
.lobby-radio-next:hover { background: rgba(255,255,255,.08); color: #fff; }

@media (max-width: 720px) {
  /* Phone: shrink + tuck above the say-bar so it doesn't overlap the rail-toggles. */
  .lobby-away-btn {
    transform: translateX(calc(-50% + 76px));
    font-size: .72rem;
    padding: 4px 9px;
  }
  .lobby-radio-bar {
    bottom: 76px; /* clear the say-bar */
    left: 8px;
    max-width: 180px;
  }
  .lobby-radio-title { max-width: 120px; font-size: .72rem; }
}

/* v2.45: Lobby Chat owns its own composer; the floor bar can stay focused on
   temporary bubbles or saved chat without crowding voice controls. */
.lobby-chat-panel {
  display: flex;
  flex-direction: column;
}
.lobby-chat-log {
  flex: 1;
  min-height: 0;
  padding-bottom: 8px;
}
.lobby-chat-compose {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--border);
  background: rgba(10,6,14,.72);
}
.lobby-chat-compose input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
  font-size: .86rem;
}
.lobby-chat-compose input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.lobby-chat-compose .btn-sm,
.lobby-chat-compose .lobby-chat-voice-btn {
  min-height: 34px;
  white-space: nowrap;
}
.lobby-chat-panel .lobby-voice-overlay {
  bottom: 58px;
}
.lobby-chat-msg .lc-person {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.lobby-chat-msg .lc-person:hover { text-decoration: underline; }
.ls-lobby-notice {
  max-width: 240px;
  font-weight: 800;
  line-height: 1.35;
}

/* Keep the lobby radio away from the floor input and the right chat rail. */
.lobby-radio-bar {
  left: 14px;
  top: 14px;
  bottom: auto;
  max-width: min(380px, calc(100% - 30px));
  border-radius: 14px;
}
.lobby-radio-title { max-width: 230px; }
.lobby-radio-toggle,
.lobby-radio-prev,
.lobby-radio-next,
.lobby-radio-mute {
  min-width: 44px;
  height: 28px;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 800;
  padding: 0 8px;
  width: auto;
}
.lobby-radio-mute { border: 1px solid transparent; }
.lobby-radio-mute.is-muted {
  border-color: #ff9b6b;
  background: rgba(255,155,107,.12);
}

@media (max-width: 720px) {
  .lobby-radio-bar {
    top: 48px;
    bottom: auto;
    left: 8px;
    right: 8px;
    max-width: none;
  }
  .lobby-radio-title { max-width: none; flex: 1; }
  .lobby-chat-compose {
    grid-template-columns: 1fr auto;
  }
  .lobby-chat-compose .lobby-chat-voice-btn {
    display: none;
  }
}

/* v2.46: quieter lobby rail + shared ambient controls. */
@media (min-width: 721px) {
  .lobby-world { right: 236px; }
  .lobby-chat-panel {
    width: 218px;
    top: 10px;
    right: 10px;
    bottom: 70px;
    border-radius: 12px;
  }
}
.lobby-chat-panel {
  background: rgba(16, 10, 22, .9);
  box-shadow: 0 16px 34px -16px rgba(0,0,0,.68);
}
.lobby-chat-panel-head {
  padding: 7px 9px 5px;
}
.lobby-chat-panel-head h3 {
  font-size: .72rem;
}
.lobby-chat-log {
  padding: 7px 8px;
  gap: 5px;
}
.lobby-chat-msg {
  grid-template-columns: 16px 1fr;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.lobby-chat-msg .lc-icon {
  font-size: .78rem;
}
.lobby-chat-msg .lc-name {
  font-size: .68rem;
}
.lobby-chat-msg .lc-text {
  font-size: .75rem;
  line-height: 1.28;
}
.lobby-chat-msg .lc-time {
  font-size: .55rem;
}
.lobby-chat-msg .lc-voice {
  padding: 3px 5px;
}
.lobby-chat-compose {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px;
  padding: 7px;
}
.lobby-chat-compose input {
  min-height: 32px;
  padding: 7px 9px;
  font-size: .78rem;
  border-radius: 9px;
}
.lobby-chat-compose .btn-sm,
.lobby-chat-compose .lobby-chat-voice-btn {
  min-height: 32px;
  padding-inline: 10px;
  font-size: .72rem;
}

.lobby-radio-bar {
  left: 12px;
  top: 12px;
  gap: 4px;
  padding: 4px 6px 4px 4px;
  max-width: min(360px, calc(100% - 24px));
  min-height: 38px;
  border-radius: 999px;
  /* 2026-05-06 — D: "music player should look better". Stronger pill
     background, joined buttons, accent ring when playing. */
  background: linear-gradient(135deg, rgba(20,14,30,.92), rgba(28,18,40,.88));
  border-color: rgba(255,255,255,.14);
  opacity: 1;
  box-shadow: 0 10px 26px -16px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.04);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lobby-radio-bar:hover,
.lobby-radio-bar:focus-within,
.lobby-radio-bar.is-playing {
  background: linear-gradient(135deg, rgba(28,18,42,.96), rgba(38,22,52,.92));
}
.lobby-radio-bar.is-playing {
  box-shadow: 0 10px 26px -16px rgba(0,0,0,.85), inset 0 0 0 1px var(--accent, #f0a050);
}
.lobby-radio-bar.is-playing {
  border-color: rgba(255, 215, 107, .34);
}
.lobby-radio-title {
  max-width: 140px;
  padding: 0 8px;
  color: rgba(255,255,255,.92);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lobby-radio-toggle,
.lobby-radio-prev,
.lobby-radio-next,
.lobby-radio-shuffle,
.lobby-radio-queue,
.lobby-radio-mute {
  min-width: 0;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 10px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.lobby-radio-toggle {
  width: 32px; height: 32px;
  padding: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.10);
}
.lobby-radio-bar.is-playing .lobby-radio-toggle {
  background: var(--accent, #f0a050);
  color: #1a0e05;
  border-color: var(--accent, #f0a050);
}
.lobby-radio-shuffle,
.lobby-radio-queue {
  color: color-mix(in srgb, var(--accent) 70%, white 30%);
}
.lobby-radio-mute.is-muted {
  border-color: rgba(255,155,107,.48);
  background: rgba(255,155,107,.10);
}
.lobby-radio-toggle:hover,
.lobby-radio-prev:hover,
.lobby-radio-next:hover,
.lobby-radio-shuffle:hover,
.lobby-radio-queue:hover,
.lobby-radio-mute:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

@media (max-width: 720px) {
  .lobby-chat-panel {
    width: min(300px, 84vw);
  }
  .lobby-chat-compose {
    grid-template-columns: 1fr auto;
  }
  .lobby-radio-bar {
    top: 46px;
    left: 8px;
    right: 8px;
    max-width: none;
  }
  .lobby-radio-title {
    flex: 1;
    max-width: none;
  }
  .lobby-radio-prev,
  .lobby-radio-next {
    display: none;
  }
  .lobby-radio-toggle,
  .lobby-radio-shuffle,
  .lobby-radio-queue,
  .lobby-radio-mute {
    height: 28px;
    padding-inline: 8px;
  }
}

/* v2.47: shared radio cleanup after audit. The lobby owns one shared queue, so
   expose shuffle/skip/queue without a misleading personal previous control. */
.lobby-radio-prev {
  display: none !important;
}

.lobby-radio-next {
  color: rgba(255,255,255,.86);
}

.lobby-radio-queue[aria-label="Open queue and library"] {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.075);
}

/* v2.51: Refined Lobby Chat rail. The rail should feel like a live room
   surface instead of a plain debug column. */
@media (min-width: 1120px) {
  body.ls-page-lobby .lobby-world {
    right: 316px;
  }

  body.ls-page-lobby .lobby-chat-panel {
    width: 296px;
  }
}

body.ls-page-lobby .lobby-chat-panel {
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(123, 224, 196, .12), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(246, 179, 84, .10), transparent 36%),
    linear-gradient(180deg, rgba(24, 16, 30, .90), rgba(9, 7, 13, .94)) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, .48),
    inset 0 0 0 1px rgba(255, 255, 255, .055) !important;
}

body.ls-page-lobby .lobby-chat-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 224, 196, .72), rgba(246, 179, 84, .42), transparent);
  pointer-events: none;
}

body.ls-page-lobby .lobby-chat-panel-head {
  min-height: 52px;
  padding: 10px 12px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018));
  border-bottom: 1px solid rgba(255, 255, 255, .105);
}

.lobby-chat-title {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lobby-chat-title h3,
body.ls-page-lobby .lobby-chat-panel-head h3 {
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lobby-chat-title span {
  color: rgba(255, 255, 255, .52);
  font-size: .64rem;
  font-weight: 800;
}

.lobby-chat-live {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(123, 224, 196, .24);
  background: rgba(123, 224, 196, .08);
  color: #b8fff1;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lobby-chat-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7be0c4;
  box-shadow: 0 0 10px rgba(123, 224, 196, .75);
}

body.ls-page-lobby .lobby-chat-log {
  padding: 12px 10px 10px;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(123, 224, 196, .055), transparent 42%);
}

body.ls-page-lobby .lobby-chat-log:empty::before {
  content: "Lobby is quiet. Start the room.";
  width: 100%;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .62);
  padding: 18px 12px;
}

body.ls-page-lobby .lobby-chat-msg {
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 9px;
  row-gap: 2px;
  padding: 9px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .105);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .20);
}

body.ls-page-lobby .lobby-chat-msg:hover {
  border-color: rgba(255, 255, 255, .20);
  background: linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .045));
}

body.ls-page-lobby .lobby-chat-msg:last-child {
  border-color: rgba(123, 224, 196, .26);
}

body.ls-page-lobby .lobby-chat-msg .lc-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .045), 0 8px 18px rgba(0, 0, 0, .24);
}

body.ls-page-lobby .lobby-chat-msg .lc-name,
body.ls-page-lobby .lobby-chat-msg .lc-text,
body.ls-page-lobby .lobby-chat-msg .lc-time,
body.ls-page-lobby .lobby-chat-msg .ls-voice-bubble {
  grid-column: 2;
}

body.ls-page-lobby .lobby-chat-msg .lc-name {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .72rem;
  line-height: 1.15;
  letter-spacing: .02em;
}

body.ls-page-lobby .lobby-chat-msg .lc-text {
  color: rgba(255, 255, 255, .88);
  font-size: .86rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

body.ls-page-lobby .lobby-chat-msg .lc-time {
  justify-self: start;
  margin-top: 2px;
  color: rgba(255, 255, 255, .44);
  font-size: .62rem;
  font-weight: 700;
}

body.ls-page-lobby .lobby-chat-msg.is-mine {
  grid-template-columns: minmax(0, 1fr) 34px;
  background: linear-gradient(180deg, rgba(123, 224, 196, .13), rgba(123, 224, 196, .055));
  border-color: rgba(123, 224, 196, .24);
}

body.ls-page-lobby .lobby-chat-msg.is-mine .lc-icon {
  grid-column: 2;
}

body.ls-page-lobby .lobby-chat-msg.is-mine .lc-name,
body.ls-page-lobby .lobby-chat-msg.is-mine .lc-text,
body.ls-page-lobby .lobby-chat-msg.is-mine .lc-time,
body.ls-page-lobby .lobby-chat-msg.is-mine .ls-voice-bubble {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

body.ls-page-lobby .lobby-chat-compose {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  background: linear-gradient(180deg, rgba(10, 6, 14, .62), rgba(10, 6, 14, .88));
}

body.ls-page-lobby .lobby-chat-compose input {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
  font-size: .82rem;
}

body.ls-page-lobby .lobby-chat-compose input:focus {
  outline: 0;
  border-color: rgba(123, 224, 196, .68);
  box-shadow: 0 0 0 3px rgba(123, 224, 196, .13), inset 0 0 0 1px rgba(0, 0, 0, .16);
}

body.ls-page-lobby .lobby-chat-compose .btn-sm,
body.ls-page-lobby .lobby-chat-compose .lobby-chat-voice-btn {
  min-height: 40px;
  border-radius: 999px;
  padding-inline: 12px;
  font-size: .74rem;
  font-weight: 900;
}

body.ls-page-lobby .lobby-chat-compose .lobby-chat-voice-btn {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .82);
}

body.ls-page-lobby .lobby-chat-compose .btn-accent {
  border: 0;
  background: linear-gradient(135deg, #f6b354, #7be0c4);
  color: #150f14;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

/* 2026-05-25 — Final phone-portrait override for lobby chat.
   D ask: "want to see the chat better in the lobby" on mobile. Previous
   rules sized the panel at 320-340px (~half the phone width). At phone
   portrait (≤480px) it now takes 100% width so the whole conversation
   gets the screen; chat input row sits clear of the bottombar. */
@media (max-width: 480px) {
  body.ls-page-lobby .lobby-chat-panel {
    width: 100% !important;
    top: 0 !important; bottom: 0 !important;
    right: 0 !important; left: 0 !important;
    border-radius: 0 !important;
  }
  body.ls-page-lobby .lobby-chat-panel-head { min-height: 50px; }
  body.ls-page-lobby .lobby-chat-compose { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Tablet / small landscape — keep side-drawer style but wider than 320px */
@media (min-width: 481px) and (max-width: 720px) {
  body.ls-page-lobby .lobby-chat-panel {
    width: min(420px, 88vw);
    bottom: 0;
    border-radius: 16px 0 0 16px;
  }
  body.ls-page-lobby .lobby-chat-panel-head { min-height: 54px; }
  body.ls-page-lobby .lobby-chat-compose { grid-template-columns: minmax(0, 1fr) auto; }
}

/* 2026-06-15 lobby refinement: stronger media stage, clearer rails, and
   touch-friendly chat/room controls for mobile and VR browsers. */
body.ls-page-lobby .lobby-map {
  background:
    linear-gradient(180deg, rgba(8,5,12,.12), rgba(8,5,12,.62)),
    url("img/lobby-bg.jpg") center / cover no-repeat,
    #09060d !important;
}

body.ls-page-lobby .lobby-world {
  border-left: 1px solid rgba(255,255,255,.06);
  border-right: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(7,5,11,.20), rgba(7,5,11,.46)),
    radial-gradient(circle at 50% 70%, rgba(123,224,196,.10), transparent 38%);
}

body.ls-page-lobby .lobby-video-bg,
body.ls-page-lobby .lobby-bg-video {
  opacity: .82;
}

body.ls-page-lobby .lobby-world::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,4,10,.46), transparent 22%, transparent 78%, rgba(6,4,10,.46)),
    radial-gradient(ellipse at 50% 40%, transparent 0%, transparent 58%, rgba(5,3,8,.48) 100%);
  z-index: 1;
}

body.ls-page-lobby .lobby-rooms-rail,
body.ls-page-lobby .lobby-chat-panel {
  background:
    linear-gradient(180deg, rgba(22,16,28,.94), rgba(12,8,17,.94)) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

body.ls-page-lobby .lobby-rooms-head,
body.ls-page-lobby .lobby-chat-panel-head {
  min-height: 48px;
  padding: 10px 12px !important;
  background: rgba(255,255,255,.025);
}

body.ls-page-lobby .lobby-rooms-list {
  gap: 7px !important;
  padding: 9px !important;
}

body.ls-page-lobby .lobby-rooms-list .ls-rooms-row,
body.ls-page-lobby .lobby-rooms-list .ls-rooms-group-head {
  min-height: 48px;
  border-radius: 13px !important;
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.09) !important;
}

body.ls-page-lobby .lobby-rooms-list .ls-rooms-row:hover,
body.ls-page-lobby .lobby-rooms-list .ls-rooms-group-head:hover,
body.ls-page-lobby .lobby-rooms-list .ls-rooms-group-head.open {
  background: rgba(120,210,255,.11) !important;
  border-color: color-mix(in srgb, var(--door-color, #7be0c4) 64%, white 10%) !important;
}

body.ls-page-lobby .lobby-rooms-list .lr-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,.24);
}

body.ls-page-lobby .lobby-rooms-list .lr-name {
  font-size: .82rem;
}

body.ls-page-lobby .lobby-chat-log {
  padding: 12px !important;
  gap: 10px !important;
}

body.ls-page-lobby .lobby-chat-msg {
  border-radius: 16px !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.08);
}

body.ls-page-lobby .lobby-rail-toggles {
  left: 12px;
  top: 12px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(10,7,14,.72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.ls-page-lobby .lobby-rail-toggle {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
}

body.ls-page-lobby .lobby-say-bar {
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

body.ls-page-lobby .lobby-say-bar input {
  min-height: 38px;
}

body.ls-page-lobby .ls-say-mode-btn,
body.ls-page-lobby .ls-say-mic-btn,
body.ls-page-lobby .ls-say-voice-btn,
body.ls-page-lobby .lobby-say-bar button[type="submit"] {
  min-height: 38px;
}

body.vr-mode.ls-page-lobby .lobby-rooms-list .ls-rooms-row,
body.vr-mode.ls-page-lobby .lobby-rooms-list .ls-rooms-group-head {
  min-height: 58px;
}

body.vr-mode.ls-page-lobby .lobby-chat-msg,
body.vr-mode.ls-page-lobby .lobby-chat-compose input,
body.vr-mode.ls-page-lobby .lobby-say-bar input {
  font-size: 1.08rem;
}

@media (max-width: 720px) {
  body.ls-page-lobby .lobby-world {
    left: 0 !important;
    right: 0 !important;
    border: 0;
  }

  body.ls-page-lobby .lobby-rooms-rail,
  body.ls-page-lobby .lobby-chat-panel {
    top: 0 !important;
    bottom: 0 !important;
  }

  body.ls-page-lobby .lobby-rooms-list .ls-rooms-row,
  body.ls-page-lobby .lobby-rooms-list .ls-rooms-group-head {
    min-height: 54px;
  }

  body.ls-page-lobby .lobby-say-bar {
    width: 100% !important;
    min-width: 0;
    min-height: 54px;
  }
}
