.hub-shell {
  width: min(100%, 820px);
  gap: 6px;
  padding-top: 0;
  padding-bottom: max(50px, env(safe-area-inset-bottom));
}

.hub-header {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: clamp(340px, 31vw, 450px);
  margin-left: -50vw;
  display: grid;
  grid-template-columns: minmax(0, 620px) clamp(280px, 30vw, 380px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 82px);
  overflow: hidden;
  padding:
    max(42px, env(safe-area-inset-top))
    max(24px, calc((100vw - 1180px) / 2))
    4px;
  border-bottom: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 7, 43, 0.58) 0%,
      rgba(29, 10, 52, 0.28) 43%,
      rgba(29, 10, 52, 0.04) 72%
    ),
    url("/assets/home-hero-galaxy.webp?v=0.6.0-img1");
  background-position: center, center 52%;
  background-size: cover;
  isolation: isolate;
}

.hub-star-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ============ 吸顶迷你横幅：头图滚离视口后贴顶显示（静态，无循环动画） ============ */
.hub-mini-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: calc(56px + env(safe-area-inset-top));
  padding:
    env(safe-area-inset-top)
    max(16px, calc((100vw - 820px) / 2))
    0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 7, 43, 0.82) 0%,
      rgba(29, 10, 52, 0.5) 55%,
      rgba(29, 10, 52, 0.3) 100%
    ),
    url("/assets/home-hero-galaxy.webp?v=0.6.0-img1") center 52% / cover;
  box-shadow: 0 6px 18px rgba(15, 4, 36, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0.22s;
}

.hub-shell.is-compact .hub-mini-header {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.hub-mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
}

.hub-mini-brand .mark-grid {
  width: 24px;
  height: 30px;
  filter: drop-shadow(0 3px 6px rgba(15, 4, 36, 0.3));
}

.hub-mini-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.hub-mini-bbx,
.hub-mini-daily {
  flex-shrink: 0;
  border: 0;
  border-radius: 14px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.hub-mini-bbx {
  background: linear-gradient(135deg, #62358a 0%, #7b3fb0 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(98, 53, 138, 0.32);
}

.hub-mini-daily {
  border: 1px solid rgba(224, 168, 0, 0.55);
  background: rgba(255, 252, 245, 0.92);
  color: #b98700;
}

.hub-star-field i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 8px rgba(255, 239, 176, 0.62);
  opacity: 0.28;
  animation: hub-star-twinkle 4.8s ease-in-out infinite;
}

.hub-star-field i:nth-child(1) {
  top: 18%;
  left: 8%;
  animation-delay: -0.8s;
}

.hub-star-field i:nth-child(2) {
  top: 72%;
  left: 18%;
  width: 3px;
  height: 3px;
  animation-delay: -3.2s;
}

.hub-star-field i:nth-child(3) {
  top: 28%;
  left: 38%;
  animation-delay: -1.9s;
}

.hub-star-field i:nth-child(4) {
  top: 78%;
  left: 47%;
  width: 3px;
  height: 3px;
  animation-delay: -4.1s;
}

.hub-star-field i:nth-child(5) {
  top: 16%;
  left: 61%;
  animation-delay: -2.5s;
}

.hub-star-field i:nth-child(6) {
  top: 68%;
  left: 70%;
  animation-delay: -0.3s;
}

.hub-star-field i:nth-child(7) {
  top: 24%;
  left: 84%;
  width: 3px;
  height: 3px;
  animation-delay: -3.7s;
}

.hub-star-field i:nth-child(8) {
  top: 76%;
  left: 92%;
  animation-delay: -1.4s;
}

.hub-header-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hub-header .mark-grid {
  width: 44px;
  height: 56px;
  flex-basis: 44px;
  filter: drop-shadow(0 5px 10px rgba(15, 4, 36, 0.34));
}

.hub-header .mark-grid i {
  display: none;
}

.hub-header .hub-title {
  max-width: 620px;
  margin-bottom: 20px;
  color: #ffffff;
  background: linear-gradient(
    100deg,
    #ffffff 8%,
    #ffffff 28%,
    #ffd45c 45%,
    #fff0aa 55%,
    #dcb7ff 72%,
    #ffffff 92%
  );
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 3px 12px rgba(16, 5, 35, 0.42));
  font-size: clamp(58px, 5vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  animation: hub-title-shimmer 5s ease-in-out infinite;
  -webkit-text-fill-color: transparent;
}

.hub-header .hub-subtitle {
  max-width: 620px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 720;
  line-height: 1.5;
  letter-spacing: 0;
  word-spacing: 0.28em;
  text-shadow: 0 2px 12px rgba(20, 7, 43, 0.58);
  text-wrap: balance;
}

@keyframes hub-title-shimmer {
  0%,
  100% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 0% 50%;
  }
}

@keyframes hub-star-twinkle {
  0%,
  100% {
    opacity: 0.18;
    transform: translateY(0) scale(0.78);
  }

  50% {
    opacity: 0.76;
    transform: translateY(-4px) scale(1.35);
  }
}

