/* 首页电竞大厅皮肤：只作用于 body[data-app-view="lobby"]，不影响其他业务页。 */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.account-level-ring,
.profile-trigger-id,
.profile-card-shortcuts {
  display: none;
}

body[data-app-view="lobby"] {
  --lobby-ink: #f6f9ff;
  --lobby-muted: rgba(220, 231, 245, 0.62);
  --lobby-line: rgba(160, 255, 194, 0.22);
  --lobby-green: #67ff9b;
  overflow-x: hidden;
  background: #030914;
  color: var(--lobby-ink);
}

body[data-app-view="lobby"]::before {
  opacity: 0;
}

/* 后台保存的自定义页面背景优先于默认电竞氛围，避免前台“改了没反应”。 */
body[data-app-view="lobby"].ui-has-page-background {
  background: transparent;
}

body[data-app-view="lobby"].ui-has-page-background .ui-page-background {
  z-index: 0;
}

body[data-app-view="lobby"].ui-has-page-background .sticky-shell {
  background: linear-gradient(180deg, rgba(2, 7, 13, 0.48), rgba(2, 7, 13, 0.06) 72%, transparent);
}

body[data-app-view="lobby"].ui-has-page-background .lobby-atmosphere,
body[data-app-view="lobby"].ui-has-page-background #lobby-banner-carousel {
  z-index: -2;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body[data-app-view="lobby"] h1,
body[data-app-view="lobby"] h2,
body[data-app-view="lobby"] h3,
body[data-app-view="lobby"] strong {
  color: var(--lobby-ink);
}

body[data-app-view="lobby"] .sticky-shell {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(2, 7, 13, 0.88), rgba(2, 7, 13, 0.38) 72%, transparent);
  pointer-events: none;
}

body[data-app-view="lobby"] .sticky-shell > * {
  pointer-events: auto;
}

body[data-app-view="lobby"] .topbar {
  min-height: 74px;
  justify-content: center;
  gap: 0;
  border: 0;
  padding: 12px 24px 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-app-view="lobby"] #site-logo-image,
body[data-app-view="lobby"] .account-menu {
  display: none !important;
}

body[data-app-view="lobby"] .main-nav {
  flex: 0 1 auto;
  gap: clamp(22px, 4vw, 68px);
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body[data-app-view="lobby"] .nav-button {
  position: relative;
  border-radius: 0;
  padding: 10px 3px 13px;
  background: transparent;
  color: rgba(247, 250, 255, 0.86);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

body[data-app-view="lobby"] .nav-button:hover,
body[data-app-view="lobby"] .nav-button.is-active {
  background: transparent;
  color: #fff;
}

body[data-app-view="lobby"] .nav-button.is-active::after {
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--lobby-green);
  box-shadow: 0 0 14px rgba(103, 255, 155, 0.9);
  content: "";
  transform: translateX(-50%);
}

body[data-app-view="lobby"] .lobby-taskbar {
  width: min(670px, calc(100vw - 38px));
  width: min(760px, calc(100vw - 24px)) !important;
  max-width: 760px !important;
  margin: 7px auto 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-app-view="lobby"] .global-search-form {
  width: 100%;
}

body[data-app-view="lobby"] .global-search-main {
  gap: 6px;
  border: 1px solid rgba(103, 255, 155, 0.38);
  border-radius: 16px;
  padding: 5px 6px;
  background: rgba(3, 10, 16, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 42px rgba(0, 0, 0, 0.38), 0 0 22px rgba(87, 255, 145, 0.08);
  backdrop-filter: blur(16px);
}

body[data-app-view="lobby"] .global-search-icon {
  width: 36px;
  height: 36px;
  overflow: visible;
  border-radius: 10px;
  background: rgba(103, 255, 155, 0.07);
  color: var(--lobby-green);
}

body[data-app-view="lobby"] .search-cat-icon {
  display: grid;
  place-items: center;
  color: var(--lobby-green);
}

body[data-app-view="lobby"] .search-cat-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 0 7px rgba(103, 255, 155, 0.28));
}

body[data-app-view="lobby"] .global-search-main input {
  min-width: 0;
  border: 0;
  padding: 10px 4px;
  background: transparent;
  box-shadow: none;
  color: #f8fbff;
  font-size: 14px;
}

body[data-app-view="lobby"] .global-search-main input::placeholder {
  color: rgba(235, 244, 255, 0.68);
}

