:root {
  color-scheme: light;
  --ink: #17151f;
  --muted: #6e6877;
  --soft: #f6f2ff;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(31, 26, 45, 0.1);
  --hot: #ff4f86;
  --acid: #c8ff43;
  --aqua: #4ad8ff;
  --violet: #8f6bff;
  --sun: #ffba3a;
  --green: #36cf87;
  --shadow: 0 20px 44px rgba(39, 29, 62, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 79, 134, 0.26), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(74, 216, 255, 0.24), transparent 32%),
    linear-gradient(160deg, #fff7fb 0%, #f2f5ff 46%, #f7ffe7 100%);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
textarea {
  font: inherit;
}

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

button:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(74, 216, 255, 0.55);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.app-shell {
  position: relative;
  width: min(100%, 440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 260px;
  overflow-x: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(23, 21, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 31, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.hero-card,
.quest-card,
.quick-card,
.module-panel,
.review-card,
.bottom-dock {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  min-height: 260px;
  padding: 14px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 21, 31, 0.96), rgba(46, 36, 88, 0.88)),
    radial-gradient(circle at 84% 12%, rgba(200, 255, 67, 0.42), transparent 29%);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-card::before {
  right: -54px;
  top: 76px;
  width: 196px;
  height: 196px;
  border: 28px solid rgba(200, 255, 67, 0.2);
  border-radius: 50%;
}

.hero-card::after {
  left: -24px;
  bottom: -18px;
  width: 128px;
  height: 80px;
  border-radius: 999px;
  background: rgba(255, 79, 134, 0.32);
  transform: rotate(-12deg);
}

.hero-nav,
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.micro {
  margin-bottom: 7px;
  color: rgba(23, 21, 31, 0.55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-card .micro {
  color: rgba(255, 255, 255, 0.62);
}

h1 {
  max-width: 270px;
  margin-bottom: 0;
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.round-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bell-icon {
  position: relative;
  width: 17px;
  height: 18px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 4px 4px;
}

.bell-icon::before,
.bell-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.bell-icon::before {
  bottom: -3px;
  width: 21px;
  height: 2px;
}

.bell-icon::after {
  bottom: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 20px;
}

.avatar-orbit {
  position: relative;
  width: 100px;
  height: 112px;
}

.avatar-face {
  position: absolute;
  left: 9px;
  bottom: 0;
  width: 82px;
  height: 96px;
  border: 4px solid #17151f;
  border-radius: 32px 32px 24px 24px;
  background:
    radial-gradient(circle at 34% 44%, #17151f 0 3px, transparent 4px),
    radial-gradient(circle at 66% 44%, #17151f 0 3px, transparent 4px),
    linear-gradient(#ffd8e7 0 62%, #fff 62% 100%);
  box-shadow: 9px 9px 0 var(--acid);
}

.avatar-face::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 51px;
  width: 32px;
  height: 14px;
  border-bottom: 4px solid #17151f;
  border-radius: 0 0 999px 999px;
}

.avatar-face::after {
  content: "";
  position: absolute;
  left: 14px;
  top: -15px;
  width: 54px;
  height: 28px;
  border-radius: 999px 999px 8px 8px;
  background: #17151f;
  transform: rotate(-6deg);
}

.avatar-orbit i,
.avatar-orbit b {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.avatar-orbit i {
  right: 2px;
  top: 4px;
  width: 36px;
  height: 36px;
  background: var(--aqua);
  box-shadow: inset -8px -8px 0 rgba(23, 21, 31, 0.16);
}

.avatar-orbit b {
  left: 0;
  top: 28px;
  width: 20px;
  height: 20px;
  background: var(--hot);
}

.level-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.tag {
  margin-bottom: 12px;
  background: var(--acid);
  color: #17151f;
}

.level-card strong {
  display: block;
  font-size: 32px;
  line-height: 0.95;
}

.level-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.hero-metrics div {
  min-height: 60px;
  padding: 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.hero-metrics strong {
  font-size: 19px;
}

.sister-task,
.quick-grid,
.module-panel,
.review-card,
.profile-card {
  margin-top: 16px;
}

.section-title {
  margin-bottom: 12px;
}

.section-title.compact {
  align-items: center;
}

.ghost-button,
.pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.ghost-button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.pill {
  background: #17151f;
  color: #fff;
}

.quest-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 108px;
  padding: 14px;
  overflow: hidden;
  border-radius: 24px;
}

.quest-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 106px;
  height: 106px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 79, 134, 0.16), rgba(74, 216, 255, 0.2));
  transform: rotate(18deg);
}

.quest-check {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
}

.quest-check input {
  position: absolute;
  opacity: 0;
}

.quest-check span {
  display: block;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(23, 21, 31, 0.18);
  border-radius: 14px;
  background: #fff;
}

.quest-check input:checked + span {
  border-color: #17151f;
  background: var(--acid);
  box-shadow: 4px 4px 0 #17151f;
}

.quest-check input:checked + span::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  width: 8px;
  height: 15px;
  border: solid #17151f;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.quest-copy {
  position: relative;
  z-index: 1;
}

.quest-copy .tag {
  margin-bottom: 8px;
  background: #17151f;
  color: #fff;
}

.quest-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.quick-card {
  display: grid;
  min-height: 94px;
  padding: 12px;
  border-radius: 22px;
  color: var(--ink);
  text-align: left;
}

.quick-card.active {
  border-color: #17151f;
  background: #17151f;
  color: #fff;
  box-shadow: 7px 7px 0 var(--acid);
}

.quick-card b {
  margin-top: 9px;
  font-size: 16px;
  line-height: 1.1;
}

.quick-card small {
  margin-top: 6px;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.62;
}

.card-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--aqua);
}

.money-icon {
  background: var(--acid);
}

.habit-icon {
  background: var(--hot);
}

.mood-icon {
  background: var(--violet);
}

.career-icon {
  background: var(--sun);
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  background: #17151f;
}

.money-icon::before {
  left: 10px;
  top: 12px;
  width: 18px;
  height: 14px;
  border-radius: 50%;
}

.money-icon::after {
  left: 17px;
  top: 8px;
  width: 4px;
  height: 23px;
  border-radius: 999px;
}

.habit-icon::before {
  left: 10px;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.habit-icon::after {
  left: 18px;
  top: 16px;
  width: 13px;
  height: 4px;
  border-radius: 999px;
  transform: rotate(-38deg);
}

.mood-icon::before,
.mood-icon::after {
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mood-icon::before {
  left: 11px;
}

.mood-icon::after {
  right: 11px;
  box-shadow: -7px 11px 0 -1px #17151f;
}

.career-icon::before {
  left: 10px;
  top: 10px;
  width: 18px;
  height: 20px;
  border-radius: 5px;
}

.career-icon::after {
  left: 14px;
  top: 6px;
  width: 10px;
  height: 8px;
  border: 3px solid #17151f;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: transparent;
}

.module-panel {
  display: none;
  padding: 16px;
  border-radius: 24px;
}

.module-panel.active {
  display: block;
}

.money-layout {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 13px;
  align-items: stretch;
}

.coin-stack {
  position: relative;
  min-height: 150px;
  padding: 14px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.7), transparent 16%),
    linear-gradient(145deg, var(--acid), #eaff9d);
  color: #17151f;
}

.coin-stack::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  border: 16px solid rgba(23, 21, 31, 0.12);
  border-radius: 50%;
}

.coin-stack span,
.coin-stack p {
  position: relative;
  z-index: 1;
  color: rgba(23, 21, 31, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.coin-stack strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 22px 0 10px;
  font-size: 34px;
  line-height: 1;
}

.coin-stack p {
  margin-bottom: 0;
  line-height: 1.35;
}

.budget-list {
  display: grid;
  gap: 13px;
  align-content: center;
}

.budget-line {
  display: grid;
  grid-template-columns: 42px 1fr 46px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
}

.budget-line span {
  color: var(--muted);
}

.budget-line div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 21, 31, 0.08);
}

.budget-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hot), var(--sun));
}