.hub-header p {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.7;
}

.hub-header .hub-slogan {
  position: relative;
  max-width: 445px;
  padding-left: 23px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 580;
  line-height: 1.6;
  text-shadow: 0 2px 9px rgba(20, 7, 43, 0.58);
}

.hub-header .hub-slogan::before {
  position: absolute;
  top: 50%;
  left: 0;
  color: #ffe27a;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 212, 0, 0.6);
  content: "✦";
  transform: translateY(-52%);
}

.hub-family-portrait {
  position: relative;
  z-index: 1;
  width: clamp(280px, 30vw, 380px);
  height: clamp(250px, 25vw, 320px);
  justify-self: end;
  overflow: hidden;
  border: 4px solid var(--yellow);
  border-radius: 8px;
  background-color: #efe9f8;
  background-image: url("/assets/family-stroop.webp?v=0.6.0-img1");
  background-position: center 56%;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 211, 0.58),
    inset 0 -32px 50px rgba(90, 42, 128, 0.18),
    0 22px 52px rgba(15, 4, 36, 0.42),
    0 0 26px rgba(255, 212, 0, 0.24),
    0 0 54px rgba(139, 92, 246, 0.16);
  animation: family-float 5.6s ease-in-out infinite;
  isolation: isolate;
}

/* 青年成长版封面：青年同伴共同训练的照片替换亲子照片 */
html.version-university .hub-family-portrait {
  background-image: url("/assets/youth-peers.webp?v=0.6.0-img2");
  background-position: center center;
}

.hub-family-portrait::before,
.hub-family-portrait::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  content: "";
}

.hub-family-portrait::before {
  background: rgba(94, 48, 137, 0.09);
  mix-blend-mode: multiply;
}

.hub-family-portrait::after {
  top: auto;
  height: 54%;
  background: linear-gradient(
    to top,
    rgba(255, 176, 92, 0.34) 0%,
    rgba(255, 213, 151, 0.16) 48%,
    rgba(255, 226, 179, 0) 100%
  );
  mix-blend-mode: soft-light;
}

.hub-sound-toggle {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(20px, calc((100vw - 1180px) / 2 + 20px));
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.hub-sound-toggle:hover { background: rgba(255, 255, 255, 0.22); }
.hub-sound-toggle:active { transform: scale(0.92); }

.hub-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hub-section-heading .hub-section-title {
  flex: none;
  color: var(--coral);
  font-size: 25px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.game-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  min-width: 0;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(47, 36, 54, 0.07);
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.game-card:hover {
  border-color: #d9cdf5;
  box-shadow: 0 15px 34px rgba(109, 40, 217, 0.13);
  transform: translateY(-3px);
}

/* 封面十个空间卡片：hover 时底部亮色线条从左到右扫过（亮紫→亮金渐变），
   替代原 360° 流动描边，单向引导更聚焦、不分散视线。 */

.game-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 0%;
  height: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(
    90deg,
    #8b5cf6,
    #a78bfa 45%,
    #facc15 75%,
    #f59e0b
  );
  box-shadow: 0 -2px 12px rgba(139, 92, 246, 0.45);
  pointer-events: none;
  transition: width 0.55s cubic-bezier(0.22, 1.3, 0.36, 1);
}

.game-card:hover::before,
.game-card:active::before,
.game-card:focus-visible::before {
  width: 100%;
  border-radius: 4px 4px 0 0;
}

/* 离屏暂停：滚出视口的首页区块停止动画渲染（移动端降温） */
.anim-paused,
.anim-paused *,
.anim-paused *::before,
.anim-paused *::after {
  animation-play-state: paused !important;
}

/* 空闲冻结：首页停留 3 秒无交互后冻结全部动画，任意交互由 app.js 移除 .hub-idle 恢复 */
.hub-idle *,
.hub-idle *::before,
.hub-idle *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .hub-mini-header,
  .hub-shell.is-compact .hub-mini-header {
    transition: none;
    transform: none;
  }
  .game-card:hover::before,
  .game-card:active::before,
  .game-card:focus-visible::before {
    transition: none;
  }
  .game-card-arrow,
  .game-card-arrow svg,
  .game-card:hover .game-card-arrow,
  .game-card:hover .game-card-arrow svg,
  .game-card:active .game-card-arrow,
  .game-card:active .game-card-arrow svg {
    transition: none;
    transform: none;
    opacity: 1;
  }
  /* 主页/介绍页装饰性循环动画：停留时常驻发热，减少动画时全部停止 */
  .hub-star-field i,
  .hub-header .hub-title,
  .hub-family-portrait,
  .stroop-mini i,
  .schulte-mini i,
  .tracking-mini i,
  .tracking-mini b,
  .character-mini i,
  .character-mini strong,
  .numbers-mini i,
  .nested-mini-shape,
  .nested-mini-shape b,
  .keen-mini-grid i.target,
  .keen-mini-eye::before,
  .schulte-orbit-preview,
  .schulte-orbit-preview i,
  .schulte-orbit-preview strong {
    animation: none;
  }
}