body[data-app-view="lobby"] .global-search-main input:focus {
  background: transparent;
  box-shadow: none;
}

body[data-app-view="lobby"] .global-search-main .button {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 13px;
}

body[data-app-view="lobby"] #global-search-submit {
  border: 1px solid rgba(103, 255, 155, 0.42);
  background: rgba(6, 20, 13, 0.72);
  color: var(--lobby-green);
  box-shadow: inset 0 0 14px rgba(103, 255, 155, 0.05);
}

body[data-app-view="lobby"] #search-filter-toggle {
  background: transparent;
  color: rgba(245, 249, 255, 0.72);
}

body[data-app-view="lobby"] #search-filter-toggle:hover,
body[data-app-view="lobby"] #search-filter-toggle[aria-expanded="true"] {
  background: rgba(103, 255, 155, 0.12);
  color: #8affad;
}

body[data-app-view="lobby"] .search-filter-panel {
  border-color: rgba(103, 255, 155, 0.26);
  background: rgba(5, 13, 23, 0.97);
  color: #edf5ff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
}

body[data-app-view="lobby"] .search-filter-panel .field > span,
body[data-app-view="lobby"] .search-filter-panel .range-filter > span,
body[data-app-view="lobby"] .search-filter-panel .check-line {
  color: rgba(237, 245, 255, 0.7);
}

body[data-app-view="lobby"] .search-filter-panel select,
body[data-app-view="lobby"] .search-filter-panel input:not([type="checkbox"]) {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

body[data-app-view="lobby"] .hot-search-strip {
  display: none;
}

body[data-app-view="lobby"] .app-main {
  width: 100%;
  max-width: none;
  padding: clamp(190px, 21vh, 236px) 0 150px;
}

body[data-app-view="lobby"] #lobby-view {
  position: relative;
  z-index: 1;
  animation: none;
  transform: none;
}

body[data-app-view="lobby"] #lobby-content {
  position: relative;
  z-index: 2;
}

body[data-app-view="lobby"] .app-footer {
  display: none;
}

.lobby-atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 83% 48%, rgba(32, 87, 255, 0.18), transparent 32rem),
    linear-gradient(90deg, rgba(2, 7, 13, 0.97) 0%, rgba(2, 7, 13, 0.78) 42%, rgba(2, 7, 13, 0.25) 72%, rgba(2, 7, 13, 0.52) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.82) 0%, rgba(2, 7, 13, 0.1) 36%, rgba(2, 7, 13, 0.94) 100%),
    url("/uploads/lobby-clean-banner-20261102.webp") 73% center / cover no-repeat,
    #030914;
  pointer-events: none;
}

.lobby-atmosphere::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(103, 255, 155, 0.14) 0.65px, transparent 0.65px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 64%);
  opacity: 0.2;
  pointer-events: none;
}

body[data-app-view="lobby"] #lobby-banner-carousel {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #030914;
  box-shadow: none;
  pointer-events: none;
}

body[data-app-view="lobby"] #lobby-banner-carousel .banner-slide {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  background: #030914;
}

body[data-app-view="lobby"] #lobby-banner-carousel .banner-slide-image {
  filter: saturate(0.9) brightness(0.58);
  transform: scale(1.035);
}

body[data-app-view="lobby"] #lobby-banner-carousel::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.97) 0%, rgba(2, 7, 13, 0.78) 42%, rgba(2, 7, 13, 0.26) 72%, rgba(2, 7, 13, 0.52) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.8) 0%, transparent 36%, rgba(2, 7, 13, 0.95) 100%);
  content: "";
  pointer-events: none;
}

body[data-app-view="lobby"] #lobby-banner-carousel .banner-dots {
  display: none;
}

.lobby-home-stage {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - clamp(36px, 12vw, 170px)));
  width: min(1040px, calc(100% - clamp(36px, 12vw, 170px))) !important;
  max-width: 1040px !important;
  margin: 0 0 0 clamp(20px, 6vw, 96px);
}

@media (min-width: 1201px) {
  /* 画布里有后台添加的左侧大图时，游戏区自动让出展示位，避免压住卡片与文字。 */
  body[data-app-view="lobby"]:has(.ui-canvas-layer[data-canvas-page="lobby"] .ui-canvas-image) .lobby-home-stage {
    max-width: min(1040px, calc(100vw - clamp(340px, 24vw, 390px) - 24px)) !important;
    margin-left: clamp(340px, 24vw, 390px);
  }
}

