:root {
  color-scheme: light;
  /* Design tokens: warm off-white, ink black pills, sunset + aurora gradients, pastel outline pills */
  --bg: #f4f2ee;
  --bg-soft: #faf9f6;
  --card: #ffffff;
  --ink-900: #1c1a17;
  --ink-700: #55503f;
  --ink-500: #8f897c;
  --ink-300: #bcb6a8;
  --hairline: rgba(28, 26, 23, 0.08);
  --hairline-strong: rgba(28, 26, 23, 0.15);
  --pill-black: #141210;
  --gold: #d99a26;
  --streak-orange: #f59a26;
  --crimson: #c9372f;
  /* outline-pill accent set (from guided entry screen) */
  --pill-magenta-b: #e558cd;
  --pill-magenta-t: #bb35a4;
  --pill-magenta-bg: #fbe9f8;
  --pill-orange-b: #e9a13b;
  --pill-orange-t: #a96a10;
  --pill-orange-bg: #fcf1de;
  --pill-teal-b: #43cbb1;
  --pill-teal-t: #1b9078;
  --pill-teal-bg: #e2f7f2;
  --pill-purple-b: #a78bfa;
  --pill-purple-t: #7857d8;
  --pill-purple-bg: #efeafd;
  --grad-sunset: linear-gradient(180deg, #b8232f 0%, #d4522c 30%, #eda23c 62%, #f8e5b4 100%);
  --grad-sunset-x: linear-gradient(90deg, #d4522c, #eda23c);
  --grad-aurora:
    radial-gradient(80% 55% at 12% 6%, rgba(198, 182, 233, 0.6), transparent 62%),
    radial-gradient(65% 45% at 90% 16%, rgba(248, 206, 160, 0.55), transparent 60%),
    radial-gradient(90% 65% at 45% 100%, rgba(182, 224, 199, 0.5), transparent 66%),
    linear-gradient(172deg, #f3eff4 0%, #f6f0e7 100%);
  --grad-entry: linear-gradient(180deg, #edf2ec 0%, #f5efe8 52%, #f8e9e5 100%);
  --grad-insight: linear-gradient(135deg, #f7e2e7 0%, #e6e1f6 50%, #d9eaf3 100%);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --screen-pad-x: 20px;
  --screen-pad-y: 20px;
  --section-gap: 16px;
  --card-pad: 16px;
  --inner-gap: 12px;
  --control-height: 54px;
  --shadow-card: 0 14px 34px rgba(46, 40, 28, 0.07);
  --shadow-black: 0 12px 26px rgba(20, 18, 16, 0.22);
  font-family:
    "Inter", "SF Pro Text", -apple-system, "PingFang SC", "HarmonyOS Sans",
    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink-900);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(237, 162, 60, 0.4);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.prototype-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 3vw, 18px);
}

.design-notes {
  display: none;
  max-width: 340px;
}

.design-notes h1 {
  margin: 6px 0 14px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.design-notes p {
  color: var(--ink-500);
  line-height: 1.7;
}

.note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.note-list span {
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
}

/* 这是个 app，不是一篇文章：手机上长按不该弹出选中/复制菜单，点击不该有蓝色高亮块。
   输入框在下面单独放行。 */
.phone {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  justify-self: center;
  width: min(100%, 410px);
  height: min(860px, calc(100vh - 36px));
  min-height: 0;
  overflow: hidden;
  border: 10px solid #141210;
  border-radius: 44px;
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(46, 40, 28, 0.22);
}

.status-bar {
  height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-900);
}

.screen {
  position: absolute;
  inset: 32px 0 62px;
  display: none;
  overflow: hidden auto;
  padding: var(--screen-pad-y) var(--screen-pad-x) 24px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.active {
  display: block;
}

.screen[data-screen="home"] {
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* 个人页：一个统一的 gap 管所有间距，别再让每张卡各带一个 margin-bottom —— 14 / 16
   混着用，看着松紧不一。改成 flex 列 + 单一 gap，间距一致、更干净。 */
.screen[data-screen="me"].active {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}
.screen[data-screen="me"] .screen-head,
.screen[data-screen="me"] .growth-card {
  margin-bottom: 0;
}

/* stacked two-line header: gray bold line over black bold line */
.screen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--section-gap);
}

.screen-head.compact {
  align-items: flex-start;
}

.screen-head h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.screen-head .eyebrow {
  display: block;
  margin: 0 0 5px;
  padding: 0;
  background: transparent;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: none;
}

.screen[data-screen="scenes"].compact-scene-mode .screen-head {
  display: none;
}

.screen[data-screen="scenes"].compact-scene-mode {
  padding-top: 10px;
}

.screen[data-screen="home"] .screen-head {
  margin-bottom: 0;
}

.screen[data-screen="home"] .screen-head .eyebrow:empty {
  display: none;
}

.screen[data-screen="home"] .screen-head h2 {
  font-size: 27px;
  line-height: 1.08;
}

/* header action buttons: plain bold text */
.screen-head .soft-chip {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.soft-chip,
.icon-btn {
  min-height: 38px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-900);
  font-weight: 600;
}

.soft-chip {
  padding: 0 15px;
  white-space: nowrap;
}

.icon-btn {
  width: 40px;
  display: grid;
  place-items: center;
  color: var(--ink-700);
  font-size: 20px;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

/* header-right cluster: flame streak + plain-text action */
.home-head-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-flame {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.streak-flame svg {
  width: 15px;
  height: 15px;
  color: var(--streak-orange);
  stroke-width: 2.2;
}

.streak-flame b {
  font-size: inherit;
}

.swipe-area {
  position: relative;
  min-height: 0;
  padding-top: 38px;
  padding-bottom: 12px;
}

.screen[data-screen="home"] .swipe-area {
  padding-top: 24px;
  padding-bottom: 0;
}

.nav-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 36px;
  height: 54px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hairline);
  color: var(--ink-900);
  font-size: 28px;
}

.nav-arrow.left {
  left: -6px;
}

.nav-arrow.right {
  right: -6px;
}

.card-stack {
  position: relative;
  touch-action: pan-y;
  transform-style: preserve-3d;
  user-select: none;
}

.screen[data-screen="home"] .card-stack {
  width: 100%;
  margin-left: 0;
  transform: scale(0.86);
  transform-origin: top center;
}

.task-card,
.scene-panel,
.conversation-card,
.growth-card,
.profile-summary,
.weak-focus {
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.task-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: var(--card-pad);
  transform-origin: center 62%;
  backface-visibility: hidden;
  contain: layout paint;
  will-change: transform, opacity;
}

.screen[data-screen="home"] .task-card {
  min-height: clamp(500px, calc(100vh - 330px), 980px);
  padding: 12px;
}

.top-card {
  z-index: 3;
  cursor: grab;
  transition: opacity 90ms ease-out;
}

.top-card.dragging {
  cursor: grabbing;
  transition: none;
}

.ghost-card {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ghost-one {
  z-index: 2;
  opacity: 0.96;
  transform: translate3d(0, -16px, 0);
}

.ghost-two {
  z-index: 1;
  opacity: 0.72;
  transform: translate3d(0, -38px, 0);
}

.ghost-card.is-lifting {
  opacity: 1;
}

.ghost-card.is-empty {
  opacity: 0.48;
}

.ghost-card.is-empty::before,
.ghost-card.is-empty::after {
  display: none;
}

.ghost-card.is-empty .card-inner {
  display: none;
}

.task-card::before,
.task-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 18px;
  right: -14px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(239, 234, 253, 0.75);
}

.task-card::after {
  top: 92px;
  right: 42px;
  width: 92px;
  height: 92px;
  background: rgba(252, 241, 222, 0.85);
}

.card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--inner-gap);
}

.screen[data-screen="home"] .card-inner {
  gap: 8px;
}

.deck-empty {
  min-height: 100%;
  align-content: center;
}

.deck-empty-copy {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: var(--bg);
  text-align: left;
}

.deck-empty-copy h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.deck-empty-copy p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.5;
  font-size: 14px;
}

.scene-image {
  height: 136px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg);
}

.screen[data-screen="home"] .scene-image {
  height: 112px;
  border-radius: 14px;
}

.scene-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* rotated black pill, media label style */
.card-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--pill-black);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.card-meta b {
  color: var(--ink-500);
  font-size: 13px;
}

.task-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.24;
}

.screen[data-screen="home"] .task-card h3 {
  font-size: 18px;
  line-height: 1.2;
}

.goal-box {
  padding: 14px;
  border-radius: 20px;
  background: var(--bg);
}

.screen[data-screen="home"] .goal-box {
  padding: 10px;
  border-radius: 16px;
}

.goal-box header,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.goal-box h4,
.section-title h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.screen[data-screen="home"] .goal-box h4 {
  margin-top: 1px;
  font-size: 15px;
}

.screen[data-screen="home"] .goal-box em {
  font-size: 15px;
}

.goal-box em,
.section-title span {
  color: var(--streak-orange);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.task-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.screen[data-screen="home"] .task-list {
  gap: 5px;
  margin-top: 7px;
}

.task-list label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--ink-700);
  font-size: 14px;
}

.screen[data-screen="home"] .task-list label {
  grid-template-columns: 20px 1fr;
  gap: 7px;
  font-size: 12.5px;
}

/* calendar-style day circles: pending = dashed outline, done = green fill */
.task-list i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 1.5px dashed var(--ink-300);
  color: var(--ink-500);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.screen[data-screen="home"] .task-list i {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.task-list .done {
  color: var(--ink-500);
}

.task-list .done i {
  background: #8ecf97;
  border: 0;
  color: #fff;
}

.dialogue {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.screen[data-screen="home"] .dialogue {
  gap: 7px;
}

.transcript-card {
  display: block;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--pill-teal-bg);
  color: var(--ink-700);
  border: 1.5px solid var(--pill-teal-b);
  min-height: 84px;
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.transcript-card.show {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.screen[data-screen="home"] .transcript-card {
  min-height: 62px;
  padding: 8px 10px;
  border-radius: 14px;
}

.transcript-card b,
.transcript-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.transcript-card p {
  margin: 5px 0;
  line-height: 1.42;
  font-size: 14px;
}

.screen[data-screen="home"] .transcript-card p {
  margin: 3px 0;
  line-height: 1.28;
  font-size: 12.5px;
}

.transcript-card span {
  color: var(--pill-teal-t);
}

.bubble {
  width: 86%;
  border-radius: 20px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  line-height: 1.45;
  font-size: 14px;
}

.screen[data-screen="home"] .bubble {
  width: 84%;
  padding: 8px 10px;
  border-radius: 16px;
  line-height: 1.34;
  font-size: 12.5px;
}

.screen[data-screen="home"] .bubble b {
  margin-bottom: 2px;
}

.bubble b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-900);
}

.bubble.guide {
  margin-left: auto;
  background: var(--pill-orange-bg);
  border: 1.5px solid var(--pill-orange-b);
}

.voice-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}

