/* ==========================================================================
   NỔ TÉT ĐÍT — LOBBY V5 RESPONSIVE STYLESHEET
   Covers Desktop, Mobile Portrait, and Mobile Landscape across:
   Home, Room List, Room Code Modal, Character Setup, and Waiting Room.
   ========================================================================== */

/* 1. Shared Forest Background across all Lobby screens */
#lobby-container:is([data-screen="home"], [data-screen="rooms"], [data-screen="setup"], [data-screen="lobby"]) .home-scene-bg {
  background: url('/art/lobby-v4/start-forest.webp') center / cover no-repeat;
}
#lobby-container:is([data-screen="home"], [data-screen="rooms"], [data-screen="setup"], [data-screen="lobby"]) .home-scene-bg > * {
  display: none;
}

/* Hide redundant top room badge while in lobby; room code lives inside Waiting Room */
body:not(.in-game) #top-room-badge {
  display: none !important;
}

/* 2. Top-Left Live Counter (#home-stats) & Top-Right Utility Controls (#top-controls)
   Unified height, background, border, and radius per v5 handoff spec */
#lobby-container .v4-stats {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  z-index: 90;
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: rgba(1, 34, 39, 0.9);
  border: 2px solid #22ddeb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font: 800 20px/1 var(--font-display);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#lobby-container .v4-stats:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
#lobby-container .v4-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#lobby-container .v4-stats .icon {
  width: 22px;
  height: 22px;
  color: #5ef2ff;
}
#lobby-container .v4-stats-sep {
  width: 1.5px;
  height: 22px;
  background: rgba(34, 221, 235, 0.35);
  display: inline-block;
}
body:not(.in-game) #top-controls {
  top: max(14px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  gap: 8px;
}
body:not(.in-game) #top-controls .icon-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  background: rgba(1, 34, 39, 0.9);
  border: 2px solid #22ddeb;
  color: #e0faff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* 3. Screen 01: Home Screen (Trang chủ) */
#lobby-container .v4-home {
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.6vh, 24px);
  padding: 16px 0;
}
#lobby-container .v4-logo {
  width: min(680px, 72vw);
  filter: drop-shadow(0 10px 14px #001a19);
}
#lobby-container .v4-start {
  width: min(520px, 80vw);
  min-height: 96px;
  font-size: clamp(28px, 3.8vw, 48px);
  border-radius: 26px;
  box-shadow: 0 9px 0 #182b14, inset 0 3px 0 #fff7ab;
}
#lobby-container .v4-start .icon {
  width: 44px;
  height: 44px;
}
#lobby-container .v4-guide {
  background: rgba(0, 44, 49, 0.92);
  border: 2px solid #20e4f5;
  color: #ffffff;
  border-radius: 14px;
  font-weight: 800;
}
#lobby-container .v4-guide:hover {
  background: rgba(4, 66, 74, 0.96);
  border-color: #67f3ff;
}
#lobby-container .v4-home .v4-guide {
  min-height: 60px;
  width: min(380px, 68vw);
  font-size: 22px;
  border-radius: 20px;
}
#lobby-container .v4-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1.5px solid #1aa3a8;
  border-radius: 999px;
  background: rgba(0, 36, 40, 0.92);
  color: #f0fdfa;
  font-weight: 800;
}
#lobby-container .v4-steps .icon {
  color: #fbbf24;
}

