:root {
  --paper: #f7f1e3;
  --paper-strong: #fffaf0;
  --ink: #142d31;
  --ink-soft: #31535a;
  --jade: #0c4b43;
  --jade-2: #163f3a;
  --gold: #bd8430;
  --gold-bright: #e7bd62;
  --mist: #dce7e4;
  --clay: #a85d3a;
  --line: rgba(31, 61, 57, 0.16);
  --shadow: 0 24px 70px rgba(18, 35, 34, 0.22);
  --inner-shadow: inset 0 0 0 1px rgba(189, 132, 48, 0.24);
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 189, 98, 0.26), transparent 26rem),
    linear-gradient(135deg, #123b39 0%, #1c4f4b 42%, #8a6732 100%);
}

button,
select,
textarea,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(231, 189, 98, 0.72);
  outline-offset: 3px;
}

.preview-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 12px;
}

.phone {
  width: 390px;
  max-width: 100%;
  height: 844px;
  position: relative;
  overflow: hidden;
  border: 10px solid #090f10;
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(189, 132, 48, 0.08) 0 1px, transparent 1px 30px),
    linear-gradient(rgba(189, 132, 48, 0.06) 0 1px, transparent 1px 30px),
    radial-gradient(circle at 50% -10%, rgba(231, 189, 98, 0.34), transparent 18rem),
    var(--paper);
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 11%, rgba(255, 255, 255, 0.58), transparent 8rem),
    radial-gradient(circle at 86% 18%, rgba(12, 75, 67, 0.08), transparent 9rem),
    linear-gradient(180deg, transparent 0%, rgba(255, 250, 240, 0.64) 53%, rgba(255, 250, 240, 0.92) 100%);
  z-index: 0;
}

.status-bar {
  position: relative;
  z-index: 2;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #050b0c;
  font-size: 16px;
  font-weight: 700;
}

body.auth-mode .phone > .status-bar {
  display: none;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal {
  width: 22px;
  height: 14px;
  display: inline-block;
  background:
    linear-gradient(to top, #050b0c 0 6px, transparent 6px) 0 8px / 4px 14px no-repeat,
    linear-gradient(to top, #050b0c 0 9px, transparent 9px) 6px 5px / 4px 14px no-repeat,
    linear-gradient(to top, #050b0c 0 12px, transparent 12px) 12px 2px / 4px 14px no-repeat,
    linear-gradient(to top, #050b0c 0 14px, transparent 14px) 18px 0 / 4px 14px no-repeat;
}

.wifi {
  width: 18px;
  height: 14px;
  position: relative;
  display: inline-block;
  border: 3px solid #050b0c;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.wifi::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 3px;
  bottom: -2px;
  background: #050b0c;
  border-radius: 50%;
}

.battery {
  width: 25px;
  height: 12px;
  border: 2px solid #050b0c;
  border-radius: 4px;
  position: relative;
  display: inline-block;
}

.battery::before {
  content: "";
  position: absolute;
  inset: 2px 4px 2px 2px;
  background: #050b0c;
  border-radius: 2px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 3px;
  width: 3px;
  height: 5px;
  background: #050b0c;
  border-radius: 0 2px 2px 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  height: calc(100% - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.auth-mode .app-shell {
  height: 100%;
}

body.auth-mode .app-header {
  display: none;
}

.app-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 0 16px 8px;
  gap: 8px;
}

.app-header h1 {
  margin: 0;
  text-align: center;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--jade);
}

.eyebrow {
  margin: 0 0 3px;
  text-align: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--jade);
  background: rgba(255, 250, 240, 0.7);
  box-shadow: var(--inner-shadow);
}

.icon-btn svg,
.small-btn svg,
.secondary-btn svg,
.tiny-icon svg,
.finish-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn.ghost {
  background: rgba(255, 250, 240, 0.44);
}

.screen {
  display: none;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 18px;
  scrollbar-width: none;
}

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

.screen.active {
  display: block;
}

.auth-screen {
  padding: 0;
  overflow-y: auto;
}

.cover-auth {
  position: relative;
  min-height: 100%;
  height: auto;
  overflow: visible;
  background: #f6eedc;
}

.cover-auth > img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: contain;
  object-position: top center;
}

.cover-auth-form {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.brand-gate {
  padding: 20px 18px 18px;
  border: 1px solid rgba(189, 132, 48, 0.24);
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 189, 98, 0.24), transparent 9rem),
    rgba(255, 250, 240, 0.78);
  box-shadow: 0 14px 34px rgba(31, 61, 57, 0.1);
}

.brand-castle {
  width: 76px;
  height: 76px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--inner-shadow);
}

.brand-castle svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-gate h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 27px;
  color: var(--jade);
}