.screen[data-screen="home"] .voice-actions {
  gap: 8px;
}

.primary-action,
.mic-button,
.weak-focus button,
.reward button {
  min-height: var(--control-height);
  border-radius: 999px;
  background: var(--pill-black);
  color: #fff;
  box-shadow: var(--shadow-black);
  font-weight: 700;
}

.primary-action {
  width: 100%;
}

/* frosted secondary pill */
.complete-action {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hairline-strong);
  color: var(--ink-900);
  font-weight: 700;
}

.screen[data-screen="home"] .primary-action,
.screen[data-screen="home"] .complete-action {
  min-height: 42px;
  font-size: 13px;
}

.screen[data-screen="home"] .complete-action {
  padding: 0 13px;
}

.screen[data-screen="home"] {
  overflow: hidden;
  padding: 12px 18px 12px;
}

.screen[data-screen="home"].active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

/* ===== 通天塔 =====================================================
   高的等级在上面，人从下往上爬。三个界面共用这一个滚动容器：
   塔 / 关卡里选一句 / 练这一句。
   ================================================================= */

.tower {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 2px 24px;
  scrollbar-width: none;
}

.tower::-webkit-scrollbar {
  display: none;
}

/* ---- 按场景进：塔的另一个入口 ----
   跟塔是同一批句子，只是横着切。Scenes 原来是个独立标签页，但它从来不是另一套内容，
   所以并进来当入口，而不是再开一个页面。 */
.scene-row-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.scene-row-title {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.auth-pending {
  overflow: hidden;
}

body.auth-pending .prototype-shell {
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(237, 118, 93, 0.14), transparent 26%),
    radial-gradient(circle at 85% 78%, rgba(67, 203, 177, 0.13), transparent 30%),
    #f6f1e9;
}

.auth-gate[aria-hidden="true"] {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
  padding: 22px 24px 24px;
  border: 1px solid rgba(90, 68, 48, 0.12);
  border-radius: 30px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 28px 80px rgba(67, 48, 31, 0.16);
  text-align: center;
}

.auth-card .eyebrow {
  margin: 18px 0 8px;
  color: #a16553;
}

.auth-card h1 {
  margin: 0;
  color: #211d19;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.auth-copy {
  max-width: 330px;
  margin: 14px auto 20px;
  color: #776b61;
  font-size: 14px;
  line-height: 1.55;
}

.auth-world {
  position: relative;
  height: 178px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8ec 0%, #efe2d2 100%);
}

.auth-world::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 18px;
  left: 12%;
  height: 22px;
  border-radius: 50%;
  background: rgba(118, 84, 52, 0.11);
  filter: blur(8px);
}

.auth-landmark,
.auth-ava {
  position: absolute;
  z-index: 1;
}

.auth-landmark {
  bottom: 10px;
  width: 126px;
}

.auth-landmark-cafe {
  left: -8px;
}

.auth-landmark-office {
  right: -8px;
}

.auth-ava {
  right: 50%;
  bottom: 5px;
  z-index: 2;
  width: 138px;
  transform: translateX(50%);
}

.auth-landmark img,
.auth-ava img,
.auth-landmark {
  object-fit: contain;
}

.auth-ava img {
  display: block;
  width: 100%;
}

.google-sign-in {
  display: flex;
  min-height: 44px;
  justify-content: center;
}

.auth-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: #8a7b6f;
  font-size: 12px;
}

.auth-status[data-kind="error"] {
  color: #b94e42;
}

.auth-only-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  color: #918579;
  font-size: 11px;
  line-height: 1.4;
}

.auth-only-note svg {
  width: 14px;
  height: 14px;
}

.google-account-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(112, 85, 60, 0.12);
  border-radius: 18px;
  background: #fffaf3;
  box-shadow: 0 10px 26px rgba(87, 64, 42, 0.08);
}

.google-account-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #efe4d7;
}

.google-account-card div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.google-account-card small,
.google-account-card span {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-account-card b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-account-card button {
  padding: 7px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
}

.scene-row-title b {
  font-size: 14px;
}

.scene-row-title small {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tower-link {
  padding: 4px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
}

/* AI scene 复用了 .soft-chip，那套尺寸是给页头大按钮的，放在这一行里大一圈。
   跟旁边的 All N 对齐，别让次要入口喧宾夺主。 */
.scene-row-head .ai-customize-btn {
  min-height: 0;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
}

.scene-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -18px; /* 顶到屏幕边缘，让人看出来还能往右滑 */
  padding: 2px 18px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-x;
}

.scene-row.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.scene-row.is-dragging .scene-chip {
  cursor: grabbing;
}

.scene-row::-webkit-scrollbar {
  display: none;
}

.scene-row .scene-chip {
  width: 144px;
}

.scene-chip {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 7px;
  min-width: 136px;
  padding: 7px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  cursor: grab;
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.scene-chip b { font-size: 14px; font-weight: 700; }
.scene-chip small { font-size: 11.5px; color: var(--ink-500); }

.scene-chip b {
  font-size: 13px;
  font-weight: 700;
}

.scene-chip small {
  color: var(--ink-500);
  font-size: 11px;
}

.scene-chip.is-done {
  background: var(--bg-soft);
  border-color: transparent;
  box-shadow: none;
}

.scene-chip.is-done small {
  color: var(--gold);
}

/* 「全部场景」页：一屏铺开 */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}

.scene-grid .scene-chip {
  width: auto;
  min-width: 0;
}

/* ---- 蜿蜒关卡路径（左右摆动的踏脚石，一段一档主题色） ---- */
.trail-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trail-band {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 10px 0 6px;
  padding: 11px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--band) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--band) 30%, transparent);
}
.trail-band-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--band) 22%, var(--card));
  font-size: 19px;
}
.trail-band-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trail-band-text b { font-size: 14px; font-weight: 800; color: color-mix(in srgb, var(--band) 55%, var(--ink-900)); }
.trail-band-text small { font-size: 11.5px; color: var(--ink-500); }

/* 一列踏脚石，每个按 --shift 左右错开，连成一条蜿蜒的路 */
.trail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}
.trail-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translateX(var(--shift, 0px));
  transition: transform 120ms ease;
}
/* 上一颗到这一颗之间的连接点：一小截朝向本颗偏移方向的虚线尾巴 */
.trail-node::before {
  content: "";
  position: absolute;
  top: -20px;
  width: 3px;
  height: 20px;
  border-radius: 3px;
  background: repeating-linear-gradient(var(--hairline-strong) 0 3px, transparent 3px 7px);
}
.trail-section .trail-node:first-child::before { display: none; }

