@keyframes psBorderPulse {
  0%, 100% { box-shadow: 0 14px 36px rgba(0, 0, 0, .78), 0 0 16px rgba(255, 122, 26, .14); }
  50% { box-shadow: 0 14px 36px rgba(0, 0, 0, .78), 0 0 24px rgba(255, 150, 50, .28); }
}

:root {
  --ps-o: #ff7a1a;
  --ps-o2: #ffb347;
  --ps-o3: #d9520a;
  --ps-bg: #08080a;
  --ps-panel: rgba(11, 11, 14, 0.94);
  --ps-card: rgba(16, 15, 19, 0.95);
  --ps-line: rgba(255, 122, 26, 0.34);
  --ps-line-soft: rgba(255, 255, 255, 0.08);
  --ps-text: #ece7e1;
  --ps-muted: #a29a90;
  --ps-shimmer-grad: linear-gradient(
    135deg,
    rgba(255, 179, 71, 0.78) 0%,
    rgba(255, 122, 26, 0.24) 38%,
    rgba(255, 224, 170, 0.65) 50%,
    rgba(255, 122, 26, 0.24) 62%,
    rgba(255, 179, 71, 0.78) 100%
  );
}

/* Strip diagnostic overlay & legacy V12 switcher everywhere unless ?diag=1 */
html:not(.ps-diag) #pbLocalDiagBar,
html:not(.ps-diag) #pbLocalDiagBtn,
html:not(.ps-diag) #pbLocalSyncBtn,
html:not(.ps-diag) #pbLocalLogPanel,
html:not(.ps-diag) #pbLocalDiagPanel,
html:not(.ps-diag) [id^="pbLocalDiag"],
.ui12-btn {
  display: none !important;
}

/* ── Full-screen Google Flow Video Backdrop + Hero Stage ─────────────────── */
#pbVidBg {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  opacity: 0; visibility: hidden;
  background: #060608 url(/static/img/login/bg.jpg) center / cover no-repeat;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
#pbVidBg.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
#pbHomeVid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.07) saturate(1.06) brightness(.86);
}
.ps-bg-vig {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(0, 0, 0, .28) 0%, rgba(5, 5, 7, .74) 72%, rgba(4, 4, 6, .92) 100%),
    linear-gradient(90deg, rgba(6, 6, 8, .82) 0%, rgba(6, 6, 8, .35) 38%, rgba(6, 6, 8, .72) 100%),
    linear-gradient(180deg, rgba(6, 6, 8, .72) 0%, rgba(6, 6, 8, 0) 24%, rgba(6, 6, 8, 0) 76%, rgba(6, 6, 8, .92) 100%);
}
.ps-bg-grid {
  position: absolute; inset: 0; opacity: .45;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 115%, rgba(255, 106, 0, .28), transparent 58%);
}
.ps-bg-hud {
  position: absolute; inset: 14px; opacity: .52;
  background:
    linear-gradient(var(--ps-o), var(--ps-o)) left top / 32px 2px,
    linear-gradient(var(--ps-o), var(--ps-o)) left top / 2px 32px,
    linear-gradient(var(--ps-o), var(--ps-o)) right top / 32px 2px,
    linear-gradient(var(--ps-o), var(--ps-o)) right top / 2px 32px,
    linear-gradient(var(--ps-o), var(--ps-o)) left bottom / 32px 2px,
    linear-gradient(var(--ps-o), var(--ps-o)) left bottom / 2px 32px,
    linear-gradient(var(--ps-o), var(--ps-o)) right bottom / 32px 2px,
    linear-gradient(var(--ps-o), var(--ps-o)) right bottom / 2px 32px;
  background-repeat: no-repeat;
}

.ps-hero {
  position: absolute; left: max(20px, 3vw); top: clamp(46px, 7vh, 72px);
  transform: none; width: min(40vw, 410px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: opacity .3s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
  animation: psHeroIn .65s cubic-bezier(.16, 1, .3, 1) .12s both;
}
#pbVidBg.no-hero .ps-hero { opacity: 0 !important; animation: none !important; transform: translateY(-10px) scale(.96); }
.ps-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding: 4px 12px;
  background: #101014;
  border: 1px solid transparent; border-radius: 3px;
  background-image: linear-gradient(#131217, #0c0c10), var(--ps-shimmer-grad);
  background-origin: border-box; background-clip: padding-box, border-box;
  font: 700 10px Consolas, "Segoe UI", monospace; letter-spacing: 2px; color: var(--ps-o2);
}
.ps-hero-badge span:first-child::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; vertical-align: 1px;
  animation: hmLive 1.4s ease-in-out infinite;
}
.ps-hero-badge i { font-style: normal; color: var(--ps-o); opacity: .75; }
.ps-hero-logo {
  width: min(100%, 310px); max-height: 23vh; object-fit: contain; height: auto; display: block;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .92)) drop-shadow(0 0 24px rgba(255, 106, 0, .35));
  animation: psHeroFloat 4.8s ease-in-out infinite;
}
.ps-hero-tag {
  margin-top: 10px; display: flex; align-items: center; gap: 10px;
  font: 700 10.5px "Segoe UI", Tahoma, sans-serif; letter-spacing: 2.2px; color: #ddd6ce;
  text-shadow: 0 2px 8px #000;
}
.ps-hero-tag i { font-style: normal; color: var(--ps-o); }
.ps-hero-line {
  width: 190px; height: 2px; margin-top: 10px;
  background: linear-gradient(90deg, transparent, var(--ps-o), var(--ps-o2), var(--ps-o), transparent);
  box-shadow: 0 0 12px rgba(255, 122, 26, .65);
}

/* Hide 3D showroom strictly while Home is visible (Shop/Profile/VIP restore #showroom) */
body.hm-mob:not(:has(#psHub, #pfPage, #vipHub)) #showroom {
  opacity: 0 !important; pointer-events: none !important;
}

/* Strip leftover PBMobile UI buttons, WhatsApp promos, download prompts, CF tab */
#hmM [data-a="wpp"],
#hmM .hm-bar [data-a="dl"],
#hmM .hm-body p:has([data-a="wpp"]),
#hmM .hm-body [data-a="refwa"],
#cfsB,
#cfsP {
  display: none !important;
}

/* ── Top-right Diagnostic Overlay De-collision (only when ?diag=1) ──────── */
body.hm-mob #pbLocalDiagBar {
  top: 14px !important; right: 20px !important; left: auto !important; bottom: auto !important;
  transform: none !important; opacity: .55 !important; transition: opacity .2s ease !important;
  padding: 3px 6px; border-radius: 4px;
  background: rgba(12, 12, 15, .82); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 122, 26, .28);
}
body.hm-mob #pbLocalDiagBar:hover { opacity: 1 !important; }
body.hm-mob #pbLocalDiagBar button {
  background: rgba(20, 18, 17, .9) !important;
  border-color: rgba(255, 122, 26, .45) !important;
  color: #e6dfd6 !important; border-radius: 2px !important;
}

/* ── Home Root Container (#hmM) ─────────────────────────────────────────── */
#hmM {
  z-index: 6; font-family: "Segoe UI", Tahoma, sans-serif; color: var(--ps-text);
}

/* Thin tactical orange scrollbar inside Home */
#hmM ::-webkit-scrollbar { width: 6px; height: 6px; }
#hmM ::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); border-radius: 3px; }
#hmM ::-webkit-scrollbar-thumb { background: rgba(255, 122, 26, .42); border-radius: 3px; }
#hmM ::-webkit-scrollbar-thumb:hover { background: rgba(255, 122, 26, .75); }

