/* 塔 1 大厅（剖面大楼 + 电梯）和塔内细顶栏 */

.sn-app.is-lobby .sn-hud {
  padding: 6px 16px 2px;
}

.sn-lobby-stage {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 2px 14px 12px;
}

.lb-wrap {
  --lb-ink: #2E294E;
  --lb-floor-h: 72px;
  --lb-shaft-w: 72px;
  --lb-win-w: 48px;
  --lb-win-h: 48px;
  color: var(--lb-ink);
}

/* ---------- 顶部：标题、三项统计、小熊的话、大按钮 ---------- */
.lb-top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title go" "say go";
  gap: 6px 14px;
  align-items: center;
  margin-bottom: 6px;
}
.lb-title {
  grid-area: title;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.lb-title h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.lb-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  min-width: 48px;
  padding: 4px 12px;
  border: 2px solid var(--lb-ink);
  border-radius: 999px;
  background: #FFFDF7;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 2px 2px 0 #C8BCE6;
  touch-action: manipulation;
}
button.lb-stat {
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
button.lb-stat:hover { transform: translateY(-1px); background: #FFF5D2; }
button.lb-stat:active { transform: translateY(1px); }
.lb-stat b { font-size: 15px; }
.lb-stat.is-lit { background: #FFF6CC; }

.lb-say { grid-area: say; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-say-pet { width: 40px; height: 40px; object-fit: contain; flex: none; }
.lb-say-speak {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid var(--lb-ink);
  border-radius: 999px;
  background: #FFF6CC;
  color: var(--lb-ink);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 #C8BCE6;
  touch-action: manipulation;
}
.lb-say-speak:active { transform: translate(1px, 1px); box-shadow: none; }
.lb-bubble {
  position: relative;
  margin: 0;
  padding: 6px 12px;
  border: 2.5px solid var(--lb-ink);
  border-radius: 14px;
  background: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 3px 3px 0 #C8BCE6;
}
.lb-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-left: 2.5px solid var(--lb-ink);
  border-bottom: 2.5px solid var(--lb-ink);
  transform: translateY(-50%) rotate(45deg);
}

.lb-go {
  grid-area: go;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 16px;
  border: 3px solid var(--lb-ink);
  border-radius: 18px;
  background: #FFD95A;
  color: var(--lb-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--lb-ink);
  transition: transform .12s ease, box-shadow .12s ease;
  touch-action: manipulation;
}
.lb-go b { display: block; font-size: 16px; font-weight: 900; }
.lb-go small { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: #6A5A2A; }
.lb-go-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}
.lb-go-icon .art-emo {
  width: 34px;
  height: 34px;
  margin: 0;
  object-fit: contain;
}
.lb-go:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--lb-ink); }
.lb-go:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--lb-ink); }

/* ---------- 大楼 ---------- */
.lb-building { position: relative; margin: 12px auto 0; max-width: 940px; }

.lb-roof {
  position: relative;
  height: 40px;
  margin: 0 -6px -2px;
}
.lb-roof-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-sign {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 2px 12px;
  border: 2px solid var(--lb-ink);
  border-radius: 10px;
  background: #FFFDF7;
  font-size: 13.5px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--lb-ink);
}
.lb-flag {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 3px;
  height: 22px;
  background: var(--lb-ink);
}
.lb-flag::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 22px;
  height: 13px;
  background: #FF7EB3;
  border: 2px solid var(--lb-ink);
  border-radius: 0 5px 5px 0;
  transform-origin: left center;
  animation: lb-flag 2.4s ease-in-out infinite;
}
@keyframes lb-flag { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-8deg) scaleX(.9); } }

.lb-floors {
  position: relative;
  border: 3.5px solid var(--lb-ink);
  border-radius: 6px 6px 0 0;
  background: #FFFDF7;
  padding-right: var(--lb-shaft-w);
  box-shadow: 6px 6px 0 #C8BCE6;
}