.trail-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--band);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--band) 62%, #000), 0 12px 22px rgba(20, 18, 16, 0.16);
  color: #fff;
  cursor: pointer;
}
.trail-dot:active { transform: translateY(3px); box-shadow: 0 3px 0 color-mix(in srgb, var(--band) 62%, #000), 0 8px 16px rgba(20, 18, 16, 0.16); }
.trail-face { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 已通关：实心打勾。锁着：灰扁一点、无立体感。 */
.trail-node.is-cleared .trail-dot { background: color-mix(in srgb, var(--band) 78%, #fff); }
.trail-node.is-locked .trail-dot {
  background: var(--hairline-strong);
  box-shadow: 0 4px 0 var(--hairline-strong);
  color: var(--ink-300);
  cursor: default;
}
.trail-node.is-locked .trail-face { font-size: 17px; }

/* 当前关：放大 + 呼吸光环 + START 小旗 */
.trail-node.is-here .trail-dot {
  width: 74px;
  height: 74px;
  animation: trail-pulse 2.4s ease-in-out infinite;
}
@keyframes trail-pulse {
  0%, 100% { box-shadow: 0 6px 0 color-mix(in srgb, var(--band) 62%, #000), 0 0 0 0 color-mix(in srgb, var(--band) 40%, transparent); }
  50% { box-shadow: 0 6px 0 color-mix(in srgb, var(--band) 62%, #000), 0 0 0 12px color-mix(in srgb, var(--band) 12%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .trail-node.is-here .trail-dot { animation: none; } }
.trail-flag {
  position: absolute;
  top: -22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pill-black);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 2;
}
.trail-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px; height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--pill-black);
}

.trail-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 190px;
  text-align: center;
}
.trail-label b { font-size: 12.5px; font-weight: 700; }
.trail-label small {
  font-size: 10.5px;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}
.trail-node.is-locked .trail-label b { color: var(--ink-500); font-weight: 600; }
.trail-node.is-locked .trail-label small { display: none; }

/* 塔顶 */
.trail-summit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 18px 0 8px;
  padding: 20px;
  text-align: center;
}
.trail-summit-badge {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 28px;
}
.trail-summit b { font-size: 15px; font-weight: 800; }
.trail-summit small { font-size: 12px; color: var(--ink-500); }
.trail-summit.is-reached b { color: var(--gold); }
.trail-summit.is-reached .trail-summit-badge { background: color-mix(in srgb, var(--gold) 18%, transparent); }


/* ---- 关卡页 / 练习页共用的顶栏 ---- */

.tower-sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 4px;
}

.tower-sub-head > div {
  flex: 1;
  min-width: 0;
}

.tower-sub-head h3 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.tower-back {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
}

.tower-sub-score {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--pill-black);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ---- 一关里的 10 句 ---- */

.unit-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.unit-card > button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--card);
  text-align: left;
}

.unit-card.is-done > button {
  background: var(--bg-soft);
  border-color: transparent;
}

/* 这里不放缩略图：内容是句子，而卡片配图是 350KB 的通用场景照 ——
   一屏 10 张就是 3.5MB，给不了任何信息还把列表拖垮。图留给练习页那一张。 */
.unit-card-no {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.unit-card.is-done .unit-card-no {
  background: var(--gold);
  color: #fff;
}

.unit-card-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.unit-card-text b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.unit-card-text span {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-card.is-done .unit-card-text b {
  color: var(--ink-500);
}

/* ---- 练这一句 ---- */

/* 卡片按内容定高，再在剩余空间里居中。
   之前让它 flex:1 撑满，屏幕高就变成上下两片死白；改成让照片去吃空间，
   照片又反过来把句子和麦克风挤出了屏幕。按内容定高最稳，多高的屏都不会翻车。 */
.tower-card {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  margin: auto 0;
  padding: 14px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

/* 这一句是主角，把剩下的空间都给它并居中 —— 否则句子吊在顶上，
   下面一大片死白，看着像没加载完 */
.tower-card-body {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 4px 2px;
}

.tower-card-photo {
  overflow: hidden;
  flex-shrink: 0;
  height: 190px;
  border-radius: 16px;
  background: var(--bg); /* 图还没到时是暖灰，不是刺眼的白 */
}

.tower-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tower-card-scene {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
}

/* 这一句就是这张卡的全部内容 —— 给它该有的分量 */
.tower-card-line {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.tower-card-heard {
  margin: 0;
  min-height: 20px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.4;
}

.tower-card .home-voice-input {
  flex-shrink: 0;
}

.home-voice-input {
  min-height: 54px;
  border-radius: 999px;
  background: var(--pill-black);
  color: #fff;
  box-shadow: var(--shadow-black);
  font-size: 16px;
  font-weight: 700;
}

/* 按住说话的按钮：长按是手势，不是"选中文字"。
   不挡住的话，手机上一按住就弹系统的复制/长按菜单，录音直接被打断。
   touch-action: none 同时让「上滑取消」的 pointermove 不被浏览器的滚动手势抢走。 */
.mic-button,
.home-voice-input {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 上面把整个 app 设成不可选，输入框要放行，否则没法选中/修改已输入的文字 */
.phone input,
.phone textarea {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

.home-voice-input.listening {
  background: var(--grad-sunset-x);
  box-shadow: 0 12px 28px rgba(212, 82, 44, 0.35);
}


.home-toast {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 18px;
  max-width: calc(100% - 42px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.92);
  color: #fff;
  box-shadow: 0 14px 36px rgba(20, 18, 16, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.home-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.search-box {
  height: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-500);
  font-size: 13px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-900);
}

.pillar-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

/* gold "Analyze ✨" treatment */
.screen-head .ai-customize-btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--gold);
  font-weight: 800;
}

.screen-head .ai-customize-btn::after {
  content: " ✨";
}

.scenes-content {
  display: grid;
  gap: 16px;
}

.official-scene-grid {
  display: grid;
  gap: 13px;
}

.official-scene-card {
  position: relative;
  min-height: 124px;
  display: grid;
  align-content: end;
  gap: 7px;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.official-scene-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% -2%, rgba(237, 162, 60, 0.16), transparent 44%);
  pointer-events: none;
}

.official-scene-card:nth-child(2)::before {
  background: radial-gradient(circle at 88% -2%, rgba(167, 139, 250, 0.18), transparent 44%);
}

.official-scene-card:nth-child(3)::before {
  background: radial-gradient(circle at 88% -2%, rgba(229, 88, 205, 0.14), transparent 44%);
}

.official-scene-card > * {
  position: relative;
  z-index: 1;
}

.official-scene-card span {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.official-scene-card b {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.official-scene-card small {
  color: var(--ink-500);
}

.official-scene-card em {
  position: absolute;
  z-index: 1;
  right: 16px;
  top: 16px;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--pill-black);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.my-scene-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--ink-300);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.my-scene-divider span {
  height: 0;
  border-top: 2px dashed var(--hairline-strong);
}

.my-scene-list {
  display: grid;
  gap: 10px;
}

.my-scene-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.my-scene-card b,
.my-scene-card small,
.my-scene-card p {
  display: block;
  margin: 0;
}

.my-scene-card b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.my-scene-card small,
.my-scene-card p {
  color: var(--ink-500);
  font-size: 12px;
}

.my-scene-card small {
  margin-top: 5px;
}

.my-scene-card p {
  margin-top: 6px;
  line-height: 1.4;
}

.my-scene-card em {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--pill-purple-bg);
  border: 1.5px solid var(--pill-purple-b);
  color: var(--pill-purple-t);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.scene-back {
  justify-self: start;
  min-height: 36px;
  margin-bottom: -4px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-900);
  font-weight: 700;
}

.scene-course-head {
  padding: 18px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.scene-course-head h3,
.scene-course-head p {
  margin: 0;
}

.scene-course-head h3 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.scene-course-head p {
  margin-top: 8px;
  color: var(--ink-500);
  line-height: 1.55;
  font-size: 13px;
}

.diy-course-head {
  display: grid;
  gap: 8px;
}

.diy-course-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.diy-course-progress i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.08);
}

.diy-course-progress i::after {
  content: "";
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--pill-black);
}

.diy-course-progress span {
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 800;
}

.diy-phase-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px;
  scrollbar-width: none;
}

.diy-phase-strip::-webkit-scrollbar {
  display: none;
}

.diy-phase-strip span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pill-magenta-bg);
  border: 1.5px solid var(--pill-magenta-b);
  color: var(--pill-magenta-t);
  font-size: 12px;
  font-weight: 700;
}

.diy-phase-strip span:nth-child(2) {
  background: var(--pill-orange-bg);
  border-color: var(--pill-orange-b);
  color: var(--pill-orange-t);
}

.diy-phase-strip span:nth-child(3) {
  background: var(--pill-teal-bg);
  border-color: var(--pill-teal-b);
  color: var(--pill-teal-t);
}

.diy-phase-strip span:nth-child(4) {
  background: var(--pill-purple-bg);
  border-color: var(--pill-purple-b);
  color: var(--pill-purple-t);
}

.course-list {
  display: grid;
  gap: 11px;
}

.course-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.course-row img {
  width: 58px;
  height: 54px;
  object-fit: cover;
  border-radius: 15px;
}

.course-row b,
.course-row small {
  display: block;
}

.course-row b {
  font-weight: 700;
}

.course-row small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 12px;
}

.course-row em {
  color: var(--ink-900);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.exam-page {
  position: relative;
  display: grid;
  gap: 16px;
  padding-bottom: 92px;
}

.exam-title-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 44px;
  text-align: center;
}

.exam-title-row h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.exam-title-row button {
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-900);
  font-size: 30px;
  font-weight: 500;
}

.exam-title-row button:last-child {
  font-size: 26px;
}

.exam-part-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 74%;
  min-height: 52px;
  margin: 0 auto;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
}

.exam-part-switch button {
  border-radius: 999px;
  background: transparent;
  color: var(--ink-300);
  font-size: 17px;
  font-weight: 800;
}

.exam-part-switch button.active {
  background: var(--pill-black);
  color: #fff;
}

.exam-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
}

.exam-filter-tabs button {
  position: relative;
  min-height: 38px;
  background: transparent;
  color: var(--ink-300);
  font-weight: 700;
  white-space: nowrap;
}

.exam-filter-tabs button.active {
  color: var(--ink-900);
}

.exam-filter-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink-900);
  transform: translateX(-50%);
}

.exam-topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.exam-topic-card {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  padding: 18px 14px 14px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.exam-topic-card .topic-type {
  position: absolute;
  right: 12px;
  top: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--pill-black);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.exam-topic-card i {
  position: absolute;
  right: 18px;
  top: 45px;
  font-style: normal;
  font-size: 34px;
}

.exam-topic-card b {
  display: block;
  width: calc(100% - 46px);
  min-height: 48px;
  color: var(--ink-900);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.14;
}

.exam-topic-card em {
  display: inline-block;
  margin-top: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--pill-orange-bg);
  border: 1.5px solid var(--pill-orange-b);
  color: var(--pill-orange-t);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.exam-topic-card small {
  display: block;
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 13px;
}

.exam-topic-card div {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.exam-topic-card strong {
  height: 6px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.08);
}

.exam-topic-card strong.done {
  background: var(--pill-black);
}

.exam-topic-card div span {
  color: var(--ink-500);
  font-size: 12px;
}

.exam-bottom-bar {
  position: sticky;
  bottom: -2px;
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  gap: 10px;
  align-items: center;
  padding: 12px 0 0;
  background: linear-gradient(180deg, transparent, var(--bg) 28%);
}

.exam-bottom-bar button {
  min-height: 54px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.exam-bottom-bar .primary {
  background: var(--pill-black);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: var(--shadow-black);
}

/* ===== AI customizer: full-bleed sunset onboarding screen ===== */
.custom-chat-row {
  display: grid;
  gap: 6px;
}

.custom-chat-row span {
  color: rgba(28, 20, 12, 0.6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.custom-chat-row p {
  width: 88%;
  margin: 0;
  padding: 13px 15px;
  border-radius: 22px;
  background: var(--bg);
  color: var(--ink-700);
  line-height: 1.55;
  font-size: 14px;
}

.custom-chat-row.user p {
  justify-self: end;
  width: auto;
  max-width: 86%;
  background: var(--pill-orange-bg);
  border: 1.5px solid var(--pill-orange-b);
  color: #6d4a12;
}


.custom-prompt-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.custom-prompt-box label {
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 800;
}

.custom-prompt-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid var(--hairline-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink-900);
  font-size: 19px;
  font-weight: 700;
}

.custom-prompt-box input::placeholder {
  color: var(--ink-300);
  font-weight: 700;
}

.custom-prompt-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 3px 2px;
}

.custom-prompt-chips::-webkit-scrollbar {
  display: none;
}

.custom-prompt-chips button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--pill-magenta-bg);
  border: 1.5px solid var(--pill-magenta-b);
  color: var(--pill-magenta-t);
  font-size: 12px;
  font-weight: 700;
}

.custom-prompt-chips button:nth-child(2) {
  background: var(--pill-teal-bg);
  border-color: var(--pill-teal-b);
  color: var(--pill-teal-t);
}