/* ── Lower-left Tactical Server Telemetry Grid (#hmM .hm-stw) ──────────── */
#hmM .hm-stw {
  left: max(20px, 3vw) !important; bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  top: auto !important; right: auto !important;
  width: min(41vw, 440px) !important; max-width: calc(100vw - 40px) !important; height: auto !important;
  background: linear-gradient(165deg, rgba(19, 18, 23, .95) 0%, rgba(9, 9, 13, .97) 100%) padding-box,
              var(--ps-shimmer-grad) border-box !important;
  border: 1.5px solid transparent !important; border-radius: 6px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .72), 0 0 24px rgba(255, 122, 26, .12), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  filter: none !important; clip-path: none !important;
  animation: psDropIn .45s cubic-bezier(.16, 1, .3, 1) .05s both;
}
#hmM .hm-stw::before { display: none !important; }
#hmM .hm-stw .hm-cap {
  display: flex !important; align-items: center; justify-content: space-between;
  position: static !important; transform: none !important; width: 100% !important; height: auto !important;
  margin: 0 !important; padding: 7px 12px !important; box-sizing: border-box;
  background: linear-gradient(90deg, rgba(255, 122, 26, .16), rgba(255, 122, 26, .03)) !important;
  border-bottom: 1px solid rgba(255, 122, 26, .22) !important;
  font: 800 10px/1 Consolas, "Segoe UI", monospace !important; letter-spacing: 1.8px !important;
  color: var(--ps-o2) !important; text-transform: uppercase; text-align: left !important;
}
#hmM .hm-stw .hm-cap::after {
  content: 'LIVE NODE'; font-size: 9px; letter-spacing: 1.4px; color: #4ade80;
  padding: 2px 7px; background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .35); border-radius: 2px;
}
#hmM .hm-st {
  display: grid !important; grid-template-columns: 1fr !important;
  gap: 7px !important; padding: 10px 12px 12px !important;
}
#hmM .hm-st:has(> div:nth-child(4)) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
#hmM .hm-st > div:not(.hm-ev) {
  display: flex !important; flex-direction: column !important; align-items: flex-start !important;
  justify-content: center !important; gap: 3px !important; min-width: 0 !important;
  padding: 7px 10px !important; margin: 0 !important;
  background: rgba(255, 255, 255, .03) !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  border-left: 2px solid var(--ps-o) !important; border-radius: 3px !important;
  transition: border-color .18s ease, background .18s ease;
}
#hmM .hm-st > div:not(.hm-ev):hover {
  background: rgba(255, 122, 26, .08) !important; border-color: rgba(255, 122, 26, .35) !important;
}
#hmM .hm-st > div span {
  display: block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ps-muted) !important; font: 600 9.5px/1.15 "Segoe UI", Tahoma, sans-serif !important;
  text-transform: uppercase; letter-spacing: .5px;
}
#hmM .hm-st > div b {
  color: #fff !important; font: 800 15px/1.1 Consolas, "Segoe UI", monospace !important;
  font-variant-numeric: tabular-nums;
}
#hmM .hm-st > div b.g {
  display: inline-flex !important; align-items: center; gap: 6px;
  color: #4ade80 !important; font: 800 12.5px/1.1 "Segoe UI", Tahoma, sans-serif !important;
  text-shadow: 0 0 10px rgba(74, 222, 128, .45);
}
#hmM .hm-st > div b.g::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #4ade80; box-shadow: 0 0 10px #4ade80;
  animation: hmLive 1.4s ease-in-out infinite;
}
#hmM .hm-st .hm-ev {
  grid-column: 1 / -1 !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important;
  padding: 7px 10px !important; margin: 0 !important; border-radius: 3px !important;
  background: linear-gradient(90deg, rgba(255, 122, 26, .16), rgba(255, 122, 26, .04)) !important;
  border: 1px solid rgba(255, 122, 26, .36) !important;
}
#hmM .hm-st .hm-ev span {
  flex: none; padding: 2px 7px; background: rgba(255, 122, 26, .2);
  border: 1px solid rgba(255, 122, 26, .4); border-radius: 2px;
  color: var(--ps-o2) !important; font: 800 9px/1.1 Consolas, monospace !important;
}
#hmM .hm-st .hm-ev b {
  color: #ffe8c8 !important; font: 700 11.5px/1.25 "Segoe UI", Tahoma, sans-serif !important;
  text-align: right; overflow: hidden; text-overflow: ellipsis;
}

/* ── Right Main Command Panel (#hmM .hm-main) ───────────────────────────── */
#hmM .hm-main {
  right: max(20px, env(safe-area-inset-right)) !important;
  top: 18px !important; bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  left: auto !important; width: min(49vw, 590px) !important; height: auto !important;
  background: linear-gradient(165deg, rgba(18, 17, 22, .95), rgba(9, 9, 13, .97)) padding-box,
              var(--ps-shimmer-grad) border-box !important;
  border: 1.5px solid transparent !important; border-radius: 6px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .82), 0 0 32px rgba(255, 106, 0, .12);
  filter: none !important; clip-path: none !important;
  animation: psSlideRight .55s cubic-bezier(.16, 1, .3, 1) .16s both;
}
#hmM .hm-main::before { display: none !important; }
#hmM .hm-main .hm-cap {
  position: relative; height: 42px; line-height: 42px; padding: 0 18px 0 22px;
  background: linear-gradient(90deg, rgba(255, 122, 26, .20), rgba(255, 122, 26, .03) 72%, transparent);
  border-bottom: 1px solid rgba(255, 122, 26, .18);
  font: 800 14px "Segoe UI", Tahoma, sans-serif; letter-spacing: 3px; color: #fff;
  text-transform: uppercase; text-shadow: 0 0 12px rgba(255, 122, 26, .55), 0 1px 1px #000;
  display: flex; align-items: center; justify-content: space-between;
}
#hmM .hm-main .hm-cap::before {
  content: ''; position: absolute; left: 10px; top: 13px; width: 4px; height: 16px;
  background: var(--ps-o); box-shadow: 0 0 10px var(--ps-o);
}
#hmM .hm-main .hm-cap span {
  margin-left: 10px; font: 600 10px Consolas, "Segoe UI", monospace; letter-spacing: 1.5px;
  color: var(--ps-o2); opacity: .88; text-transform: uppercase; text-shadow: none;
}

/* Modern underline tabs replacing tab.webp/tab_on.webp */
#hmM .hm-tabs {
  padding: 0 14px !important; gap: 4px !important;
  background: rgba(0, 0, 0, .28); border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: none !important;
}
#hmM .hm-tabs b {
  position: relative; border: 0 !important; border-image: none !important; background: transparent !important;
  padding: 10px 14px !important; font: 700 12px "Segoe UI", Tahoma, sans-serif !important;
  letter-spacing: .6px; color: var(--ps-muted); text-shadow: none; cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
#hmM .hm-tabs b::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px;
  background: var(--ps-o); box-shadow: 0 0 10px var(--ps-o);
  transform: scaleX(0); transform-origin: center; transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
#hmM .hm-tabs b:hover { color: #fff; background: rgba(255, 122, 26, .08) !important; }
#hmM .hm-tabs b:hover::after { transform: scaleX(.55); }
#hmM .hm-tabs b.on {
  color: var(--ps-o2) !important; background: rgba(255, 122, 26, .11) !important;
  text-shadow: 0 0 10px rgba(255, 122, 26, .45) !important;
}
#hmM .hm-tabs b.on::after { transform: scaleX(1); }

/* Body & Content Cards */
#hmM .hm-body {
  margin: 0 !important; padding: 14px 18px 18px !important;
  font: 13px/1.6 "Segoe UI", Tahoma, sans-serif !important; color: #d6d0c8;
}
#hmM .hm-body > * { animation: psFadeUp .35s ease both; }
#hmM .hm-body h1, #hmM .hm-body h2 {
  margin: 0 0 8px; font: 800 16px "Segoe UI", Tahoma, sans-serif; color: var(--ps-o2);
  letter-spacing: .5px; text-shadow: 0 1px 2px #000;
}
#hmM .hm-body h3 { margin: 10px 0 4px; font: 700 13px "Segoe UI", sans-serif; color: #fff; }
#hmM .hm-note { color: var(--ps-muted); font-size: 11.5px; }

