/* ===== v7 mobile polish (lobby + play pages, phones only: body.mobile) =====
   Loaded LAST on games/*.html and play/*.html. Generated from mobile-v7.src.css (html:root:root:root:not(#v7a):not(#v7b) body.mobile = page prefix, :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) = settings card ids).
   Palette: brushed silver (#f4f5f7 .. #b9c0c8), ink (#1f252b / #3a4048), aqua accent (#6fd8e6 .. #157590). */

html:root, html:root:root:root:not(#v7a):not(#v7b) body.mobile {
  --v7-ink: #1f252b;
  --v7-ink2: #4a525a;
  --v7-aqua-hi: #7fe0ec;
  --v7-aqua: #2db3cb;
  --v7-aqua-lo: #1b8fae;
  --v7-aqua-edge: #157590;
  --v7-silver-hi: #ffffff;
  --v7-silver: #e3e7ea;
  --v7-silver-lo: #c4cad1;
  --v7-edge: #a9b0b8;
  --v7-pw: min(340px, 90vw);
}

/* ---------------- Lobby: tab bar like the reference (rounded silver bar, recessed trough, white pill) ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby > #mobile-nav {
  position: relative !important;
  margin: 0 2px !important;
  padding: 7px 8px !important;
  border-radius: 26px 26px 18px 18px !important;
  background: linear-gradient(to bottom, #f3f4f6 0%, #e4e6e9 55%, #d3d6da 100%) !important;
  border: 1px solid #b4b9bf !important;
  border-top-color: #fdfdfd !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.12) !important;
  overflow: hidden !important;
  display: flex !important;
  gap: 0 !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby > #mobile-nav::before {
  content: "" !important; display: block !important; position: absolute !important;
  inset: 7px 8px !important; z-index: 0 !important; pointer-events: none !important;
  border-radius: 22px !important;
  background: linear-gradient(to bottom, #b7bbc0 0%, #c6c9cd 35%, #cdd0d4 100%) !important;
  border: 1px solid #a2a7ad !important;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.22), inset 0 -1px 0 rgba(255,255,255,.35), 0 1px 0 rgba(255,255,255,.85) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby > #mobile-nav::after { content: none !important; display: none !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby > #mobile-nav .mob-tab {
  position: relative !important; z-index: 1 !important;
  flex: 1 1 0 !important; margin: 3px !important; padding: 8px 0 !important;
  border-radius: 20px !important; border: 1px solid transparent !important;
  background: transparent !important; box-shadow: none !important;
  color: #85898e !important; font: 500 17px/1.1 Figtree, Arial, Helvetica, sans-serif !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.45) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby > #mobile-nav .mob-tab.on {
  background: linear-gradient(to bottom, #ffffff 0%, #f6f7f8 45%, #dfe2e5 100%) !important;
  border-color: #9ea3a9 !important;
  color: #111417 !important; font-weight: 700 !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(0,0,0,.28) !important;
  text-shadow: none !important;
}

/* ---------------- Lobby: waves at 60% of their previous strength ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid :is(#chat-pane #chat-log, #players-pane #user-log, #games-pane #match-list) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60' viewBox='0 0 160 60'%3E%3Cg fill='none' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 12 Q20 4 40 12 T80 12 T120 12 T160 12' stroke='%2345c3d6' stroke-opacity='.18'/%3E%3Cpath d='M0 27 Q20 19 40 27 T80 27 T120 27 T160 27' stroke='%239b8ce0' stroke-opacity='.156'/%3E%3Cpath d='M0 42 Q20 34 40 42 T80 42 T120 42 T160 42' stroke='%23f29e9e' stroke-opacity='.156'/%3E%3Cpath d='M0 55 Q20 49 40 55 T80 55 T120 55 T160 55' stroke='%2385cf9c' stroke-opacity='.144'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* ---------------- Lobby: player rows ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile.game-page #view-lobby#view-lobby #players-pane#players-pane .user-row {
  min-height: 34px !important; padding-top: 4px !important; padding-bottom: 2px !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane .client :is(img.rk, .rk):is(.rk-admin, .rk-mod, .rk-vip, .rk-sub) {
  transform: translate(calc(-50% + 4px), -4px) !important;
}
/* Rating header text sits exactly over the centre of the rating column (sort arrow no longer pushes it) */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane .players-head #sort-rating::after,
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane .players-head #sort-rating::before { position: absolute !important; left: 100% !important; top: 50% !important; transform: translateY(-50%) !important; margin: 0 0 0 1px !important; }

