/* Figma 节点 11012:1636 — 游戏章节 header */
.figma-game-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .figma-game-header {
    padding: 0 258px;
  }
}

.figma-game-header__home {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: 80px;
  height: 32px;
  padding: 0;
  border: 1px solid #8800dd;
  border-radius: 8px;
  background-color: rgba(136, 0, 221, 0.1);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.figma-game-header__home:hover {
  background-color: rgba(136, 0, 221, 0.18);
}

.figma-game-header__home:active {
  transform: scale(0.98);
}

.figma-game-header__home-icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.figma-game-header__home-icon img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.figma-game-header__home-text {
  flex-shrink: 0;
  font-family: 'Lexend', sans-serif;
  font-size: 12.8px;
  font-weight: 700;
  line-height: 12.8px;
  color: #8800dd;
  white-space: nowrap;
}

.figma-game-header__divider {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
}

.figma-game-header__title {
  flex-shrink: 0;
  margin: 0;
  overflow: hidden;
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

body:has(.figma-game-header) .scene-container {
  margin-top: 52px;
}

@media (max-width: 768px) {
  /* 取消 style.min.css 中 33vw 底留白，避免导航栏与 footer 之间出现大块空白 */
  body:has(.figma-game-header) .scene-container {
    padding-bottom: 0;
  }
}

/* 开篇页暂时隐藏正文内广告位，不占布局空间 */
body:has(.figma-game-header) .ad-container {
  display: none !important;
  margin: 0 !important;
}