.custom-prompt-chips button:nth-child(3) {
  background: var(--pill-purple-bg);
  border-color: var(--pill-purple-b);
  color: var(--pill-purple-t);
}

.lesson-page {
  display: grid;
  gap: 12px;
  padding-bottom: 20px;
}

.lesson-step-card {
  padding: 18px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.lesson-step-card h3,
.lesson-step-card p {
  margin: 0;
}

.lesson-titlebar {
  min-height: 32px;
}

.lesson-titlebar h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-step-card > p {
  margin-top: 8px;
  color: var(--ink-500);
  line-height: 1.55;
  font-size: 13px;
}

.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding: 2px;
}

.lesson-tags span {
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--pill-magenta-bg);
  border: 1.5px solid var(--pill-magenta-b);
  color: var(--pill-magenta-t);
  font-size: 12px;
  font-weight: 700;
}

.lesson-tags span:nth-child(3n+2) {
  background: var(--pill-teal-bg);
  border-color: var(--pill-teal-b);
  color: var(--pill-teal-t);
}

.lesson-tags span:nth-child(3n) {
  background: var(--pill-orange-bg);
  border-color: var(--pill-orange-b);
  color: var(--pill-orange-t);
}

/* thin dark progress bar (no knob) */
.lesson-flow {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.lesson-flow-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-flow-label span {
  color: var(--ink-300);
  font-size: 12px;
  font-weight: 800;
}

.lesson-flow-label b {
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
}

.lesson-progress-track {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.1);
}

.lesson-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(((var(--step) + 1) / var(--steps)) * 100%);
  border-radius: inherit;
  background: var(--pill-black);
  transition: width 220ms ease;
}

.lesson-step-hitarea {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.lesson-step-hitarea button {
  background: transparent;
}

.lesson-stage {
  min-height: 310px;
  display: grid;
}

.lesson-step-card {
  min-height: 310px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.lesson-step-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.lesson-inline-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.lesson-inline-head span {
  flex: 0 0 auto;
  color: var(--ink-300);
  font-size: 13px;
  font-weight: 800;
}

.lesson-inline-head b {
  min-width: 0;
  color: var(--ink-900);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lesson-structure {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.lesson-structure button {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border-radius: 18px;
  background: var(--bg);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.lesson-structure b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 1.5px dashed var(--ink-300);
  color: var(--ink-500);
  font-size: 12px;
}

.lesson-demo {
  display: grid;
  gap: 11px;
}

.lesson-demo small {
  color: var(--ink-500);
  line-height: 1.5;
}

.lesson-recording {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 22px;
  background: var(--bg);
}

.lesson-recording .mic-button {
  min-height: 52px;
}

.lesson-recording p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.5;
  font-size: 13px;
}

.lesson-feedback-preview {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 20px;
  background: var(--pill-teal-bg);
  border: 1.5px solid var(--pill-teal-b);
  color: var(--pill-teal-t);
}

.lesson-feedback-preview b {
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.lesson-feedback-preview span {
  line-height: 1.5;
  font-size: 13px;
  font-weight: 500;
}

.lesson-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.lesson-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 2px;
}

.lesson-score-grid span {
  display: grid;
  gap: 3px;
  padding: 14px 8px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink-500);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.lesson-score-grid b {
  color: var(--ink-900);
  font-size: 26px;
  font-weight: 800;
}

.pillar-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.pillar-card.active {
  border-color: var(--ink-900);
}

.pillar-card b,
.pillar-card span {
  display: block;
}

.pillar-card b {
  font-size: 18px;
  font-weight: 800;
}

.pillar-card small {
  color: var(--ink-500);
}

.pillar-card span {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--bg);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
}

.scene-panel {
  padding: 18px;
  margin-bottom: 22px;
}

.panel-copy {
  color: var(--ink-500);
  line-height: 1.62;
  margin: 12px 0 16px;
  font-size: 14px;
}

.scene-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.scene-tabs button {
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 40px;
}

.scene-tabs button.active {
  background: var(--pill-black);
  border-color: var(--pill-black);
  color: #fff;
}

.empty-state {
  padding: 16px;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--ink-700);
}

.empty-state b,
.empty-state p {
  display: block;
  margin: 0;
}

.empty-state p {
  margin-top: 6px;
  color: var(--ink-500);
  line-height: 1.5;
  font-size: 13px;
}

.screen[data-screen="coach"] {
  overflow: hidden;
}

.screen[data-screen="coach"].active {
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  gap: 10px;
}

.screen[data-screen="coach"] .screen-head {
  margin-bottom: 0;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
}

.screen[data-screen="coach"] .mode-switch {
  margin-bottom: 0;
}

.mode-switch button {
  min-height: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--ink-500);
  font-size: 13.5px;
  font-weight: 700;
  min-width: 0;
}

.mode-switch button.active {
  background: var(--card);
  border: 1.5px solid var(--ink-900);
  color: var(--ink-900);
  box-shadow: none;
}

.coach-banner {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.coach-banner img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid #fff;
}

.coach-banner b {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.coach-banner span {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 12px;
}

.coach-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--streak-orange);
  box-shadow: 0 0 0 4px rgba(245, 154, 38, 0.2);
  animation: live-pulse 1800ms ease-in-out infinite;
}

@keyframes live-pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(245, 154, 38, 0.08);
  }
}

.conversation-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden auto;
  padding: 6px 2px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 0;
  scrollbar-width: none;
}

.conversation-card::-webkit-scrollbar {
  display: none;
}

