/* 商业级 Galgame 标题界面 & 对话框全局美化 (适配 Emotion 动态类名与显式标记类) */
.wsgr-title-btn-list {
  display: grid !important;
  grid-template-columns: repeat(2, 435px) !important;
  gap: 22px 28px !important;
  position: absolute !important;
  left: 115px !important;
  bottom: 105px !important;
  top: auto !important;
  height: auto !important;
  min-width: 900px !important;
  padding: 0 !important;
  z-index: 18 !important;
}

.wsgr-title-btn {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 22px 30px !important;
  margin: 0 !important;
  background: linear-gradient(135deg, rgba(15, 21, 36, 0.88) 0%, rgba(28, 38, 64, 0.80) 100%) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 2px solid rgba(255, 212, 102, 0.40) !important;
  border-left: 8px solid #ffd466 !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 36px rgba(4, 8, 18, 0.62) !important;
  transform: none !important;
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.wsgr-title-btn:first-child {
  background: linear-gradient(135deg, rgba(255, 98, 152, 0.92) 0%, rgba(255, 156, 95, 0.88) 100%) !important;
  border-color: rgba(255, 240, 205, 0.88) !important;
  border-left: 8px solid #ffffff !important;
  box-shadow: 0 16px 40px rgba(255, 107, 157, 0.46) !important;
}

.wsgr-title-btn:hover {
  transform: translate3d(10px, -4px, 0) scale(1.02) !important;
  border-color: #ff7eb3 !important;
  border-left-color: #ff7eb3 !important;
  box-shadow: 0 18px 44px rgba(255, 126, 179, 0.44) !important;
}

.wsgr-title-btn::after {
  content: attr(data-en);
  font-family: "Segoe UI", Consolas, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255, 212, 102, 0.85);
  margin-left: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.wsgr-title-btn:first-child::after {
  color: rgba(255, 255, 255, 0.96);
}

/* 注入的左上方主视觉标题 Logo 区块 */
.wsgr-hero-header {
  position: absolute;
  top: 82px;
  left: 115px;
  max-width: 1160px;
  z-index: 17;
  pointer-events: none;
  user-select: none;
  animation: wsgrHeroFadeIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wsgrHeroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wsgr-tricolor-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  background: rgba(13, 19, 34, 0.86);
  border: 1.5px solid rgba(255, 212, 102, 0.58);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.wsgr-cockade-dots {
  display: inline-flex;
  gap: 6px;
}
.wsgr-cockade-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.wsgr-dot-blue { background: #2b6cb0; box-shadow: 0 0 8px #4299e1; }
.wsgr-dot-white { background: #ffffff; box-shadow: 0 0 8px #ffffff; }
.wsgr-dot-red { background: #e53e3e; box-shadow: 0 0 8px #fc8181; }

.wsgr-pill-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #ffd466;
}

.wsgr-logo-title {
  font-family: "资源圆体", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 22px 0;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.78));
}

.wsgr-title-line1 {
  display: block;
  font-size: 66px;
  color: #f4f7ff;
  letter-spacing: 2px;
}

.wsgr-title-gold {
  display: inline-block;
  font-size: 84px;
  background: linear-gradient(180deg, #fff3b0 0%, #ffd466 48%, #ff9e2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 8px;
}

.wsgr-title-line2 {
  display: block;
  font-size: 72px;
  color: #ffffff;
  letter-spacing: 2px;
  margin-top: 6px;
}

.wsgr-title-pink {
  display: inline-block;
  font-size: 88px;
  background: linear-gradient(180deg, #ffd1e6 0%, #ff7eb3 50%, #ff477e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 6px;
}

.wsgr-server-card {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 28px;
  background: linear-gradient(90deg, rgba(14, 20, 35, 0.88) 0%, rgba(22, 30, 52, 0.75) 100%);
  border-left: 6px solid #ff7eb3;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
}

.wsgr-server-row1 {
  font-size: 26px;
  font-weight: 800;
  color: #5ce1e6;
  letter-spacing: 1.5px;
}

.wsgr-server-row2 {
  font-size: 22px;
  font-weight: 600;
  color: #d6e0f5;
  letter-spacing: 1px;
}

/* 游戏内选项框强制美化 */
#chooseContainer .wsgr-choose-item {
  background: linear-gradient(90deg, rgba(16, 22, 38, 0.92), rgba(30, 40, 68, 0.92)) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 212, 102, 0.65) !important;
  border-left: 8px solid #ffd466 !important;
  border-radius: 16px !important;
  padding: 0.42em 1.2em !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.62) !important;
  transition: all 0.22s ease !important;
}
#chooseContainer .wsgr-choose-item * {
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.wsgr-top-nav-links {
  position: absolute;
  top: 52px;
  right: 85px;
  display: flex;
  gap: 18px;
  z-index: 25;
}

.wsgr-top-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(14, 20, 36, 0.86);
  border: 1.5px solid rgba(255, 212, 102, 0.55);
  border-radius: 999px;
  color: #ffd466;
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
  transition: all 0.2s ease;
}

.wsgr-top-nav-btn:hover {
  background: rgba(255, 107, 157, 0.9);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}
#chooseContainer .wsgr-choose-item:hover {
  background: linear-gradient(90deg, rgba(64, 26, 56, 0.95), rgba(34, 44, 76, 0.95)) !important;
  border-color: #ff7eb3 !important;
  border-left-color: #ff7eb3 !important;
  transform: translateY(-3px) scale(1.01) !important;
}

/* 对话框扩宽与多行防截断（回收左侧490px空白，支持3-4行完整显示） */
[class*="_TextBox_Container_"] > div:first-child,
#textBoxMain,
[class*="_TextBox_main_"] {
  min-height: 470px !important;
  max-height: 470px !important;
  padding: 112px 100px 58px 140px !important;
  letter-spacing: 0.12em !important;
}

#textBoxMain > div:nth-child(2):not(:last-child),
#textBoxMain > div:nth-child(3):not(:last-child),
[class*="_TextBox_showName_"] {
  left: 140px !important;
  top: 18px !important;
}

#textBoxMain > div:last-child {
  line-height: 1.52em !important;
  max-height: 300px !important;
  overflow: visible !important;
}
