:root {
  color-scheme: dark;
  --bg: #151b27;
  --bg-soft: #1c2232;
  --accent: #3aa0ff;
  --text: #f3f6ff;
  --muted: #a4adbf;
  --card-radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none;
  background: transparent;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    "PingFang SC", "Noto Sans SC", "Microsoft Yahei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overscroll-behavior: none;
  overflow: hidden;
}

.page {
  height: 100%;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 12px;
  background: linear-gradient(
    180deg,
    rgba(21, 27, 39, 0.95) 0%,
    rgba(21, 27, 39, 0.82) 100%
  );
  backdrop-filter: blur(8px);
}

.title {
  text-align: center;
  font-size: 18px;
  letter-spacing: 1px;
}

.topbar-money {
  position: absolute;
  right: 12px;
  font-size: 14px;
  color: #b8bece;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-money span {
  color: #f5f7ff;
  font-weight: 600;
}

.brand-strip {
  padding: 12px 12px 5px;
}
.genre-container {
  background-color: #1c1e2b;
  padding: 10px;
}
.vendor-swiper {
  width: 100%;
}

.vendor-slide {
  width: 90px;
}
.vendor-card {
  height: 61px;
  border-radius: 9px;
  background: #1c1e2b;
  border: 1px solid #222431;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  cursor: pointer;
}

.vendor-card-act {
  border: 1px solid #f29901;
}

.vendor-card-img {
  width: 71px;
  height: 28px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.vendor-card-title {
  font-size: 12px;
  color: rgb(177, 186, 211);
  font-weight: 500;
}

.col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.load-hint {
  text-align: center;
  font-size: 12px;
  color: #9aa4bf;
  padding: 10px 0 6px;
}

.brand-swiper {
  padding-bottom: 10px;
}

.brand-swiper .swiper-slide {
  width: auto;
}

.brand-pill {
  width: 84px;
  height: 64px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  appearance: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.brand-pill.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(58, 160, 255, 0.35) inset;
  color: var(--text);
}

.brand-logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
/**
* 游戏
*/
.game-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 10px 10px;
}
.item {
  width: 100%;
}
.item-img {
  aspect-ratio: 1/1;
  border-radius: 8px;
  background-color: #1c1e2b;
  overflow: hidden;
}
.games-names {
  font-size: 12px;
  color: #b8bece;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 20px;
  line-height: 20px;
  text-align: center;
}

.frame-page {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.frame-main {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 486px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  display: flex;
  background: #0f1320;
}

.frame-main iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.frame-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #9aa4bf;
  font-size: 14px;
  background: var(--bg);
}

.games {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/**
* 返回按钮拖拽
*/
.drageb {
  position: fixed;
  z-index: 100;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  cursor: pointer;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  touch-action: none;
}

.drageb-icon {
  width: 100%;
  height: 100%;
  display: block;
}