.caption-line {
  width: fit-content;
  max-width: 82%;
  padding: 12px 15px 13px;
  border-radius: 22px 22px 22px 8px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

/* user line = orange outline pill (guided-entry blank) */
.caption-line.user {
  align-self: flex-end;
  background: var(--pill-orange-bg);
  border: 1.5px solid var(--pill-orange-b);
  color: var(--ink-900);
  border-radius: 22px 22px 8px 22px;
  box-shadow: none;
}

.caption-line.live {
  opacity: 0.82;
  border-style: dashed;
}

.caption-line span,
.hint-card b {
  color: var(--ink-300);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.caption-line p,
.hint-card p {
  margin: 5px 0 0;
  line-height: 1.5;
  font-size: 14px;
}

.caption-line.user span {
  color: var(--pill-orange-t);
}

.caption-line.user p {
  color: #6d4a12;
  font-weight: 500;
}

/* hint = teal outline pill */
.hint-card {
  width: fit-content;
  max-width: 82%;
  padding: 12px 15px 13px;
  border-radius: 22px 22px 22px 8px;
  background: var(--pill-teal-bg);
  border: 1.5px solid var(--pill-teal-b);
  color: var(--pill-teal-t);
  box-shadow: none;
}

.hint-card b {
  color: var(--pill-teal-t);
  opacity: 0.75;
}

.hint-card p {
  font-weight: 500;
}

.coach-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 0 2px;
  scrollbar-width: none;
}

.coach-tools::-webkit-scrollbar {
  display: none;
}

.coach-tools button {
  white-space: nowrap;
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

/* single full-width CTA */
.voice-panel {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
  padding: 4px 0 6px;
  background: transparent;
}

.mic-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.mic-button.listening {
  background: var(--grad-sunset-x);
  box-shadow: 0 10px 26px rgba(212, 82, 44, 0.35);
}

.mic-button.cancel-armed {
  background: var(--crimson);
  box-shadow: 0 10px 26px rgba(201, 55, 47, 0.35);
}

.wave {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wave i {
  width: 4px;
  height: 11px;
  border-radius: 999px;
  background: currentColor;
  animation: voice 1000ms ease-in-out infinite;
}

.wave i:nth-child(2) {
  height: 18px;
  animation-delay: 110ms;
}

.wave i:nth-child(3) {
  height: 14px;
  animation-delay: 220ms;
}

.wave i:nth-child(4) {
  height: 20px;
  animation-delay: 330ms;
}

@keyframes voice {
  50% {
    transform: scaleY(0.48);
  }
}

/* gold text link, like "Analyze ✨" */
.secondary-link {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.profile-summary {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.profile-summary img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.profile-summary h3,
.profile-summary p {
  margin: 0;
}

.profile-summary h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-summary p {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 13px;
}

/* big orange streak number + flame, dashed divider below */
/* full-width streak hero row (number left, flame right), tiles below */
.streak-stats {
  display: grid;
  gap: 14px;
  margin: 16px 0 14px;
  padding-bottom: 18px;
  border-bottom: 2px dashed rgba(28, 26, 23, 0.14);
}

.streak-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 0;
  padding: 6px 10px 2px;
}

.streak-hero::after {
  content: "🔥";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 68px;
  filter: drop-shadow(0 6px 14px rgba(245, 154, 38, 0.35));
}

.streak-hero b {
  grid-column: 1;
  color: var(--streak-orange);
  font-size: 62px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 0 rgba(200, 110, 10, 0.18);
}

.streak-hero span {
  grid-column: 1;
  color: var(--streak-orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.streak-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.streak-side div {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  border-radius: 18px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.streak-side i {
  font-style: normal;
  font-size: 18px;
}

.streak-side b {
  font-size: 20px;
  font-weight: 800;
}

.streak-side span {
  color: var(--ink-500);
  font-size: 12px;
}

.growth-card {
  padding: 16px;
  margin-bottom: 14px;
}

.growth-card .section-title h3 {
  font-size: 18px;
}

.skill-bars {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.skill-bars label {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-bottom: 12px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 500;
}

.skill-bars label b {
  font-weight: 800;
}

.skill-bars i {
  position: absolute;
  left: 0;
  right: 36px;
  bottom: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.09);
}

.skill-bars i::after {
  content: "";
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: var(--grad-sunset-x);
}

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.asset-grid button {
  min-height: 92px;
  border-radius: 22px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.asset-grid b,
.asset-grid span,
.asset-grid small {
  display: block;
}

.asset-grid b {
  font-weight: 700;
}

.asset-grid span {
  margin-top: 12px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.asset-grid button:nth-child(1) span {
  color: var(--streak-orange);
}

.asset-grid button:nth-child(2) span {
  color: var(--pill-magenta-t);
}

.asset-grid button:nth-child(3) span {
  color: var(--pill-teal-t);
}

.asset-grid button:nth-child(4) span {
  color: var(--pill-purple-t);
}

.asset-grid small {
  margin-top: 3px;
  color: var(--ink-500);
}

.weak-focus {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.weak-focus h3,
.weak-focus p {
  margin: 0;
}

.weak-focus h3 {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.weak-focus p:last-child {
  margin-top: 7px;
  color: var(--ink-500);
  line-height: 1.5;
  font-size: 13px;
}

.weak-focus button {
  min-width: 96px;
  min-height: 44px;
  box-shadow: none;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 2px 20px;
}

.badge-row span {
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--pill-orange-bg);
  border: 1.5px solid var(--pill-orange-b);
  color: var(--pill-orange-t);
  font-size: 12px;
  font-weight: 700;
}

.badge-row span:nth-child(2) {
  background: var(--pill-purple-bg);
  border-color: var(--pill-purple-b);
  color: var(--pill-purple-t);
}

.badge-row span:nth-child(3) {
  background: var(--pill-magenta-bg);
  border-color: var(--pill-magenta-b);
  color: var(--pill-magenta-t);
}

/* quiet iOS-style tab bar */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  align-items: center;
  padding: 6px 10px 8px;
  border-top: 1px solid rgba(28, 26, 23, 0.06);
  border-radius: 0 0 34px 34px;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(22px);
}

.bottom-nav button {
  height: 44px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 12px;
  background: transparent;
  color: #a8a196;
  font-size: 11px;
  font-weight: 700;
  transition: color 160ms ease;
}

.bottom-nav button i,
.bottom-nav button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.bottom-nav button.active {
  background: transparent;
  color: var(--ink-900);
  box-shadow: none;
}

.bottom-nav button.active svg {
  stroke-width: 2.5;
}

.sheet,
.reward {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
}

.sheet.open,
.reward.open {
  display: block;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 16, 0.38);
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 84%;
  overflow: auto;
  padding: 12px 18px 24px;
  border-radius: 32px 32px 0 0;
  background: var(--card);
  box-shadow: 0 -18px 44px rgba(46, 40, 28, 0.2);
}

.sheet-panel::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.14);
}

.sheet-panel header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.sheet-panel header button {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 800;
}

.sheet-panel header button.saved {
  width: auto;
  color: var(--gold);
}

.sheet-panel h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.detail-hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0 12px;
}

.detail-hero img {
  width: 96px;
  height: 86px;
  object-fit: cover;
  border-radius: 20px;
}

.detail-hero h4,
.detail-hero p {
  margin: 0;
}

.detail-hero h4 {
  font-weight: 800;
}

.detail-hero p {
  margin-top: 6px;
  color: var(--ink-500);
  line-height: 1.5;
  font-size: 13px;
}

.detail-block {
  padding: 14px;
  border-radius: 20px;
  background: var(--bg);
  margin-bottom: 10px;
}

.detail-block b {
  display: block;
  margin-bottom: 8px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px;
}

.detail-tags span {
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--pill-magenta-bg);
  border: 1.5px solid var(--pill-magenta-b);
  color: var(--pill-magenta-t);
  font-size: 12px;
  font-weight: 700;
}

.detail-tags span:nth-child(3n+2) {
  background: var(--pill-purple-bg);
  border-color: var(--pill-purple-b);
  color: var(--pill-purple-t);
}

.detail-tags span:nth-child(3n) {
  background: var(--pill-orange-bg);
  border-color: var(--pill-orange-b);
  color: var(--pill-orange-t);
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-list article,
.asset-detail {
  padding: 14px;
  border-radius: 20px;
  background: var(--bg);
}

.history-list b,
.asset-detail b {
  display: block;
  color: var(--ink-900);
}

.history-list p,
.asset-detail p {
  margin: 6px 0 0;
  color: var(--ink-500);
  line-height: 1.48;
  font-size: 13px;
}

.asset-detail b {
  color: var(--streak-orange);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 12px;
}

.setting-grid button {
  min-height: 48px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-700);
  font-weight: 600;
}

.setting-grid button.active {
  background: var(--pill-black);
  color: #fff;
}

.save-summary {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 15px;
  border-radius: 22px;
  background: var(--grad-insight);
}

.save-summary b {
  font-size: 17px;
  font-weight: 800;
  color: #4a4060;
}

.save-summary p {
  margin: 0;
  color: #5b5170;
  line-height: 1.5;
  font-size: 13px;
}

.save-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.save-summary span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.7);
  color: #4a4060;
  font-size: 12px;
  font-weight: 700;
}

.save-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.save-actions .primary-action {
  grid-column: 1 / -1;
}

.reward {
  display: none;
  place-items: center;
  padding: 26px;
  background: rgba(28, 24, 16, 0.4);
}

.reward.open {
  display: grid;
}

.reward section {
  width: 100%;
  border-radius: 30px;
  padding: 24px 22px;
  background: var(--card);
  text-align: center;
  box-shadow: 0 24px 60px rgba(46, 40, 28, 0.26);
}

.reward span {
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--pill-orange-bg);
  border: 1.5px solid var(--pill-orange-b);
  color: var(--pill-orange-t);
  font-weight: 800;
}

.reward h3 {
  margin: 14px 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reward p {
  margin: 0 0 16px;
  color: var(--ink-500);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .prototype-shell {
    display: block;
    padding: 0;
  }

  .design-notes {
    display: none;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .bottom-nav {
    border-radius: 0;
  }
}

@media (max-height: 760px) {
  :root {
    --screen-pad-x: 18px;
    --screen-pad-y: 18px;
    --section-gap: 14px;
    --card-pad: 16px;
    --inner-gap: 12px;
    --control-height: 52px;
  }

  .screen {
    inset: 32px 0 62px;
    padding: var(--screen-pad-y) var(--screen-pad-x) 24px;
  }

  .screen-head {
    margin-bottom: var(--section-gap);
  }

  .screen-head h2 {
    font-size: 25px;
  }

  .swipe-area {
    min-height: 0;
  }

  .screen[data-screen="home"] .swipe-area {
    padding-top: 14px;
  }

  .screen[data-screen="home"] .card-stack {
    width: 100%;
    margin-left: 0;
    transform: scale(0.76);
  }

  .task-card {
    min-height: 0;
    padding: var(--card-pad);
  }

  .scene-image {
    height: 120px;
  }

  .card-meta {
    margin: 0;
  }

  .task-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.24;
  }

  .goal-box {
    padding: 12px;
  }

  .goal-box h4,
  .section-title h3 {
    font-size: 15px;
  }

  .task-list {
    gap: 7px;
    margin-top: 10px;
  }

  .task-list label {
    grid-template-columns: 22px 1fr;
    font-size: 13px;
  }

  .task-list i {
    width: 22px;
    height: 22px;
  }

  .dialogue {
    gap: 10px;
    margin-top: 0;
  }

  .bubble {
    padding: 10px 12px;
    line-height: 1.42;
    font-size: 13px;
  }

  .transcript-card {
    margin-top: 0;
    padding: 10px 12px;
  }

  .voice-actions {
    margin-top: 0;
  }

  .primary-action,
  .complete-action,
  .mic-button,
  .weak-focus button,
  .reward button {
    min-height: 48px;
  }

  .nav-arrow {
    top: 50%;
  }

  .conversation-card {
    gap: 12px;
    padding: 2px 2px 8px;
  }

  .caption-line,
  .hint-card {
    padding: 12px;
  }

  .voice-panel {
    position: static;
    margin-top: 0;
    padding: 8px 0 4px;
  }

  .scene-panel,
  .growth-card,
  .profile-summary,
  .weak-focus {
    padding: 16px;
  }
}

/* ============================================================
   V5 · 开口练通话式（暖白极简 Video Call）
   ============================================================ */

.screen[data-screen="coach"].active {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.call-lobby[hidden],
.call-live[hidden] {
  display: none !important;
}

.call-lobby {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-bottom: 8px;
}

.lobby-card {
  /* 按内容定高，别用 flex:1 去抢空间。分到的高度比内容矮时，居中的内容会从圆角卡片里
     溢出去压到下面的按钮上（真机小屏 + 底下多了「按场景练」之后就这样）。
     内容多高卡片就多高，整屏交给 .screen 自己滚。 */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 22px;
  border-radius: 32px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.lobby-avatar {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 12px;
}

.lobby-avatar::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-300);
}

.lobby-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-card);
}

.lobby-dot {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #3bb273;
  border: 2.5px solid #fff;
}

.lobby-card > b {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lobby-ready {
  color: var(--ink-500);
  font-size: 12px;
}

.lobby-card h3 {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.lobby-card p {
  margin: 2px 0 0;
  max-width: 30ch;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.6;
}

.lobby-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.lobby-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.call-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
}

.call-start svg {
  width: 18px;
  height: 18px;
}

/* ---- 通话中 ---- */

.phone.in-call .bottom-nav {
  display: none;
}

.phone.in-call .screen[data-screen="coach"] {
  inset: 32px 0 0;
}

.call-live {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.call-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.call-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

.call-status b {
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.call-topbar-actions {
  display: flex;
  gap: 8px;
}

.call-topbar .soft-chip {
  min-height: 34px;
  font-size: 12px;
}

#call-cc[aria-pressed="true"] {
  border-color: var(--ink-900);
  color: var(--ink-900);
  font-weight: 800;
}

#call-cc[aria-pressed="false"] {
  color: var(--ink-300);
}

.call-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 0 4px;
}

.call-avatar {
  position: relative;
  width: 148px;
  height: 148px;
  margin-bottom: 10px;
}

.call-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-card);
}

.call-avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.call-live.ava-speaking .call-avatar::after {
  border-color: rgba(245, 154, 38, 0.55);
  animation: speak-ring 1600ms ease-in-out infinite;
}

.call-live.user-listening .call-avatar::after {
  border-color: rgba(67, 203, 177, 0.75);
  animation: speak-ring 1100ms ease-in-out infinite;
}

@keyframes speak-ring {
  50% {
    transform: scale(1.05);
    opacity: 0.45;
  }
}

.call-name {
  font-size: 17px;
  font-weight: 800;
}

.call-state-label {
  min-height: 18px;
  color: var(--ink-500);
  font-size: 12.5px;
}