.lobby-feature-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--game-card-gap, clamp(11px, 1.2vw, 18px));
}

.lobby-feature-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-style: solid;
  border-color: var(--game-card-border-color, rgba(255, 255, 255, 0.13));
  border-width: var(--game-card-border-width, 1px);
  border-radius: var(--game-card-radius, 28px);
  padding: 0;
  background: var(--game-card-bg, linear-gradient(180deg, rgba(14, 17, 24, 0.96), rgba(7, 10, 16, 0.98)));
  box-shadow: var(--game-card-shadow, 0 22px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06));
  color: #fff;
  text-align: left;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.lobby-feature-card:hover,
.lobby-feature-card:focus-visible {
  border-color: var(--game-card-accent, rgba(103, 255, 155, 0.52));
  outline: none;
  box-shadow: 0 0 0 1px var(--game-card-accent, rgba(103, 255, 155, 0.52)), 0 28px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(calc(-1 * var(--game-card-hover-lift, 5px)));
}

.lobby-feature-art {
  position: relative;
  display: block;
  height: var(--game-poster-height, clamp(178px, 14vw, 214px));
  flex: 0 0 auto;
  overflow: hidden;
  margin: var(--game-poster-padding, 0);
  border-radius: var(--game-poster-radius, 0);
  background: radial-gradient(circle at 50% 35%, rgba(103, 255, 155, 0.12), transparent 60%), #0b1119;
}

.lobby-feature-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--game-poster-fit, cover);
  transform: scale(var(--game-poster-zoom, 1));
  transition: transform 420ms cubic-bezier(0.22, 0.7, 0.28, 1), filter 220ms ease;
}

.lobby-feature-card:hover .lobby-feature-art img {
  filter: brightness(1.08);
  transform: scale(var(--game-poster-hover-zoom, 1.045));
}

.lobby-feature-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, var(--game-poster-overlay-color, #05080d) 100%);
  opacity: min(1, calc(var(--game-poster-overlay-opacity, 0.2) * 2.8));
  pointer-events: none;
}

.lobby-feature-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 3.4rem;
  font-weight: 900;
}

