.hub-screen .ios-status-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  background: transparent;
  color: #3a2a22;
}

.hub-screen .phone-frame {
  position: absolute;
  inset: 0;
  background: #f6efe4;
}

.hub-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f7c999;
}

.hub-scene > img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 479px;
  height: 852px;
  object-fit: cover;
  object-position: center bottom;
  transform: translateX(-50%) scale(1.16);
  transform-origin: 50% 100%;
  display: block;
  pointer-events: none;
}

.hub-user {
  position: absolute;
  z-index: 4;
  top: 96px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #6a4636;
  text-decoration: none;
  font-size: 22px;
}

/* 顶部「AI专区 / 6Q首页」切换用 q6-home.css 里的共享 tab 组件（.q6-tabbar） */

.hub-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(120, 72, 40, 0.16);
}

.hub-user strong,
.hub-user small {
  display: block;
}

.hub-user strong { font-size: 14px; }
.hub-user small { margin-top: 1px; color: #8a6454; font-size: 11px; }

.hub-points {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-left: auto;
  padding: 0 10px 0 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #9a4e32;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(120, 72, 40, 0.1);
}

.hub-points i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7a3, #f0b14a);
}

.spot {
  position: absolute;
  z-index: 3;
  left: 50%;
  display: grid;
  grid-template-columns: 26px auto;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.95);
  color: #6a3b28;
  font: inherit;
  text-decoration: none;
  transform: translateX(-50%);
  box-shadow: 0 7px 16px rgba(148, 92, 48, 0.2), 0 0 0 1px rgba(226, 189, 156, 0.35) inset;
  cursor: pointer;
  white-space: nowrap;
}

.spot-ico {
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(160, 106, 62, 0.18));
}

.spot-txt { display: grid; gap: 0; text-align: left; }

.spot b {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.spot small {
  color: #b08b74;
  font-size: 8px;
  line-height: 1.15;
}

.spot:active { transform: translateX(-50%) scale(0.96); }

.spot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hub-back:focus-visible,
.sub-entry:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tier-card {
  position: absolute;
  z-index: 4;
  top: 150px;
  left: 12px;
  width: 150px;
  display: grid;
  gap: 2px;
  padding: 7px 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 6px 14px rgba(120, 72, 40, 0.13);
  color: #6a3b28;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tier-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tier-head {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #b0755a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tier-head i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #ff8a4c;
  transform: rotate(45deg);
}
.tier-big { display: flex; align-items: baseline; gap: 4px; }
.tier-big b { font-size: 19px; line-height: 1; letter-spacing: -0.02em; }
.tier-big em { color: #a3816f; font-size: 8.5px; font-style: normal; }
.tier-back { color: #8a6656; font-size: 9px; }
.tier-back b { color: #e0692c; font-size: 10px; }
.tier-back em { color: #b0755a; font-style: normal; }
.tier-bar {
  display: block;
  height: 3px;
  margin: 1px 0 1px;
  border-radius: 999px;
  background: #f0dfd2;
  overflow: hidden;
}
.tier-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb072, #ef6b2b);
  transition: width 0.32s ease;
}
.tier-next { color: #8a6656; font-size: 8.5px; line-height: 1.32; }
.tier-next b { color: #e0692c; }
.tier-next.is-max { color: #3f8a63; }
.tier-settle {
  margin-top: 1px;
  padding-top: 3px;
  border-top: 1px solid rgba(214, 180, 158, 0.4);
  color: #a07f6c;
  font-size: 8px;
  line-height: 1.2;
}
.tier-mask[hidden],
.tier-sheet[hidden],
.leave-mask[hidden] { display: none !important; }
.tier-mask, .leave-mask {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(48, 28, 18, 0.46);
}
.leave-mask { display: grid; place-items: center; padding: 24px; }
.tier-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 31;
  max-height: 78%;
  overflow: auto;
  padding: 18px 16px 22px;
  border-radius: 22px 22px 0 0;
  background: #fff;
}
.tier-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f6f1ee;
  color: #8a6a5c;
  font-size: 18px;
  cursor: pointer;
}
.tier-sheet h2 { margin: 0; text-align: center; font-size: 18px; }
.tier-sheet p { margin: 8px 0 0; text-align: center; color: #8a6a5c; font-size: 13px; }
.tier-list { margin: 14px 0 0; padding: 0; list-style: none; }
.tier-row {
  display: grid;
  grid-template-columns: 4em 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid #f0ddd4;
  border-radius: 14px;
}
.tier-row.is-on { border-color: #ff7a45; background: #fff6f1; }
.tier-row span, .tier-row em { color: #8a6a5c; font-size: 12px; font-style: normal; }
.tier-mini { height: 6px; border-radius: 999px; background: #f3e2d6; overflow: hidden; }
.tier-mini i { display: block; height: 100%; background: #ff7a45; }
.tier-sheet h3 { margin: 16px 0 0; font-size: 14px; }
.ledger { margin: 8px 0 0; padding: 0; list-style: none; }
.ledger li { display: flex; justify-content: space-between; min-height: 36px; align-items: center; border-top: 1px solid #f6eee8; font-size: 13px; }
.ledger-empty { color: #a08b82; justify-content: center; }
.tier-note { font-size: 11px !important; }
.leave-card {
  width: min(320px, 100%);
  padding: 22px 18px 16px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(80, 40, 20, 0.18);
}
.leave-card p { margin: 0; color: #c56a45; font-size: 13px; font-weight: 700; }
.leave-card strong {
  display: block;
  margin-top: 8px;
  color: #5c3318;
  font-size: 28px;
  line-height: 1.25;
}
.leave-card span {
  display: block;
  margin-top: 8px;
  color: #8a6a5c;
  font-size: 14px;
  line-height: 1.5;
}
.leave-stay, .leave-go {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.leave-stay { border: 0; background: #ff7a45; color: #fff; }
.leave-go { border: 1px solid #f0ddd4; background: #fff; color: #8a6a5c; }

.spot-book { left: 27%; top: 296px; }
.spot-think { left: 74.5%; top: 350px; }
.spot-word { left: 50%; top: 412px; }
.spot-q26 { left: 25%; top: 486px; }
.spot-q100 { left: 72%; top: 522px; }

.spot-word {
  grid-template-columns: 30px auto;
  gap: 8px;
  padding: 6px 13px 6px 9px;
  border-color: rgba(255, 240, 224, 0.95);
  background: linear-gradient(180deg, #ffb066, #f2782f);
  color: #fff;
  box-shadow: 0 9px 20px rgba(203, 96, 30, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.spot-word .spot-ico { width: 30px; height: 30px; }
.spot-word b { font-size: 12.5px; }
.spot-word small { color: rgba(255, 255, 255, 0.85); }
.spot-word:active { transform: translateX(-50%) scale(0.96); }

.spot-lock {
  background: rgba(246, 238, 229, 0.9);
  box-shadow: 0 6px 12px rgba(148, 92, 48, 0.14);
  color: #9c877a;
}
.spot-lock small { color: #b3a094; }

.hub-foot {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.72);
  color: #a97f62;
  font-size: 10px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
  .hub-scene { animation: none; }
}