.brand-gate p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.auth-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(12, 75, 67, 0.14);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 14px 34px rgba(31, 61, 57, 0.08);
}

.auth-card.cover-auth-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(220, 231, 228, 0.54);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.active {
  color: #fff8dd;
  background: linear-gradient(135deg, var(--jade), var(--jade-2));
  box-shadow: inset 0 0 0 1px rgba(231, 189, 98, 0.38);
}

.auth-field {
  display: block;
  margin-bottom: 12px;
}

.auth-field span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.auth-field input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(12, 75, 67, 0.16);
  border-radius: 14px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.auth-note {
  margin: 11px 0 0;
  color: rgba(49, 83, 90, 0.78);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.cover-auth-form .auth-tabs,
.cover-auth-form .auth-field,
.cover-auth-form .primary-btn {
  position: absolute;
  z-index: 1;
  pointer-events: auto;
}

.cover-auth-form::before {
  content: "";
  display: none;
  position: absolute;
  z-index: 0;
  left: 12.3%;
  right: 12.3%;
  top: 41.9%;
  height: 33.7%;
  border: 1px solid rgba(12, 75, 67, 0.16);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.985);
  box-shadow: 0 14px 34px rgba(31, 61, 57, 0.09);
}

body.register-mode .cover-auth-form::before {
  left: 12.3%;
  right: 12.3%;
  top: 41.9%;
  height: 34.6%;
}

.cover-auth-form .auth-tabs {
  z-index: 2;
  left: 60.2%;
  top: 42.85%;
  width: 27.8%;
  height: 4.5%;
  min-height: 36px;
  margin: 0;
  padding: 4px;
  gap: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.cover-auth-form .auth-tabs button {
  height: 100%;
  border-radius: 9px;
  color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.cover-auth-form .auth-tabs button.active {
  color: transparent;
  background: transparent;
  box-shadow: none;
}

.cover-auth-form .auth-field {
  left: 11.6%;
  width: 76.7%;
  margin: 0;
}

.cover-auth-form #nameWrap {
  top: 48.5%;
}

.cover-auth-form #phoneWrap {
  top: 51.1%;
}

.cover-auth-form #passwordWrap {
  top: 60.75%;
}

body.register-mode .cover-auth-form #nameWrap {
  top: 48.5%;
}

body.register-mode .cover-auth-form #phoneWrap {
  top: 55.1%;
}

body.register-mode .cover-auth-form #passwordWrap {
  top: 61.55%;
}

.cover-auth-form #emailWrap {
  display: none !important;
}

.cover-auth-form .auth-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cover-auth-form .auth-field input {
  width: 100%;
  height: clamp(40px, 10.8vw, 52px);
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 0 16px 0 17.8%;
  color: #071416;
  background: transparent;
  box-shadow: none;
  font-size: 17px;
  font-weight: 650;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.cover-auth-form .auth-field input::placeholder {
  color: transparent;
  font-weight: 500;
}

.cover-auth-form .auth-field input:focus {
  outline: 0;
  background: rgba(246, 240, 229, 0.46);
  box-shadow: none;
}

.cover-auth-form .auth-field input:not(:placeholder-shown) {
  background: rgba(246, 240, 229, 0.46);
  box-shadow: none;
}

.cover-auth-form .primary-btn {
  left: 11.6%;
  top: 67.35%;
  width: 76.7%;
  height: clamp(42px, 11vw, 56px);
  border: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

body.register-mode .cover-auth-form .primary-btn {
  top: 67.35%;
}

body.register-mode .cover-auth-form .auth-field input {
  border: 0;
  background: transparent;
}

body.register-mode .cover-auth-form .auth-field input::placeholder {
  color: transparent;
}

body.register-mode .cover-auth-form .auth-field input:focus,
body.register-mode .cover-auth-form .auth-field input:not(:placeholder-shown) {
  background: rgba(246, 240, 229, 0.46);
  box-shadow: none;
}

.cover-auth-form .auth-field input:-webkit-autofill,
.cover-auth-form .auth-field input:-webkit-autofill:hover,
.cover-auth-form .auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #071416;
  box-shadow: 0 0 0 1000px rgba(246, 240, 229, 0.46) inset;
  transition: background-color 9999s ease-out;
}

body.register-mode .cover-auth-form .primary-btn {
  border: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.cover-auth-form .auth-note {
  display: none;
}

body.register-mode .cover-auth-form .auth-note {
  display: none;
}

.journey-orbit {
  height: 128px;
  position: relative;
  margin: 2px 0 12px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 71% 25%, rgba(231, 189, 98, 0.36), transparent 5.8rem),
    linear-gradient(180deg, rgba(255, 250, 240, 0.28), rgba(255, 250, 240, 0.74));
  box-shadow: var(--inner-shadow);
}

.journey-orbit svg {
  position: absolute;
  inset: 13px 15px 0;
  width: calc(100% - 30px);
  height: 108px;
  overflow: visible;
}

.journey-orbit .route {
  fill: none;
  stroke: rgba(189, 132, 48, 0.68);
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

.journey-orbit circle {
  fill: var(--paper-strong);
  stroke: var(--gold);
  stroke-width: 2;
}

.castle-mark {
  position: absolute;
  right: 32px;
  top: 21px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.7);
  box-shadow: 0 12px 26px rgba(189, 132, 48, 0.16), var(--inner-shadow);
}

.castle-mark svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-copy {
  padding: 18px 18px 16px;
  border: 1px solid rgba(189, 132, 48, 0.25);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 0 14px 34px rgba(40, 64, 62, 0.08);
}

.intro-copy p {
  margin: 0 0 11px;
  color: #233c3e;
  font-size: 14px;
  line-height: 1.72;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

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

.ready-panel div {
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid rgba(12, 75, 67, 0.14);
  border-radius: 16px;
  background: rgba(220, 231, 228, 0.44);
}

.tiny-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.8);
}