.lobby-hot-tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  border: 1px solid var(--game-card-hot-color, #fff);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--game-card-hot-bg, linear-gradient(135deg, #ff3157, #b70d2c));
  box-shadow: 0 7px 18px rgba(255, 31, 76, 0.38);
  color: var(--game-card-hot-color, #fff);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.lobby-feature-copy {
  display: flex;
  min-height: 104px;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: var(--game-card-copy-padding, 14px);
}

.lobby-feature-copy > strong,
body[data-app-view="lobby"] .lobby-feature-copy > strong {
  overflow: hidden;
  color: var(--game-card-title-color, #fff);
  font-size: var(--game-card-title-size, clamp(16px, 1.15vw, 19px));
  font-weight: var(--game-card-title-weight, 900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-feature-copy > small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--game-card-desc-color, rgba(226, 235, 247, 0.57));
  font-size: var(--game-card-desc-size, 11px);
  font-weight: 600;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lobby-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.lobby-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--game-card-meta-bg, rgba(103, 255, 155, 0.1));
  color: var(--game-card-meta-color, #8cffb0);
  font-size: var(--game-card-meta-size, 9px);
  font-weight: 800;
  white-space: nowrap;
}

.lobby-online-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.lobby-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lobby-card-services b {
  border-radius: var(--game-card-tag-radius, 999px);
  padding: 2px 6px;
  background: var(--game-card-tag-bg, rgba(255, 255, 255, 0.08));
  color: var(--game-card-tag-color, rgba(238, 245, 255, 0.62));
  font-size: var(--game-card-tag-size, 8px);
  font-weight: 800;
}

html[data-game-show-hot-tag="0"] .lobby-hot-tag,
html[data-game-show-meta="0"] .lobby-online-pill,
html[data-game-show-services="0"] .lobby-card-services {
  display: none;
}

.lobby-mini-row {
  display: grid;
  grid-template-columns: repeat(var(--game-mini-columns, 5), minmax(0, 1fr));
  column-gap: var(--game-mini-gap-x, 20px);
  row-gap: var(--game-mini-gap-y, 16px);
  margin-top: var(--game-mini-margin-top, 22px);
}

.lobby-mini-card {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 7px;
  border: 0;
  padding: 4px 2px 7px;
  background: transparent;
  color: #f4f8ff;
  text-align: center;
}

.lobby-mini-art {
  display: grid;
  width: var(--game-mini-size, clamp(66px, 5.45vw, 88px));
  height: var(--game-mini-size, clamp(66px, 5.45vw, 88px));
  place-items: center;
  overflow: hidden;
  border-style: solid;
  border-color: var(--game-mini-border-color, rgba(255, 255, 255, 0.14));
  border-width: var(--game-mini-border-width, 1px);
  border-radius: var(--game-mini-radius, 20px);
  padding: var(--game-mini-padding, 0);
  background: var(--game-mini-bg, #0c1118);
  box-shadow: var(--game-mini-shadow, 0 12px 28px rgba(0, 0, 0, 0.4));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lobby-mini-art img {
  width: 100%;
  height: 100%;
  object-fit: var(--game-mini-fit, cover);
  transform: scale(var(--game-mini-zoom, 1));
  transition: transform 180ms ease;
}

.lobby-mini-art > span {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
}

.lobby-mini-card strong,
body[data-app-view="lobby"] .lobby-mini-card strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--game-mini-label-color, rgba(246, 249, 255, 0.9));
  font-size: var(--game-mini-label-size, 12px);
  font-weight: var(--game-mini-label-weight, 800);
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px #000;
  white-space: nowrap;
}

.lobby-mini-card:hover .lobby-mini-art,
.lobby-mini-card:focus-visible .lobby-mini-art {
  border-color: var(--game-mini-accent, rgba(103, 255, 155, 0.6));
  box-shadow: 0 0 0 1px var(--game-mini-accent, rgba(103, 255, 155, 0.6)), 0 16px 34px rgba(0, 0, 0, 0.46);
  transform: translateY(calc(-1 * var(--game-mini-hover-lift, 4px))) scale(var(--game-mini-hover-zoom, 1.035));
}

.lobby-mini-card:hover .lobby-mini-art img,
.lobby-mini-card:focus-visible .lobby-mini-art img {
  transform: scale(calc(var(--game-mini-zoom, 1) * 1.04));
}

html[data-game-mini-show-label="0"] .lobby-mini-card strong { display: none; }

.lobby-mini-card:focus-visible {
  outline: none;
}

.lobby-publish-fab {
  position: fixed;
  z-index: 60;
  right: 410px;
  bottom: 27px;
  display: grid;
  width: 112px;
  height: 112px;
  place-content: center;
  justify-items: center;
  gap: 1px;
  border: 1px solid rgba(103, 255, 155, 0.55);
  border-radius: 50%;
  padding: 0;
  background: radial-gradient(circle at 50% 20%, rgba(31, 73, 47, 0.9), rgba(4, 15, 10, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 28px rgba(103, 255, 155, 0.16), inset 0 0 20px rgba(103, 255, 155, 0.08);
  color: #f5fff8;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lobby-publish-fab:hover,
.lobby-publish-fab:focus-visible {
  outline: none;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5), 0 0 34px rgba(103, 255, 155, 0.28);
  transform: translateY(-3px);
}

.lobby-publish-plus {
  color: var(--lobby-green);
  font-size: 34px;
  font-weight: 300;
  line-height: 0.9;
  text-shadow: 0 0 16px rgba(103, 255, 155, 0.65);
}

body[data-app-view="lobby"] #account-home-button {
  position: fixed;
  z-index: 61;
  right: 24px;
  bottom: 22px;
  display: grid;
  width: 360px;
  min-width: 0;
  min-height: 122px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(103, 255, 155, 0.33);
  border-radius: 24px;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(10, 18, 25, 0.94), rgba(5, 10, 17, 0.96));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.52), 0 0 24px rgba(103, 255, 155, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(18px);
}

body[data-app-view="lobby"] #account-home-button:hover,
body[data-app-view="lobby"] #account-home-button.is-active {
  border-color: rgba(103, 255, 155, 0.58);
  background: linear-gradient(135deg, rgba(14, 26, 32, 0.97), rgba(5, 10, 17, 0.98));
}

body[data-app-view="lobby"] .profile-trigger-visual {
  display: contents;
}

body[data-app-view="lobby"] #account-avatar {
  order: 1;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 2px solid rgba(137, 255, 175, 0.62);
  border-radius: 20px;
  background: #0b1711 url("/lobby-cat-avatar.svg") center / cover no-repeat;
  box-shadow: 0 0 18px rgba(103, 255, 155, 0.18);
  color: transparent;
  font-size: 0;
}