/* 4. Screen 02: Room List (Danh sách phòng) */
#lobby-container[data-screen="rooms"] {
  align-items: center;
}
#lobby-container[data-screen="rooms"] .lobby-card {
  justify-content: center;
  max-width: 1120px;
}
#lobby-container .v4-rooms {
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
#lobby-container .v4-small-logo {
  width: min(250px, 24vw);
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}
#lobby-container .v4-browser {
  background: rgba(0, 31, 36, 0.95);
  border: 2.5px solid #22e3f5;
  border-radius: 24px;
  padding: 20px 24px;
  box-shadow: 0 0 0 3px #001316, 0 16px 40px rgba(0, 0, 0, 0.65);
  color: #ffffff;
}
#lobby-container .v4-browser-header,
#lobby-container .v4-profile-row,
#lobby-container .v4-filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
#lobby-container .v4-browser-header h1 {
  margin: 6px 0 0;
  font: 900 clamp(22px, 2.4vw, 34px)/1.1 var(--font-display);
  color: #ffffff;
}
#lobby-container .v4-back,
#lobby-container .v5-setup #btn-setup-back,
#lobby-container .v5-waiting #btn-room-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  min-height: 30px;
  background: rgba(0, 44, 49, 0.92);
  border: 1.5px solid #20e4f5;
  border-radius: 10px;
  color: #ffffff;
  font: 800 12.5px/1.15 var(--font-body);
  cursor: pointer;
  box-shadow: 0 2px 0 #041512;
}
#lobby-container .v4-back:hover,
#lobby-container .v5-setup #btn-setup-back:hover,
#lobby-container .v5-waiting #btn-room-back:hover {
  background: rgba(4, 66, 74, 0.96);
  border-color: #67f3ff;
  color: #ffffff;
}
#lobby-container .v4-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
#lobby-container .v4-actions .arcade-btn {
  white-space: nowrap;
  width: auto;
  min-height: 50px;
  padding: 0 20px;
  font-size: 16px;
}
#lobby-container .v4-profile-row {
  padding: 12px 0;
  margin: 10px 0;
  border-block: 1px solid rgba(38, 229, 246, 0.24);
}
#lobby-container .v4-profile-box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#lobby-container .v4-profile-meta small,
#lobby-container .room-item-info small,
#lobby-container .v4-players small {
  display: block;
  color: #9dc5d1;
  font-size: 13px;
}
#lobby-container #browser-name {
  display: block;
  font: 900 22px/1.15 var(--font-display);
  color: #ffffff;
}
#lobby-container .v4-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 2.5px solid #22ddeb;
  border-radius: 50%;
  padding: 4px;
  background: #002225;
  cursor: pointer;
}
#lobby-container .v4-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
#lobby-container .v4-avatar span {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #003a42;
  border: 2px solid #22ddeb;
  color: #22ddeb;
}
#lobby-container .v4-avatar span .icon {
  width: 12px;
  height: 12px;
}
#lobby-container .v4-search-wrap {
  position: relative;
  margin-left: auto;
  width: min(420px, 46%);
  display: flex;
  align-items: center;
}
#lobby-container .v4-search-wrap > .icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #7cc2cf;
  pointer-events: none;
}
#lobby-container #room-search {
  width: 100%;
  min-height: 46px;
  padding-left: 42px;
  border-radius: 13px;
  background: rgba(1, 22, 26, 0.9);
  border: 1.5px solid rgba(34, 221, 235, 0.38);
  color: #ffffff;
}
#lobby-container .v4-filters {
  display: flex;
  background: rgba(1, 22, 26, 0.85);
  border: 1.5px solid rgba(34, 221, 235, 0.35);
  border-radius: 13px;
  padding: 3px;
}
#lobby-container .v4-filters button {
  border: 0;
  background: transparent;
  color: #d1eef5;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 10px;
  font: 800 14px/1 var(--font-body);
  cursor: pointer;
}
#lobby-container .v4-filters button[aria-pressed="true"] {
  background: #22e3f5;
  color: #002026;
}
#lobby-container #home-room-count-badge {
  color: #b4dce6;
  font: 800 15px/1 var(--font-body);
}
#lobby-container .v4-table-head,
#lobby-container[data-screen="rooms"] .home-room-item {
  display: grid;
  grid-template-columns: 2.1fr 0.9fr 1.35fr 1.35fr;
  gap: 16px;
  align-items: center;
}
#lobby-container .v4-table-head {
  padding: 10px 16px 4px;
  color: #93bdc9;
  font: 800 13px/1 var(--font-display);
  letter-spacing: 0.04em;
}
#lobby-container[data-screen="rooms"] .home-room-list {
  min-height: 170px;
  max-height: 32vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#lobby-container[data-screen="rooms"] .home-room-item {
  padding: 10px 16px;
  background: rgba(1, 44, 50, 0.62);
  border: 1.5px solid rgba(34, 221, 235, 0.28);
  border-radius: 15px;
  flex-shrink: 0;
}
#lobby-container[data-screen="rooms"] .room-item-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#lobby-container .room-host-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #22ddeb;
  background: #012328;
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
}
#lobby-container[data-screen="rooms"] .room-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
#lobby-container[data-screen="rooms"] .room-item-meta small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#lobby-container[data-screen="rooms"] .room-item-code {
  font: 900 22px/1.1 var(--font-display);
  color: #ffffff;
}
#lobby-container .v4-players strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 900 21px/1.1 var(--font-display);
  color: #ffffff;
}
#lobby-container .v4-players strong .icon {
  width: 18px;
  height: 18px;
  color: #2ce6f7;
  flex-shrink: 0;
}
#lobby-container .status-short {
  display: none;
}
#lobby-container[data-screen="rooms"] .room-item-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: start;
  padding: 7px 14px;
  border-radius: 999px;
  font: 800 13px/1 var(--font-display);
  white-space: nowrap;
}
#lobby-container[data-screen="rooms"] .room-item-status .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
#lobby-container[data-screen="rooms"] .room-item-btn {
  width: 100% !important;
  min-height: 46px;
  font-size: 14px;
  border-radius: 12px;
}
#lobby-container[data-screen="rooms"] .room-item-btn.is-full {
  background: rgba(51, 65, 85, 0.92) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.6) !important;
  color: #e2e8f0 !important;
  opacity: 1 !important;
}
#lobby-container .v4-browser footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #79dce8;
  border-top: 1px solid rgba(34, 221, 235, 0.22);
  margin-top: 10px;
  padding-top: 10px;
  font: 700 13.5px/1.3 var(--font-body);
}