.game-card-visual {
  position: relative;
  min-height: 146px;
  display: grid;
  padding: 18px;
  overflow: hidden;
}

.stroop-mini {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 7px;
  background: var(--purple-soft);
}

.stroop-mini i {
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 40, 217, 0.1);
  border-radius: 5px;
  background: #fff;
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
}

.stroop-mini i:nth-child(1) {
  color: var(--blue);
}

.stroop-mini i:nth-child(2) {
  color: var(--green);
}

.stroop-mini i:nth-child(3) {
  color: var(--red);
}

.stroop-mini i:nth-child(4) {
  color: #d29b00;
}

.stroop-mini i {
  animation: hub-stroop-word 3.2s cubic-bezier(0.22, 1.3, 0.36, 1) infinite;
}

.stroop-mini i:nth-child(2) {
  animation-delay: 0.22s;
}

.stroop-mini i:nth-child(3) {
  animation-delay: 0.44s;
}

.stroop-mini i:nth-child(4) {
  animation-delay: 0.66s;
}

.schulte-mini {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  background: var(--gold-soft);
}

.schulte-mini i {
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 17px;
  font-style: normal;
  font-weight: 850;
}

.schulte-mini i:nth-child(3n + 1) {
  border-bottom: 3px solid #9adfc9;
}

.schulte-mini i:nth-child(3n + 2) {
  border-bottom: 3px solid #ff9e94;
}

.schulte-mini i:nth-child(3n) {
  border-bottom: 3px solid #89c8f2;
}

.schulte-mini i {
  animation: hub-schulte-scan 3.6s ease-in-out infinite;
}

.schulte-mini i:nth-child(2) {
  animation-delay: 0.16s;
}

.schulte-mini i:nth-child(3) {
  animation-delay: 0.32s;
}

.schulte-mini i:nth-child(4) {
  animation-delay: 0.48s;
}

.schulte-mini i:nth-child(5) {
  animation-delay: 0.64s;
}

.schulte-mini i:nth-child(6) {
  animation-delay: 0.8s;
}

.schulte-mini i:nth-child(7) {
  animation-delay: 0.96s;
}

.schulte-mini i:nth-child(8) {
  animation-delay: 1.12s;
}

.schulte-mini i:nth-child(9) {
  animation-delay: 1.28s;
}

.tracking-mini i {
  animation: hub-tracking-drift 2.8s ease-in-out infinite alternate;
}

.tracking-mini i:nth-child(even) {
  animation-direction: alternate-reverse;
  animation-duration: 3.3s;
}

.tracking-mini i:nth-child(3n) {
  animation-duration: 2.4s;
}

.tracking-mini b {
  animation: hub-tracking-focus 2s ease-in-out infinite;
}

.character-mini i {
  --hub-piece-shift: 9px;
  animation: hub-character-join 3.2s ease-in-out infinite;
}

.character-mini i:nth-of-type(2) {
  --hub-piece-shift: -9px;
}

.character-mini strong {
  animation: hub-character-result 3.2s ease-in-out infinite;
}

.numbers-mini i {
  animation: hub-number-focus 3s ease-in-out infinite;
}

.numbers-mini i:nth-child(2) {
  animation-delay: 0.34s;
}

.numbers-mini i:nth-child(3) {
  animation-delay: 0.68s;
}

.nested-mini-shape {
  animation: hub-nested-switch 3.4s cubic-bezier(0.22, 1.3, 0.36, 1) infinite;
}

.nested-mini-shape b {
  animation: hub-nested-dot 1.7s ease-in-out infinite alternate;
}

.keen-mini-grid i.target {
  animation: hub-keen-target 2.2s ease-in-out infinite;
}

.keen-mini-eye::before {
  animation: hub-keen-look 2.2s ease-in-out infinite;
}

@keyframes hub-stroop-word {
  0%,
  62%,
  100% {
    transform: translateY(0) scale(1);
  }
  12% {
    transform: translateY(-5px) scale(1.06);
  }
  24% {
    transform: translateY(0) scale(1);
  }
}

@keyframes hub-schulte-scan {
  0%,
  74%,
  100% {
    color: var(--teal-dark);
    background: #fff;
    transform: scale(1);
  }
  9%,
  18% {
    color: #4a3500;
    background: var(--yellow);
    transform: scale(1.08);
  }
}

@keyframes hub-tracking-drift {
  from {
    transform: translate(-3px, 4px) scale(0.94);
  }
  to {
    transform: translate(7px, -5px) scale(1.07);
  }
}

@keyframes hub-tracking-focus {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 212, 0, 0);
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 212, 0, 0.2);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes hub-character-join {
  0%,
  18%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
  46%,
  62% {
    opacity: 0.45;
    transform: translateX(var(--hub-piece-shift));
  }
}