/* ---------------- Lobby chat: system lines purple, whispers black ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #chat-log#chat-log .line.pm,
html:root:root:root:not(#v7a):not(#v7b) body.mobile #chat-log#chat-log .line.pm :is(.pm-tag, .pm-tx, .pm-tx *) { color: #000 !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #chat-log#chat-log .line.pm .pm-tag { font-weight: 700 !important; }

/* ---------------- Settings card (lobby #set-back and in-game #game-set-back) ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-panel {
  position: relative !important;
  width: min(340px, calc(100vw - 20px), calc((100dvh - 30px) * 896 / 1200)) !important;
  aspect-ratio: 896 / 1200 !important; height: auto !important; min-height: 0 !important; max-height: none !important;
  padding: 0 !important; margin: 0 auto !important;
  background: url('/icons/settings-silver.png?v=1') center / 100% 100% no-repeat !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-panel::before, html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-panel::after { content: none !important; display: none !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-panel > h2 {
  position: absolute !important; top: 4% !important; height: 11.4% !important; left: 12% !important; right: 12% !important;
  margin: 0 !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  font: 700 17px/1 Outfit, Figtree, Arial, sans-serif !important; letter-spacing: .14em !important; text-transform: uppercase !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-panel > h2, html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-panel > h2 * { color: #23272c !important; text-shadow: 0 1px 0 #fff !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-body {
  position: absolute !important; top: 16.5% !important; bottom: 20% !important; left: 13% !important; right: 13% !important;
  margin: 0 !important; padding: 6px 30px 6px 4px !important; max-height: none !important;
  overflow-y: auto !important; overflow-x: hidden !important;
  display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 4px !important;
  background: transparent !important; text-align: left !important; box-sizing: border-box !important;
  scrollbar-width: none !important; -ms-overflow-style: none !important; overscroll-behavior: contain !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-body::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-sec {
  margin: 8px 0 2px !important; padding: 0 0 4px 2px !important;
  font: 700 12px/1.1 Outfit, Figtree, Arial, sans-serif !important; letter-spacing: .14em !important; text-transform: uppercase !important;
  color: #3d4a57 !important; border-bottom: 1px solid rgba(60,75,90,.25) !important; text-align: left !important; text-shadow: 0 1px 0 rgba(255,255,255,.6) !important;
  background: none !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-body > .set-sec:first-child { margin-top: 0 !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-opt {
  position: relative !important;
  display: flex !important; align-items: center !important; gap: 12px !important;
  min-height: 44px !important; padding: 4px 8px !important; margin: 0 !important; box-sizing: border-box !important;
  font: 500 15px/1.2 Figtree, Arial, Helvetica, sans-serif !important; color: var(--v7-ink) !important;
  background: rgba(255,255,255,.45) !important; border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 12px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; cursor: pointer !important;
  text-shadow: none !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-opt input[type=checkbox] { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-opt .mark {
  position: relative !important; display: block !important;
  width: 28px !important; height: 28px !important; flex: 0 0 28px !important; min-width: 28px !important;
  border-radius: 8px !important; margin: 0 !important; padding: 0 !important;
  background: linear-gradient(to bottom, #ffffff, #e6eaee 55%, #cfd5db) !important;
  border: 1px solid #98a2ac !important;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.18) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-opt .mark::before, html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-opt .mark::after { content: none !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-opt input:checked + .mark {
  background: linear-gradient(to bottom, var(--v7-aqua-hi), var(--v7-aqua) 55%, var(--v7-aqua-lo)) !important; border-color: var(--v7-aqua-edge) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-opt input:checked + .mark::after {
  content: "" !important; position: absolute !important; display: block !important;
  left: 9px !important; top: 4px !important; width: 7px !important; height: 14px !important;
  border: solid #fff !important; border-width: 0 3px 3px 0 !important; transform: rotate(45deg) !important; background: none !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .set-opt input:disabled + .mark { opacity: .45 !important; }
/* original pickers are driven by the v7 selector; hide them on phones */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) :is(.sc-felt-spot, .sc-gfx, .sc-gbtn) { display: none !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) select:not(.v7-keep) { display: none !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) :is(#set-close, #game-set-close) {
  position: absolute !important; left: 50% !important; right: auto !important; top: auto !important;
  transform: translateX(-50%) !important;
  bottom: 10.5% !important; margin: 0 !important; height: 40px !important; min-width: 140px !important; max-width: none !important; max-height: none !important;
  padding: 0 20px !important; border-radius: 20px !important;
  font: 700 16px/1 Figtree, Arial, sans-serif !important; letter-spacing: .04em !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: linear-gradient(to bottom, #6fd8e6 0%, var(--v7-aqua) 50%, var(--v7-aqua-lo) 100%) !important;
  color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.35) !important;
  border: 1px solid var(--v7-aqua-edge) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 3px rgba(0,0,0,.18), 0 0 0 3px #dfe3e7, 0 0 0 4px #b2b9c0 !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) :is(#set-close, #game-set-close):active { transform: translate(-50%, 1px) !important; }

/* v7 custom selector rows (Rendering, Table felt) */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-row { cursor: default !important; justify-content: space-between !important; padding-right: 6px !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-row > .v7-lab { flex: 1 1 auto; min-width: 0; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sel {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; min-width: 104px; padding: 0 10px 0 12px; box-sizing: border-box;
  border-radius: 17px; border: 1px solid #9aa3ab; cursor: pointer;
  background: linear-gradient(to bottom, #ffffff 0%, #f1f3f5 45%, #d6dbe0 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.2);
  font: 700 14px/1 Figtree, Arial, sans-serif; color: var(--v7-ink);
  -webkit-tap-highlight-color: transparent;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sel .v7-val { flex: 1 1 auto; text-align: left; white-space: nowrap; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sel .v7-sw { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px; background: center/260% no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 1px 1px rgba(0,0,0,.25); }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sel .v7-chev { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #8fe6f0 0%, var(--v7-aqua) 55%, var(--v7-aqua-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px var(--v7-aqua-edge); position: relative; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sel .v7-chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -4px 0 0 -3px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sel[aria-expanded="true"] .v7-chev::after { transform: rotate(-135deg); margin-top: -1px; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sel:active { transform: translateY(1px); }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu {
  position: absolute; z-index: 30; box-sizing: border-box; min-width: 150px; padding: 6px;
  border-radius: 14px; border: 1px solid #98a1aa;
  background: linear-gradient(to bottom, #fbfcfd, #e4e8ec);
  box-shadow: inset 0 1px 0 #fff, 0 12px 26px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.2);
  display: none; flex-direction: column; gap: 3px;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu.open { display: flex; animation: v7pop .14s ease-out; }
@keyframes v7pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; box-sizing: border-box;
  border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer;
  font: 600 15px/1 Figtree, Arial, sans-serif; color: var(--v7-ink); text-align: left;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu button + button { border-top-color: transparent; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu button:active { background: rgba(45,179,203,.12); }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu button .v7-sw { width: 26px; height: 18px; border-radius: 5px; flex: 0 0 26px; background: center/220% no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu button .v7-t { flex: 1 1 auto; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu button .v7-ck { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; position: relative; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu button.on {
  background: linear-gradient(to bottom, var(--v7-aqua-hi), var(--v7-aqua) 55%, var(--v7-aqua-lo)); border-color: var(--v7-aqua-edge);
  color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-menu button.on .v7-ck::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* v7 scroll bar for the settings content: lobby colours, up/down buttons in the content's right corners */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb { position: absolute; z-index: 20; width: 22px; pointer-events: none; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb[hidden] { display: none; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-track {
  position: absolute; left: 50%; width: 7px; margin-left: -3.5px; top: 28px; bottom: 28px; border-radius: 4px; pointer-events: auto;
  background: linear-gradient(to right, rgba(120,135,150,.14), rgba(120,135,150,.32));
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15);
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-thumb {
  position: absolute; left: 0; right: 0; top: 0; min-height: 24px; border-radius: 4px; touch-action: none;
  background: linear-gradient(to right, #45c3d6, #1f8fb3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-btn {
  position: absolute; left: 0; width: 22px; height: 22px; padding: 0; border-radius: 50%; pointer-events: auto; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #8fe6f0 0%, var(--v7-aqua) 55%, var(--v7-aqua-lo) 100%);
  border: 1px solid #16677f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 2px #e1e5e9, 0 0 0 3px #aeb5bc, inset 0 -2px 3px rgba(0,0,0,.2);
  -webkit-tap-highlight-color: transparent;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border: solid #fff; border-width: 2px 0 0 2px; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-up { top: 0; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-up::after { margin: -2px 0 0 -4px; transform: rotate(45deg); }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-down { bottom: 0; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-down::after { margin: -6px 0 0 -4px; transform: rotate(225deg); }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.35), 0 0 0 2px #e1e5e9, 0 0 0 3px #aeb5bc; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#set-back#set-back#set-back#set-back#set-back, #game-set-back#game-set-back#game-set-back#game-set-back#game-set-back) .v7-sb .v7-btn:disabled { opacity: .45; }

/* ---------------- Every small popup: silver frame art (edges = graphic edges, 60% see-through middle) ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#leave-back .chal-card, #frame-card, #rematch-over .chal-card, #dc-card, #conn-box, #modal-wait:not([hidden]),
  #modal-in:not([hidden]), #warn-back .drag-pop, .silver-notice, #req-back .drag-pop, #concede-card, #modal-stake:not([hidden])) {
  --pw: var(--v7-pw) !important;
  position: relative !important; isolation: isolate !important; box-sizing: border-box !important;
  width: var(--pw) !important; max-width: none !important; min-width: 0 !important;
  height: auto !important; min-height: 164px !important; max-height: calc(100dvh - 24px) !important; aspect-ratio: auto !important;
  margin: 0 auto !important;
  padding: 46px 30px 48px !important;
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.4)) !important;
  overflow: visible !important; text-align: center !important;
  font: 600 14px/1.35 Figtree, Arial, sans-serif !important; color: var(--v7-ink) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#modal-in:not([hidden]), #modal-stake:not([hidden])) { min-height: 196px !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#leave-back .chal-card, #frame-card, #rematch-over .chal-card, #dc-card, #conn-box, #modal-wait,
  #modal-in, #warn-back .drag-pop, .silver-notice, #req-back .drag-pop, #concede-card, #modal-stake)::before {
  content: "" !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important;
  pointer-events: none !important; box-sizing: border-box !important;
  border-style: solid !important; border-color: transparent !important;
  border-width: 36px 23px 33px !important;
  border-image: url("/icons/popup-silver.png?v=7") 112 71 104 fill / 36px 23px 33px / 0 stretch !important;
  background: none !important; border-radius: 0 !important; box-shadow: none !important; opacity: 1 !important; transform: none !important;
  width: auto !important; height: auto !important; filter: none !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#leave-back .chal-card, #frame-card, #rematch-over .chal-card, #dc-card, #conn-box, #modal-wait,
  #modal-in, #warn-back .drag-pop, .silver-notice, #req-back .drag-pop, #concede-card, #modal-stake)::after { content: none !important; display: none !important; }
/* title in the top strip */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#leave-back .chal-card, #frame-card, #rematch-over .chal-card, #dc-card, #conn-box, #modal-wait,
  #modal-in, #warn-back .drag-pop, .silver-notice, #req-back .drag-pop, #concede-card, #modal-stake) > h2 {
  position: absolute !important; top: 3px !important; height: 30px !important; left: 28px !important; right: 28px !important;
  margin: 0 !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important;
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  font: 700 13.5px/1 Outfit, Figtree, Arial, sans-serif !important; letter-spacing: .14em !important; text-transform: uppercase !important;
  color: #23272c !important; text-shadow: 0 1px 0 rgba(255,255,255,.9) !important; white-space: nowrap !important; overflow: hidden !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#leave-back .chal-card, #frame-card, #rematch-over .chal-card, #dc-card, #conn-box, #modal-wait,
  #modal-in, #warn-back .drag-pop, .silver-notice, #req-back .drag-pop, #concede-card, #modal-stake) > h2 * {
  font: inherit !important; letter-spacing: inherit !important; color: inherit !important; text-shadow: inherit !important; background: none !important;
}
/* body text in the see-through window */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#leave-back .chal-card, #frame-card, #rematch-over .chal-card, #dc-card, #conn-box, #modal-wait,
  #modal-in, #warn-back .drag-pop, .silver-notice, #req-back .drag-pop, #concede-card, #modal-stake) :is(p, .inner, .inner *, #conn-msg, #warn-body, #frame-msg, #dc-count, div:not(.acts):not(.stake-acts)) {
  color: var(--v7-ink) !important; text-shadow: 0 1px 0 rgba(255,255,255,.55) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#leave-back .chal-card, #frame-card, #rematch-over .chal-card, #dc-card, #conn-box, #modal-wait,
  #modal-in, #warn-back .drag-pop, .silver-notice, #req-back .drag-pop, #concede-card, #modal-stake) :is(p, .inner, #conn-msg, #warn-body, #frame-msg) {
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
  font: 600 14px/1.35 Figtree, Arial, sans-serif !important; max-width: 100% !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #dc-card #dc-count { font: 700 30px/1.1 Outfit, Figtree, sans-serif !important; color: var(--v7-aqua-lo) !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #conn-reason, html:root:root:root:not(#v7a):not(#v7b) body.mobile #conn-until { font-size: 12.5px !important; margin-top: 3px !important; }

/* footer: two buttons -> bottom-left and bottom-right inside the bottom bar */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#modal-in .acts, #modal-stake .stake-acts, #leave-back .chal-card > div, #frame-card > div, #rematch-over .chal-card > div, #concede-card .acts) {
  position: absolute !important; left: 24px !important; right: 24px !important; top: auto !important; bottom: 4px !important;
  height: 26px !important; width: auto !important; margin: 0 !important; padding: 0 !important;
  display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; gap: 8px !important;
  background: none !important; border: 0 !important; box-shadow: none !important; z-index: 3 !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #frame-card > div:has(> :only-child), html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#modal-in .acts, #concede-card .acts):has(> :only-child) { justify-content: center !important; }
/* every popup button: aqua pill like the lobby */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#modal-in .acts, #modal-stake .stake-acts, #leave-back .chal-card > div, #frame-card > div, #rematch-over .chal-card > div, #concede-card .acts) > :is(button, .btn),
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#conn-go, #modal-wait .wait-only, #warn-go, #req-go, #new-frame) {
  flex: 0 0 auto !important; align-self: center !important;
  width: auto !important; min-width: 92px !important; max-width: 46% !important;
  height: 24px !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; padding: 0 16px !important;
  border-radius: 12px !important; border: 1px solid var(--v7-aqua-edge) !important;
  background: linear-gradient(to bottom, #6fd8e6 0%, var(--v7-aqua) 50%, var(--v7-aqua-lo) 100%) !important;
  color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.35) !important;
  font: 700 12.5px/1 Figtree, Arial, sans-serif !important; letter-spacing: .03em !important; text-transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 3px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.25) !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; white-space: nowrap !important;
  box-sizing: border-box !important; transform: none !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#modal-in .acts, #modal-stake .stake-acts, #leave-back .chal-card > div, #frame-card > div, #rematch-over .chal-card > div, #concede-card .acts) > :is(button, .btn):disabled {
  background: linear-gradient(to bottom, #eef0f2, #c9cfd4) !important; color: #8a9097 !important; text-shadow: none !important; border-color: #a9b0b6 !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#modal-in .acts, #modal-stake .stake-acts, #leave-back .chal-card > div, #frame-card > div, #rematch-over .chal-card > div, #concede-card .acts) > :is(button, .btn):active { transform: translateY(1px) !important; }
/* single button: centred on the bar's pill */
html:root:root:root:not(#v7a):not(#v7b) body.mobile :is(#conn-go, #modal-wait .wait-only, #warn-go, #req-go):active { transform: translate(-50%, 1px) !important; }

/* ---------------- Play pages (practice + multiplayer): same silver / aqua theme ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile.gameplay-page #game-wrap#game-wrap { --lobby-platinum: #b9c0c8 !important; border-color: #b9c0c8 !important; box-shadow: inset 0 0 0 1px #eef1f4, 0 0 0 1px #8d959e !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile.gameplay-page, html:root:root:root:not(#v7a):not(#v7b) body.mobile.gameplay-page #app { background-color: #c9d0d6 !important; }
html.v7m body.gameplay-page { background: radial-gradient(ellipse at 50% 0%, #e9edf0 0%, #d8dee3 55%, #c9d0d6 100%) !important; }
html.v7m:root #mhud { color: var(--v7-ink) !important; }
html.v7m:root #mhud .names {
  background: linear-gradient(to bottom, #ffffff 0%, #eef0f2 45%, #d3d8dc 100%) !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #a9b0b8 !important;
}
html.v7m:root #mhud .names span { color: #3a4048 !important; font-family: Outfit, Figtree, sans-serif !important; font-weight: 700 !important; }
html.v7m:root #mhud .names span.on { color: var(--v7-aqua-lo) !important; }
html.v7m:root #mhud .pill {
  background: linear-gradient(to bottom, #ffffff, #e3e7ea) !important; border: 1px solid #9aa3ab !important; color: #23272c !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.15) !important; font-weight: 700 !important;
}
html.v7m:root #mhud .panels {
  background: linear-gradient(to bottom, #e6eaed, #cdd3d9) !important;
  border-bottom: 2px solid #9ba3af !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.7) !important;
}
html.v7m:root #mhud .pp {
  background: linear-gradient(to bottom, #ffffff 0%, #f1f3f5 50%, #dde2e6 100%) !important;
  border: 1px solid #a9b0b8 !important; color: var(--v7-ink2) !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.12) !important;
}
html.v7m:root #mhud .pp.on {
  background: linear-gradient(to bottom, var(--v7-aqua-hi) 0%, var(--v7-aqua) 55%, var(--v7-aqua-lo) 100%) !important;
  border-color: var(--v7-aqua-edge) !important; color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.3) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 2px #fff, 0 0 0 3px #8fa0ad !important;
}
html.v7m:root #mhud .pp .st { color: inherit !important; opacity: .85; }
html.v7m:root #mhud .pp.on .st { color: #fff !important; opacity: 1; }
html.v7m:root #mhud .chip {
  background: linear-gradient(to bottom, rgba(255,255,255,.95), rgba(225,230,234,.92)) !important;
  border: 1px solid #a9b0b8 !important; border-left: 0 !important; color: #23272c !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.25) !important;
}
html.v7m:root #mhud .act {
  background: linear-gradient(to bottom, #6fd8e6, var(--v7-aqua) 50%, var(--v7-aqua-lo)) !important; color: #fff !important;
  border: 1px solid var(--v7-aqua-edge) !important; text-shadow: 0 1px 1px rgba(0,0,0,.3) !important;
}
html.v7m:root .mcorner { color: #2b3036 !important; }
html.v7m:root #mc-left { background: radial-gradient(circle at 0 100%, rgba(248,249,250,.92), rgba(206,212,218,.82) 62%, transparent 63%) !important; }
html.v7m:root #mc-right { background: radial-gradient(circle at 100% 100%, rgba(248,249,250,.92), rgba(206,212,218,.82) 62%, transparent 63%) !important; }
html.v7m:root #mc-left .wico { color: #2b3036 !important; }
html.v7m:root #mc-right .badge { box-shadow: 0 0 0 2px #fff !important; }
html.v7m:root #fod-icons button {
  background: radial-gradient(circle at 35% 22%, rgba(255,255,255,.92) 0%, rgba(240,242,245,.84) 45%, rgba(196,203,210,.78) 100%) !important;
  color: #2b3036 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px rgba(150,160,170,.55), 0 2px 4px rgba(0,0,0,.2) !important;
}
html.v7m:root #fod-icons button svg { filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)) !important; }
html.v7m:root #fod-icons button.on {
  background: radial-gradient(circle at 50% 30%, #8fe6f0 0%, var(--v7-aqua) 55%, var(--v7-aqua-lo) 100%) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 2px #fff, 0 0 0 3px #8fa0ad !important;
}
html.v7m:root #fod-icons button.on svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)) !important; }
html.v7m:root #mmenu {
  background: linear-gradient(to bottom, #e9edf0, #cfd5db) !important; border-top: 2px solid #9ba3af !important;
  box-shadow: 0 -6px 18px rgba(0,0,0,.25) !important; color: var(--v7-ink) !important;
}
html.v7m:root #mmenu button, html.v7m:root #mmenu button.w3, html.v7m:root #mmenu button.w6 {
  background: linear-gradient(to bottom, #ffffff 0%, #f1f3f5 50%, #dde2e6 100%) !important; color: var(--v7-ink) !important;
  border-right: 1px solid #b3bcc4 !important; border-bottom: 1px solid #b3bcc4 !important;
  box-shadow: inset 0 1px 0 #fff !important; text-shadow: none !important;
}
html.v7m:root #mmenu button:active { background: linear-gradient(to bottom, #e3e7ea, #c9d0d6) !important; }
html.v7m:root #mmenu button:disabled { color: rgba(31,37,43,.38) !important; }
html.v7m:root #mmenu button.mh-dis:disabled { background: linear-gradient(#e6e9ec, #cfd4d9) !important; }
html.v7m:root #mmenu .dot { background: radial-gradient(circle at 40% 30%, #c9f4fa, var(--v7-aqua) 50%, var(--v7-aqua-lo)) !important; box-shadow: inset 0 -2px 3px rgba(0,0,0,.25), 0 0 0 1px var(--v7-aqua-edge) !important; }
html.v7m:root #mmenu .dot.off { background: radial-gradient(circle at 40% 30%, #ffffff, #dfe3e8 55%, #b9c0c8) !important; box-shadow: inset 0 -2px 3px rgba(0,0,0,.15), 0 0 0 1px #9aa3ab !important; }
html.v7m:root #mmenu .dot.tick:after { border-color: #fff !important; }
html.v7m:root #mmenu .mh-rrow {
  background: linear-gradient(to bottom, #f6f7f8, #dfe3e7) !important; color: var(--v7-ink) !important;
  border-right: 1px solid #b3bcc4 !important; border-bottom: 1px solid #b3bcc4 !important;
}
html.v7m:root #mmenu .mh-rrow button.mh-r {
  background: linear-gradient(to bottom, #ffffff, #e3e7ea) !important; color: #5a626a !important; border: 1px solid #a9b0b8 !important;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.12) !important;
}
html.v7m:root #mmenu .mh-r.on[aria-checked=true] {
  background: linear-gradient(to bottom, var(--v7-aqua-hi), var(--v7-aqua) 55%, var(--v7-aqua-lo)) !important; color: #fff !important;
  border-color: var(--v7-aqua-edge) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.55) !important;
}
html.v7m:root #mmenu .mh-r.off[aria-checked=true] {
  background: linear-gradient(to bottom, #f6d4cf, #e08a7c 55%, #c45a4a) !important; color: #fff !important;
  border-color: #a3473a !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.5) !important;
}
html.v7m:root #mhelp {
  background: linear-gradient(to bottom, rgba(252,253,253,.97), rgba(226,231,235,.97)) !important; border: 1px solid #9aa3ab !important;
  color: var(--v7-ink) !important; box-shadow: 0 14px 30px rgba(0,0,0,.35) !important;
}
html.v7m:root #mchat { background: radial-gradient(ellipse at 50% 0%, #eef1f3 0%, #d8dee3 60%, #c9d0d6 100%) !important; color: var(--v7-ink) !important; }
html.v7m:root #mchat .tabs { background: linear-gradient(to bottom, #f3f4f6, #d3d6da) !important; border-bottom: 1px solid #a9b0b8 !important; }
html.v7m:root #mchat .tabs button { color: #6a7077 !important; }
html.v7m:root #mchat .tabs .game { border-right: 1px solid #b3bcc4 !important; }
html.v7m:root #mchat .tabs .pl { background: linear-gradient(to bottom, #ffffff, #e3e7ea) !important; color: #111417 !important; box-shadow: inset 0 1px 0 #fff !important; }
html.v7m:root #mchat .glass { background: rgba(250,251,252,.85) !important; border: 1px solid #b3bcba !important; box-shadow: inset 0 2px 6px rgba(0,0,0,.08) !important; border-radius: 16px !important; }
html.v7m:root #mchat .bar input { background: #fff !important; color: var(--v7-ink) !important; border: 1px solid #a7aeb5 !important; border-radius: 19px 0 0 19px !important; padding: 0 12px !important; }
html.v7m:root #mchat .bar button { background: linear-gradient(to bottom, #6fd8e6, var(--v7-aqua) 50%, var(--v7-aqua-lo)) !important; color: #fff !important; border: 1px solid var(--v7-aqua-edge) !important; border-radius: 0 19px 19px 0 !important; font-weight: 700 !important; }
html.v7m:root #toast { background: linear-gradient(to bottom, rgba(255,255,255,.96), rgba(222,227,231,.96)) !important; color: var(--v7-ink) !important; border: 1px solid #9aa3ab !important; border-radius: 14px !important; box-shadow: 0 8px 20px rgba(0,0,0,.3) !important; }

/* ---------------- v7.1: player rows reach the panel edge ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid #players-pane #user-log { padding-right: 0 !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile.game-page #view-lobby#view-lobby #players-pane#players-pane .user-row { width: 100% !important; max-width: none !important; margin-right: 0 !important; box-sizing: border-box !important; }

/* ---------------- v7.1: darker brushed-steel panel background with deeper waves ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid :is(#chat-pane #chat-log, #players-pane #user-log, #games-pane #match-list) {
  background-color: #c9d0d7 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60' viewBox='0 0 160 60'%3E%3Cg fill='none' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M0 12 Q20 4 40 12 T80 12 T120 12 T160 12' stroke='%23526a7e' stroke-opacity='.30'/%3E%3Cpath d='M0 27 Q20 19 40 27 T80 27 T120 27 T160 27' stroke='%23ffffff' stroke-opacity='.55'/%3E%3Cpath d='M0 42 Q20 34 40 42 T80 42 T120 42 T160 42' stroke='%23526a7e' stroke-opacity='.22'/%3E%3Cpath d='M0 55 Q20 49 40 55 T80 55 T120 55 T160 55' stroke='%23ffffff' stroke-opacity='.45'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #d6dce2 0%, #c3cad2 55%, #b9c1ca 100%) !important;
  background-size: 160px 60px, 100% 100% !important;
  background-attachment: local, scroll !important;
  box-shadow: inset 0 2px 6px rgba(20,30,40,.28), inset 0 -1px 0 rgba(255,255,255,.6) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane .user-row { border-bottom-color: rgba(60,75,90,.28) !important; }
/* v7.1: header uses the exact same column grid as the rows so Rating centres over the values */

/* ---------------- v7.2: dark gloss-swoosh panel background (reference style), light text ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid :is(#chat-pane #chat-log, #players-pane #user-log, #games-pane #match-list) {
  background-color: #2c343c !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.13'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='1' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.28'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H400V120C300 210 140 150 0 260Z' fill='url(%23a)'/%3E%3Cpath d='M0 330C120 250 260 300 400 200V600H0Z' fill='url(%23b)'/%3E%3Cpath d='M0 420C140 360 280 420 400 330V380C280 470 140 410 0 470Z' fill='%23fff' fill-opacity='.06'/%3E%3Cpath d='M120 0C180 120 300 160 400 150V60C320 90 220 60 190 0Z' fill='%23fff' fill-opacity='.05'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #46505a 0%, #343c45 45%, #262c33 100%) !important;
  background-size: 100% 100%, 100% 100% !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll, scroll !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.12) !important;
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane .user-row { background: rgba(255,255,255,.035) !important; border-bottom-color: rgba(255,255,255,.10) !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane .user-row :is(.nm, .rt, span, div) { color: #eef2f5 !important; text-shadow: 0 1px 1px rgba(0,0,0,.6) !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane .user-row .rt { color: #ffd77a !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #games-pane #match-list :is(*:not(button):not(button *)) { color: #e9edf1 !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #chat-log#chat-log .line, html:root:root:root:not(#v7a):not(#v7b) body.mobile #chat-log#chat-log .line * { color: #eef2f5 !important; text-shadow: 0 1px 1px rgba(0,0,0,.55) !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #chat-log#chat-log .line.pm :is(.pm-tag, .pm-tx, .pm-tx *) { color: #9fe3ff !important; }

/* ---------------- v7.3: hint of theme blue in the dark panels ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid :is(#chat-pane #chat-log, #players-pane #user-log, #games-pane #match-list) {
  background-color: #29343f !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23cfeaf5' stop-opacity='.13'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='1' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.28'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H400V120C300 210 140 150 0 260Z' fill='url(%23a)'/%3E%3Cpath d='M0 330C120 250 260 300 400 200V600H0Z' fill='url(%23b)'/%3E%3Cpath d='M0 420C140 360 280 420 400 330V380C280 470 140 410 0 470Z' fill='%2340b6d2' fill-opacity='.07'/%3E%3Cpath d='M120 0C180 120 300 160 400 150V60C320 90 220 60 190 0Z' fill='%23fff' fill-opacity='.05'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #44515e 0%, #323d49 45%, #232b35 100%) !important;
}

/* ---------------- v7.3: rating column pinned to the right of the row, header directly above ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane#players-pane :is(.players-head, .user-row) { grid-template-columns: 44px 30px minmax(0,1fr) 70px !important; }

/* ---------------- v7.3: custom scroll rail — up button by the title bar, down button by the bottom bar, groove between ---------------- */
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid > .pane > .pane-main > :is(#match-list, #chat-log, #user-log, .pane-head, .tools, #chat-form) { margin-right: 34px !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid > .pane > .sb-col.v7-rail::before {
  content: "" !important; display: block !important; position: absolute !important; left: 3px; right: 3px; top: calc(var(--v7u) - 17px); bottom: calc(100% - var(--v7d) - 17px);
  border-radius: 14px; background: linear-gradient(90deg, #c3cbd3, #e9edf0 50%, #c3cbd3); border: 1px solid #a3acb5;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.8);
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid > .pane > .sb-col.v7-rail .sb-btn::after {
  content: "" !important; display: block !important; position: absolute !important; left: 50% !important; top: 50% !important; width: 7px !important; height: 7px !important; background: none !important;
  border: solid #fff !important; border-width: 2.5px 0 0 2.5px !important; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35));
}
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid > .pane > .sb-col.v7-rail .sb-up::after { margin: -2px 0 0 -4.5px !important; transform: rotate(45deg) !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid > .pane > .sb-col.v7-rail .sb-down::after { margin: -6.5px 0 0 -4.5px !important; transform: rotate(225deg) !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid > .pane > .sb-col.v7-rail .sb-btn.sb-pressed { transform: translateY(1px) !important; filter: brightness(.9); }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid#lobby-grid > .pane#players-pane > .pane-main > :is(#user-log, .tools) { margin-right: 34px !important; width: auto !important; max-width: none !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #lobby-grid > .pane > .sb-col.v7-rail .sb-btn > * { display: none !important; }
html:root:root:root:not(#v7a):not(#v7b) body.mobile #view-lobby#view-lobby #players-pane#players-pane .player-tools > * { flex-shrink: 1 !important; min-width: 0 !important; }