.budget-line b {
  text-align: right;
}

.primary-action {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 18px;
  background: #17151f;
  color: #fff;
  font-weight: 950;
  box-shadow: 6px 6px 0 var(--aqua);
}

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

.habit-grid label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.habit-grid input {
  width: 17px;
  height: 17px;
  accent-color: var(--hot);
}

.mood-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mood-row button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.mood-row .selected {
  border-color: #17151f;
  background: var(--aqua);
  color: #17151f;
  box-shadow: 4px 4px 0 #17151f;
}

.reflection-box {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.reflection-box textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}

.trend-bars {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 94px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(143, 107, 255, 0.12);
}

.trend-bars i {
  flex: 1;
  min-height: 18px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, var(--violet), var(--hot));
}

.career-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-list li {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.career-list span {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 9px;
  background: var(--acid);
}

.career-list span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 11px;
  border: solid #17151f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.review-card {
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 94% 12%, rgba(255, 186, 58, 0.28), transparent 28%);
}

.review-card p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.profile-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(23, 21, 31, 0.96), rgba(59, 44, 108, 0.88)),
    radial-gradient(circle at 90% 8%, rgba(200, 255, 67, 0.22), transparent 32%);
  color: #fff;
  box-shadow: var(--shadow);
}

.profile-card .micro {
  color: rgba(255, 255, 255, 0.62);
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.profile-stats span {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 5;
  display: grid;
  width: min(calc(100% - 28px), 412px);
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 28px;
  transform: translateX(-50%);
}

.bottom-dock button {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.bottom-dock button.active {
  background: #17151f;
}

.bottom-dock span {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--muted);
  border-radius: 9px;
}

.bottom-dock button.active span {
  border-color: var(--acid);
}

.bottom-dock button:nth-child(2) span {
  border-radius: 50%;
}

.bottom-dock button:nth-child(3) span {
  border-radius: 4px;
  transform: rotate(45deg);
}

.bottom-dock button:nth-child(4) span {
  width: 24px;
  border-radius: 50% 50% 10px 10px;
}

@media (max-width: 380px) {
  .app-shell {
    padding-inline: 10px;
  }

  h1 {
    font-size: 31px;
  }

  .hero-content,
  .money-layout {
    grid-template-columns: 1fr;
  }

  .avatar-orbit {
    height: 118px;
  }

  .level-card {
    margin-top: -8px;
  }
}