@keyframes hub-character-result {
  0%,
  28%,
  84%,
  100% {
    transform: scale(0.94);
  }
  50%,
  68% {
    transform: scale(1.1);
  }
}

@keyframes hub-number-focus {
  0%,
  68%,
  100% {
    color: var(--teal-dark);
    transform: translateY(0) scale(1);
  }
  16%,
  30% {
    color: #b87900;
    transform: translateY(-5px) scale(1.08);
  }
}

@keyframes hub-nested-switch {
  0%,
  34%,
  100% {
    transform: scale(1);
  }
  50%,
  72% {
    transform: scale(1.22);
  }
}

@keyframes hub-nested-dot {
  from {
    background: var(--teal);
  }
  to {
    background: #1689d8;
  }
}

@keyframes hub-keen-target {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.16);
    transform: scale(0.94);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 212, 0, 0.2);
    transform: scale(1.1);
  }
}

@keyframes hub-keen-look {
  0%,
  100% {
    left: 35%;
    transform: translate(-50%, -50%);
  }
  50% {
    left: 68%;
    transform: translate(-50%, -50%);
  }
}

.game-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 19px 20px 14px;
}

.game-card-copy small,
.game-card-copy strong,
.game-card-copy > span {
  display: block;
}

.game-card-copy small {
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
}

.game-card-copy strong {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 25px;
}

.game-card-copy > strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
}

.game-card-copy > strong::before {
  width: 20px;
  height: 25px;
  flex: 0 0 20px;
  background: url("/assets/focus-mascot.webp?v=0.6.0-img1") center / contain
    no-repeat;
  filter: drop-shadow(0 2px 4px rgba(83, 38, 122, 0.16));
  content: "";
  pointer-events: none;
}

.game-card-copy > strong .card-title-hint {
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.game-card-copy > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.game-card-arrow {
  align-self: flex-end;
  margin: 0 20px 18px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #62358a;
  background: linear-gradient(135deg, #f7f1ff 0%, #fff7d6 100%);
  border: 1.5px solid rgba(168, 120, 210, 0.45);
  box-shadow: 0 2px 8px rgba(98, 53, 138, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.game-card-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:hover .game-card-arrow {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: scale(1.08);
}

.game-card:hover .game-card-arrow svg {
  transform: scale(1.22);
}

.game-card:active .game-card-arrow {
  transform: scale(0.96);
}

.game-card:active .game-card-arrow svg {
  transform: scale(0.88);
}

.hub-coming {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hub-coming span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.hub-coming p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.cover-home-bar,
.schulte-cover-topbar {
  flex: 0 0 auto;
}

.schulte-shell {
  width: min(100%, 620px);
}

.schulte-entry-shell {
  width: min(100%, 560px);
  overflow-x: clip;
}

.schulte-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 24px;
  padding: 34px 0 26px;
}

.schulte-hero .brand-mark {
  margin-bottom: 15px;
}

.schulte-title {
  margin: 18px 0 13px;
  color: var(--teal-dark);
  font-size: 48px;
  font-weight: 900;
}

.schulte-title span {
  color: #d19b00;
}

.schulte-orbit-preview {
  position: relative;
  width: 180px;
  aspect-ratio: 1;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 24%, transparent 25%),
    conic-gradient(
      from 15deg,
      #f5f0ff 0 14%,
      #fff9d9 14% 30%,
      #e5f8f1 30% 48%,
      #fff0ee 48% 66%,
      #eaf5ff 66% 82%,
      #f5f0ff 82% 100%
    );
  box-shadow:
    inset 0 0 0 18px #fff,
    inset 0 0 0 20px rgba(109, 40, 217, 0.13),
    0 13px 30px rgba(109, 40, 217, 0.13);
  animation: orbit-preview-spin 20s linear infinite;
}

.schulte-orbit-preview i {
  position: absolute;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d9cdf5;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  box-shadow: 0 4px 9px rgba(109, 40, 217, 0.12);
  animation: orbit-preview-counter 20s linear infinite;
}

.schulte-orbit-preview i:nth-child(1) {
  top: -1px;
  left: 74px;
}

.schulte-orbit-preview i:nth-child(2) {
  top: 36px;
  right: 4px;
}

.schulte-orbit-preview i:nth-child(3) {
  right: 13px;
  bottom: 27px;
}

.schulte-orbit-preview i:nth-child(4) {
  bottom: -1px;
  left: 74px;
}

.schulte-orbit-preview i:nth-child(5) {
  bottom: 27px;
  left: 13px;
}

.schulte-orbit-preview i:nth-child(6) {
  top: 36px;
  left: 4px;
}

.schulte-orbit-preview strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--coral);
  font-size: 31px;
  animation: orbit-preview-counter 20s linear infinite;
}

@keyframes orbit-preview-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-preview-counter {
  to {
    transform: rotate(-360deg);
  }
}

.schulte-guide-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--line);
}

.schulte-guide-types > div {
  min-height: 112px;
  padding: 17px;
  background: #fff;
}