/* PointShot Tactical Intro Block */
.ps-intro {
  margin: 0 0 12px; padding: 12px 14px;
  background: linear-gradient(135deg, #1d1510, #101015) padding-box,
              var(--ps-shimmer-grad) border-box;
  border: 1px solid transparent; border-radius: 5px;
  box-shadow: inset 3px 0 0 var(--ps-o), 0 8px 24px rgba(0, 0, 0, .42);
}
.ps-intro-kicker {
  font: 700 10px Consolas, monospace; letter-spacing: 2px; color: var(--ps-o); margin-bottom: 4px;
}
.ps-intro h1 { margin: 0 0 6px !important; font-size: 16px !important; color: #fff !important; }
.ps-intro p { margin: 0 0 10px; font-size: 12.5px; color: #ccc5bd; }
.ps-pills {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.ps-pills span {
  padding: 6px 8px; font-size: 11.5px; color: #e8e1d9;
  background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .07);
  border-left: 2px solid var(--ps-o2);
}
details.ps-more {
  margin: 10px 0 4px; padding: 8px 12px;
  background: rgba(15, 15, 18, .78); border: 1px solid rgba(255, 255, 255, .09);
}
details.ps-more summary {
  cursor: pointer; font: 700 12px "Segoe UI", Tahoma, sans-serif; color: var(--ps-o2);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
details.ps-more summary::after { content: '+'; font: 700 15px monospace; color: var(--ps-o); }
details.ps-more[open] summary::after { content: '-'; }
details.ps-more[open] .ps-more-body { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(255, 122, 26, .22); }
details.ps-more h2 { font-size: 13px !important; margin: 10px 0 4px !important; color: var(--ps-o2) !important; }
details.ps-more h3 { font-size: 12px !important; margin: 8px 0 2px !important; color: #fff !important; }
details.ps-more p, details.ps-more li { font-size: 12px; color: #bcb5ad; }

/* Dark Obsidian Shimmering Cards across Live, Download/Lite, Recruit, Modes, Maps */
#hmM .hm-live,
#hmM .hm-dl,
#hmM .hm-recruit,
#hmM .hm-modes div {
  border: 1px solid transparent !important;
  border-image: none !important;
  border-radius: 5px !important;
  background: linear-gradient(160deg, #16151b, #0c0c10) padding-box,
              var(--ps-shimmer-grad) border-box !important;
  padding: 11px 13px !important;
  margin: 0 0 11px !important;
  box-shadow: inset 3px 0 0 var(--ps-o), 0 6px 20px rgba(0, 0, 0, .42) !important;
  clip-path: none !important;
}
#hmM .hm-live .lh b {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ff6b57; letter-spacing: .5px;
}
#hmM .hm-live .lh b::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d;
  animation: hmLive 1.4s ease-in-out infinite;
}
#hmM .hm-live .li {
  background: rgba(14, 14, 18, .86) !important;
  border: 1px solid rgba(255, 122, 26, .22) !important; border-radius: 4px !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#hmM .hm-live .li:hover {
  transform: translateY(-1px);
  border-color: var(--ps-o) !important;
  box-shadow: 0 0 18px rgba(255, 122, 26, .28) !important;
}
#hmM .hm-live .li em { color: var(--ps-o2); }
#hmM .hm-dl .hm-btn { display: flex; width: fit-content; margin: 8px 0 6px; }
#hmM .hm-dl i { display: block; color: var(--ps-muted); font-style: normal; }
#hmM .hm-dl i b { color: var(--ps-o2); }
#hmM .hm-maps { gap: 8px; }
#hmM .hm-maps div {
  border: 1px solid rgba(255, 122, 26, .24); border-radius: 4px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
#hmM .hm-maps div:hover {
  transform: translateY(-2px) scale(1.02); border-color: var(--ps-o);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .65), 0 0 14px rgba(255, 122, 26, .38);
}
#hmM .hm-maps > div.xp { outline-color: var(--ps-o2); box-shadow: 0 0 14px rgba(255, 179, 71, .45); }

/* ── Modern Esports Leaderboard Cards (#hmM .hm-2col / .hm-rank) ──────── */
#hmM .hm-2col {
  display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important;
}
#hmM .hm-2col > div {
  border: 1px solid transparent !important; border-radius: 5px !important; padding: 12px !important;
  background: linear-gradient(160deg, #15141a, #0b0b0f) padding-box,
              var(--ps-shimmer-grad) border-box !important;
  box-shadow: inset 3px 0 0 var(--ps-o), 0 8px 22px rgba(0, 0, 0, .42);
}
#hmM .hm-2col > div > h3, #hmM .hm-2col > div > h4 {
  margin: 0 0 8px; padding: 0 0 6px; border-bottom: 1px solid rgba(255, 122, 26, .2);
  font: 800 12.5px "Segoe UI", Tahoma, sans-serif; letter-spacing: 1px;
  color: var(--ps-o2); text-transform: uppercase;
}
#hmM .hm-rank {
  width: 100%; border-collapse: separate !important; border-spacing: 0 5px !important;
  margin: 2px 0 8px !important; font-variant-numeric: tabular-nums;
}
#hmM .hm-rank th {
  background: transparent !important; border: 0 !important;
  padding: 3px 8px 5px !important; color: var(--ps-muted) !important;
  font: 700 10px Consolas, "Segoe UI", monospace !important;
  text-transform: uppercase; letter-spacing: .8px; text-align: left;
}
#hmM .hm-rank td {
  background: rgba(255, 255, 255, .03) !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .07) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
  padding: 8px 9px !important; color: var(--ps-text); font-size: 12.5px;
  transition: background .16s ease, border-color .16s ease;
}
#hmM .hm-rank td:first-child {
  border-left: 3px solid rgba(255, 255, 255, .18) !important;
  border-radius: 4px 0 0 4px; font: 800 12px Consolas, monospace; color: var(--ps-muted);
  width: 36px; text-align: center;
}
#hmM .hm-rank td:last-child {
  border-right: 1px solid rgba(255, 255, 255, .07) !important;
  border-radius: 0 4px 4px 0; text-align: right; font-weight: 700; color: var(--ps-o2);
}
#hmM .hm-rank tr:hover td {
  background: rgba(255, 122, 26, .11) !important;
  border-color: rgba(255, 122, 26, .35) !important;
}
#hmM .hm-rank tr[data-r="1"] td {
  background: linear-gradient(90deg, rgba(255, 179, 71, .18), rgba(255, 122, 26, .04)) !important;
  border-color: rgba(255, 179, 71, .42) !important;
}
#hmM .hm-rank tr[data-r="1"] td:first-child {
  border-left-color: #ffd26a !important; color: #ffd26a !important;
  text-shadow: 0 0 10px rgba(255, 210, 106, .55);
}
#hmM .hm-rank tr[data-r="2"] td {
  background: linear-gradient(90deg, rgba(210, 222, 238, .12), rgba(255, 255, 255, .02)) !important;
  border-color: rgba(210, 222, 238, .28) !important;
}
#hmM .hm-rank tr[data-r="2"] td:first-child {
  border-left-color: #e2ebf7 !important; color: #e2ebf7 !important;
}
#hmM .hm-rank tr[data-r="3"] td {
  background: linear-gradient(90deg, rgba(255, 122, 26, .14), rgba(255, 122, 26, .03)) !important;
  border-color: rgba(255, 122, 26, .32) !important;
}
#hmM .hm-rank tr[data-r="3"] td:first-child {
  border-left-color: #ff8d3b !important; color: #ff9c54 !important;
}
#hmM .hm-rank td img {
  vertical-align: middle; margin-right: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .75));
}
#hmM .hm-cta { margin-top: 14px; }

/* ── Unified Floating Bottom Command Dock (#hmM .hm-bar) ────────────────── */
#hmM .hm-bar {
  position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  width: auto !important;
  height: calc(64px + env(safe-area-inset-bottom)) !important;
  padding: 0 max(20px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(20px, env(safe-area-inset-left)) !important;
  gap: 10px !important;
  background: linear-gradient(180deg, rgba(16, 14, 13, .95), rgba(7, 7, 9, .98)) !important;
  border-top: 1px solid rgba(255, 122, 26, .32) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .75) !important;
  animation: psDockUp .5s cubic-bezier(.16, 1, .3, 1) .2s both;
}
#hmM .hm-bar .hm-lang {
  height: 38px; padding: 0 10px;
  background: rgba(14, 14, 17, .95) !important; color: #ece7e1;
  border: 1px solid rgba(255, 122, 26, .32) !important; border-radius: 0 !important;
  font: 600 12px "Segoe UI", Tahoma, sans-serif;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease;
}
#hmM .hm-bar .hm-lang:hover, #hmM .hm-bar .hm-lang:focus {
  border-color: var(--ps-o) !important; box-shadow: 0 0 12px rgba(255, 122, 26, .3); outline: none;
}
#hmM .hm-bar .hm-who {
  flex: 1; font-size: 12.5px; color: var(--ps-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#hmM .hm-bar .hm-who b {
  color: var(--ps-o2); font-weight: 700; text-shadow: 0 0 8px rgba(255, 179, 71, .35);
}

/* ── 4-Step Stepped Button Micro-Animations (All Home, Login, Modal Buttons) ── */
#hmM .hm-btn,
#hmLogin#hmLogin .hm-btn,
.pws-w button,
#rpBtn,
#rpWin button {
  position: relative; overflow: hidden !important;
  border: 1px solid #4a413a !important; border-image: none !important; border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(28, 25, 23, .92), rgba(14, 14, 16, .96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  color: #e6dfd6; font: 700 12px "Segoe UI", Tahoma, sans-serif !important;
  letter-spacing: 1px; text-transform: uppercase; text-shadow: none !important;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .18s ease, box-shadow .22s ease, background .18s ease, color .18s ease, filter .18s ease;
}
#hmM .hm-bar .hm-btn {
  min-width: auto !important; height: 40px !important; min-height: 40px !important;
  padding: 0 18px !important; display: inline-flex; align-items: center; justify-content: center;
}
/* Dock staggered entrance */
#hmM .hm-bar .hm-btn:nth-of-type(1) { animation: psBtnPop .4s cubic-bezier(.16, 1, .3, 1) .26s both; }
#hmM .hm-bar .hm-btn:nth-of-type(2) { animation: psBtnPop .4s cubic-bezier(.16, 1, .3, 1) .32s both; }
#hmM .hm-bar .hm-btn:nth-of-type(3) { animation: psBtnPop .4s cubic-bezier(.16, 1, .3, 1) .38s both; }
#hmM .hm-bar .hm-btn:nth-of-type(4) { animation: psBtnPop .4s cubic-bezier(.16, 1, .3, 1) .44s both; }
#hmM .hm-bar .hm-btn:nth-of-type(5) { animation: psBtnPop .4s cubic-bezier(.16, 1, .3, 1) .50s both; }
#hmM .hm-bar .hm-btn:nth-of-type(6) { animation: psBtnPop .4s cubic-bezier(.16, 1, .3, 1) .56s both; }

/* Step 2: Light-sweep diagonal sheen overlay on ::after */
#hmM .hm-btn::after,
#hmLogin#hmLogin .hm-btn::after,
.pws-w button::after,
#rpBtn::after,
#rpWin button::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: -40%; width: 38%;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, .28) 50%, transparent 85%);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
#hmM .hm-btn:hover,
#hmLogin#hmLogin .hm-btn:hover,
.pws-w button:hover,
#rpBtn:hover,
#rpWin button:hover {
  transform: translateY(-2px);
  border-color: var(--ps-o) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 14px rgba(255, 122, 26, .28) !important;
}
#hmM .hm-btn:hover::after,
#hmLogin#hmLogin .hm-btn:hover::after,
.pws-w button:hover::after,
#rpBtn:hover::after,
#rpWin button:hover::after {
  transform: translateX(460%) skewX(-18deg);
}
/* Step 3: Tactile recoil on press */
#hmM .hm-btn:active,
#hmLogin#hmLogin .hm-btn:active,
.pws-w button:active,
#rpBtn:active,
#rpWin button:active {
  transform: translateY(1px) scale(.96) !important;
  filter: brightness(.92) !important;
  transition-duration: 60ms !important;
}
/* Step 4: Focus accessibility ring */
#hmM .hm-btn:focus-visible,
#hmLogin#hmLogin .hm-btn:focus-visible,
.pws-w button:focus-visible,
#rpBtn:focus-visible {
  outline: 2px solid var(--ps-o2); outline-offset: 2px;
}