body[data-app-view="lobby"] #account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-app-view="lobby"] .account-level-ring {
  position: relative;
  order: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lobby-green) var(--level-progress, 20%), rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 18px rgba(103, 255, 155, 0.14);
}

body[data-app-view="lobby"] .account-level-ring::before {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #08120f;
  content: "";
}

body[data-app-view="lobby"] .account-level-ring b,
body[data-app-view="lobby"] .account-level-ring small {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
}

body[data-app-view="lobby"] .account-level-ring b {
  color: #f7fff9;
  font-size: 13px;
  font-weight: 900;
}

body[data-app-view="lobby"] .account-level-ring small {
  margin-top: 2px;
  color: rgba(232, 255, 240, 0.52);
  font-size: 7px;
}

body[data-app-view="lobby"] .profile-trigger-copy {
  order: 2;
  gap: 2px;
}

body[data-app-view="lobby"] .profile-trigger-kicker {
  color: #70ffa3;
  font-size: 9px;
  letter-spacing: 0.18em;
}

body[data-app-view="lobby"] #account-name {
  max-width: none;
  color: #f9fcff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
}

body[data-app-view="lobby"] .profile-trigger-id {
  display: block;
  color: rgba(226, 236, 248, 0.55);
  font-size: 10px;
  font-weight: 600;
}

body[data-app-view="lobby"] .profile-trigger-meta {
  gap: 5px;
  color: rgba(226, 236, 248, 0.48);
  font-size: 9px;
}

body[data-app-view="lobby"] .profile-trigger-meta #account-role {
  max-width: 120px;
}

body[data-app-view="lobby"] .profile-trigger-meta .account-credit {
  border: 1px solid rgba(103, 255, 155, 0.16);
  padding: 2px 5px;
  background: rgba(103, 255, 155, 0.08);
  color: rgba(202, 255, 218, 0.72);
  font-size: 8px;
}

body[data-app-view="lobby"] .profile-card-shortcuts {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

body[data-app-view="lobby"] .profile-card-shortcuts i {
  border: 1px solid rgba(103, 255, 155, 0.35);
  border-radius: 999px;
  padding: 3px 9px;
  color: #8dffb1;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

body[data-app-view="lobby"] .profile-trigger-arrow {
  display: none;
}

body[data-app-view="lobby"] .lobby-featured-section,
body[data-app-view="lobby"] .lobby-history-panel {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - clamp(36px, 12vw, 170px)));
  width: min(1040px, calc(100% - clamp(36px, 12vw, 170px))) !important;
  max-width: 1040px !important;
  margin: 42px 0 0 clamp(20px, 6vw, 96px);
}

body[data-app-view="lobby"] .lobby-featured-section .section-heading-row p,
body[data-app-view="lobby"] .lobby-featured-section .text-button {
  color: rgba(225, 236, 249, 0.58);
}

body[data-app-view="lobby"] .companion-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 17, 26, 0.9);
  color: #f6f9ff;
  backdrop-filter: blur(14px);
}

body[data-app-view="lobby"] .companion-card strong,
body[data-app-view="lobby"] .companion-card h3 {
  color: #f7faff;
}

body[data-app-view="lobby"] .companion-card .companion-bio,
body[data-app-view="lobby"] .companion-card .companion-identity > span,
body[data-app-view="lobby"] .companion-card .companion-card-footer span {
  color: rgba(226, 236, 248, 0.56);
}

@media (max-width: 1200px) {
  .lobby-home-stage,
  body[data-app-view="lobby"] .lobby-featured-section,
  body[data-app-view="lobby"] .lobby-history-panel {
    width: calc(100% - 44px) !important;
    max-width: none !important;
    margin-inline: 22px;
  }

  .lobby-feature-row {
    display: flex;
    overflow-x: auto;
    padding: 0 2px 10px;
    scrollbar-width: none;
  }

  .lobby-feature-row::-webkit-scrollbar {
    display: none;
  }

  .lobby-feature-card {
    width: 188px;
    flex: 0 0 188px;
  }

  body[data-app-view="lobby"] #account-home-button {
    width: 330px;
  }

  .lobby-publish-fab {
    right: 378px;
  }
}