.schulte-guide-types strong,
.schulte-guide-types span {
  display: block;
}

.schulte-guide-types strong {
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 15px;
}

.schulte-guide-types span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.schulte-mode-heading {
  padding-top: 4px;
}

.schulte-lobby {
  justify-content: flex-start;
  gap: 24px;
}

.schulte-setup {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.schulte-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f1edf4;
}

.schulte-type-tabs button {
  min-width: 0;
  min-height: 46px;
  padding: 5px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}

.schulte-type-tabs button.selected {
  color: var(--teal-dark);
  background: #fff;
  box-shadow:
    0 3px 9px rgba(109, 40, 217, 0.12),
    inset 0 -3px 0 var(--yellow);
}

.schulte-size-segments {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.schulte-size-segments .segment {
  min-width: 0;
  font-size: 12px;
}

.poem-select {
  font-size: 13px;
}

.schulte-mode-list {
  display: grid;
  gap: 7px;
}

.schulte-mode-list label {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.schulte-mode-list label.selected {
  border-color: #cdbaf2;
  background: var(--purple-soft);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.schulte-mode-list label.fixed {
  cursor: default;
}

.schulte-mode-fixed-tag {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #8a6d00;
  background: var(--gold-soft, #fff3c4);
  border: 1px solid #eed98a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.schulte-mode-list span,
.schulte-mode-list strong,
.schulte-mode-list small {
  display: block;
}

.schulte-mode-list strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.schulte-mode-list small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.schulte-mode-list input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.schulte-guest-config {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-left: 4px solid var(--yellow);
  color: var(--muted);
  background: var(--gold-soft);
  font-size: 12px;
}

.schulte-guest-config strong {
  color: var(--teal-dark);
}

.schulte-preview {
  padding: 18px;
  border: 1px solid #e2d9f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(109, 40, 217, 0.08);
}

.schulte-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.schulte-preview-heading span,
.schulte-preview-heading strong {
  display: block;
}

.schulte-preview-heading span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.schulte-preview-heading strong {
  color: var(--teal-dark);
  font-size: 14px;
}

.schulte-preview-heading em {
  padding: 5px 8px;
  border-radius: 4px;
  color: #765600;
  background: var(--yellow);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.schulte-preview-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.poem-caption {
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.poem-caption strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--teal-dark);
  font-size: 14px;
}

.poem-caption > span {
  color: var(--muted);
  font-size: 11px;
}

.poem-caption p {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12px;
  line-height: 1.75;
}

.schulte-grid {
  width: 100%;
  aspect-ratio: var(--grid-size) / var(--grid-rows);
  display: grid;
  grid-template-columns: repeat(var(--grid-size), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 4px;
  padding: 5px;
  border: 2px solid var(--teal-dark);
  background: var(--teal-dark);
}

.schulte-cell {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition:
    color 110ms ease,
    background 110ms ease,
    transform 110ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 110ms ease;
}

.schulte-cell:not(:disabled):active {
  transform: scale(0.9);
}

.solo-coach-mode .schulte-cell:not(:disabled):active {
  transform: none;
}

.schulte-cell:disabled {
  cursor: default;
}

.schulte-cell.blank {
  background: #f2eff4;
}

.schulte-grid.compact .schulte-cell {
  font-size: 16px;
}

.schulte-grid.dense .schulte-cell {
  font-size: 12px;
}

/* 3×3 九宫格格子较大，数字相对偏小，单独放大一档 */
.schulte-grid.cols-3 .schulte-cell {
  font-size: clamp(34px, 7vw, 46px);
}

.schulte-grid.poem-grid .schulte-cell {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
}

.schulte-cell.completed {
  color: #fff;
  opacity: 0.88;
}

/* 本地已点亮、待服务器确认的格子：轻微脉冲提示，回包后自然消失 */
.schulte-cell.optimistic {
  animation: schulte-optimistic-pop 220ms ease-out;
}

@keyframes schulte-optimistic-pop {
  0% { transform: scale(0.82); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.schulte-cell.claimed-father {
  background: #7251b5;
}

.schulte-cell.claimed-mother {
  background: #e5658a;
}

.schulte-cell.claimed-childA {
  background: #198c69;
}

.schulte-cell.claimed-childB {
  background: #2d83c5;
}

.schulte-cell.claimed-childC {
  color: #4f3d00;
  background: #ffd400;
}

.schulte-cell.wrong {
  color: #fff;
  background: var(--red);
  animation: shake 240ms ease-in-out;
}

/* 动态圆环格子点错时只显示红底，不播放抖动动画：
   旋转环叠加位移抖动观感太晃，按产品要求去掉；
   同时全局 shake 关键帧只有 translateX，会覆盖 translate(-50%,-50%)
   居中级 transform 导致整格斜跳，这里显式关闭。 */
.schulte-ring-cell.wrong {
  animation: none;
}

.schulte-ring-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #ded5ee;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 12%, transparent 12.5%),
    #faf8ff;
  box-shadow:
    inset 0 0 0 8px #fff,
    0 10px 26px rgba(109, 40, 217, 0.08);
}

.schulte-ring-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--diameter);
  aspect-ratio: 1;
  pointer-events: none;
  border: 2px solid rgba(109, 40, 217, 0.23);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.schulte-ring-layer:nth-child(even) {
  border-color: rgba(255, 180, 0, 0.55);
}

.schulte-ring-layer.is-spinning {
  animation: schulte-ring-spin var(--spin-duration) linear infinite;
  animation-delay: var(--spin-delay);
  animation-direction: var(--spin-direction);
}

.schulte-ring-cell {
  position: absolute;
  z-index: 2;
  top: var(--cell-top);
  left: var(--cell-left);
  width: clamp(38px, 8vw, 44px);
  height: clamp(38px, 8vw, 44px);
  pointer-events: auto;
  touch-action: manipulation;
  border: 2px solid #d8cbed;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.16);
  font-size: 13px;
  transform: translate(-50%, -50%);
}

/* 圆环格靠 translate(-50%,-50%) 定位居中，方格通用的按压/脉冲 scale 动画
   会覆盖居中位移，表现为点击瞬间整格斜跳后复位，这里保持居中、不抖动 */
.schulte-ring-cell:not(:disabled):active,
.solo-coach-mode .schulte-ring-cell:not(:disabled):active {
  transform: translate(-50%, -50%);
}

.schulte-ring-cell.optimistic {
  animation: none;
}

@media (hover: hover) and (pointer: fine) {
  .schulte-ring-cell {
    width: 50px;
    height: 50px;
  }
}

.schulte-ring-cell span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.schulte-ring-layer.is-spinning .schulte-ring-cell span {
  animation: schulte-ring-counter var(--counter-duration) linear infinite;
  animation-delay: var(--spin-delay);
  animation-direction: var(--spin-direction);
}

.schulte-ring-board.paused *,
.schulte-ring-board.paused {
  animation-play-state: paused !important;
}

.schulte-ring-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  display: grid;
  place-content: center;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 18px rgba(109, 40, 217, 0.14);
  text-align: center;
  transform: translate(-50%, -50%);
}

.schulte-ring-core span,
.schulte-ring-core strong {
  display: block;
}

.schulte-ring-core span {
  color: var(--muted);
  font-size: 9px;
}

.schulte-ring-core strong {
  max-width: 56px;
  overflow: hidden;
  color: var(--teal-dark);
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes schulte-ring-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes schulte-ring-counter {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.schulte-lobby-actions {
  display: grid;
  gap: 10px;
}

.schulte-lobby-actions .primary-button,
.schulte-lobby-actions .secondary-button {
  margin-top: 0;
}

.schulte-game-shell {
  width: min(100%, 620px);
}

.schulte-game-metrics {
  min-height: 67px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.schulte-game-metrics > div {
  min-width: 0;
}

.schulte-game-metrics > div:last-child {
  text-align: right;
}

.schulte-game-metrics span,
.schulte-game-metrics strong {
  display: block;
}

.schulte-game-metrics span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.schulte-game-metrics strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.schulte-stopwatch {
  min-width: 92px;
  padding: 9px 15px;
  border-right: 1px solid #d9cdf5;
  border-left: 1px solid #d9cdf5;
  text-align: center;
}

.schulte-stopwatch strong {
  color: var(--teal-dark);
  font-size: 23px;
}

.schulte-target-banner {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-left: 5px solid var(--yellow);
  background: var(--gold-soft);
}

.schulte-target-banner > span {
  padding: 6px 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
}

.schulte-target-banner strong {
  min-width: 0;
  color: var(--teal-dark);
  font-size: 18px;
  line-height: 1.3;
}

.schulte-target-banner.paused {
  border-left-color: #aaa1af;
  background: #f1eef3;
}

.schulte-live-board {
  position: relative;
  width: 100%;
  margin: auto 0;
}

.schulte-pause-mask {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-content: center;
  border: 1px solid #d9cdf5;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.schulte-pause-mask span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 4px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--purple-soft);
  font-size: 24px;
  font-weight: 900;
}

.schulte-pause-mask strong {
  color: var(--teal-dark);
}

.schulte-turn-order {
  margin: 0;
  padding: 10px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.schulte-live-scores {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.schulte-live-scores span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.schulte-live-scores i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 9px;
  font-style: normal;
}

.schulte-result {
  justify-content: flex-start;
}

.schulte-score-hero .score-number {
  font-size: 58px;
}

.schulte-ranking {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schulte-ranking > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(70px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.schulte-ranking > div:last-child {
  border-bottom: 0;
}

.schulte-ranking > div.winner {
  color: var(--teal-dark);
  background: var(--gold-soft);
}

.schulte-ranking .rank-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 11px;
  font-weight: 850;
}

.schulte-ranking strong {
  font-size: 13px;
}

.schulte-ranking > div > span:last-child {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

@media (max-width: 720px) {
  .hub-header {
    min-height: 0;
    aspect-ratio: 2.22 / 1;
    grid-template-columns: minmax(0, 1fr) 36%;
    gap: 16px;
    padding:
      max(20px, env(safe-area-inset-top))
      20px
      4px;
    background-position: center, 50% center;
  }

  .hub-header .hub-title {
    margin-bottom: 20px;
    font-size: 36px;
  }

  .hub-header .mark-grid {
    width: 34px;
    height: 43px;
    flex-basis: 34px;
  }

  .hub-header .hub-subtitle {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .hub-header .hub-slogan {
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .hub-family-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 19 / 16;
  }

  .hub-sound-toggle {
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .hub-section-heading {
    gap: 10px;
  }

  .hub-section-heading .hub-section-title {
    font-size: 21px;
  }

  .game-library {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr) 46px;
    align-items: stretch;
  }

  .game-card-visual {
    min-height: 138px;
  }

  .game-card-copy {
    padding: 17px 13px;
  }

  .game-card-copy strong {
    font-size: 21px;
  }

  /* 移动端标注用小字号，放不下时由全局 flex-wrap 掉到标题下一行（不会挤压标题竖排） */
  .game-card-copy > strong .card-title-hint {
    font-size: 11px;
  }

  .game-card-arrow {
    align-self: center;
    justify-self: end;
    margin: 0 12px 0 0;
    width: 34px;
    height: 34px;
  }

  .game-card-arrow svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .hub-header {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 36%;
    align-items: center;
    gap: 10px;
    padding:
      max(14px, env(safe-area-inset-top))
      14px
      4px;
    background-position: center, 48% center;
  }

  .hub-header .mark-grid {
    width: 26px;
    height: 33px;
    flex-basis: 26px;
  }

  .hub-header .hub-title {
    gap: 8px;
    margin-bottom: 16px;
    font-size: 30px;
  }

  .hub-header .hub-subtitle {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.3;
    word-spacing: 0.12em;
    white-space: nowrap;
  }

  .hub-header p {
    font-size: 10px;
  }

  .hub-header .hub-slogan {
    padding-left: 14px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .hub-family-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 19 / 16;
    border-width: 2px;
  }

  .hub-section-heading {
    gap: 8px;
  }

  .hub-section-heading .hub-section-title {
    font-size: 18px;
  }

  .schulte-hero {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 14px;
  }

  .schulte-title {
    font-size: 39px;
  }

  .schulte-orbit-preview {
    width: 126px;
  }

  .schulte-orbit-preview i {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }

  .schulte-orbit-preview i:nth-child(1),
  .schulte-orbit-preview i:nth-child(4) {
    left: 50px;
  }

  .schulte-orbit-preview i:nth-child(2),
  .schulte-orbit-preview i:nth-child(6) {
    top: 24px;
  }

  .schulte-orbit-preview i:nth-child(3),
  .schulte-orbit-preview i:nth-child(5) {
    bottom: 18px;
  }

  .schulte-type-tabs button {
    font-size: 10px;
  }

  .schulte-preview {
    padding: 12px;
  }

  .schulte-cell {
    font-size: 20px;
  }

  .schulte-grid.compact .schulte-cell {
    font-size: 14px;
  }

  .schulte-grid.dense .schulte-cell {
    font-size: 10px;
  }

  .schulte-grid.cols-3 .schulte-cell {
    font-size: 32px;
  }

  .schulte-ring-cell {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .schulte-ring-core {
    width: 57px;
    height: 57px;
  }

  .schulte-target-banner strong {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .hub-header {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 36%;
    gap: 8px;
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      4px;
  }

  .hub-family-portrait {
    width: 100%;
    height: auto;
  }

  .hub-header .hub-title {
    gap: 7px;
    margin-bottom: 12px;
    font-size: 24px;
  }

  .hub-header .mark-grid {
    width: 22px;
    height: 28px;
    flex-basis: 22px;
  }

  .hub-header .hub-subtitle {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .hub-header .hub-slogan {
    padding-left: 12px;
    font-size: 9px;
  }

  .game-card {
    grid-template-columns: 106px minmax(0, 1fr) 24px;
  }

  .game-card-visual {
    min-height: 126px;
    padding: 12px;
  }

  .game-card-copy > strong {
    gap: 4px;
  }

  .game-card-copy > strong::before {
    width: 14px;
    height: 18px;
    flex-basis: 14px;
  }

  .schulte-guide-types {
    grid-template-columns: 1fr;
  }

  .schulte-ring-cell {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }
}

/* ─── 诗词 AI 鉴赏抽屉 ─── */

.poem-select-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.poem-select-row .poem-select {
  flex: 1;
}

.poem-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  border: 1.5px solid var(--color-purple, #62358A);
  background: rgba(98, 53, 138, 0.06);
  color: var(--color-purple, #62358A);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.poem-explore-btn:hover {
  background: rgba(98, 53, 138, 0.14);
  transform: translateY(-1px);
}

.poem-explore-btn:active {
  transform: translateY(0);
}

.poem-explore-icon {
  font-size: 1rem;
}

/* 遮罩层 */
.poem-explore-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  animation: poem-explore-fade 0.24s ease both;
}

#poem-explore-root {
  animation: poem-explore-enter 0.28s ease both;
}

#poem-explore-root:not(.open) .poem-explore-drawer {
  transform: translateY(100%);
}

@keyframes poem-explore-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes poem-explore-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 抽屉主体 */
.poem-explore-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  background: var(--color-surface, #fff);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 头部 */
.poem-explore-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.poem-explore-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.poem-explore-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.poem-explore-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-purple, #62358A);
  flex-shrink: 0;
}

.poem-explore-select {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.6rem;
}

.poem-explore-select:focus {
  outline: none;
  border-color: var(--color-purple, #62358A);
}

/* 内容区 */
.poem-explore-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

/* 诗词卡片 */
.poem-explore-poem-card {
  background: linear-gradient(135deg, rgba(98, 53, 138, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1.5px solid rgba(98, 53, 138, 0.12);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.poem-explore-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-purple, #62358A);
  margin: 0 0 0.3rem;
  letter-spacing: 0.04em;
}

.poem-explore-author {
  font-size: 0.85rem;
  color: #777;
  margin: 0 0 0.9rem;
}

.poem-explore-lines p {
  margin: 0.4rem 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

/* 鉴赏板块 */
.poem-explore-section {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.poem-explore-section h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.poem-explore-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
  margin: 0;
}

/* 免责声明 */
.poem-explore-disclaimer {
  font-size: 0.72rem;
  color: #aaa;
  text-align: center;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.06em;
}

/* AI 实时鉴赏徽章 */
.poem-explore-ai-badge {
  display: table;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #62358a;
  background: linear-gradient(135deg, #f3e8ff, #fef3c7);
  border: 1px solid rgba(98, 53, 138, 0.25);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(98, 53, 138, 0.12);
}

/* 序索空间多人结算 · 小星AI 实时战报 */
.battle-report {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0 0.2rem;
  padding: 1rem 1.1rem;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(98, 53, 138, 0.07),
    rgba(212, 175, 55, 0.09)
  );
  border: 1px solid rgba(98, 53, 138, 0.16);
  border-radius: 1rem;
  text-align: center;
}

.battle-report.is-pending {
  padding: 0.4rem 1.1rem 0.2rem;
}

.battle-report-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(120deg, #62358a, #a05cc7 55%, #d4af37);
}

.battle-report h3 {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  font-weight: 850;
  color: #62358a;
}

.battle-report p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #4c3a63;
}

.battle-report-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding: 0.5rem 0.9rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(212, 175, 55, 0.55);
  border-radius: 0.75rem;
}

.battle-report-next span {
  font-size: 0.74rem;
  color: #8a7a9e;
  letter-spacing: 0.04em;
}

.battle-report-next strong {
  font-size: 0.92rem;
  font-weight: 850;
  color: #62358a;
}

.result-actions [data-schulte-action="start-suggested"]:disabled {
  opacity: 0.55;
  cursor: progress;
}

@media (max-width: 720px) {
  .battle-report {
    padding: 0.85rem 0.9rem;
  }

  .battle-report p {
    font-size: 0.84rem;
  }
}

/* AI 加载中 */
.poem-explore-ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 1.5rem;
  padding: 1.4rem 1rem;
  background: rgba(98, 53, 138, 0.05);
  border: 1px dashed rgba(98, 53, 138, 0.25);
  border-radius: 0.75rem;
}

.poem-explore-ai-loading p {
  margin: 0;
  font-size: 0.85rem;
  color: #62358a;
  letter-spacing: 0.03em;
}

.poem-explore-ai-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.poem-explore-ai-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #62358a;
  animation: poem-ai-bounce 1s infinite ease-in-out;
}

.poem-explore-ai-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.poem-explore-ai-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes poem-ai-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* AI 失败后的静态资料提示 */
.poem-explore-ai-fallback-note {
  font-size: 0.72rem;
  color: #b08d57;
  text-align: center;
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.04em;
}

/* 桌面端：抽屉不要占满宽度 */
@media (min-width: 720px) {
  .poem-explore-drawer {
    max-width: 560px;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    border-radius: 1.25rem;
    max-height: 80vh;
  }

  #poem-explore-root:not(.open) .poem-explore-drawer {
    transform: translateX(-50%) translateY(100%);
  }
}

/* 预览卡片内的 AI 鉴赏小按钮（非房主也可见） */
.poem-explore-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.4rem 0 0.6rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(98, 53, 138, 0.35);
  background: rgba(98, 53, 138, 0.07);
  color: var(--color-purple, #62358A);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poem-explore-inline-btn:hover {
  background: rgba(98, 53, 138, 0.16);
  transform: translateY(-1px);
}

.poem-explore-inline-btn:active {
  transform: translateY(0);
}