/* 5. Room Code Modal (#room-code-dialog) — Minimalist v5 design + backdrop blur */
#room-code-dialog {
  margin: auto;
  width: min(500px, calc(100vw - 28px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 24px 26px 26px;
  border: 2.5px solid #22e3f5;
  border-radius: 24px;
  background: rgba(1, 33, 38, 0.98);
  color: #ffffff;
  box-shadow: 0 0 0 3px #001316, 0 24px 70px rgba(0, 0, 0, 0.8);
}
#room-code-dialog:not([open]) {
  display: none;
}
#room-code-dialog::backdrop {
  background: rgba(1, 10, 13, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#room-code-dialog h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-right: 52px;
  margin: 0 0 18px 0;
  font: 900 26px/1.15 var(--font-display);
  color: #ffffff;
}
#room-code-dialog h2 .icon {
  width: 28px;
  height: 28px;
  color: #2ce6f7;
}
#room-code-dialog #home-room-code {
  width: 100%;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(0, 19, 23, 0.92);
  border: 2px solid #25dff0;
  color: #ffffff;
  font: 900 28px/1 var(--font-display);
  letter-spacing: 2px;
  text-align: left;
  text-transform: uppercase;
}
#room-code-dialog #home-room-code::placeholder {
  letter-spacing: 0.5px;
  text-transform: none;
  font: 700 20px/1 var(--font-body);
  color: rgba(165, 216, 226, 0.45);
}
#lobby-container #room-code-dialog #home-room-code.has-error {
  border-color: #ff6473;
  box-shadow: 0 0 0 1px #ff6473;
}
#room-code-dialog #home-join-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #ff7d8a;
  font: 700 15px/1.3 var(--font-body);
}
#room-code-dialog #home-join-error:empty {
  display: none;
}
#room-code-dialog #home-join-error:not(:empty)::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font: 900 13px/1 var(--font-display);
  flex-shrink: 0;
}
#room-code-dialog #btn-home-join {
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  font-size: 22px;
  border-radius: 16px;
}
#room-code-dialog .v4-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #d2f4fa;
  background: rgba(2, 52, 60, 0.85);
  border: 1.5px solid rgba(34, 221, 235, 0.45);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* 6. Screen 03: Character Setup (#setup-section.v5-setup) */
#lobby-container[data-screen="setup"] .lobby-card {
  max-width: 1020px;
  justify-content: center;
}
#lobby-container #setup-section.v5-setup {
  max-width: 980px;
  gap: 8px;
}
#lobby-container .v5-setup .setup-panel {
  display: grid;
  grid-template-columns: minmax(240px, 35%) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 12px 24px;
  padding: 22px 26px;
  min-height: 0;
}
#lobby-container .v5-setup .setup-header-bar {
  display: contents;
}
#lobby-container .v5-setup #btn-setup-back {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  z-index: 2;
  margin: 12px 0 0 12px;
}
#lobby-container .v5-setup #setup-mode-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #ffffff;
  font: 900 clamp(24px, 2.5vw, 34px)/1.1 var(--font-display);
}
#lobby-container .v5-setup .setup-col-left {
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 46px 18px 20px;
  background: radial-gradient(ellipse at 50% 55%, rgba(34, 221, 235, 0.18) 0%, rgba(1, 22, 26, 0.88) 74%);
  border: 1.5px solid rgba(34, 221, 235, 0.35);
  border-radius: 18px;
}
#lobby-container .v5-setup .preview-name-pill {
  color: #ffffff;
  font-size: 24px;
}
#lobby-container .v5-setup .preview-expression-pill {
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(1, 45, 52, 0.9);
  border: 1.5px solid rgba(34, 221, 235, 0.45);
  color: #a5f3fc;
  font: 800 13px/1.2 var(--font-body);
}
#lobby-container .v5-setup .setup-col-right {
  grid-column: 2;
  grid-row: 2;
  gap: 14px;
}
#lobby-container .v5-setup .greeting-name-box {
  background: rgba(1, 20, 24, 0.92);
  border: 1.5px solid rgba(34, 221, 235, 0.42);
  border-radius: 14px;
}
#lobby-container .v5-setup .color-dot {
  min-height: 46px;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  justify-self: center;
  background: var(--player-color, #ef4444);
  border: 3px solid rgba(0, 20, 24, 0.9);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}
#lobby-container .v5-setup .color-dot::before {
  display: none;
}
#lobby-container .v5-setup .color-dot .icon {
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s ease, transform 0.12s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
#lobby-container .v5-setup .color-dot.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px #22e3f5, 0 4px 10px rgba(0, 0, 0, 0.6);
}
#lobby-container .v5-setup .color-dot.active .icon {
  opacity: 1;
  transform: scale(1);
}
#lobby-container .v5-setup .avatar-option {
  min-height: 64px;
  background: rgba(1, 24, 29, 0.88);
  border: 2px solid rgba(34, 221, 235, 0.3);
  border-radius: 14px;
}
#lobby-container .v5-setup .avatar-option img {
  width: min(48px, 100%);
  height: 48px;
}
#lobby-container .v5-setup .avatar-option .avatar-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22e3f5;
  color: #002026;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