.call-captions {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.call-captions::-webkit-scrollbar {
  display: none;
}

.call-live.cc-off .call-captions {
  visibility: hidden;
}

.call-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.call-tools button {
  white-space: nowrap;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

/* Hint 是通话中最有用的动作 —— 做成实心按钮，跟旁边两个描边胶囊拉开，
   一眼看出来是可点的、是干什么的（以前它是个下划线链接，没人当它是按钮） */
.call-hint-btn {
  background: var(--pill-black) !important;
  border-color: var(--pill-black) !important;
  color: #fff !important;
}

.call-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 8px;
}

.call-mic {
  flex: 1;
}

.hangup-btn {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 55, 47, 0.35);
}

.hangup-btn svg {
  width: 21px;
  height: 21px;
}

/* ============================================================
   V5 · 我的页炫耀元素（累计开口 / 绿墙 / 雷达 / 炫耀卡）
   ============================================================ */

.spoken-hero .section-title {
  align-items: center;
}

.spoken-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.spoken-count b {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.spoken-count span {
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 700;
}

.spoken-percentile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.spoken-percentile p {
  margin: 0;
  white-space: nowrap;
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 600;
}

.spoken-percentile p b {
  color: var(--ink-900);
  font-weight: 800;
}

.percentile-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.08);
}

.percentile-bar i {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--pill-black);
}

/* ---- 绿墙 ---- */

:root {
  --wall-0: #eceae2;
  --wall-1: #d5ecca;
  --wall-2: #a6dc99;
  --wall-3: #66c266;
  --wall-4: #2e8f4d;
}

.green-wall {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-columns: 1fr;
  gap: 4px;
  margin-top: 12px;
}

.green-wall i,
.brag-wall i {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--wall-0);
}

.green-wall i[data-l="1"] { background: var(--wall-1); }
.green-wall i[data-l="2"] { background: var(--wall-2); }
.green-wall i[data-l="3"] { background: var(--wall-3); }
.green-wall i[data-l="4"] { background: var(--wall-4); }

.wall-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 11px;
}

.wall-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--wall-0);
}

.wall-legend i[data-l="1"] { background: var(--wall-1); }
.wall-legend i[data-l="2"] { background: var(--wall-2); }
.wall-legend i[data-l="3"] { background: var(--wall-3); }
.wall-legend i[data-l="4"] { background: var(--wall-4); }

.wall-legend span {
  margin-inline: 4px;
}

/* ---- 雷达 ---- */

.radar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.radar-wrap svg {
  flex: 1;
  min-width: 0;
  height: auto;
}

.radar-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.radar-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

.radar-legend .now {
  background: var(--streak-orange);
}

.radar-legend .goal {
  background: transparent;
  border: 1.5px dashed var(--ink-300);
}

/* ---- 炫耀卡弹层（日落渐变 · 磨砂仅在渐变上使用） ---- */

.brag {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(28, 24, 16, 0.45);
}

.brag.open {
  display: grid;
}

.brag-mask {
  position: absolute;
  inset: 0;
}

.brag-panel {
  position: relative;
  width: min(100%, 316px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brag-poster {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 16px;
  border-radius: 28px;
  background: var(--grad-sunset);
  color: #fff;
  box-shadow: 0 24px 60px rgba(46, 40, 28, 0.4);
}

.brag-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  pointer-events: none;
}

.brag-eyebrow {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.brag-poster h3 {
  margin: 6px 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brag-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brag-count b {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brag-count span {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

.brag-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 12px;
}

.brag-stats div {
  padding: 10px 6px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.brag-stats b {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.brag-stats span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  opacity: 0.85;
}

.brag-wall {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brag-wall i {
  border-radius: 2.5px;
  background: rgba(255, 255, 255, 0.22);
}

.brag-wall i[data-l="1"] { background: rgba(255, 255, 255, 0.4); }
.brag-wall i[data-l="2"] { background: rgba(255, 255, 255, 0.6); }
.brag-wall i[data-l="3"] { background: rgba(255, 255, 255, 0.8); }
.brag-wall i[data-l="4"] { background: rgba(255, 255, 255, 1); }

.brag-foot {
  margin: 12px 0 0;
  font-size: 11px;
  opacity: 0.85;
}

.brag-actions {
  display: flex;
  gap: 10px;
}

.brag-actions .primary-action {
  flex: 1;
}

.brag-actions .complete-action {
  flex: 0 0 auto;
  padding: 0 20px;
}

/* 字幕贴底，像真实通话 */
.call-captions > :first-child {
  margin-top: auto;
}

/* ---- V6 · 对话设置面板 ---- */

.setting-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setting-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 10px;
}

.setting-row > b {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 800;
}

.setting-row .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.setting-row .opts button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-500);
  font-size: 12.5px;
  font-weight: 700;
}

.setting-row .opts button.active {
  border: 1.5px solid var(--ink-900);
  color: var(--ink-900);
}

.setting-summary {
  margin-top: 14px;
}

.setting-note {
  color: var(--pill-orange-t);
  font-size: 12px;
}

/* ---- V8 · 我的页英雄卡合并 + sheet 关闭按钮 ---- */

.me-hero .me-streak {
  color: var(--streak-orange);
}

.me-hero .spoken-count {
  margin-top: 10px;
}

.me-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.me-hero-stats div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.me-hero-stats i {
  font-style: normal;
  font-size: 14px;
}

.me-hero-stats b {
  font-size: 17px;
  font-weight: 800;
}

.me-hero-stats span {
  color: var(--ink-500);
  font-size: 11.5px;
}

.sheet-panel header button.sheet-close {
  width: 38px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink-700);
}

.sheet-panel header button.sheet-close svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

/* 说话模式的开关：它是可点的，得看起来像可点的 */
.lobby-talk-toggle {
  cursor: pointer;
  border-color: var(--ink-900) !important;
  color: var(--ink-900) !important;
  font-weight: 800;
}

/* ===== 段位赛 ===================================================
   你的 XP 是真的，对手是演示数据 —— 界面上明说，见 .league-disclosure。
   ================================================================ */

.screen[data-screen="league"] {
  overflow: hidden;
  padding: 12px 18px 12px;
}

.screen[data-screen="league"].active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.league {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.league::-webkit-scrollbar {
  display: none;
}

.league-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 16px 14px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.league-badge {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--league) 16%, transparent);
  font-size: 30px;
}

.league-hero b {
  color: var(--league);
  font-size: 19px;
  font-weight: 800;
}

.league-hero small {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.45;
}

/* 十个段位的进度条：走到哪一格一目了然 */
.league-tiers {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.league-tiers i {
  width: 16px;
  height: 5px;
  border-radius: 3px;
  background: var(--hairline-strong);
}

.league-tiers i.past {
  background: var(--ink-300);
}

.league-tiers i.on {
  width: 26px;
  background: var(--league);
}

.league-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--pill-orange-bg);
  color: var(--pill-orange-t);
  font-size: 13px;
  font-weight: 700;
}

/* 这行不能省：榜上的人是编的，得让人一眼看见 */
.league-disclosure {
  margin: 0;
  padding: 9px 12px;
  border: 1px dashed var(--hairline-strong);
  border-radius: 12px;
  color: var(--ink-500);
  font-size: 11.5px;
  line-height: 1.45;
}

.league-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.league-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.league-row.is-up {
  background: color-mix(in srgb, var(--pill-teal-bg) 70%, transparent);
}

.league-row.is-down {
  background: color-mix(in srgb, var(--pill-orange-bg) 55%, transparent);
}

.league-row.is-you {
  background: var(--pill-black);
  color: #fff;
}

.league-rank {
  flex-shrink: 0;
  width: 22px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.league-row.is-you .league-rank {
  color: rgba(255, 255, 255, 0.75);
}

.league-name {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.league-demo {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--hairline);
  color: var(--ink-500);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.league-xp {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.league-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: var(--bg-soft);
}

.league-foot b {
  font-size: 14px;
  font-weight: 700;
}

.league-foot p {
  margin: 0;
  color: var(--ink-500);
  font-size: 12.5px;
  line-height: 1.5;
}

.league-foot .league-you {
  color: var(--ink-900);
  font-weight: 700;
}

/* ===== 通话后反馈报告 =============================================
   总分一眼可感，四维度说清为什么，发音明确标 Beta（我们测不了音）。
   ================================================================ */

.report { display: flex; flex-direction: column; gap: 14px; }
.report-head { display: flex; flex-direction: column; gap: 4px; }
.report-head .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-500);
}
.report-head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.report-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 3px; }
.report-meta span {
  font-size: 12px; color: var(--ink-700); background: var(--card);
  border: 1px solid var(--hairline); padding: 3px 9px; border-radius: 999px; font-weight: 600;
}
.report-loading { color: var(--ink-500); font-size: 14px; }

