/* ===================== 基础布局（与原模板一致） ===================== */
body { padding: 0; margin: 0; background: #0E1116 }
#tuanjie-container { position: absolute }
#tuanjie-container.tuanjie-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#tuanjie-container.tuanjie-mobile { position: fixed; width: 100%; height: 100% }
#tuanjie-canvas { background: #0B0D11 }
.tuanjie-mobile #tuanjie-canvas { width: 100%; height: 100% }

/* ===================== 定制加载界面 ===================== */
#tuanjie-loading-bar {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  /* 加载层铺满整个游戏区域 */
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #10151C 0%, #0A0D12 55%, #131A24 100%);
}

.snake-loader {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 86vw);
  text-align: center;
  color: #F2F5F8;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  user-select: none;
}

/* ---- Logo ---- */
.snake-logo { width: 96px; height: 96px; margin: 0 auto 8px }
.snake-logo svg { width: 100%; height: 100% }
.snake-logo { animation: snake-float 2.6s ease-in-out infinite }
@keyframes snake-float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-7px) }
}

.snake-word {
  font-size: 30px; font-weight: 800; letter-spacing: 0.18em;
  background: linear-gradient(90deg, #FF8C00, #FFC40A);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.snake-sub { font-size: 13px; color: #9AA4B2; margin-bottom: 26px }

/* ---- 进度条 ---- */
#tuanjie-progress-bar-empty {
  width: 100%; height: 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  margin: 0 auto 10px;
  box-sizing: border-box;
  overflow: hidden;
}
#tuanjie-progress-bar-full {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #00B2D2, #FF8C00);
  border-radius: 5px;
  transition: width 0.25s ease;
}

.snake-progress-text { font-size: 13px; color: #C8D2DC; margin-bottom: 20px }
.snake-stage { color: #7C8794; margin-left: 8px }

/* ---- 小贴士轮播 ---- */
.snake-tip {
  min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  font-size: 14px; line-height: 1.55; color: #E8ECF2;
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.28);
  border-radius: 10px;
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* ---- 加载说明 ---- */
.snake-notice {
  margin-top: 14px;
  font-size: 12px; color: #7C8794;
}

/* ---- 底部 ---- */
#tuanjie-footer { position: relative }
.tuanjie-mobile #tuanjie-footer { display: none }
#tuanjie-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 16px; color: #C8D2DC }
#tuanjie-fullscreen-button { cursor: pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#tuanjie-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