.lb-floor {
  --fl-bg: #FFF6CC;
  --fl-accent: #FFD95A;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: var(--lb-floor-h);
  padding: 5px 12px 5px 8px;
  background: var(--fl-bg);
  border-bottom: 4px solid var(--lb-ink);
}
.lb-floor:last-of-type { border-bottom: 0; }
.lb-floor.is-top { --fl-bg: #E8ECFF; --fl-accent: #98A8FF; }
.lb-floor.is-f5 { --fl-bg: #FFE4F0; --fl-accent: #FF7EB3; }
.lb-floor.is-f4 { --fl-bg: #E0F0FF; --fl-accent: #5CC8FF; }
.lb-floor.is-f3 { --fl-bg: #FBE7DC; --fl-accent: #C47A4E; }
.lb-floor.is-f2 { --fl-bg: #DDFBEF; --fl-accent: #5CE0A8; }
.lb-floor.is-f1 { --fl-bg: #FFF3C4; --fl-accent: #FFC93C; }

/* 小熊所在的那层，地板亮一点 */
.lb-floor.is-here::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--fl-accent);
  opacity: .8;
}

.lb-floor-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.lb-scene {
  display: block;
  flex: none;
  width: 96px;
  height: 58px;
  padding: 2px;
  border: 2.5px solid var(--lb-ink);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 3px 3px 0 rgba(46, 41, 78, .18);
  cursor: pointer;
  transition: transform .15s ease;
}
.lb-scene-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lb-floor-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
  cursor: pointer;
}
.lb-floor-top { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
.lb-floor-no {
  display: inline-block;
  min-width: 30px;
  padding: 0 7px;
  border: 2px solid var(--lb-ink);
  border-radius: 7px;
  background: var(--fl-accent);
  font-size: 12.5px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
.lb-floor-text strong { font-size: 16.5px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.lb-floor-text small { font-size: 12px; font-weight: 700; color: #5F587F; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tag {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 0 7px;
  border: 1.6px solid var(--lb-ink);
  border-radius: 999px;
  background: #FFFFFF;
  white-space: nowrap;
}
.lb-tag.is-rec { background: #FF7EB3; color: #FFFFFF; animation: lb-nudge 1.6s ease-in-out infinite; }
@keyframes lb-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

.lb-floor-main:hover .lb-scene,
.lb-floor-main:focus-visible .lb-scene { transform: translateY(-2px) rotate(-1.5deg); }
.lb-floor-main:focus-visible .lb-scene { outline: 3px solid #5CC8FF; outline-offset: 2px; }

/* ---------- 7 扇窗 ---------- */
.lb-windows {
  display: grid;
  grid-template-columns: repeat(7, var(--lb-win-w));
  gap: 6px;
}
.lb-win {
  position: relative;
  width: var(--lb-win-w);
  height: var(--lb-win-h);
  padding: 0;
  border: 2.5px solid var(--lb-ink);
  border-radius: 14px 14px 5px 5px;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform .12s ease;
}
.lb-win::before, .lb-win::after {
  content: "";
  position: absolute;
  background: var(--lb-ink);
  opacity: .5;
}
.lb-win::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.lb-win::after { top: 48%; left: 0; right: 0; height: 2px; }
.lb-win-no {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}
.lb-win.is-locked { background: #5B5480; cursor: default; }
.lb-win.is-locked .lb-win-no { color: #A8A2CC; background: #4A4470; }
.lb-win.is-locked::before, .lb-win.is-locked::after { background: #2E294E; opacity: .6; }
.lb-win.is-open { background: linear-gradient(180deg, #E8F6FF 0%, #FFFFFF 100%); }
.lb-win.is-open .lb-win-no { color: var(--lb-ink); background: #FFFFFF; border: 1.6px solid var(--lb-ink); }
.lb-win.is-pre-lit { background: #5B5480; }
.lb-win.is-pre-lit .lb-win-no { color: #A8A2CC; background: #4A4470; }
.lb-win.is-done {
  background: radial-gradient(circle at 50% 42%, #FFFBE0 0%, #FFE27A 55%, #FFC93C 100%);
  box-shadow: 0 0 12px 2px rgba(255, 201, 60, .75);
}
.lb-win.is-done .lb-win-no { color: #8A5A00; background: rgba(255, 255, 255, .7); }
.lb-win.is-cur { box-shadow: 0 0 0 3px #FF7EB3; animation: lb-cur 1.4s ease-in-out infinite; }
@keyframes lb-cur { 0%, 100% { box-shadow: 0 0 0 3px #FF7EB3; } 50% { box-shadow: 0 0 0 6px rgba(255, 126, 179, .35); } }
.lb-win:not(.is-locked):hover { transform: translateY(-2px); }
.lb-win:focus-visible { outline: 3px solid #5CC8FF; outline-offset: 2px; }
.lb-win.is-lighting { animation: lb-light 1s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes lb-light {
  0% { transform: scale(1); filter: brightness(.6); }
  35% { transform: scale(1.35); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1); }
}
.lb-win.is-shake { animation: lb-shake .4s ease; }
@keyframes lb-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.lb-count {
  min-width: 38px;
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}
.lb-count small { font-size: 13px; color: #5F587F; }

/* ---------- 电梯 ---------- */
.lb-shaft {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--lb-shaft-w);
  border-left: 3.5px solid var(--lb-ink);
  background:
    linear-gradient(90deg, transparent 18px, rgba(46, 41, 78, .22) 18px, rgba(46, 41, 78, .22) 21px, transparent 21px,
      transparent calc(100% - 21px), rgba(46, 41, 78, .22) calc(100% - 21px), rgba(46, 41, 78, .22) calc(100% - 18px), transparent calc(100% - 18px)),
    #EFE9DA;
  pointer-events: none;
}
.lb-cab {
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  height: var(--lb-floor-h);
  padding: 6px 0;
  transition: transform .8s cubic-bezier(.45, 0, .2, 1);
  will-change: transform;
}
.lb-cab::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  border: 3px solid var(--lb-ink);
  border-radius: 12px;
  background: linear-gradient(180deg, #FFE7A3, #FFD95A);
  box-shadow: 0 3px 0 rgba(46, 41, 78, .25);
}
.lb-cab::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -24px;
  width: 2px;
  height: 30px;
  background: var(--lb-ink);
}
.lb-cab-light {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border: 2px solid var(--lb-ink);
  border-radius: 50%;
  background: #FFFDF7;
}
.lb-cab.is-moving .lb-cab-light { background: #FF7EB3; }
.lb-cab-pet {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 7px;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  object-fit: contain;
  font-size: 28px;
  text-align: center;
  line-height: 44px;
}
.lb-cab.is-moving .lb-cab-pet { animation: lb-wobble .4s ease-in-out infinite; }
@keyframes lb-wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* ---------- 地面 ---------- */
.lb-ground {
  position: relative;
  height: 20px;
  margin: 0 -10px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: #8EE6B5;
  border: 3px solid var(--lb-ink);
  border-top: 0;
}
.lb-door {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 44px;
  height: 10px;
  margin-left: -22px;
  border: 3px solid var(--lb-ink);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #E08B3C;
}
.lb-bush {
  position: absolute;
  left: 8%;
  top: -12px;
  width: 34px;
  height: 20px;
  border: 3px solid var(--lb-ink);
  border-radius: 20px 20px 6px 6px;
  background: #5CE0A8;
}
.lb-bush.is-r { left: auto; right: 8%; }

/* ---------- 场景里的小动画：整层 7 扇窗全亮才会动 ---------- */
.lb-scene-svg .lb-spin,
.lb-scene-svg .lb-bob,
.lb-scene-svg .lb-tilt,
.lb-scene-svg .lb-slide,
.lb-scene-svg .lb-twinkle { transform-box: fill-box; transform-origin: center; }
.lb-floor.is-alive .lb-spin { animation: lb-spin 6s linear infinite; }
.lb-floor.is-alive .lb-bob { animation: lb-bob 1.6s ease-in-out infinite; }
.lb-floor.is-alive .lb-bob.is-d2 { animation-delay: .25s; }
.lb-floor.is-alive .lb-bob.is-d3 { animation-delay: .5s; }
.lb-floor.is-alive .lb-tilt { animation: lb-tilt 2.4s ease-in-out infinite; }
.lb-floor.is-alive .lb-slide { animation: lb-slide 3s linear infinite; }
.lb-floor.is-alive .lb-twinkle { animation: lb-twinkle 1.8s ease-in-out infinite; }
.lb-floor.is-alive .lb-twinkle.is-d2 { animation-delay: .6s; }
.lb-floor.is-alive .lb-twinkle.is-d3 { animation-delay: 1.2s; }
.lb-floor.is-alive .lb-scene { background: #FFFBE6; box-shadow: 0 0 0 3px var(--fl-accent), 3px 3px 0 rgba(46, 41, 78, .18); }
.lb-floor.is-just-alive .lb-scene { animation: lb-pop .8s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes lb-spin { to { transform: rotate(360deg); } }
@keyframes lb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes lb-tilt { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes lb-slide { 0% { transform: translateX(-12px); } 100% { transform: translateX(12px); } }
@keyframes lb-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes lb-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- 平板 ---------- */
@media (max-width: 860px) {
  .lb-wrap { --lb-win-w: 48px; --lb-win-h: 48px; --lb-shaft-w: 58px; --lb-floor-h: 72px; }
  .lb-floor-text small { display: none; }
  .lb-top { grid-template-columns: 1fr; grid-template-areas: "title" "say" "go"; gap: 8px; }
  .lb-go { justify-content: space-between; }
  .lb-scene { flex: none; width: 74px; height: 48px; }
  .lb-floor, .lb-floor-main { gap: 8px; }
  .lb-floor { padding: 5px 8px; }
  .lb-floor-text strong { font-size: 15.5px; white-space: nowrap; }
  .lb-windows { gap: 4px; }
  .lb-count { min-width: 30px; font-size: 16px; }
  .lb-cab-pet { width: 40px; height: 40px; margin-left: -20px; line-height: 40px; font-size: 26px; }
}

/* ---------- 手机：隐藏右侧电梯井、窗户占满整行 >= 44px、零横向溢出 ---------- */
@media (max-width: 600px) {
  .sn-lobby-stage { padding: 4px 8px 24px; }
  .lb-wrap { --lb-win-w: 1fr; --lb-win-h: 46px; --lb-shaft-w: 0px; --lb-floor-h: 112px; }
  .lb-floor-text small { display: block; }
  .lb-title { gap: 6px; }
  .lb-title h1 { font-size: 21px; }
  .lb-stat { font-size: 12px; padding: 3px 9px; min-height: 40px; }
  .lb-stat b { font-size: 13.5px; }
  .lb-bubble { font-size: 13.5px; }
  .lb-say-pet { width: 36px; height: 36px; }
  .lb-go { padding: 10px 12px; }
  .lb-go b { font-size: 15px; }
  .lb-building { margin-top: 10px; }
  .lb-roof { height: 38px; margin: 0 0 -2px; }
  .lb-sign { font-size: 13px; bottom: 5px; }
  .lb-floors { padding-right: 0; }
  .lb-shaft { display: none; }
  .lb-ground { margin: 0; height: 20px; }
  .lb-floor {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main count" "win win";
    gap: 6px 8px;
    padding: 7px 6px;
  }
  .lb-floor-main { grid-area: main; gap: 8px; min-height: 48px; }
  .lb-scene { flex: none; width: 72px; height: 46px; border-radius: 9px; }
  .lb-floor-text strong { font-size: 15.5px; white-space: nowrap; }
  .lb-floor-text small { font-size: 11.5px; }
  .lb-count { grid-area: count; font-size: 16px; min-width: 0; }
  .lb-windows { grid-area: win; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .lb-win { width: 100%; min-width: 44px; height: 46px; border-radius: 10px 10px 4px 4px; }
  .lb-win-no { width: 20px; height: 20px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-cab { transition: none; }
  .lb-tag.is-rec, .lb-win.is-cur, .lb-flag::after,
  .lb-floor.is-alive .lb-spin, .lb-floor.is-alive .lb-bob, .lb-floor.is-alive .lb-tilt,
  .lb-floor.is-alive .lb-slide, .lb-floor.is-alive .lb-twinkle { animation: none; }
}

/* ---------- 塔内细顶栏（塔 1，有大厅时） ---------- */
.sn-work-stage.has-floorbar .sn-floorbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 2.5px solid #2E294E;
  border-radius: 18px;
  background: #FFFDF7;
  box-shadow: 3px 3px 0 #C8BCE6;
}
.sn-work-stage.has-floorbar .sn-topic-switch.is-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.sn-work-stage.has-floorbar .sn-topic-switch.is-compact .sn-topic-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  min-width: 48px;
  width: auto;
  padding: 3px 12px;
  border: 2px solid #2E294E;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
}
.sn-work-stage.has-floorbar .sn-topic-switch.is-compact .sn-topic-tab span { white-space: nowrap; }
.sn-work-stage.has-floorbar .sn-topic-switch.is-compact .sn-topic-tab small,
.sn-work-stage.has-floorbar .sn-topic-switch.is-compact .sn-topic-tab .sn-fb-name,
.sn-work-stage.has-floorbar .sn-topic-switch.is-compact .sn-tab-tip { display: none; }
.sn-work-stage.has-floorbar .sn-topic-switch.is-compact .sn-topic-tab.is-active {
  background: #FFD95A;
  box-shadow: 2px 2px 0 #2E294E;
}
.sn-work-stage.has-floorbar .sn-topic-switch.is-compact .sn-topic-tab.is-active .sn-fb-name { display: inline; }

.sn-work-stage.has-floorbar .sn-lantern-string.is-compact {
  display: flex;
  gap: 6px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-lantern-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 2px solid #2E294E;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: none;
}
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-lantern-btn .sn-l-short,
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-lantern-btn small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-l-icon { display: none; }
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-l-num { font-size: 18px; font-weight: 900; }
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-lantern-btn.is-done {
  background: radial-gradient(circle at 50% 42%, #FFFBE0 0%, #FFE27A 60%, #FFC93C 100%);
  color: #8A5A00;
}
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-lantern-btn.is-locked { background: #E7E3F3; color: #A8A2CC; border-color: #A8A2CC; }
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-lantern-btn.is-cur {
  background: #FF7EB3;
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 126, 179, .35);
}
.sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-l-badges {
  position: absolute;
  right: -6px;
  top: -8px;
  font-size: 11px;
  font-style: normal;
}

@media (max-width: 600px) {
  .sn-work-stage.has-floorbar .sn-floorbar { padding: 6px 8px; gap: 6px; }
  .sn-work-stage.has-floorbar .sn-topic-switch.is-compact .sn-topic-tab { min-height: 44px; min-width: 44px; padding: 2px 9px; font-size: 13px; }
  .sn-work-stage.has-floorbar .sn-lantern-string.is-compact { margin: 0; width: 100%; justify-content: space-between; }
  .sn-work-stage.has-floorbar .sn-lantern-string.is-compact .sn-lantern-btn { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
}

/* ---------- 山谷首页：塔 1 的 6 层进度 ---------- */
.sn-tower-orbs.is-floors { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.sn-floor-orb {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 6px;
  border: 2px solid #2E294E;
  border-radius: 8px 8px 4px 4px;
  background: #5B5480;
  color: #D9D4F2;
  font-size: 12px;
  font-weight: 900;
}
.sn-floor-orb.is-part { background: linear-gradient(0deg, #FFD95A 0 45%, #FFF6CC 45%); color: #2E294E; }
.sn-floor-orb.is-lit { background: radial-gradient(circle at 50% 40%, #FFFBE0, #FFC93C); color: #8A5A00; box-shadow: 0 0 8px rgba(255, 201, 60, .8); }

/* 通关面板里的“回塔大厅”按钮 */
.sn-honey-cta.is-lobby:not(.is-next) { background: #E8ECFF; }

/* 手机上塔 1 楼层里：感官条收起，步骤圆点压成一行且保证零溢出 */
@media (max-width: 600px) {
  .sn-app.is-workshop:has(.sn-work-stage.has-floorbar) .sn-hud-center { display: none; }
  .sn-work-stage.has-floorbar .sn-step-bar {
    padding: 3px 6px;
    gap: 4px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .sn-work-stage.has-floorbar .sn-step-left { grid-column: 1; grid-row: 1; }
  .sn-work-stage.has-floorbar .sn-step-pearls {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    justify-content: space-between;
  }
  .sn-work-stage.has-floorbar .sn-step-pearl { min-width: 28px; min-height: 36px; width: 32px; height: 36px; padding: 0; font-size: 12.5px; }
  .sn-work-stage.has-floorbar .sn-pearl-line { width: 4px; min-width: 1px; flex: 0 1 6px; }
  .sn-work-stage.has-floorbar .sn-step-spacer { width: 0; }
  .sn-work-stage.has-floorbar .sn-prev-btn { padding: 2px 8px; font-size: 12px; min-height: 36px; white-space: nowrap; }
  .sn-work-stage.has-floorbar .sn-step-count { display: none; }
}

/* 已换成手绘场景的楼层：小场景用画 */
.lb-scene.is-pic { padding: 0; overflow: hidden; }
.lb-scene.is-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lb-floor.is-alive .lb-scene.is-pic img { animation: lb-breathe 3.2s ease-in-out infinite; }
@keyframes lb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ================================================================
   手绘画风（2026-11-19）：和各楼层的 painted-floor 皮肤统一。
   墨紫粗线 + 硬偏移阴影 → 暖棕细线 + 柔和阴影；没开的窗是傍晚的暖紫棕色。
   ================================================================ */
.lb-wrap { --lb-ink: #5A3D24; --lb-line: rgba(110, 72, 36, .32); --lb-soft: 0 3px 10px rgba(122, 78, 30, .14); }
.lb-stat, .lb-bubble, .lb-sign, .lb-scene, .lb-floor-no, .lb-tag,
.lb-win.is-open .lb-win-no { border-width: 1px; border-color: var(--lb-line); }
.lb-bubble::before { border-left: 1px solid var(--lb-line); border-bottom: 1px solid var(--lb-line); }
.lb-stat { box-shadow: 0 1px 4px rgba(122, 78, 30, .12); background: #FFFBF2; }
.lb-bubble { box-shadow: var(--lb-soft); background: #FFFBF2; }
.lb-bubble::before { background: #FFFBF2; }
.lb-sign { box-shadow: var(--lb-soft); background: #FFFBF2; }
.lb-go {
  border: 1px solid rgba(150, 95, 25, .4);
  background: linear-gradient(180deg, #FFE39A 0%, #F6C75A 100%);
  box-shadow: 0 3px 0 rgba(150, 95, 25, .35), 0 10px 22px rgba(150, 95, 25, .22);
}
.lb-go:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(150, 95, 25, .35), 0 14px 26px rgba(150, 95, 25, .24); }
.lb-go:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(150, 95, 25, .35), 0 4px 10px rgba(150, 95, 25, .2); }
.lb-flag { background: #8A5A3A; }
.lb-flag::after { border: 1px solid rgba(150, 60, 80, .4); background: #F29AAE; }
.lb-floors {
  border: 2px solid rgba(110, 72, 36, .45);
  border-radius: 12px 12px 0 0;
  background: #FFFBF2;
  box-shadow: 0 10px 30px rgba(122, 78, 30, .16);
}
.lb-floor { border-bottom: 2px solid rgba(110, 72, 36, .22); }
.lb-floor.is-top { --fl-bg: #F1E9F3; --fl-accent: #C7A9D9; }
.lb-floor.is-f5 { --fl-bg: #FCE8EC; --fl-accent: #F29AAE; }
.lb-floor.is-f4 { --fl-bg: #F3EDE2; --fl-accent: #E8B98A; }
.lb-floor.is-f3 { --fl-bg: #F8E6D8; --fl-accent: #C9936A; }
.lb-floor.is-f2 { --fl-bg: #EAF1DF; --fl-accent: #A9CB8E; }
.lb-floor.is-f1 { --fl-bg: #FFF1D3; --fl-accent: #F6C75A; }
.lb-scene { box-shadow: var(--lb-soft); padding: 0; overflow: hidden; }
.lb-floor-text small, .lb-count small { color: #8A6E55; }
.lb-tag.is-rec { background: #E9849C; border-color: transparent; }

.lb-win { border: 1.5px solid rgba(90, 55, 30, .45); }
.lb-win::before, .lb-win::after { background: rgba(90, 55, 30, .35); }
.lb-win.is-locked, .lb-win.is-pre-lit { background: linear-gradient(180deg, #7C6670 0%, #6A5560 100%); }
.lb-win.is-locked .lb-win-no, .lb-win.is-pre-lit .lb-win-no { color: #D9C6BE; background: rgba(60, 40, 45, .35); }
.lb-win.is-locked::before, .lb-win.is-locked::after { background: rgba(50, 30, 35, .45); opacity: 1; }
.lb-win.is-open { background: linear-gradient(180deg, #FFF6E2 0%, #FFFFFF 100%); }
.lb-win.is-cur { box-shadow: 0 0 0 3px #E9849C; }
@keyframes lb-cur { 0%, 100% { box-shadow: 0 0 0 3px #E9849C; } 50% { box-shadow: 0 0 0 6px rgba(233, 132, 156, .3); } }
.lb-win:focus-visible, .lb-floor-main:focus-visible .lb-scene { outline-color: #C9936A; }
.lb-roof-svg [stroke="#2E294E"], .lb-wrap svg [stroke="#2E294E"] { stroke: rgba(110, 72, 36, .55); }
.lb-shaft { border-left: 2px solid rgba(110, 72, 36, .35); }
.lb-cab::before { border: 1.5px solid rgba(90, 55, 30, .45); box-shadow: 0 3px 10px rgba(122, 78, 30, .2); }
.lb-cab-light { border: 1px solid var(--lb-line); }
.lb-roof-svg path:first-child { stroke-width: 2.5px; fill: #FBD978; }

/* ---------- 塔 1 页头简化：「在哪一关」收成一个小菜单，和步骤圆点并成一排 ---------- */
.sn-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sn-where-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  max-width: 100%;
}
.sn-where-row > .sn-step-bar {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 3px 8px;
  gap: 6px;
}
.sn-where-row .sn-step-pearls { min-width: 0; }
.sn-where-row .sn-pearl-line { flex: 0 1 8px; min-width: 2px; width: 8px; }
.sn-where { position: relative; flex: 0 0 auto; max-width: 100%; }
.sn-where-sum {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 14px;
  border: 1px solid rgba(150, 105, 55, .28);
  border-radius: 999px;
  background: #FFFCF4;
  box-shadow: 0 4px 12px rgba(92, 54, 24, .1);
  color: #4E3420;
  cursor: pointer;
  list-style: none;
  user-select: none;
  touch-action: manipulation;
}
.sn-where-sum::-webkit-details-marker { display: none; }
.sn-where-sum .sn-day-tag {
  padding: 0; border: 0; background: none; box-shadow: none;
  font-size: 14.5px; font-weight: 900; color: inherit; white-space: nowrap;
}
.sn-where-caret { font-style: normal; font-size: 12px; font-weight: 800; color: #9A6B3A; white-space: nowrap; }
.sn-where[open] .sn-where-caret { color: #4E3420; }
.sn-work-stage.has-floorbar .sn-where-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: min(600px, calc(100vw - 32px));
  margin: 0;
}
@media (max-width: 900px) {
  .sn-where-row { flex-wrap: wrap; gap: 6px; }
  .sn-where { flex: 0 1 auto; }
  .sn-where-row > .sn-step-bar { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .sn-where-row { flex-wrap: wrap; gap: 6px; }
  .sn-where { flex: 1 1 100%; }
  .sn-where-sum { width: 100%; justify-content: space-between; min-height: 44px; padding: 4px 12px; }
}

/* ---------- 塔 1「讲给爸妈听」简化 ---------- */
.sn-reflect-card.is-simple .sn-say-text { font-size: 20px; line-height: 1.6; }
.sn-reflect-card.is-simple .sn-reflect-acts { margin: 14px 0 6px; }
.sn-parent-note {
  margin-top: 14px;
  border-top: 1px dashed rgba(150, 105, 55, .3);
  padding-top: 10px;
}
.sn-parent-note > summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
  color: #9A6B3A;
  text-align: center;
}
.sn-parent-note > summary::-webkit-details-marker { display: none; }
.sn-parent-note[open] > summary { margin-bottom: 10px; }
.sn-parent-note > .sn-quiet-btn { display: block; margin: 10px auto 0; }
.sn-reflect-card.is-simple .sn-reflect-sub { display: flex; justify-content: center; margin-top: 8px; }