/* Primary Tactical Orange CTA (.hm-btn.blue = PLAY / ENTER / LOGIN) */
#hmM .hm-btn.blue,
#hmLogin#hmLogin .hm-btn.blue,
.pws-w button,
#rpWin button.go {
  border-color: #ffab52 !important;
  color: #140902 !important;
  text-shadow: 0 1px 0 rgba(255, 212, 166, .7) !important;
  background: linear-gradient(180deg, #ffa645, #ff7a1a 48%, #d64f08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 224, 184, .85), 0 4px 18px rgba(255, 106, 0, .35) !important;
}
#hmM .hm-bar .hm-btn.blue {
  min-width: 146px !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: 2px;
  animation: psBtnPop .4s cubic-bezier(.16, 1, .3, 1) .48s both, psCtaPulse 2.6s ease-in-out 1s infinite;
}
#hmM .hm-btn.blue::after {
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, .45) 50%, transparent 85%);
  animation: psSheenLoop 4.5s ease-in-out 1.4s infinite;
}
#hmM .hm-btn.blue:hover,
#hmLogin#hmLogin .hm-btn.blue:hover,
.pws-w button:hover {
  color: #140902 !important;
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 232, 200, .95), 0 8px 26px rgba(255, 122, 26, .62) !important;
}

/* Live Watch Button Accent (no duplicate ::before dot next to existing eye icon) */
#hmM .hm-btn.watch {
  border-color: rgba(255, 84, 62, .45) !important; color: #ffb3a8 !important;
}
#hmM .hm-btn.watch::before { display: none !important; }
#hmM .hm-btn.watch:hover {
  border-color: #ff5a45 !important; color: #fff !important;
  box-shadow: 0 6px 18px rgba(255, 59, 48, .3) !important;
}

/* ── Secondary Controls & Modals (Report + Password Reset) ──────────────── */
body:not(.hm-mob) #rpBtn {
  position: fixed !important; top: 5px !important; right: 12px !important; left: auto !important; bottom: auto !important;
  padding: 4px 12px !important; font-size: 11px !important; color: #ffab8e !important; border-color: rgba(255, 122, 26, .42) !important;
}
body.hm-mob #rpBtn {
  position: fixed !important; left: max(20px, 3vw) !important; top: 14px !important;
  bottom: auto !important; right: auto !important;
  z-index: 40; padding: 5px 12px !important; font-size: 11px !important;
  color: #ffab8e !important; background: rgba(14, 13, 16, .84) !important;
  border: 1px solid rgba(255, 122, 26, .42) !important; border-radius: 3px !important;
}
#rpWin .box {
  background: linear-gradient(160deg, #161413, #0b0b0d) padding-box, var(--ps-shimmer-grad) border-box !important;
  border: 1.5px solid transparent !important; border-radius: 6px !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .88), 0 0 24px rgba(255, 122, 26, .16) !important;
}
#rpWin h3 { color: var(--ps-o2) !important; }
#rpWin select, #rpWin textarea {
  background: #070708 !important; border-color: #3b2a1c !important; border-radius: 3px !important;
}
#rpWin select:focus, #rpWin textarea:focus { border-color: var(--ps-o) !important; outline: none; }

.pws-bg { background: rgba(0, 0, 0, .82) !important; }
.pws-w {
  padding: 0 0 16px !important; border: 1.5px solid transparent !important; border-image: none !important;
  border-radius: 6px !important; clip-path: none !important;
  background: linear-gradient(160deg, #161514, #0a0a0c) padding-box,
              var(--ps-shimmer-grad) border-box !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .9), 0 0 24px rgba(255, 122, 26, .15) !important;
  font-family: "Segoe UI", Tahoma, sans-serif !important;
}
.pws-w .pws-t {
  position: static !important; display: block; padding: 11px 36px 11px 18px; margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(255, 122, 26, .24), rgba(255, 122, 26, .04) 75%, transparent);
  border-bottom: 1px solid #3b2a1c; letter-spacing: 2px; color: #fff !important;
  text-shadow: 0 0 8px rgba(255, 122, 26, .6) !important;
}
.pws-w .pws-x { top: 8px !important; right: 12px !important; color: var(--ps-o2) !important; }
.pws-w label, .pws-w p, .pws-w .pws-m { padding: 0 18px; }
.pws-w label { color: var(--ps-o2) !important; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.pws-w input {
  width: calc(100% - 36px) !important; margin: 4px 18px 10px !important; height: 34px !important;
  border: 1px solid #3b2a1c !important; border-left: 3px solid #6b4222 !important; border-image: none !important;
  background: #070708 !important; font-family: "Segoe UI", Tahoma, sans-serif !important;
}
.pws-w input:focus { border-color: var(--ps-o) !important; border-left-color: var(--ps-o) !important; }

/* ── #hmLogin Modal (layered cleanly over Flow Video / bg.jpg fallback) ───── */
#hmLogin#hmLogin {
  --lg-o: #ff7a1a; --lg-o2: #ffb347; --lg-d: #0b0b0c; --lg-line: #3b2a1c;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(0, 0, 0, .52) 0%, rgba(0, 0, 0, .82) 65%, rgba(0, 0, 0, .94) 100%) !important;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
#hmLogin#hmLogin::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(0deg, #ffffff06 0 1px, #0000 1px 3px), radial-gradient(ellipse at 50% 120%, #ff6a0040, #0000 60%);
}
#hmLogin#hmLogin::after {
  content: ''; position: fixed; inset: 14px; pointer-events: none; z-index: 0; opacity: .55;
  background:
    linear-gradient(var(--lg-o), var(--lg-o)) left top / 34px 2px, linear-gradient(var(--lg-o), var(--lg-o)) left top / 2px 34px,
    linear-gradient(var(--lg-o), var(--lg-o)) right top / 34px 2px, linear-gradient(var(--lg-o), var(--lg-o)) right top / 2px 34px,
    linear-gradient(var(--lg-o), var(--lg-o)) left bottom / 34px 2px, linear-gradient(var(--lg-o), var(--lg-o)) left bottom / 2px 34px,
    linear-gradient(var(--lg-o), var(--lg-o)) right bottom / 34px 2px, linear-gradient(var(--lg-o), var(--lg-o)) right bottom / 2px 34px;
  background-repeat: no-repeat;
}
#hmLogin#hmLogin .box {
  z-index: 1; width: min(380px, calc(100vw - 32px)); margin: 150px auto 24px;
  border: 1.5px solid transparent; border-radius: 6px;
  background: linear-gradient(160deg, rgba(21, 20, 19, .96), rgba(10, 10, 12, .98) 60%, rgba(20, 13, 9, .96)) padding-box,
              var(--ps-shimmer-grad) border-box;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .9), 0 0 28px rgba(255, 106, 0, .18);
  animation: lgIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