.report-overall {
  display: flex; align-items: center; gap: 14px;
  background: var(--pill-black); color: #fff;
  border-radius: 20px; padding: 16px;
}
.rep-ring { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.rep-ring b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.rep-lede b { font-size: 14px; font-weight: 800; line-height: 1.4; display: block; }
.rep-lede span { font-size: 12px; opacity: 0.72; display: block; margin-top: 4px; }

.report-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rep-dim {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.rep-dim-top { display: flex; align-items: baseline; justify-content: space-between; }
.rep-dim-top span { font-size: 12.5px; font-weight: 700; }
.rep-dim-top b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rep-dim-top b i { font-size: 10px; font-weight: 600; color: var(--ink-500); font-style: normal; }
.rep-meter { height: 6px; border-radius: 999px; background: var(--hairline-strong); overflow: hidden; }
.rep-meter i { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.rep-dim.good .rep-meter i { background: #2e9e6b; }
.rep-dim.warn .rep-meter i { background: #c9772f; }
.rep-dim-foot { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink-500); line-height: 1.35; }
.rep-beta {
  font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: #c9772f; background: rgba(201,119,47,0.14); padding: 1px 5px; border-radius: 5px;
}

.report-block {
  background: var(--bg-soft); border-radius: 14px; padding: 13px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.report-block b { font-size: 13px; font-weight: 800; }
.report-block p { margin: 0; color: var(--ink-700); font-size: 13px; line-height: 1.5; }

.report-progress {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.rep-prog-head { display: flex; align-items: center; justify-content: space-between; }
.rep-prog-head b { font-size: 13.5px; font-weight: 800; }
.rep-seg { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 2px; gap: 2px; }
.rep-seg button {
  border: 0; background: transparent; font: inherit; cursor: pointer;
  font-size: 11.5px; font-weight: 700; color: var(--ink-500); padding: 4px 11px; border-radius: 999px;
}
.rep-seg button.on { background: var(--card); color: var(--ink-900); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.rep-spark { display: block; width: 100%; height: 60px; }
.rep-prog-delta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.rep-prog-delta b { color: #2e9e6b; font-weight: 800; }
.rep-prog-delta span { color: var(--ink-700); }
.rep-prog-empty { margin: 0; color: var(--ink-500); font-size: 12.5px; line-height: 1.5; }

.history-list.scored article { display: flex; gap: 12px; align-items: flex-start; }
.history-score {
  flex-shrink: 0; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--pill-black); color: #fff;
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* 通话中锁住的设置：变灰 + 一个 "next call" 小标 */
.setting-row.is-locked { opacity: 0.55; }
.setting-row.is-locked button { cursor: not-allowed; }
.lock-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-500); background: var(--hairline); padding: 1px 6px; border-radius: 5px; margin-left: 6px;
}
.setting-live-note {
  margin: 0 0 6px; padding: 9px 12px; border-radius: 11px;
  background: var(--pill-orange-bg); color: var(--pill-orange-t);
  font-size: 12px; line-height: 1.45; font-weight: 600;
}

/* ===== Speak · 按场景练 =========================================== */
/* 跟上面的 Start call 明显分段：一条细线 + 更大的上间距，不再贴在一起 */
.speak-scenes {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 26px; padding: 22px 0 18px;
  border-top: 1px solid var(--hairline);
}
.speak-scenes:empty { display: none; }
.speak-scenes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.speak-scenes-head b { font-size: 16px; font-weight: 800; display: block; }
.speak-scenes-head small { color: var(--ink-500); font-size: 12px; line-height: 1.4; display: block; margin-top: 3px; }

/* 场景卡：图标在上、名字、进度，一叠横滑，每张够大够松 */
.scene-tile-row {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -18px; padding: 4px 18px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.scene-chip-art {
  display: grid;
  width: 100%;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #f3eadf;
}

.scene-chip-art img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  -webkit-user-drag: none;
}

.scene-chip-copy {
  display: grid;
  gap: 3px;
  padding: 1px 6px 5px;
  text-align: left;
}
.scene-tile-row.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.scene-tile-row .scene-tile { cursor: grab; }
.scene-tile-row.is-dragging .scene-tile { cursor: grabbing; }
.scene-tile-row img { -webkit-user-drag: none; }
.scene-tile-row::-webkit-scrollbar { display: none; }
.scene-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  flex-shrink: 0; width: 132px;
  padding: 16px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start; text-align: left;
}
.scene-tile-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--bg-soft); font-size: 22px;
}
.scene-tile-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.scene-tile-meta { font-size: 11.5px; color: var(--ink-500); }
.scene-tile.is-done { background: var(--bg-soft); border-color: transparent; box-shadow: none; }
.scene-tile.is-done .scene-tile-meta { color: var(--gold); font-weight: 700; }
.scene-tile.is-custom { border-color: var(--pill-purple-b); }
.scene-tile-all { justify-content: center; }
.scene-tile-all .scene-tile-icon { background: var(--pill-black); color: #fff; font-size: 24px; }
.speak-scene-row::-webkit-scrollbar { display: none; }
.speak-scene-row .scene-chip { min-width: 124px; }
.scene-chip.is-custom { border-color: var(--pill-purple-b); }
.scene-chip.is-custom b::after { content: " ✨"; }
.scene-chip-all {
  min-width: 72px; align-items: center; justify-content: center;
  color: var(--ink-700); font-size: 12.5px; font-weight: 700;
}

.scene-practice { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.scene-practice-meta { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-500); font-size: 12px; }
.scene-practice-line { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; }
.scene-practice-heard { margin: 0; min-height: 20px; color: var(--ink-500); font-size: 13px; line-height: 1.4; }
.scene-practice .home-voice-input { margin-top: 4px; }

/* ===== 关卡牌堆（10 句选 5，左右滑跳过） ========================= */
.level-deck {
  position: relative;
  height: 340px;
  margin-top: 8px;
}
.level-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
}
.level-card.top {
  z-index: 3;
  cursor: grab;
  touch-action: pan-y;
}
.level-card.back-one { z-index: 2; transform: translateY(12px) scale(0.96); opacity: 0.7; }
.level-card.back-two { z-index: 1; transform: translateY(24px) scale(0.92); opacity: 0.4; }
.level-card-scene { margin: 0; color: var(--ink-500); font-size: 12px; }
.level-card-line {
  margin: 0; flex: 1; display: flex; align-items: center;
  font-size: 24px; font-weight: 700; line-height: 1.3;
}
.level-card-heard { margin: 0; min-height: 18px; color: var(--ink-500); font-size: 13px; }
.level-card .home-voice-input { margin-top: auto; }
.level-hint { text-align: center; color: var(--ink-500); font-size: 12px; margin-top: 12px; }

.level-done {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 30px 20px; text-align: center;
}
.level-done-badge {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-sunset-x); color: #fff; font-size: 26px; font-weight: 800;
}
.level-done b { font-size: 17px; font-weight: 800; }
.level-done p { margin: 0; color: var(--ink-500); font-size: 13px; }
.level-done .primary-action { margin-top: 8px; }

/* ===== 首次引导 =================================================== */
.onboarding {
  position: absolute; inset: 0; z-index: 40;
  display: none; align-items: flex-end;
  background: rgba(20, 18, 16, 0.28);
  backdrop-filter: blur(2px);
}
.onboarding[aria-hidden="false"] { display: flex; }
.onboard-card {
  width: 100%;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
  max-height: 92%; overflow-y: auto; scrollbar-width: none;
  animation: onboard-up 260ms cubic-bezier(.16,1,.3,1);
}
@keyframes onboard-up { from { transform: translateY(30px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .onboard-card { animation: none; } }
.onboard-card .eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.onboard-card h2 { margin: 2px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.onboard-sub { color: var(--ink-500); font-size: 13.5px; line-height: 1.5; margin: 0 0 8px; }

.onboard-options { display: flex; flex-direction: column; gap: 8px; }
.onboard-opt {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 13px 15px; border-radius: 15px;
  background: var(--card); border: 1.5px solid var(--hairline);
}
.onboard-opt b { font-size: 15px; font-weight: 700; display: flex; align-items: baseline; gap: 7px; }
.onboard-opt b i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-500); }
.onboard-opt span { font-size: 12.5px; color: var(--ink-500); }
.onboard-opt.on { border-color: var(--pill-black); }

.onboard-goals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.onboard-goal {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--hairline);
  font-size: 14px; font-weight: 700;
}
.onboard-goal-emoji { font-size: 16px; }
.onboard-goal.on { border-color: var(--pill-black); background: var(--pill-black); color: #fff; }
.onboard-done { margin-top: 8px; }
.onboard-done:disabled { opacity: 0.45; }

/* ===== Diorama visual system ==============================================
   Keep the existing tower and card interactions; unify only their art layer. */
.screen[data-screen="home"] {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.82), transparent 38%),
    #f6f0e7;
}

.tower {
  gap: 14px;
  padding: 4px 4px 30px;
}

.trail-section {
  gap: 10px;
}

.trail-band {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-color: rgba(106, 84, 62, 0.11);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.86);
  box-shadow: 0 10px 28px rgba(90, 65, 42, 0.06);
}

.trail-band-glyph {
  display: none;
}

.trail-band-code {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--band) 34%, #d6c6b4);
  border-radius: 14px;
  background: color-mix(in srgb, var(--band) 10%, #fffaf4);
  color: color-mix(in srgb, var(--band) 70%, #493d33);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.trail-band-text b {
  color: #3f372f;
  letter-spacing: -0.01em;
}

.trail {
  gap: 10px;
  padding: 14px 0 18px;
}

.trail-node {
  isolation: isolate;
  min-height: 104px;
  gap: 7px;
}

.trail-node::before {
  top: -26px;
  width: 2px;
  height: 28px;
  background: repeating-linear-gradient(
    #c9bcae 0 4px,
    transparent 4px 9px
  );
}

.trail-dot {
  z-index: 2;
  width: 72px;
  height: 56px;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--band) 34%, #cbb9a8);
  border-radius: 50%;
  background: linear-gradient(180deg, #fffaf3, #ecdfd1);
  color: #574a3e;
  box-shadow:
    0 7px 0 #cbbbab,
    0 14px 24px rgba(69, 51, 36, 0.13);
}

.trail-dot:active {
  box-shadow:
    0 4px 0 #cbbbab,
    0 9px 18px rgba(69, 51, 36, 0.12);
}

.trail-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: 850;
}

