/* ===== 大厅社交开场动画 + 社交实时条（GSAP 驱动）===== */

/* --- 开场覆盖层：霓虹街机风 --- */
#hallIntro {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(66, 226, 245, .18), transparent 60%),
    radial-gradient(900px 600px at 85% 110%, rgba(255, 110, 199, .16), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(124, 240, 168, .10), transparent 60%),
    linear-gradient(160deg, #0d0d2b 0%, #191950 55%, #2a0a4a 100%);
}

#hallIntro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* CRT 扫描线 */
#hallIntro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 5px);
  mix-blend-mode: overlay;
}

.intro-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px;
  text-align: center;
}

.intro-brand {
  font-size: clamp(44px, 9vw, 92px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.1;
  color: #fff;
  text-shadow:
    0 0 8px #42e2f5,
    0 0 24px #42e2f5,
    0 0 64px rgba(66, 226, 245, .8),
    3px 0 0 #ff6ec7,
    -3px 0 0 #ff6ec7;
  opacity: 0;
}

.intro-sub {
  color: #9fe8ff;
  font-size: clamp(12px, 2.4vw, 16px);
  letter-spacing: .42em;
  text-transform: uppercase;
  opacity: 0;
}

/* 社交属性词条 */
.intro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin-top: 6px;
}

.intro-tag {
  padding: 8px 16px;
  border: 2px solid #42e2f5;
  border-radius: 999px;
  background: rgba(13, 13, 43, .55);
  color: #cdf4ff;
  font-size: 14px;
  letter-spacing: .08em;
  box-shadow: 0 0 14px rgba(66, 226, 245, .35), inset 0 0 10px rgba(66, 226, 245, .15);
  opacity: 0;
}

.intro-tag:nth-child(2n) {
  border-color: #ff6ec7;
  color: #ffd7ef;
  box-shadow: 0 0 14px rgba(255, 110, 199, .35), inset 0 0 10px rgba(255, 110, 199, .15);
}

.intro-tag:nth-child(3n) {
  border-color: #7bf1a8;
  color: #d3ffec;
  box-shadow: 0 0 14px rgba(123, 241, 168, .35), inset 0 0 10px rgba(123, 241, 168, .15);
}

.intro-bar {
  width: min(420px, 70vw);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.intro-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #42e2f5, #ff6ec7, #7bf1a8);
  box-shadow: 0 0 12px rgba(66, 226, 245, .8);
}

.intro-hint {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  letter-spacing: .2em;
  opacity: 0;
}

/* GSAP 加载失败降级：直接隐藏开场层，不阻塞大厅 */
html.no-gsap #hallIntro {
  display: none;
}

/* --- 社交实时条（桌面端展示在游戏列表上方）--- */
#socialSpot {
  display: none;
}

@media (min-width: 1024px) {
  #socialSpot {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: rgba(13, 13, 43, .65);
    border: 2px solid #0d0d2b;
    border-radius: 14px;
    box-shadow: 0 0 0 2px var(--neon, #42e2f5), 0 0 18px var(--neon-glow, rgba(66, 226, 245, .3));
  }
}

.sp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sp-ico {
  flex: 0 0 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 10px;
  background: rgba(66, 226, 245, .12);
  border: 2px solid var(--neon, #42e2f5);
  box-shadow: 0 0 10px rgba(66, 226, 245, .25);
}

.sp-body {
  min-width: 0;
  line-height: 1.3;
}

.sp-label {
  font-size: 11px;
  color: #8fd8ff;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sp-value {
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-value b {
  color: #ffd76d;
}

.sp-sep {
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--neon, #42e2f5), transparent);
  opacity: .5;
}