#hmLogin#hmLogin .box::before { display: none; }
#hmLogin#hmLogin .box::after {
  content: ''; position: absolute; left: 50%; bottom: calc(100% - 6px); width: 290px; height: 155px;
  transform: translateX(-50%); background: url(/static/img/login/logo.webp) center bottom / contain no-repeat;
  pointer-events: none; filter: drop-shadow(0 0 18px #ff6a0055);
}
#hmLogin#hmLogin .hm-cap {
  position: relative; height: 40px; line-height: 40px; padding: 0 18px 0 22px;
  font: 800 14px "Segoe UI", Tahoma, sans-serif; letter-spacing: 4px; color: #fff;
  text-transform: uppercase; text-shadow: 0 0 10px #ff7a1a88, 0 1px 1px #000;
  background: linear-gradient(90deg, #ff7a1a33, #ff7a1a08 70%, #0000); border-bottom: 1px solid var(--lg-line);
}
#hmLogin#hmLogin .hm-cap::before {
  content: ''; position: absolute; left: 10px; top: 12px; width: 4px; height: 16px;
  background: var(--lg-o); box-shadow: 0 0 8px var(--lg-o);
}
#hmLogin#hmLogin .hm-cap::after {
  content: '// SECURE ACCESS'; position: absolute; right: 26px; top: 0;
  font: 600 9px Consolas, monospace; letter-spacing: 2px; color: #ff9a4d99; text-shadow: none;
}
#hmLogin#hmLogin .in { padding: 16px 22px 18px; }
#hmLogin#hmLogin label {
  margin: 0 0 5px; font: 700 10px "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 2px; text-transform: uppercase; color: var(--lg-o2);
}
#hmLogin#hmLogin input:not([type=checkbox]) {
  margin-bottom: 12px; padding: 9px 12px; color: #f2f2f2; background: #070707cc;
  border: 1px solid var(--lg-line); border-left: 3px solid #5a3a20; border-radius: 0;
  box-shadow: inset 0 2px 6px #000a; font-family: "Segoe UI", Tahoma, sans-serif; caret-color: var(--lg-o);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#hmLogin#hmLogin input:not([type=checkbox]):focus {
  background: #0d0a08; border-color: #ff7a1a99; border-left-color: var(--lg-o);
  box-shadow: inset 0 2px 6px #000a, 0 0 0 1px #ff7a1a44, 0 0 14px #ff6a0033;
}
#hmLogin#hmLogin input:-webkit-autofill { -webkit-text-fill-color: #f2f2f2; -webkit-box-shadow: inset 0 0 0 40px #0d0a08; }
#hmLogin#hmLogin .row { margin: 2px 0 8px; }
#hmLogin#hmLogin .row label {
  font: 400 12px "Segoe UI", Tahoma, sans-serif; letter-spacing: .3px;
  text-transform: none; color: #b8b2aa; cursor: pointer;
}
#hmLogin#hmLogin input[type=checkbox] { accent-color: var(--lg-o); width: 15px; height: 15px; margin: 0; cursor: pointer; }
#hmLogin#hmLogin .err { min-height: 16px; margin-bottom: 8px; color: #ff5a3c; font-size: 12px; text-shadow: 0 0 6px #ff3a1a55; }
#hmLogin#hmLogin .btns { gap: 10px; }
#hmLogin#hmLogin .hm-btn { padding: 10px 18px; }
#hmLogin#hmLogin .hm-btn.blue { flex: 1; }
#hmLogin#hmLogin .sw {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed #3b2a1c; color: #8d867e; line-height: 1.9;
}
#hmLogin#hmLogin .sw a {
  color: var(--lg-o); text-decoration: none; font-weight: 700; border-bottom: 1px solid #ff7a1a55;
}
#hmLogin#hmLogin .sw a:hover { color: var(--lg-o2); border-bottom-color: var(--lg-o2); }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes psDropIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes psSlideRight { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes psDockUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes psHeroIn { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes psHeroFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .92)) drop-shadow(0 0 24px rgba(255, 106, 0, .35)); }
  50% { transform: translateY(-5px); filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .95)) drop-shadow(0 0 34px rgba(255, 122, 26, .55)); }
}
@keyframes psBtnPop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes psFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes psCtaPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 224, 184, .85), 0 4px 18px rgba(255, 106, 0, .35); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 232, 200, .95), 0 4px 28px rgba(255, 122, 26, .7); }
}
@keyframes psSheenLoop {
  0%, 72% { transform: translateX(-160%) skewX(-18deg); }
  92%, 100% { transform: translateX(460%) skewX(-18deg); }
}
@keyframes lgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Responsive Layout (Small Desktop / Mobile Landscape / Portrait) ────── */
@media (max-width: 1100px) {
  .ps-hero { width: min(38vw, 330px); left: 18px; top: clamp(46px, 6.5vh, 62px); }
  .ps-hero-badge, .ps-hero-tag { font-size: 9.5px; letter-spacing: 1.5px; }
  #hmM .hm-stw { left: 18px !important; width: min(39vw, 370px) !important; }
  #hmM .hm-main { width: min(54vw, 550px) !important; right: 18px !important; }
  #hmM .hm-bar .hm-who { display: none; }
}
@media (max-height: 620px) and (min-width: 600px) {
  .ps-hero { top: 44px; }
  .ps-hero-badge, .ps-hero-tag, .ps-hero-line { display: none; }
  .ps-hero-logo { width: min(100%, 240px); max-height: 20vh; }
  #hmM .hm-stw { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
  #hmM .hm-st { gap: 5px !important; padding: 8px 10px !important; }
  #hmM .hm-st > div:not(.hm-ev) { padding: 5px 8px !important; }
  #hmM .hm-main { top: 14px !important; bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
  #hmM .hm-bar { height: 56px !important; }
}

/* Portrait Mobile (#hmM.port): single-line telemetry bar, zero clipped logo or collisions */
body.hm-port .ps-hero { display: none !important; }
#hmM.port .hm-stw {
  left: 10px !important; right: 86px !important; top: 8px !important; bottom: auto !important;
  width: auto !important; max-width: none !important; overflow: hidden;
}
#hmM.port .hm-stw .hm-cap { display: none !important; }
#hmM.port .hm-st {
  display: flex !important; grid-template-columns: none !important;
  flex-wrap: nowrap; overflow: hidden; padding: 6px 10px !important; gap: 8px !important;
}
#hmM.port .hm-st > div:not(.hm-ev) {
  flex-direction: row !important; align-items: center !important; border: 0 !important;
  background: transparent !important; padding: 0 !important;
}
#hmM.port .hm-st > div:nth-child(1) { flex: none; white-space: nowrap; }
#hmM.port .hm-st > div:nth-child(1) span { display: none !important; }
#hmM.port .hm-st > div:nth-child(n+2):not(.hm-ev) { display: none !important; }
#hmM.port .hm-st .hm-ev { flex: 1; min-width: 0; overflow: hidden; padding: 2px 7px !important; }
#hmM.port .hm-st .hm-ev span { display: none !important; }
#hmM.port .hm-st .hm-ev b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px !important; }
body.hm-port #rpBtn {
  top: 8px !important; right: 10px !important; bottom: auto !important; left: auto !important;
  padding: 6px 10px !important;
}
body.hm-mob.hm-port #pbLocalDiagBar {
  top: auto !important; bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  right: 10px !important; left: auto !important;
  transform: scale(.78) !important; transform-origin: right bottom !important;
}
#hmM.port .hm-main {
  left: 10px !important; right: 10px !important; width: auto !important;
  top: 52px !important; bottom: calc(70px + env(safe-area-inset-bottom)) !important;
}
#hmM.port .hm-main .hm-cap { font-size: 13px; letter-spacing: 2px; }
#hmM.port .hm-main .hm-cap span { font-size: 9px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hmM.port .ps-pills { grid-template-columns: 1fr; }
#hmM.port .hm-bar { gap: 6px !important; padding: 0 10px env(safe-area-inset-bottom) !important; }
#hmM.port .hm-bar .hm-lang { flex: 0 0 82px; max-width: 82px; padding: 0 4px; font-size: 11px; }
#hmM.port .hm-bar .hm-btn { flex: 1 1 0; padding: 0 6px !important; font-size: 11.5px !important; min-height: 44px !important; }

/* Mobile Login Form Sizing */
body.hm-mob #hmLogin#hmLogin input:not([type=checkbox]) { font-size: 16px; padding: 8px 12px; margin-bottom: 8px; }
body.hm-mob #hmLogin#hmLogin .hm-btn { min-height: 44px; }
body.hm-mob #hmLogin#hmLogin .in { padding: 10px 16px 12px; }
@media (max-height: 640px) {
  #hmLogin#hmLogin .box { margin-top: 96px; }
  #hmLogin#hmLogin .box::after { width: 170px; height: 100px; }
}
@media (max-height: 460px) {
  #hmLogin#hmLogin .box { margin-top: 16px; }
  #hmLogin#hmLogin .box::after { display: none; }
  #hmLogin#hmLogin .hm-cap::after { content: 'POINTSHOT'; color: var(--lg-o); }
}

/* ══════════════════════════════════════════════════════════════════════════
   INTERNAL LOBBY, ROOM SELECTION, READY ROOM, MENUBAR & HUBS (POINT SHOT)
   ══════════════════════════════════════════════════════════════════════════ */

/* Replace top-left PBMobile sprite in V37 menubar with clean PointShot mark */
.v37 [data-n="mbAnnounceBar"] {
  background: linear-gradient(90deg, rgba(16, 15, 19, .96), rgba(10, 10, 13, .92)) !important;
  border-bottom: 1px solid rgba(255, 122, 26, .35) !important;
}
.v37 [data-n="mbAnnounceBar"] > .i,
.v37 [data-n="mbAnnounceBar"] > .s,
.v37 [data-n="mbAnnounceBarCover"] > .i,
.v37 [data-n="mbAnnounceBarCover"] > .s {
  opacity: 0 !important;
}
.v37 [data-n="mbAnnounceBar"]::before {
  content: 'POINTSHOT'; position: absolute; left: 4px; top: 0; width: 164px; height: 34px; z-index: 4;
  display: flex; align-items: center; padding-left: 12px; box-sizing: border-box;
  background: linear-gradient(90deg, #0b0b0d 78%, rgba(16, 15, 19, .95) 95%, transparent);
  font: 900 13.5px "Segoe UI", Tahoma, sans-serif; letter-spacing: 2px; color: var(--ps-o);
  text-shadow: 0 0 12px rgba(255, 122, 26, .55), 0 1px 1px #000;
  pointer-events: none;
}
#stage.ax .v37 [data-n="mbAnnounceBar"]::before {
  transform: scaleX(var(--ax)); transform-origin: 0 50%; width: calc(164px / var(--ax));
}