#lobby-container .v5-setup .avatar-option .avatar-check .icon {
  width: 12px;
  height: 12px;
}
#lobby-container .v5-setup .avatar-option.active {
  background: rgba(6, 62, 72, 0.92);
  border-color: #22e3f5;
  box-shadow: 0 0 0 2px rgba(34, 227, 245, 0.35);
}
#lobby-container .v5-setup .avatar-option.active .avatar-check {
  opacity: 1;
  transform: scale(1);
}
#lobby-container .v5-setup #btn-enter-room {
  min-height: 54px;
  font-size: 20px;
  border-radius: 16px;
}

/* 7. Screen 04: Waiting Room (#room-waiting-section.v5-waiting) */
#lobby-container[data-screen="lobby"] .lobby-card {
  max-width: 1120px;
  justify-content: center;
}
#lobby-container #room-waiting-section.v5-waiting {
  max-width: 1080px;
  gap: 6px;
}
#lobby-container .v5-waiting .waiting-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "title invite"
    "code capacity"
    "roster roster"
    "bothint actions";
  gap: 12px 16px;
  padding: 18px 24px;
  min-height: 0;
}
#lobby-container .v5-waiting .waiting-title-group {
  grid-area: title;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
#lobby-container .v5-waiting #btn-room-back {
  min-width: 44px;
}
#lobby-container .v5-waiting .room-screen-title {
  margin: 0;
  color: #ffffff;
  font: 900 clamp(22px, 2.3vw, 32px)/1.1 var(--font-display);
}
#lobby-container .v5-waiting .waiting-invite-group {
  grid-area: invite;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}
#lobby-container .v5-waiting .waiting-invite-group .arcade-btn,
#lobby-container .v5-waiting #btn-show-qr {
  min-height: 46px;
  padding: 0 18px;
  font-size: 15px;
  background: rgba(0, 44, 49, 0.92);
  border: 2px solid #20e4f5;
  color: #ffffff;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 4px 0 #041512;
}
#lobby-container .v5-waiting .room-code-banner {
  grid-area: code;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(1, 22, 26, 0.88);
  border: 1.5px solid rgba(34, 221, 235, 0.38);
  border-radius: 15px;
}
#lobby-container .v5-waiting .room-code-copy-icon {
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  gap: 6px;
  border-radius: 11px;
  background: rgba(3, 56, 64, 0.92);
  border: 1.5px solid rgba(34, 221, 235, 0.48);
  color: #e0faff;
  font: 800 13.5px/1 var(--font-body);
}
#lobby-container .v5-waiting .capacity-control-box {
  grid-area: capacity;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(1, 22, 26, 0.88);
  border: 1.5px solid rgba(34, 221, 235, 0.38);
  border-radius: 15px;
}
#lobby-container .v5-waiting .room-capacity-pill {
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 11px;
  background: rgba(3, 48, 56, 0.95);
  border: 1.5px solid #22ddeb;
  color: #ffffff;
  font: 800 15px/1.2 var(--font-display);
}
#lobby-container .v5-waiting .roster-block {
  grid-area: roster;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#lobby-container .v5-waiting .roster-header {
  margin-bottom: 8px;
}
#lobby-container .v5-waiting .roster-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
#lobby-container .v5-waiting .roster-heading {
  color: #ffffff;
  font: 900 18px/1.2 var(--font-display);
  text-transform: none;
}
#lobby-container .v5-waiting .roster-count {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(1, 22, 26, 0.9);
  border: 1.5px solid rgba(34, 221, 235, 0.38);
  color: #ffffff;
  font: 900 15px/1.2 var(--font-display);
}
#lobby-container .v5-waiting .roster-grid,
#lobby-container .v5-waiting .roster-grid[data-capacity] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 32vh;
  overflow-y: auto;
  padding-right: 2px;
}
#lobby-container .v5-waiting .roster-item {
  min-height: 118px;
  padding: 12px 10px 10px;
  background: rgba(2, 42, 48, 0.82);
  border: 2px solid rgba(34, 221, 235, 0.42);
  border-radius: 16px;
}
#lobby-container .v5-waiting .roster-item.is-host-slot {
  background: rgba(4, 54, 62, 0.92);
  border-color: #fbbf24;
}
#lobby-container .v5-waiting .roster-item.is-empty-slot {
  background: rgba(1, 24, 28, 0.55);
  border: 1.5px dashed rgba(34, 221, 235, 0.32);
}
#lobby-container .v5-waiting .roster-self-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 227, 245, 0.2);
  border: 1px solid #22e3f5;
  color: #a5f3fc;
  font: 800 11px/1.2 var(--font-body);
}
#lobby-container .v5-waiting .roster-host-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid #fbbf24;
  color: #fde047;
  font: 800 10.5px/1.2 var(--font-display);
}
#lobby-container .v5-waiting .roster-host-badge .icon {
  width: 12px;
  height: 12px;
}
#lobby-container .v5-waiting .roster-avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(1, 20, 24, 0.9);
  border: 2.5px solid var(--player-color, rgba(34, 221, 235, 0.35));
}
#lobby-container .v5-waiting .is-empty-slot .roster-avatar-wrap {
  border-style: dashed;
  border-color: rgba(34, 221, 235, 0.3);
}
#lobby-container .v5-waiting .room-bot-hint-box {
  grid-area: bothint;
  display: flex;
  align-items: center;
}
#lobby-container .v5-waiting .room-bot-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(1, 22, 26, 0.78);
  border: 1px solid rgba(34, 221, 235, 0.25);
  color: #b4dce6;
  font: 700 14px/1.25 var(--font-body);
}
#lobby-container .v5-waiting .room-bot-hint .icon {
  width: 18px;
  height: 18px;
  color: #2ce6f7;
  flex-shrink: 0;
}
#lobby-container .v5-waiting .waiting-bottom-bar {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: 0;
}
#lobby-container .v5-waiting #btn-leave-room {
  width: auto;
  min-width: 150px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: rgba(3, 44, 52, 0.92);
  border: 2px solid rgba(34, 221, 235, 0.55);
  color: #e0faff;
  font: 900 16px/1 var(--font-display);
}
#lobby-container .v5-waiting #btn-start-game {
  width: auto;
  min-width: 240px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 18px;
}