.trail-node.is-cleared .trail-dot {
  border-color: color-mix(in srgb, var(--band) 68%, #bd7b68);
  background: color-mix(in srgb, var(--band) 20%, #fffaf2);
  box-shadow:
    0 7px 0 color-mix(in srgb, var(--band) 50%, #ae7868),
    0 0 0 5px color-mix(in srgb, var(--band) 9%, transparent),
    0 14px 24px rgba(69, 51, 36, 0.12);
}

.trail-check {
  position: absolute;
  top: -7px;
  right: -8px;
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: var(--band);
  color: #fff;
  filter: drop-shadow(0 3px 5px rgba(70, 45, 32, 0.18));
}

.trail-node.is-locked .trail-dot,
.trail-node.is-locked .trail-dot:disabled {
  border-color: #c7c0b6;
  background: linear-gradient(180deg, #dfd9cf, #cbc4ba);
  color: #837c72;
  opacity: 1;
  box-shadow:
    0 6px 0 #b5aea5,
    0 12px 18px rgba(55, 48, 42, 0.09);
}

.trail-lock-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.trail-node.is-here .trail-dot {
  width: 82px;
  height: 60px;
  border-color: #e27458;
  background: linear-gradient(180deg, #fff4e8, #efd9c6);
  animation: diorama-node-pulse 2.8s ease-in-out infinite;
}

.trail-ava {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 104px;
  height: 104px;
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(99, 58, 39, 0.16));
}

@keyframes diorama-node-pulse {
  0%,
  100% {
    box-shadow:
      0 7px 0 #cbbbab,
      0 0 0 0 rgba(237, 118, 93, 0.2),
      0 14px 24px rgba(69, 51, 36, 0.13);
  }
  50% {
    box-shadow:
      0 7px 0 #cbbbab,
      0 0 0 11px rgba(237, 118, 93, 0.08),
      0 14px 24px rgba(69, 51, 36, 0.13);
  }
}

.trail-landmark {
  position: absolute;
  top: -18px;
  z-index: 1;
  display: block;
  width: 124px;
  height: 124px;
  pointer-events: none;
}

.trail-landmark.is-left {
  right: calc(50% + 50px);
}

.trail-landmark.is-right {
  left: calc(50% + 50px);
}

.trail-landmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(85, 62, 43, 0.1));
}

.trail-flag {
  top: -28px;
  z-index: 4;
  background: #4f4137;
  box-shadow: 0 5px 10px rgba(64, 48, 36, 0.12);
}

.trail-flag::after {
  background: #4f4137;
}

.trail-label {
  z-index: 3;
}

.trail-label b {
  color: #4f443a;
  font-size: 12px;
}

.trail-label small {
  color: #978a7c;
}

.trail-summit-badge {
  border: 1px solid #d9ccbe;
  background: #fff9f1;
  color: #8d7968;
  box-shadow: 0 9px 22px rgba(85, 62, 43, 0.08);
}

.trail-summit-badge svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.level-deck {
  height: 470px;
  margin-top: 10px;
}

.level-card {
  gap: 9px;
  padding: 14px;
  border-color: rgba(112, 85, 60, 0.12);
  border-radius: 24px;
  background: #fffaf3;
  box-shadow: 0 20px 44px rgba(87, 64, 42, 0.11);
}

.level-card.back-one {
  transform: translateY(12px) scale(0.965);
  opacity: 0.66;
}

.level-card.back-two {
  transform: translateY(24px) scale(0.93);
  opacity: 0.34;
}

.level-card-art {
  overflow: hidden;
  flex: 0 0 228px;
  border: 1px solid rgba(112, 85, 60, 0.08);
  border-radius: 18px;
  background: #f3e9dc;
}

.level-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.level-card-art img[src*="landmark-"] {
  padding: 20px;
  object-fit: contain;
  background: linear-gradient(180deg, #fffaf2 0%, #f1e3d4 100%);
  -webkit-user-drag: none;
}

.level-card-scene,
.tower-card-scene {
  color: #a16553;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-card-line {
  flex: 0 1 auto;
  min-height: 72px;
  align-items: center;
  color: #332d28;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.level-card .home-voice-input {
  margin-top: auto;
  background: #1d1a17;
  box-shadow: 0 7px 0 #060504, 0 13px 24px rgba(30, 24, 20, 0.18);
}

.level-hint {
  color: #8d8176;
}

.tower-card {
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(112, 85, 60, 0.1);
  border-radius: 24px;
  background: #fffaf3;
  box-shadow: 0 20px 44px rgba(87, 64, 42, 0.11);
}

.tower-card-photo {
  height: 280px;
  border: 1px solid rgba(112, 85, 60, 0.08);
  border-radius: 18px;
  background: #f3e9dc;
}

.tower-card-photo img {
  object-position: 50% 55%;
}

.tower-card-body {
  gap: 8px;
  padding: 2px 3px;
}

.tower-card-line {
  color: #332d28;
  letter-spacing: -0.025em;
}

.tower-card .home-voice-input {
  min-height: 64px;
  padding: 5px 16px 5px 8px;
  background: #1d1a17;
  box-shadow: 0 7px 0 #060504, 0 13px 24px rgba(30, 24, 20, 0.18);
}

.tower-mic-listen {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.tower-mic-listen img {
  width: 56px;
  height: 56px;
  margin: -4px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(83, 41, 29, 0.15));
}

.tower-mic-listen > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tower-mic-listen b {
  font-size: 15px;
  line-height: 1.2;
}

.tower-mic-listen small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  font-weight: 600;
}

.tower-mic-listen svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.tower[data-view="card"] .tower-card {
  margin: 22px 0 0;
}

@media (max-height: 730px) {
  .level-deck {
    height: 380px;
  }

  .level-card-art {
    flex-basis: 150px;
  }

  .tower-card-photo {
    height: 196px;
  }
}

/* ===== Diorama across Speak, League and Me ================================ */
.screen[data-screen="coach"],
.screen[data-screen="league"],
.screen[data-screen="me"] {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.8), transparent 34%),
    #f6f0e7;
}

.screen[data-screen="me"].active > *,
.league > * {
  flex-shrink: 0;
}

.lobby-card {
  overflow: hidden;
  padding: 12px 22px 22px;
  border-color: rgba(106, 84, 62, 0.12);
  background: rgba(255, 251, 245, 0.94);
}

.lobby-diorama {
  position: relative;
  width: min(100%, 286px);
  height: 142px;
  margin: -2px auto 4px;
}

.lobby-landmark {
  position: absolute;
  bottom: -5px;
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(78, 55, 37, 0.12));
}

.lobby-landmark-cafe {
  left: -8px;
  transform: rotate(-3deg);
}

.lobby-landmark-campus {
  right: -10px;
  transform: rotate(3deg);
}

.lobby-avatar {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -2px;
  width: 112px;
  height: 112px;
  margin: 0;
  transform: translateX(-50%);
}

.lobby-avatar::before {
  display: none;
}

.lobby-avatar img,
.call-avatar img {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  filter: drop-shadow(0 10px 12px rgba(80, 45, 30, 0.18));
}

.lobby-dot {
  z-index: 4;
  right: calc(50% - 47px);
  bottom: 12px;
  width: 13px;
  height: 13px;
}

.lobby-card > b {
  color: #473b31;
}

.lobby-ready {
  color: #7b6e61;
}

.lobby-meta span {
  border-color: rgba(106, 84, 62, 0.11);
  background: #f3ece2;
}

.call-hint-btn,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.call-hint-btn svg,
.secondary-link svg {
  width: 15px;
  height: 15px;
}

.call-avatar {
  width: 156px;
  height: 156px;
}

.call-avatar::after {
  inset: 8px;
  border-radius: 44%;
}

.speak-scenes-head .soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.speak-scenes-head .soft-chip svg {
  width: 14px;
  height: 14px;
}

.scene-tile {
  width: 150px;
  min-height: 172px;
  gap: 6px;
  overflow: hidden;
  padding: 10px 10px 13px;
  border-color: rgba(106, 84, 62, 0.12);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.96);
}

.scene-tile-art {
  display: grid;
  width: 100%;
  height: 102px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #f1eadf;
}

.scene-tile-art img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(82, 55, 37, 0.13));
}

.scene-tile.is-done .scene-tile-art {
  filter: saturate(0.72);
  opacity: 0.82;
}

.scene-tile-name,
.scene-tile-meta {
  padding-inline: 4px;
}

.scene-tile-browse {
  display: grid;
  width: 100%;
  height: 102px;
  place-items: center;
  border-radius: 16px;
  background: #25211d;
  color: #fff;
}

.scene-tile-browse svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.scene-tile-all {
  justify-content: flex-start;
}

.league-hero {
  gap: 10px;
  overflow: hidden;
  padding: 8px 14px 15px;
  border: 1px solid rgba(106, 84, 62, 0.12);
  border-radius: 26px;
  background: rgba(255, 251, 245, 0.95);
}

.league-diorama {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 110%, rgba(221, 195, 157, 0.7), transparent 52%),
    #f1eadf;
}

.league-landmark,
.league-ava {
  position: absolute;
  bottom: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(76, 52, 35, 0.13));
}

.league-landmark {
  width: 138px;
  height: 138px;
}

.league-landmark-left {
  left: -9px;
}

.league-landmark-right {
  right: -10px;
}

.league-ava {
  z-index: 2;
  left: 50%;
  width: 104px;
  height: 104px;
  transform: translateX(-50%);
}

.league-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: auto;
  height: 32px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  background: #25211d;
  color: #fff;
}

.league-badge svg {
  width: 14px;
  height: 14px;
}

.league-badge b {
  color: #fff;
  font-size: 12px;
}

.league-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.league-kicker {
  color: #8b7d70;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.league-hero-copy > b {
  color: #44392f;
  font-size: 20px;
}

.league-hero-copy small {
  max-width: 31ch;
}

.profile-summary {
  margin-bottom: 10px;
  border: 1px solid rgba(106, 84, 62, 0.11);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.92);
  box-shadow: 0 10px 28px rgba(90, 65, 42, 0.06);
}

.profile-summary img {
  padding: 3px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 7px rgba(80, 45, 30, 0.16));
}

.me-hero {
  overflow: hidden;
  border: 1px solid rgba(106, 84, 62, 0.11);
  border-radius: 26px;
  background: rgba(255, 251, 245, 0.94);
}

.me-city-journey {
  position: relative;
  display: flex;
  height: 112px;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  margin: 10px -8px 0;
  padding: 0 2px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 115%, rgba(218, 187, 148, 0.74), transparent 54%),
    #f1eadf;
}

.me-city-journey img {
  width: 74px;
  height: 96px;
  margin-inline: -9px;
  object-fit: contain;
  filter: drop-shadow(0 6px 7px rgba(79, 52, 34, 0.12));
}

.me-city-journey .journey-ava {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -1px;
  width: 82px;
  height: 82px;
  transform: translateX(-50%);
}

.journey-label {
  margin: 8px 2px 0;
  color: #8a7b6d;
  font-size: 11.5px;
  text-align: center;
}

.journey-label b {
  color: #473c32;
}

.me-hero .spoken-count {
  margin-top: 14px;
}

.me-hero-stats i,
.me-hero-stats svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #9c8066;
  stroke-width: 2;
}

.asset-grid button {
  position: relative;
  padding: 16px 14px 14px;
}

.asset-grid button > svg {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  color: #9b8877;
  stroke-width: 1.8;
}

@media (max-height: 730px) {
  .lobby-diorama {
    height: 124px;
  }

  .lobby-landmark {
    width: 112px;
    height: 112px;
  }

  .lobby-avatar {
    width: 96px;
    height: 96px;
  }
}