/* Hide flags in room slots + restyle V37 internal dark canvas backdrop */
.rflag { display: none !important; }
body:not(.hm-mob) { background-color: #070709 !important; }

/* V37 Structural Windows & Frames -> Obsidian Glass + Shimmering Orange Border */
.v37 [data-n="lbRoomWin"],
.v37 [data-n="lbUserListWin"],
.v37 [data-n="lbInfoWin"],
.v37 [data-n="lbNicknameWin"],
.v37 [data-n="lbCreateWin"],
.v37 [data-n="lbSpecialWarWin"],
.v37 [data-n="lbDinoWin"],
.v37 [data-n="rrRoomWin"],
.v37 [data-n="rrRecordWin"],
.v37 [data-n="rrInviteWin"],
.v37 [data-n="rrRankUpWin"],
.v37 [data-n="ssAnnounceWin"],
.v37 [data-n="ssServerWin"],
.v37 [data-n="ssServerListWin"] {
  background: linear-gradient(165deg, #121117, #09090d) padding-box,
              var(--ps-shimmer-grad) border-box !important;
  border: 1.5px solid transparent !important; border-radius: 5px !important; box-sizing: border-box !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .78), 0 0 22px rgba(255, 122, 26, .12) !important;
}
.v37 [data-n="lbRoomWin"] > .i, .v37 [data-n="lbRoomWin"] > .s,
.v37 [data-n="lbUserListWin"] > .i, .v37 [data-n="lbUserListWin"] > .s,
.v37 [data-n="lbInfoWin"] > .i, .v37 [data-n="lbInfoWin"] > .s,
.v37 [data-n="lbNicknameWin"] > .i, .v37 [data-n="lbNicknameWin"] > .s,
.v37 [data-n="lbCreateWin"] > .i, .v37 [data-n="lbCreateWin"] > .s,
.v37 [data-n="lbSpecialWarWin"] > .i, .v37 [data-n="lbSpecialWarWin"] > .s,
.v37 [data-n="lbDinoWin"] > .i, .v37 [data-n="lbDinoWin"] > .s,
.v37 [data-n="rrRoomWin"] > .i, .v37 [data-n="rrRoomWin"] > .s,
.v37 [data-n="rrRecordWin"] > .i, .v37 [data-n="rrRecordWin"] > .s,
.v37 [data-n="rrInviteWin"] > .i, .v37 [data-n="rrInviteWin"] > .s,
.v37 [data-n="rrRankUpWin"] > .i, .v37 [data-n="rrRankUpWin"] > .s,
.v37 [data-n="ssAnnounceWin"] > .i, .v37 [data-n="ssAnnounceWin"] > .s,
.v37 [data-n="ssServerWin"] > .i, .v37 [data-n="ssServerWin"] > .s,
.v37 [data-n="ssServerListWin"] > .i, .v37 [data-n="ssServerListWin"] > .s {
  opacity: 0 !important;
}

/* V37 Inner List Headers, List Backgrounds, Chat Frames & Shop/Inv/Profile Panels */
.scr-ready_stepinventory .Frame > .i,
.scr-ready_stepinventory .Frame > .s,
.scr-ready_stepshop .Frame > .i,
.scr-ready_stepshop .Frame > .s,
.scr-ready_stepprofile_new .Frame > .i,
.scr-ready_stepprofile_new .Frame > .s {
  opacity: 0 !important;
}
.v37 [data-n="lbHeadFrame"],
.v37 [data-n="lbColumnHead"],
.v37 [data-n="lbInfoFrame"],
.v37 [data-n="rrInfoFrame"] {
  background: linear-gradient(90deg, rgba(255, 122, 26, .2), rgba(20, 19, 24, .95)) !important;
  border-bottom: 1px solid rgba(255, 122, 26, .32) !important;
  border-radius: 3px !important; box-sizing: border-box !important;
}
.v37 [data-n="lbHeadFrame"] > .i, .v37 [data-n="lbHeadFrame"] > .s,
.v37 [data-n="lbColumnHead"] > .i, .v37 [data-n="lbColumnHead"] > .s,
.v37 [data-n="lbRoomFrame"] > .i, .v37 [data-n="lbRoomFrame"] > .s,
.v37 [data-n="lbScrollFrame"] > .i, .v37 [data-n="lbScrollFrame"] > .s,
.v37 [data-n="lbListFrame"] > .i, .v37 [data-n="lbListFrame"] > .s,
.v37 [data-n="lbListBg"] > .i, .v37 [data-n="lbListBg"] > .s,
.v37 [data-n="lbUserListFrame"] > .i, .v37 [data-n="lbUserListFrame"] > .s,
.v37 [data-n="lbUserListScrollFrame"] > .i, .v37 [data-n="lbUserListScrollFrame"] > .s,
.v37 [data-n="lbUserListScrollBg"] > .i, .v37 [data-n="lbUserListScrollBg"] > .s,
.v37 [data-n="lbUserListSlotSelect"] > .i, .v37 [data-n="lbUserListSlotSelect"] > .s,
.v37 [data-n="lbUserListSlotFocus"] > .i, .v37 [data-n="lbUserListSlotFocus"] > .s,
.v37 [data-n="lbInfoFrame"] > .i, .v37 [data-n="lbInfoFrame"] > .s,
.v37 [data-n="rrInfoFrame"] > .i, .v37 [data-n="rrInfoFrame"] > .s,
.v37 [data-n="rrRed"] > .i, .v37 [data-n="rrRed"] > .s,
.v37 [data-n="rrBlue"] > .i, .v37 [data-n="rrBlue"] > .s,
.v37 [data-n="rrRedSelect"] > .i, .v37 [data-n="rrRedSelect"] > .s,
.v37 [data-n="rrRedFocus"] > .i, .v37 [data-n="rrRedFocus"] > .s,
.v37 [data-n="rrBlueSelect"] > .i, .v37 [data-n="rrBlueSelect"] > .s,
.v37 [data-n="rrBlueFocus"] > .i, .v37 [data-n="rrBlueFocus"] > .s,
.v37 [data-n="ssImageFrame"] > .i, .v37 [data-n="ssImageFrame"] > .s,
.v37 [data-n="ssListBg"] > .i, .v37 [data-n="ssListBg"] > .s,
.v37 [data-n="ssServerListFrame"] > .i, .v37 [data-n="ssServerListFrame"] > .s,
.v37 [data-n="lbChatBox"] > .i, .v37 [data-n="lbChatBox"] > .s,
.v37 [data-n="rrChatBox"] > .i, .v37 [data-n="rrChatBox"] > .s {
  opacity: 0 !important;
}
.v37 [data-n="lbListFrame"],
.v37 [data-n="lbListBg"],
.v37 [data-n="lbUserListFrame"],
.v37 [data-n="ssListBg"],
.v37 [data-n="ssServerListFrame"] {
  background: #09090d !important;
  border: 1px solid rgba(255, 122, 26, .24) !important; border-radius: 4px !important; box-sizing: border-box !important;
}
.v37 [data-n="lbUserListScrollBg"] {
  background: transparent !important;
}
.v37 [data-n="lbChatBox"],
.v37 [data-n="rrChatBox"],
.v37 [data-n="lbChatCombo"],
.v37 [data-n="rrChatCombo"] {
  background: rgba(10, 10, 14, .94) !important;
  border: 1px solid rgba(255, 122, 26, .3) !important; border-radius: 3px !important; box-sizing: border-box !important;
}
.v37 [data-n="lbChatCombo"] > .i, .v37 [data-n="lbChatCombo"] > .s,
.v37 [data-n="rrChatCombo"] > .i, .v37 [data-n="rrChatCombo"] > .s {
  opacity: 0 !important;
}
.v37 [data-n="rrRed"] {
  background: linear-gradient(165deg, rgba(220, 55, 40, .12), rgba(14, 11, 13, .92)) !important;
  border: 1px solid rgba(255, 95, 70, .38) !important; border-radius: 4px !important; box-sizing: border-box !important;
}
.v37 [data-n="rrBlue"] {
  background: linear-gradient(165deg, rgba(255, 155, 55, .1), rgba(13, 13, 17, .92)) !important;
  border: 1px solid rgba(255, 165, 75, .36) !important; border-radius: 4px !important; box-sizing: border-box !important;
}
.v37 [data-n="lbUserListWinCaption"] .t,
.v37 [data-n="lbRoomWinCaption"] .t,
.v37 [data-n="lbInfoWinCaption"] .t,
.v37 [data-n="rrRoomCaption"] .t {
  color: var(--ps-o2) !important; font-weight: 800 !important;
  text-shadow: 0 1px 3px #000 !important;
}
.scr-ready_stepinventory .Window,
.scr-ready_stepshop .Window,
.scr-ready_stepprofile_new .Window {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.scr-ready_stepinventory .Window > .i, .scr-ready_stepinventory .Window > .s,
.scr-ready_stepshop .Window > .i, .scr-ready_stepshop .Window > .s,
.scr-ready_stepprofile_new .Window > .i, .scr-ready_stepprofile_new .Window > .s {
  opacity: 0 !important;
}

/* V37 Room & Server Rows + Orange Selection Highlight */
.v37 [data-n^="lbSlot"],
.v37 [data-n^="ssSlot"],
.v37 [data-n^="ssServerSlot"] {
  border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
  transition: background .15s ease;
}
.v37 [data-n^="lbSlot"]:hover,
.v37 [data-n^="ssSlot"]:hover,
.v37 [data-n^="ssServerSlot"]:hover {
  background: rgba(255, 122, 26, .1) !important;
}
.v37 [data-n="lbSelect"],
.v37 [data-n="lbFocus"],
.v37 [data-n="lbUserListSlotSelect"],
.v37 [data-n="lbUserListSlotFocus"],
.v37 [data-n="rrRedSelect"],
.v37 [data-n="rrRedFocus"],
.v37 [data-n="rrBlueSelect"],
.v37 [data-n="rrBlueFocus"] {
  background: linear-gradient(90deg, rgba(255, 122, 26, .24), rgba(255, 122, 26, .05)) !important;
  border: 1px solid rgba(255, 179, 71, .55) !important;
  box-shadow: inset 3px 0 0 var(--ps-o), 0 0 12px rgba(255, 122, 26, .22) !important;
}
.v37 [data-n="lbSelect"] > .i, .v37 [data-n="lbSelect"] > .s,
.v37 [data-n="lbFocus"] > .i, .v37 [data-n="lbFocus"] > .s {
  opacity: 0 !important;
}

/* V37 Lobby / Room Action Buttons (KEEP overflow: visible so caption children stay visible!) */
#stage .Button { overflow: visible !important; }
.v37 [data-n="lbQuickStart"],
.v37 [data-n="rrStart"],
.v37 [data-n="rrReady"],
.v37 [data-n="ssEnter"] {
  background: linear-gradient(135deg, #ff7a1a, #c94100) !important;
  border: 1px solid rgba(255, 200, 120, .7) !important; border-radius: 4px !important; box-sizing: border-box !important;
  box-shadow: 0 4px 16px rgba(255, 106, 0, .35) !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.v37 [data-n="lbQuickStart"]:hover,
.v37 [data-n="rrStart"]:hover,
.v37 [data-n="rrReady"]:hover,
.v37 [data-n="ssEnter"]:hover {
  filter: brightness(1.12); box-shadow: 0 6px 22px rgba(255, 122, 26, .55) !important;
}
.v37 [data-n="lbQuickStart"] > .i, .v37 [data-n="lbQuickStart"] > .s,
.v37 [data-n="rrStart"] > .i, .v37 [data-n="rrStart"] > .s,
.v37 [data-n="rrReady"] > .i, .v37 [data-n="rrReady"] > .s,
.v37 [data-n="rrCancelReady"] > .i, .v37 [data-n="rrCancelReady"] > .s {
  opacity: 0 !important;
}
.v37 [data-n="lbSpecialWar"],
.v37 [data-n="lbDino"],
.v37 [data-n="rrCancelReady"],
.v37 [data-n="rrLeave"],
.v37 [data-n="rrSearchHost"],
.v37 [data-n="rrInvite"],
.v37 [data-n="rrChange"],
.v37 [data-n="ssGotoServerList"],
.v37 [data-n^="lbChatTab"],
.v37 [data-n^="rrChatTab"] {
  background: linear-gradient(180deg, rgba(28, 25, 24, .96), rgba(14, 13, 16, .98)) !important;
  border: 1px solid rgba(255, 122, 26, .42) !important; border-radius: 4px !important; box-sizing: border-box !important;
  transition: border-color .16s ease, background .16s ease;
}
.v37 [data-n="lbSpecialWar"]:hover,
.v37 [data-n="lbDino"]:hover,
.v37 [data-n="rrCancelReady"]:hover,
.v37 [data-n="rrLeave"]:hover,
.v37 [data-n="rrSearchHost"]:hover,
.v37 [data-n="rrInvite"]:hover,
.v37 [data-n="rrChange"]:hover,
.v37 [data-n="ssGotoServerList"]:hover,
.v37 [data-n^="lbChatTab"]:hover,
.v37 [data-n^="rrChatTab"]:hover {
  background: rgba(255, 122, 26, .2) !important; border-color: var(--ps-o2) !important;
}
.v37 [data-n="lbSpecialWar"] > .i, .v37 [data-n="lbSpecialWar"] > .s,
.v37 [data-n="lbDino"] > .i, .v37 [data-n="lbDino"] > .s,
.v37 [data-n="rrLeave"] > .i, .v37 [data-n="rrLeave"] > .s,
.v37 [data-n="rrSearchHost"] > .i, .v37 [data-n="rrSearchHost"] > .s,
.v37 [data-n="rrInvite"] > .i, .v37 [data-n="rrInvite"] > .s,
.v37 [data-n="rrChange"] > .i, .v37 [data-n="rrChange"] > .s,
.v37 [data-n="ssGotoServerList"] > .i, .v37 [data-n="ssGotoServerList"] > .s,
.v37 [data-n^="lbChatTab"] > .i, .v37 [data-n^="lbChatTab"] > .s,
.v37 [data-n^="rrChatTab"] > .i, .v37 [data-n^="rrChatTab"] > .s {
  opacity: 0 !important;
}
.v37 [data-n^="lbChatTab"].on,
.v37 [data-n^="rrChatTab"].on {
  background: linear-gradient(180deg, #ff7a1a, #c44400) !important;
  border-color: #ffd08a !important;
  box-shadow: 0 0 12px rgba(255, 122, 26, .35) !important;
}
.v37 [data-n^="lbChatTab"] .lbl,
.v37 [data-n^="rrChatTab"] .lbl,
.v37 [data-n^="lbChatTab"] .t,
.v37 [data-n^="rrChatTab"] .t {
  color: #e2dad0 !important; font-weight: 700 !important; text-shadow: 0 1px 2px #000 !important;
}
.v37 [data-n^="lbChatTab"].on .lbl,
.v37 [data-n^="rrChatTab"].on .lbl,
.v37 [data-n^="lbChatTab"].on .t,
.v37 [data-n^="rrChatTab"].on .t {
  color: #fff !important;
}
.v37 [data-n="ssGotoServerList"] > .t { opacity: 0 !important; }
.v37 [data-n="lbQuickStart"]::after,
.v37 [data-n="lbSpecialWar"]::after,
.v37 [data-n="lbDino"]::after,
.v37 [data-n="rrStart"]::after,
.v37 [data-n="rrReady"]::after,
.v37 [data-n="rrCancelReady"]::after,
.v37 [data-n="rrLeave"]::after,
.v37 [data-n="rrInvite"]::after,
.v37 [data-n="rrChange"]::after,
.v37 [data-n="rrSearchHost"]::after,
.v37 [data-n="ssEnter"]::after,
.v37 [data-n="ssGotoServerList"]::after {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 800 9.5px/1 "Segoe UI", Tahoma, sans-serif; letter-spacing: .35px; color: #fff;
  white-space: nowrap; text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .92); pointer-events: none; z-index: 2;
}
.v37 [data-n="lbQuickStart"]::after { content: 'QUICK START'; }
.v37 [data-n="lbSpecialWar"]::after { content: 'SPECIAL MODE'; }
.v37 [data-n="lbDino"]::after { content: 'DINO MODE'; }
.v37 [data-n="rrStart"]::after { content: 'START'; }
.v37 [data-n="rrReady"]::after { content: 'READY'; }
.v37 [data-n="rrCancelReady"]::after { content: 'CANCEL'; }
.v37 [data-n="rrLeave"]::after { content: 'LEAVE'; }
.v37 [data-n="rrInvite"]::after { content: 'INVITE'; }
.v37 [data-n="rrChange"]::after { content: 'SWAP TEAM'; }
.v37 [data-n="rrSearchHost"]::after { content: 'HOST'; }
.v37 [data-n="ssEnter"]::after { content: 'ENTER'; }
.v37 [data-n="ssGotoServerList"]::after { content: 'SERVERS'; }
.v37 [data-n="lbHeadFrame"] .t,
.v37 [data-n="lbColumnHead"] .t {
  color: var(--ps-o2) !important; font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95) !important;
}
.v37 [data-n="lbServer"],
.v37 [data-n="lbEnter"],
.v37 [data-n="lbRefresh"],
.v37 [data-n="lbCreate"],
.v37 [data-n="ssRefresh"] {
  border: 1px solid rgba(255, 122, 26, .45) !important; border-radius: 4px !important; box-sizing: border-box !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .55) !important;
  filter: grayscale(.85) contrast(1.12);
  transition: filter .16s ease, border-color .16s ease;
}
.v37 [data-n="lbServer"]:hover,
.v37 [data-n="lbEnter"]:hover,
.v37 [data-n="lbRefresh"]:hover,
.v37 [data-n="lbCreate"]:hover,
.v37 [data-n="ssRefresh"]:hover {
  border-color: var(--ps-o2) !important; filter: saturate(1.1) brightness(1.08);
}
.v37 [data-n="lbTeamCaption"],
.v37 [data-n="lbServerCaption"],
.v37 [data-n="lbEnterCaption"],
.v37 [data-n="lbRefreshCaption"],
.v37 [data-n="lbCreateCaption"] {
  color: #f0e8dc !important; text-shadow: 0 1px 3px #000 !important; font-weight: 700 !important;
}

/* V37 Bottom Menubar -> Obsidian Tactical Bar + Bright Metrics + Warm Orange Fill */
.v37 [data-n="mbMenuBarBody"],
.v37 [data-n="mbInfoBar"] {
  background: linear-gradient(180deg, rgba(20, 18, 22, .97), rgba(9, 9, 12, .99)) !important;
  border-top: 1px solid rgba(255, 122, 26, .45) !important; box-sizing: border-box !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .75) !important;
}
.v37 [data-n="mbMenuBarBody"] > .i, .v37 [data-n="mbMenuBarBody"] > .s,
.v37 [data-n="mbInfoBar"] > .i, .v37 [data-n="mbInfoBar"] > .s {
  opacity: 0 !important;
}
.v37 [data-n="mbExpBar"] {
  background: rgba(255, 255, 255, .1) !important;
  border: 1px solid rgba(255, 122, 26, .35) !important; border-radius: 2px !important;
}
.v37 [data-n="mbExpBar"] > .i, .v37 [data-n="mbExpBar"] > .s { opacity: 0 !important; }
.v37 [data-n="mbExpGage"] {
  background: linear-gradient(90deg, #e24e00, #ff7a1a, #ffb347) !important;
  box-shadow: 0 0 10px rgba(255, 122, 26, .55) !important;
}
.v37 [data-n="mbExpGage"] > .i, .v37 [data-n="mbExpGage"] > .s { opacity: 0 !important; }
.v37 [data-n="mbNickname"],
.v37 [data-n="mbNickname"] .t,
.v37 [data-n="mbExp"],
.v37 [data-n="mbExp"] .t,
.v37 [data-n="mbPinoKey"],
.v37 [data-n="mbPinoKey"] .t,
.v37 [data-n="mbNcCoinKey"],
.v37 [data-n="mbNcCoinKey"] .t {
  color: #f4eee6 !important; text-shadow: 0 1px 2px #000 !important;
}
.v37 [data-n="mbPinoValue"],
.v37 [data-n="mbPinoValue"] .t,
.v37 [data-n="mbNcCoinValue"],
.v37 [data-n="mbNcCoinValue"] .t {
  color: var(--ps-o2) !important; text-shadow: 0 1px 2px #000 !important; font-weight: 800 !important;
}
.scr-ready_menubar .Button[data-n^="mb"] {
  border: 1px solid rgba(255, 122, 26, .36) !important; border-radius: 4px !important; box-sizing: border-box !important;
  background: rgba(18, 17, 22, .92) !important;
}
.scr-ready_menubar .Button[data-n^="mb"]:hover {
  border-color: var(--ps-o2) !important; box-shadow: 0 0 12px rgba(255, 122, 26, .4) !important;
}
.scr-ready_menubar .Button[data-n^="mb"] > .s,
.scr-ready_menubar .Button[data-n^="mb"] > .i {
  filter: grayscale(.85) contrast(1.12) brightness(.9);
}
.mb-ev {
  background: linear-gradient(180deg, #241914, #0d0c10) !important;
  border: 1.5px solid var(--ps-o) !important; border-radius: 4px !important;
  box-shadow: 0 0 14px rgba(255, 122, 26, .45) !important;
  display: flex !important; align-items: center; justify-content: center;
  cursor: pointer;
}
.mb-ev::before {
  content: 'EVENTS'; font: 800 8.5px/1 Consolas, "Segoe UI", sans-serif;
  letter-spacing: .5px; color: var(--ps-o2); text-shadow: 0 1px 2px #000;
}
.mb-ev.evnew::after {
  content: 'NEW' !important;
  left: auto !important; right: -4px !important; top: -7px !important;
  padding: 0 4px !important; font: 800 8px/11px Consolas, "Segoe UI", sans-serif !important;
  color: #140902 !important;
  background: linear-gradient(135deg, #ffb347, #ff7a1a) !important;
  border: 1px solid #ffd8a0 !important; border-radius: 3px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .7) !important;
}
.v37 [data-n="rrBattleMark"] { display: none !important; }

/* V37 Overlay Bars (#tTop, Left Rail Buttons, Chat Mic) */
#tTop { gap: 6px !important; }
#tTop button, #tTop a,
.hm-home, .rk-btn, .tr-btn, .rkg-btn, .dn-btn, .adm-btn, .rp-btn, .cm-btn,
.montar, .br-btn, .mp-btn, .cx-btn, .tu-btn, .pc-btn, .nvf, .ps-vit, .chat-mic, .pf-ed {
  background: linear-gradient(180deg, rgba(26, 22, 20, .95), rgba(11, 11, 14, .98)) !important;
  border: 1px solid rgba(255, 122, 26, .44) !important; border-image: none !important; border-radius: 3px !important;
  color: #f4ece3 !important; text-shadow: 0 1px 2px #000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .55) !important;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}
#tTop button:hover, #tTop a:hover,
.hm-home:hover, .rk-btn:hover, .tr-btn:hover, .rkg-btn:hover, .dn-btn:hover,
.adm-btn:hover, .rp-btn:hover, .cm-btn:hover, .montar:hover, .br-btn:hover,
.mp-btn:hover, .cx-btn:hover, .tu-btn:hover, .pc-btn:hover, .ps-vit:hover, .chat-mic:hover, .pf-ed:hover {
  border-color: var(--ps-o2) !important; color: #fff !important;
  box-shadow: 0 0 16px rgba(255, 122, 26, .42) !important;
  transform: translateY(-1px);
}
.pf-ed {
  font: 800 9px/1 Consolas, "Segoe UI", sans-serif !important;
  letter-spacing: .5px !important; padding: 0 7px !important;
  display: inline-flex !important; align-items: center; justify-content: center;
}
.br-btn b, .nvf, .ps-vit b { color: var(--ps-o2) !important; }

/* Internal HTML Modals & Hubs (#rkgW .rkg, #rkHub, #psHub, #bpHub, #invPz, #giftPz, #packPz, #funInv, #ofS, #pushAsk) */
#rkgW {
  background: rgba(0, 0, 0, .82) !important;
}
#rkgW .rkg::before { display: none !important; }
#rkgW .rkg, #rkHub, #psHub, #bpHub,
#invPz > div, #giftPz > div, #packPz > div, #funInv > div, #ofS > div, #pushAsk {
  background: linear-gradient(165deg, #141319, #0a0a0e) padding-box,
              var(--ps-shimmer-grad) border-box !important;
  border: 1.5px solid transparent !important; border-radius: 6px !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .86), 0 0 28px rgba(255, 122, 26, .16) !important;
}
body .hm-btn.blue,
#pushAsk .hm-btn.blue,
#rkgW .hm-btn.blue,
.modal .hm-btn.blue {
  background: linear-gradient(135deg, #ff7a1a, #c94100) !important;
  border: 1px solid rgba(255, 200, 120, .72) !important; border-image: none !important;
  color: #fff !important; text-shadow: 0 1px 2px #000 !important;
  box-shadow: 0 4px 14px rgba(255, 106, 0, .35) !important;
}
body .hm-btn.blue:hover,
#pushAsk .hm-btn.blue:hover,
#rkgW .hm-btn.blue:hover,
.modal .hm-btn.blue:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 20px rgba(255, 122, 26, .5) !important;
}
#rkgW h2, #rkgW h3, #rkHub h2, #rkHub h3, #psHub h2, #bpHub h2 { color: var(--ps-o2) !important; }
#rkgW th, #rkHub th {
  background: rgba(255, 122, 26, .14) !important; color: var(--ps-o2) !important;
  border-color: rgba(255, 122, 26, .25) !important;
}
#rkgW td, #rkHub td { border-color: rgba(255, 255, 255, .07) !important; }
#rkgW tr:hover td, #rkHub tr:hover td { background: rgba(255, 122, 26, .09) !important; }
.rkg-x, .rh-x, .bp-x, .px, .adm-x, .pws-x {
  background: rgba(255, 122, 26, .14) !important; border: 1px solid rgba(255, 122, 26, .4) !important;
  color: #fff !important; border-radius: 3px !important;
}
.rkg-x:hover, .rh-x:hover, .bp-x:hover, .px:hover, .adm-x:hover, .pws-x:hover {
  background: var(--ps-o) !important;
}

/* Create Room: Play-With-Bots Toggle & Config Panel */
#pbCreateBotBtn {
  position: absolute; left: 31px; top: 416px; width: 166px; height: 22px; z-index: 8; pointer-events: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
  border: 1px solid #4c5a70; border-radius: 2px;
  background: linear-gradient(180deg, #232b38, #141923);
  color: #cfd8e6; font: 700 11px Tahoma, Arial, sans-serif;
  text-shadow: 0 1px 1px #000; cursor: pointer; user-select: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
#pbCreateBotBtn:hover { border-color: #f97316; color: #fff; }
#pbCreateBotBtn.on {
  border-color: #f97316;
  background: linear-gradient(180deg, #5b2c12, #2b1408);
  color: #ffd27a;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.35);
}
#pbCreateBotPanel {
  position: absolute; left: 222px; top: 226px; width: 234px; height: 202px; z-index: 8; pointer-events: auto;
  box-sizing: border-box; padding: 10px 12px;
  border: 1px solid rgba(249, 115, 22, 0.55); border-radius: 2px;
  background: rgba(13, 17, 24, 0.94);
  color: #e2e8f0; font: 12px Tahoma, Arial, sans-serif;
  display: none; flex-direction: column; gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 179, 71, 0.14);
}
#pbCreateBotPanel .pbc-hd {
  padding-bottom: 6px; border-bottom: 1px solid rgba(249, 115, 22, 0.3);
  font: 700 12px Tahoma, Arial, sans-serif; color: #ffd27a; letter-spacing: .3px;
}
#pbCreateBotPanel .pbc-row { display: flex; flex-direction: column; gap: 5px; }
#pbCreateBotPanel .pbc-row > span { font-size: 11px; color: #cbd5e1; }
#pbCreateBotPanel .pbc-step { display: flex; align-items: center; gap: 6px; }
#pbCreateBotPanel .pbc-b {
  width: 26px; height: 22px; box-sizing: border-box; padding: 0; pointer-events: auto;
  border: 1px solid rgba(249, 115, 22, 0.48); border-radius: 2px;
  background: linear-gradient(180deg, #252b36, #131720);
  color: #ffd27a; font: 700 13px Tahoma, Arial, sans-serif; cursor: pointer;
}
#pbCreateBotPanel .pbc-b:hover { background: rgba(249, 115, 22, 0.28); border-color: #ffb347; color: #fff; }
#pbCreateBotPanel .pbc-v {
  flex: 1; height: 22px; line-height: 20px; text-align: center; box-sizing: border-box;
  padding: 0 6px; background: #090c12; border: 1px solid #2d3748; border-radius: 2px;
  color: #fff; font: 700 11px Tahoma, Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#pbCreateBotPanel .pbc-note {
  margin-top: auto; padding-top: 6px; border-top: 1px dashed rgba(249, 115, 22, 0.25);
  font-size: 10.5px; line-height: 1.35; color: #94a3b8;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