/* ==========================================================================
   MOBILE PORTRAIT (<= 700px and orientation: portrait)
   ========================================================================== */
@media (max-width: 700px) and (orientation: portrait) {
  #lobby-container .status-full {
    display: none;
  }
  #lobby-container .status-short {
    display: inline;
  }
  #lobby-container .v4-stats {
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    gap: 10px;
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
  }
  #lobby-container .v4-stats .icon {
    width: 18px;
    height: 18px;
  }
  body:not(.in-game) #top-controls {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    gap: 6px;
  }
  body:not(.in-game) #top-controls .icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }
  #lobby-container .v4-steps {
    font-size: 11.5px;
    gap: 5px;
    padding: 10px 14px;
  }
  #lobby-container .v4-steps .icon {
    width: 16px;
    height: 16px;
  }

  /* Room List Portrait */
  #lobby-container .v4-small-logo {
    width: min(170px, 44vw);
  }
  #lobby-container .v4-browser {
    padding: 12px;
    border-radius: 18px;
  }
  #lobby-container .v4-browser-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  #lobby-container .v4-actions {
    width: 100%;
    gap: 6px;
  }
  #lobby-container .v4-actions .arcade-btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 6px 8px;
    font-size: 11.5px;
  }
  #lobby-container .v4-profile-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    margin: 6px 0;
  }
  #lobby-container .v4-avatar {
    width: 52px;
    height: 52px;
  }
  #lobby-container #browser-name {
    font-size: 18px;
  }
  #lobby-container .v4-search-wrap {
    width: 100%;
  }
  #lobby-container .v4-filters button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }
  #lobby-container .v4-table-head {
    display: none;
  }
  #lobby-container[data-screen="rooms"] .home-room-list {
    min-height: 120px;
    max-height: 30vh;
  }
  #lobby-container[data-screen="rooms"] .home-room-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info status"
      "players action";
    gap: 8px;
    padding: 10px;
  }
  #lobby-container[data-screen="rooms"] .room-item-info {
    grid-area: info;
  }
  #lobby-container[data-screen="rooms"] .room-item-status {
    grid-area: status;
    justify-self: end;
    padding: 5px 10px;
    font-size: 11px;
  }
  #lobby-container[data-screen="rooms"] .v4-players {
    grid-area: players;
    text-align: left;
  }
  #lobby-container[data-screen="rooms"] .room-item-action {
    grid-area: action;
  }
  #lobby-container[data-screen="rooms"] .room-item-btn {
    min-height: 44px;
    padding: 6px 10px;
    font-size: 11.5px;
  }

  /* Character Setup Portrait: Single Column */
  #lobby-container .v5-setup .setup-logo {
    display: none;
  }
  #lobby-container .v5-setup .setup-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    overflow-y: auto;
  }
  #lobby-container .v5-setup #btn-setup-back {
    margin: 0;
    align-self: flex-start;
    min-height: 28px;
    padding: 3px 10px;
    font-size: 11.5px;
  }
  #lobby-container .v5-setup #setup-mode-title {
    font-size: 20px;
    margin-top: 2px;
  }
  #lobby-container .v5-setup .setup-col-left {
    padding: 8px 12px;
  }
  #lobby-container .v5-setup .profile-preview-subcol {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }
  #lobby-container .v5-setup #preview-canvas {
    width: 76px;
  }
  #lobby-container .v5-setup .preview-character-meta {
    align-items: flex-start;
    width: auto;
  }
  #lobby-container .v5-setup .preview-name-pill {
    font-size: 18px;
  }
  #lobby-container .v5-setup .setup-col-right {
    gap: 8px;
  }
  #lobby-container .v5-setup .color-picker-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  #lobby-container .v5-setup .color-dot {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  #lobby-container .v5-setup .avatar-option {
    min-height: 48px;
    padding: 3px;
  }
  #lobby-container .v5-setup .avatar-option img {
    width: min(36px, 100%);
    height: 36px;
  }
  #lobby-container .v5-setup #btn-enter-room {
    min-height: 48px;
    font-size: 17px;
  }

  /* Waiting Room Portrait: 2-Column Roster + Bottom Actions */
  #lobby-container .v5-waiting .waiting-logo {
    display: none;
  }
  #lobby-container .v5-waiting .waiting-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "title title"
      "code capacity"
      "invite invite"
      "roster roster"
      "bothint bothint"
      "actions actions";
    gap: 8px;
    padding: 12px;
  }
  #lobby-container .v5-waiting .room-code-banner,
  #lobby-container .v5-waiting .capacity-control-box {
    min-width: 0;
    padding: 6px 6px;
    gap: 4px;
  }
  #lobby-container .v5-waiting .room-code-banner .room-code-title {
    font-size: 9.5px;
    letter-spacing: 0.5px;
  }
  #lobby-container .v5-waiting .room-code-val {
    font-size: 13.5px;
    letter-spacing: 0.03em;
  }
  #lobby-container .v5-waiting .capacity-pill-label {
    font-size: 11.5px;
  }
  #lobby-container .v5-waiting .room-capacity-pill {
    min-height: 44px;
    padding: 4px 6px;
    font-size: 12.5px;
  }
  #lobby-container .v5-waiting .copy-code-text {
    display: none;
  }
  #lobby-container .v5-waiting .room-code-copy-icon {
    padding: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  #lobby-container .v5-waiting .waiting-invite-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #lobby-container .v5-waiting .waiting-invite-group .arcade-btn,
  #lobby-container .v5-waiting #btn-show-qr {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }
  #lobby-container .v5-waiting .roster-grid,
  #lobby-container .v5-waiting .roster-grid[data-capacity] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 28vh;
  }
  #lobby-container .v5-waiting .roster-item {
    min-height: 76px;
    padding: 20px 6px 6px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
  }
  #lobby-container .v5-waiting .roster-slot-top {
    position: absolute;
    inset: 4px 6px auto;
    margin-left: 0;
  }
  #lobby-container .v5-waiting .roster-self-badge,
  #lobby-container .v5-waiting .roster-host-badge {
    font-size: 9px;
    padding: 1px 5px;
  }
  #lobby-container .v5-waiting .roster-avatar-wrap {
    width: 36px;
    height: 36px;
  }
  #lobby-container .v5-waiting .roster-player-meta {
    text-align: center;
  }
  #lobby-container .v5-waiting .room-bot-hint {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12.5px;
  }
  #lobby-container .v5-waiting .waiting-bottom-bar {
    display: grid;
    grid-template-columns: 0.44fr 0.56fr;
    gap: 8px;
    width: 100%;
  }
  #lobby-container .v5-waiting #btn-leave-room,
  #lobby-container .v5-waiting #btn-start-game {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    font-size: 13.5px;
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  #lobby-container[data-screen="rooms"] .host-label {
    display: none;
  }
  #lobby-container[data-screen="rooms"] .room-host-avatar {
    width: 32px;
    height: 32px;
  }
  #lobby-container[data-screen="rooms"] .room-item-meta small {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   MOBILE LANDSCAPE (max-height: 540px and orientation: landscape)
   ========================================================================== */