.ready-panel p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.primary-btn,
.secondary-btn,
.small-btn,
.nav-btn,
.text-btn,
.record-btn {
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(103, 66, 22, 0.44);
  border-radius: 14px;
  color: #fff9e5;
  font-size: 18px;
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(135deg, #d6a145, #986217);
  box-shadow: 0 11px 24px rgba(122, 79, 25, 0.26), inset 0 0 0 2px rgba(255, 239, 184, 0.35);
}

.primary-btn.compact {
  min-height: 48px;
  font-size: 16px;
}

.progress-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #fff9e5;
  background:
    radial-gradient(circle at 10% 0%, rgba(231, 189, 98, 0.23), transparent 7rem),
    linear-gradient(135deg, var(--jade-2), #0d332f);
  box-shadow: 0 14px 34px rgba(12, 75, 67, 0.18);
}

.progress-kicker {
  margin: 0 0 3px;
  color: rgba(255, 249, 229, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.progress-panel h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

.progress-ring {
  width: 52px;
  height: 52px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.progress-ring svg {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 5;
}

.ring-track {
  stroke: rgba(255, 249, 229, 0.2);
}

.ring-fill {
  stroke: var(--gold-bright);
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 104;
}

.progress-ring span {
  color: #fff9e5;
  font-size: 12px;
  font-weight: 900;
}

.category-rail {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 1px 9px;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(12, 75, 67, 0.14);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.category-chip.active {
  color: #fff8dd;
  border-color: rgba(231, 189, 98, 0.72);
  background: linear-gradient(135deg, var(--jade), var(--jade-2));
}

.question-panel,
.voice-panel,
.answer-panel {
  padding: 14px;
  border: 1px solid rgba(189, 132, 48, 0.23);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.8);
  box-shadow: 0 14px 34px rgba(31, 61, 57, 0.09);
}

.question-panel {
  position: relative;
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
}

.question-panel::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 13px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(231, 189, 98, 0.12);
}

.question-meta,
.panel-title-row,
.playback-row,
.bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.question-meta {
  position: relative;
  margin-bottom: 12px;
}

.question-meta span:first-child,
.question-meta span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.question-meta span:first-child {
  color: var(--jade);
  background: rgba(12, 75, 67, 0.09);
}

.question-meta span:last-child {
  color: var(--gold);
  background: rgba(189, 132, 48, 0.1);
}

.question-meta span:last-child.saved {
  color: var(--jade);
  background: rgba(12, 75, 67, 0.1);
}

.question-text {
  position: relative;
  margin: 0;
  color: #172f33;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 750;
}

.voice-panel,
.answer-panel,
.question-nav-panel {
  margin-top: 10px;
}

.section-label {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.panel-title-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.small-btn {
  min-width: 78px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff9e5;
  background: var(--jade);
  font-size: 13px;
  font-weight: 800;
}

.small-btn svg {
  width: 17px;
  height: 17px;
}

.control-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  margin: 12px 0 9px;
}

.control-line label,
.textarea-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(12, 75, 67, 0.18);
  border-radius: 12px;
  padding: 0 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.secondary-btn {
  min-height: 42px;
  border: 1px solid rgba(12, 75, 67, 0.16);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--jade);
  background: rgba(220, 231, 228, 0.48);
  font-size: 13px;
  font-weight: 800;
}

.secondary-btn svg {
  width: 17px;
  height: 17px;
}

.secondary-btn.muted,
.secondary-btn.full {
  background: rgba(255, 250, 240, 0.7);
}

.secondary-btn.full {
  width: 100%;
  margin-top: 10px;
}

.hint {
  margin: 8px 0 0;
  color: rgba(49, 83, 90, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.timer {
  min-width: 54px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--clay);
  background: rgba(168, 93, 58, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.record-btn {
  width: 100%;
  height: 54px;
  margin: 12px 0 6px;
  border: 1px solid rgba(168, 93, 58, 0.24);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fffaf0;
  background: linear-gradient(135deg, #b9653c, #8c3d28);
  box-shadow: 0 12px 24px rgba(168, 93, 58, 0.2);
  font-size: 17px;
  font-weight: 900;
}

.record-btn.recording {
  background: linear-gradient(135deg, #d4483a, #8f241f);
}

.record-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 7px rgba(255, 250, 240, 0.18);
}

.record-btn.recording .record-icon {
  border-radius: 5px;
}

.playback-row {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.text-btn {
  border: 0;
  padding: 8px 0;
  color: var(--jade);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.text-btn.danger {
  color: var(--clay);
}

textarea {
  width: 100%;
  margin-top: 7px;
  resize: none;
  border: 1px solid rgba(12, 75, 67, 0.16);
  border-radius: 14px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

textarea::placeholder {
  color: rgba(49, 83, 90, 0.54);
}

.question-nav-panel {
  padding: 12px;
  border: 1px solid rgba(189, 132, 48, 0.22);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.7);
}

.question-nav-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.question-nav-copy strong {
  color: var(--jade);
  font-size: 14px;
  font-weight: 900;
}

.question-nav-copy span {
  color: rgba(49, 83, 90, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.question-map {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 5px;
}

.map-dot {
  height: 28px;
  border: 1px solid rgba(12, 75, 67, 0.15);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(220, 231, 228, 0.5);
  font-size: 11px;
  font-weight: 900;
}

.map-dot.active {
  color: #fff8dd;
  border-color: var(--gold-bright);
  background: var(--jade);
}

.map-dot.done {
  color: var(--jade);
  border-color: rgba(189, 132, 48, 0.38);
  background: rgba(231, 189, 98, 0.25);
}

.bottom-actions {
  position: sticky;
  bottom: -18px;
  margin: 12px -18px -18px;
  padding: 10px 18px 18px;
  background: linear-gradient(180deg, rgba(247, 241, 227, 0), rgba(247, 241, 227, 0.96) 28%);
}

.nav-btn {
  width: 108px;
  min-height: 48px;
  border: 1px solid rgba(12, 75, 67, 0.18);
  border-radius: 14px;
  color: var(--jade);
  background: rgba(255, 250, 240, 0.88);
  font-weight: 850;
}

.finish-screen {
  text-align: center;
  padding-top: 30px;
}

.finish-mark {
  width: 92px;
  height: 92px;
  margin: 8px auto 18px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(231, 189, 98, 0.18), transparent 67%),
    rgba(255, 250, 240, 0.82);
  box-shadow: var(--inner-shadow);
}

.finish-mark svg {
  width: 58px;
  height: 58px;
}

.finish-screen h2 {
  margin: 0;
  color: var(--jade);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 28px;
  line-height: 1.22;
}

.finish-copy {
  margin: 14px 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.68;
}

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

.generate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.result-panel {
  margin-top: 14px;
  border: 1px solid rgba(189, 132, 48, 0.24);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.82);
  text-align: left;
}

.result-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px;
  border-bottom: 1px solid rgba(12, 75, 67, 0.1);
}

.result-tabs button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(12, 75, 67, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 850;
}

.result-tabs button.active {
  color: #fff8dd;
  border-color: rgba(231, 189, 98, 0.5);
  background: var(--jade);
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px 0;
}

.result-actions .text-btn {
  min-height: 32px;
  border: 1px solid rgba(12, 75, 67, 0.14);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--jade);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 850;
}

.result-panel pre {
  min-height: 180px;
  max-height: 320px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  font-family: inherit;
}

.finish-stats div {
  min-height: 74px;
  padding: 10px 6px;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.8);
  border: 1px solid rgba(189, 132, 48, 0.2);
}

.finish-stats strong,
.finish-stats span {
  display: block;
}

.finish-stats strong {
  color: var(--gold);
  font-size: 26px;
  line-height: 1;
}

.finish-stats span {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translateX(-50%) translateY(18px);
  max-width: min(320px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff8dd;
  background: rgba(12, 46, 43, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 460px) {
  .preview-stage {
    padding: 0;
    display: block;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .journey-orbit .route {
    animation: routePulse 4.8s ease-in-out infinite;
  }

  .record-btn.recording .record-icon {
    animation: recordingPulse 1s ease-in-out infinite;
  }
}

@keyframes routePulse {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
  50% {
    stroke-dashoffset: -20;
    opacity: 1;
  }
}

@keyframes recordingPulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(255, 250, 240, 0.18);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(255, 250, 240, 0.08);
  }
}