@media (max-width: 820px) {
  /* 手机端不保留桌面坐标的纯装饰大图，避免遮挡游戏卡与按钮；后台原素材不删除。 */
  body[data-app-view="lobby"] .ui-canvas-layer .ui-canvas-image:not([data-canvas-link]) {
    display: none;
  }

  body[data-app-view="lobby"] .topbar {
    min-height: 58px;
    padding-top: 6px;
  }

  body[data-app-view="lobby"] .main-nav {
    gap: 16px;
  }

  body[data-app-view="lobby"] .nav-button {
    padding: 8px 2px 11px;
    font-size: 15px;
  }

  body[data-app-view="lobby"] .lobby-taskbar {
    width: calc(100vw - 24px);
    margin-top: 6px;
  }

  body[data-app-view="lobby"] .global-search-main .button {
    flex: 0 0 auto;
    padding-inline: 11px;
  }

  body[data-app-view="lobby"] .global-search-main {
    flex-wrap: nowrap;
  }

  body[data-app-view="lobby"] .global-search-main input {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  body[data-app-view="lobby"] .app-main {
    padding-top: 172px;
    padding-bottom: 180px;
  }

  .lobby-home-stage,
  body[data-app-view="lobby"] .lobby-featured-section,
  body[data-app-view="lobby"] .lobby-history-panel {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-inline: 12px;
  }

  .lobby-feature-card {
    width: 164px;
    flex-basis: 164px;
  }

  .lobby-feature-art {
    height: min(var(--game-poster-height, 164px), 164px);
  }

  .lobby-mini-art {
    width: min(var(--game-mini-size, 68px), 68px);
    height: min(var(--game-mini-size, 68px), 68px);
  }

  body[data-app-view="lobby"] #account-home-button {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    min-height: 92px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 20px;
    padding: 10px 12px;
  }

  body[data-app-view="lobby"] #account-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  body[data-app-view="lobby"] .account-level-ring {
    width: 48px;
    height: 48px;
  }

  body[data-app-view="lobby"] #account-name {
    font-size: 17px;
  }

  body[data-app-view="lobby"] .profile-card-shortcuts {
    display: none;
  }

  .lobby-publish-fab {
    right: 24px;
    bottom: 120px;
    width: 86px;
    height: 86px;
    font-size: 11px;
  }

  .lobby-publish-plus {
    font-size: 27px;
  }
}

@media (max-width: 520px) {
  body[data-app-view="lobby"] .main-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  body[data-app-view="lobby"] .nav-button {
    padding-inline: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  body[data-app-view="lobby"] .global-search-main {
    gap: 4px;
    padding-inline: 4px;
  }

  body[data-app-view="lobby"] .global-search-main .button {
    min-width: 44px;
    padding-inline: 7px;
    font-size: 12px;
  }

  body[data-app-view="lobby"] .global-search-icon {
    width: 32px;
    height: 32px;
  }

  body[data-app-view="lobby"] .global-search-main input {
    font-size: 12px;
  }

  .lobby-mini-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--game-mini-gap-x, 16px);
    row-gap: var(--game-mini-gap-y, 16px);
  }

  body[data-app-view="lobby"] .profile-trigger-kicker,
  body[data-app-view="lobby"] #account-role {
    display: none;
  }
}

/* 右下角个人卡：放大编辑资料 / 我的订单入口 */
body[data-app-view="lobby"] .profile-card-shortcuts {
  gap: 8px;
  margin-top: 7px;
}
body[data-app-view="lobby"] .profile-card-shortcuts i {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(118, 204, 255, .38);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(36, 74, 133, .55), rgba(17, 39, 79, .7));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22), 0 0 14px rgba(86, 174, 255, .08);
  color: #bfe8ff;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: .16s ease;
}
body[data-app-view="lobby"] .profile-card-shortcuts i:hover {
  color: #fff;
  border-color: rgba(133, 233, 255, .68);
  background: linear-gradient(135deg, rgba(47, 118, 170, .7), rgba(40, 74, 135, .8));
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28), 0 0 20px rgba(86, 196, 255, .16);
  transform: translateY(-1px);
}