@media (max-height: 540px) and (orientation: landscape) {
  #lobby-container .status-full {
    display: none;
  }
  #lobby-container .status-short {
    display: inline;
  }
  body #lobby-container[data-screen="home"] {
    --lobby-pad-top: max(54px, env(safe-area-inset-top, 0px));
    --lobby-pad-bottom: max(6px, env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
  }
  body #lobby-container:is([data-screen="rooms"], [data-screen="setup"], [data-screen="lobby"]) {
    --lobby-pad-top: max(8px, env(safe-area-inset-top, 0px));
    --lobby-pad-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    align-items: center;
  }
  #lobby-container:not([data-screen="home"]) #home-stats,
  body:not([data-lobby-screen="home"]):not(.in-game) #top-controls {
    display: none !important;
  }
  #lobby-container .v4-stats {
    height: 44px;
    padding: 0 14px;
    font-size: 16px;
    top: max(6px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
  }
  body:not(.in-game) #top-controls {
    top: max(6px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    gap: 6px;
  }
  body:not(.in-game) #top-controls .icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }

  /* Home Screen Landscape: Centered stack like v5 mockup */
  #lobby-container #home-section.v4-home:not([style*="display: none"]):not([style*="display:none"]) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
  }
  #lobby-container .v4-logo {
    width: min(350px, 44vw);
  }
  #lobby-container .v4-start {
    min-height: 54px;
    width: min(320px, 46vw);
    font-size: 24px;
    border-radius: 18px;
  }
  #lobby-container .v4-start .icon {
    width: 28px;
    height: 28px;
  }
  #lobby-container .v4-home .v4-guide {
    min-height: 44px;
    width: min(240px, 36vw);
    font-size: 16px;
  }
  #lobby-container .v4-steps {
    padding: 6px 16px;
    font-size: 12px;
  }

  /* Room List Landscape: Full viewport height card */
  #lobby-container[data-screen="rooms"] .lobby-layout,
  #lobby-container[data-screen="rooms"] .lobby-card,
  #lobby-container[data-screen="rooms"] .v4-rooms,
  #lobby-container[data-screen="rooms"] .v4-browser {
    height: 100%;
    min-height: 0;
  }
  #lobby-container .v4-small-logo {
    display: none;
  }
  #lobby-container[data-screen="rooms"] .v4-browser {
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    border-radius: 18px;
  }
  #lobby-container .v4-browser-header {
    flex-wrap: nowrap;
    gap: 8px;
  }
  #lobby-container .v4-browser-header h1 {
    font-size: 16px;
    margin: 4px 0 0;
  }
  #lobby-container .v4-back {
    min-height: 26px;
    padding: 3px 9px;
    font-size: 11px;
    border-radius: 8px;
  }
  #lobby-container .v4-actions {
    width: auto;
    gap: 6px;
  }
  #lobby-container .v4-actions .arcade-btn {
    min-height: 44px;
    padding: 6px 12px;
    font-size: 11px;
  }
  #lobby-container .v4-profile-row {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 3px 0;
    margin: 2px 0;
  }
  #lobby-container .v4-avatar {
    width: 44px;
    height: 44px;
  }
  #lobby-container .v4-profile-meta small {
    display: none;
  }
  #lobby-container #browser-name {
    font-size: 15px;
  }
  #lobby-container .v4-search-wrap {
    width: 44%;
  }
  #lobby-container #room-search {
    min-height: 44px;
    font-size: 12px;
  }
  #lobby-container .v4-filter-row {
    display: none;
  }
  #lobby-container .v4-table-head {
    display: none;
  }
  #lobby-container[data-screen="rooms"] .home-room-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    gap: 5px;
  }
  #lobby-container[data-screen="rooms"] .home-room-item {
    grid-template-columns: 1.45fr 0.65fr 0.95fr 1.15fr;
    padding: 5px 8px;
    gap: 6px;
  }
  #lobby-container .room-host-avatar {
    width: 32px;
    height: 32px;
  }
  #lobby-container[data-screen="rooms"] .room-item-code {
    font-size: 15px;
  }
  #lobby-container[data-screen="rooms"] .room-item-status {
    padding: 5px 10px;
    font-size: 11px;
  }
  #lobby-container[data-screen="rooms"] .room-item-btn {
    min-height: 44px;
    font-size: 11px;
    padding: 4px 8px;
  }
  #lobby-container .v4-players strong {
    font-size: 15px;
  }
  #lobby-container .v4-browser footer {
    display: none;
  }

  /* Room Code Modal Landscape */
  #room-code-dialog {
    padding: 16px 20px;
    width: min(440px, calc(100vw - 32px));
  }
  #room-code-dialog h2 {
    min-height: 44px;
    padding-right: 52px;
    font-size: 20px;
    margin: 0 0 12px 0;
  }
  #room-code-dialog .v4-close {
    top: 14px;
    right: 14px;
  }
  #room-code-dialog #home-room-code {
    min-height: 46px;
    height: 46px;
    padding: 6px 14px;
    font-size: 22px;
  }
  #room-code-dialog #home-join-error {
    margin: 8px 0 0;
    font-size: 13px;
  }
  #room-code-dialog #btn-home-join {
    min-height: 44px;
    margin-top: 12px;
    font-size: 17px;
  }

  /* Character Setup Landscape: Preview Left | Form Right (8x1 colors + 5x2 avatars) */
  #lobby-container #setup-section.v5-setup,
  #lobby-container .v5-setup .setup-panel {
    height: 100%;
    min-height: 0;
  }
  #lobby-container .v5-setup .setup-panel {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 2px 12px;
    padding: 6px 14px;
    overflow: hidden;
  }
  #lobby-container .v5-setup #btn-setup-back {
    min-height: 26px;
    margin: 6px 0 0 6px;
    padding: 3px 9px;
    font-size: 10.5px;
    border-radius: 8px;
  }
  #lobby-container .v5-setup #setup-mode-title {
    font-size: 16px;
    line-height: 1;
  }
  #lobby-container .v5-setup .setup-col-left {
    padding: 36px 8px 8px;
  }
  #lobby-container .v5-setup #preview-canvas {
    width: 96px;
  }
  #lobby-container .v5-setup .preview-name-pill {
    font-size: 15px;
  }
  #lobby-container .v5-setup .preview-expression-pill {
    font-size: 11px;
    padding: 2px 8px;
  }
  #lobby-container .v5-setup .setup-col-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    align-items: stretch;
  }
  #lobby-container .v5-setup .profile-field-block,
  #lobby-container .v5-setup .setup-avatar-group {
    gap: 2px;
    align-self: stretch;
    width: 100%;
  }
  #lobby-container .v5-setup .setup-field-label {
    font-size: 10.5px;
    line-height: 1;
  }
  #lobby-container .v5-setup .greeting-name-box {
    padding: 0 4px 0 10px;
  }
  #lobby-container .v5-setup .color-picker-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
  }
  #lobby-container .v5-setup .color-dot {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  #lobby-container .v5-setup .avatar-picker-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  #lobby-container .v5-setup .avatar-option {
    min-height: 44px;
    height: 44px;
    padding: 2px;
  }
  #lobby-container .v5-setup .avatar-option img {
    width: min(34px, 100%);
    height: 34px;
  }
  #lobby-container .v5-setup .setup-cta-group {
    margin-top: 1px;
  }
  #lobby-container .v5-setup #btn-enter-room {
    min-height: 44px;
    height: 44px;
    font-size: 15px;
  }

  /* Waiting Room Landscape: Left Info Column | Right 4x2 Roster | Bottom Action Bar */
  #lobby-container .v5-waiting,
  #lobby-container .v5-waiting .waiting-panel {
    height: 100%;
    min-height: 0;
  }
  #lobby-container .v5-waiting .waiting-panel {
    grid-template-columns: 224px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "title roster"
      "code roster"
      "invite roster"
      "capacity roster"
      "bothint roster"
      ". roster"
      "actions actions";
    gap: 4px 12px;
    padding: 8px 14px;
  }
  #lobby-container .v5-waiting .waiting-title-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  #lobby-container .v5-waiting #btn-room-back {
    min-height: 26px;
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 8px;
  }
  #lobby-container .v5-waiting .room-screen-title {
    font-size: 15px;
  }
  #lobby-container .v5-waiting .room-code-banner,
  #lobby-container .v5-waiting .capacity-control-box {
    padding: 4px 8px;
    border-radius: 10px;
  }
  #lobby-container .v5-waiting .room-code-val {
    font-size: 15px;
  }
  #lobby-container .v5-waiting .copy-code-text {
    display: none;
  }
  #lobby-container .v5-waiting .room-code-copy-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }
  #lobby-container .v5-waiting .waiting-invite-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  #lobby-container .v5-waiting .waiting-invite-group .arcade-btn,
  #lobby-container .v5-waiting #btn-show-qr {
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    font-size: 11px;
  }
  #lobby-container .v5-waiting .room-bot-hint {
    width: 100%;
    box-sizing: border-box;
  }
  #lobby-container .v5-waiting .room-capacity-pill {
    min-height: 44px;
    padding: 2px 8px;
    font-size: 12px;
  }
  #lobby-container .v5-waiting .roster-header {
    margin-bottom: 4px;
    padding: 2px 6px 0 0;
  }
  #lobby-container .v5-waiting .roster-heading {
    font-size: 14px;
  }
  #lobby-container .v5-waiting .roster-count {
    font-size: 12px;
    padding: 2px 10px;
  }
  #lobby-container .v5-waiting .roster-grid,
  #lobby-container .v5-waiting .roster-grid[data-capacity] {
    flex: 1;
    min-height: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    max-height: none;
  }
  #lobby-container .v5-waiting .roster-item {
    min-height: 78px;
    padding: 18px 4px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
  }
  #lobby-container .v5-waiting .roster-slot-top {
    position: absolute;
    inset: 3px 4px auto;
    margin-left: 0;
  }
  #lobby-container .v5-waiting .roster-self-badge,
  #lobby-container .v5-waiting .roster-host-badge {
    font-size: 8.5px;
    padding: 1px 4px;
  }
  #lobby-container .v5-waiting .is-host-slot .roster-self-badge {
    display: none;
  }
  #lobby-container .v5-waiting .roster-avatar-wrap {
    width: 34px;
    height: 34px;
  }
  #lobby-container .v5-waiting .roster-player-meta {
    text-align: center;
  }
  #lobby-container .v5-waiting .room-bot-hint {
    padding: 4px 8px;
    font-size: 11px;
  }
  #lobby-container .v5-waiting .waiting-bottom-bar {
    justify-content: space-between;
    padding-top: 2px;
    border-top: 1px solid rgba(34, 221, 235, 0.2);
  }
  #lobby-container .v5-waiting #btn-leave-room {
    min-width: 224px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }
  #lobby-container .v5-waiting #btn-start-game {
    min-height: 44px;
    padding: 0 22px;
    font-size: 14px;
  }
}
