:root {
  color-scheme: dark;
  --bg: #030305;
  --card: #14121b;
  --text: #f8f7fc;
  --muted: #8e899e;
  --purple: #ae91ff;
  --line: #34303f;
  --green: #8bdf69;
  --red: #ff6c7b;
  --gold: #ffc864;
  --radius: 17px;
  --nav: 92px;
  font-family:
    MiSans,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #101015;
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  padding: 0;
}
button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}
p {
  margin: 8px 0;
  line-height: 1.65;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  line-height: 1.45;
}
h1 {
  font-size: 24px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
small,
.small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.purple {
  color: var(--purple);
}
.gold {
  color: var(--gold);
}
.green {
  color: var(--green);
}
.red {
  color: var(--red);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 12px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.center {
  text-align: center;
}
.mt {
  margin-top: 24px;
}
.mb {
  margin-bottom: 20px;
}
.wrap {
  flex-wrap: wrap;
}
.phone {
  position: relative;
  width: 390px;
  height: min(844px, calc(100dvh - 48px));
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid #292632;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 380px 250px at 38% -55px, #6543ba90, transparent 80%), var(--bg);
  box-shadow: 0 26px 80px #0008;
  display: flex;
  flex-direction: column;
}
.status {
  height: 45px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  font-size: 14px;
  font-weight: 650;
}
.status span:last-child {
  font-size: 12px;
  letter-spacing: 1px;
}
.header {
  min-height: 53px;
  padding: 5px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.header.sub h1 {
  font-size: 16px;
  text-align: center;
  flex: 1;
}
.icon-button {
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-content: center;
  font-size: 25px;
}
.header.sub > span {
  width: 32px;
}
.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 6px 16px 26px;
  scrollbar-width: none;
}
.content::-webkit-scrollbar {
  display: none;
}
.has-nav .content {
  padding-bottom: 106px;
}
.tabbar {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 15px;
  right: 15px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 63px;
  border: 1px solid #5f586c;
  border-radius: 36px;
  background: #17161cda;
  backdrop-filter: blur(22px);
  z-index: 10;
  box-shadow: 0 5px 25px #000;
}
.tabbar a {
  font-size: 10px;
  color: #89858f;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
}
.tabbar img,
.tabbar .nav-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.4;
}
.tabbar .nav-icon [fill-opacity] { fill-opacity: 1; }
.tabbar a[aria-current] {
  color: white;
  font-weight: 700;
}
.tabbar a[aria-current] img,
.tabbar a[aria-current] .nav-icon {
  opacity: 1;
  filter: brightness(0) invert(1);
}
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 33%;
  right: 33%;
  height: 4px;
  border-radius: 4px;
  background: white;
  z-index: 12;
  pointer-events: none;
}
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #aaa0de;
  border-radius: 18px;
  background: linear-gradient(125deg, #5018e9, #7954f3 55%, #b3a9ff);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.btn.secondary {
  background: linear-gradient(#161323, #08070c);
  border-color: #494252;
}
.btn.quiet {
  background: transparent;
  border-color: var(--line);
}
.btn.compact {
  min-height: 40px;
  width: auto;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
}
.text-button {
  color: var(--purple);
  min-height: 32px;
}
.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #201b31, #0a090e 80%);
}
.glass {
  border-color: #968ca7;
  background: linear-gradient(140deg, #29213f90, #08050f);
  box-shadow: inset 0 3px 14px #d5c6ff30;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #211e29;
  width: 100%;
  text-align: left;
}
.list-row .thumb {
  width: 92px;
  height: 78px;
  object-fit: cover;
  border-radius: 9px;
  flex-shrink: 0;
}
.chevron {
  font-size: 22px;
  color: #aca5b8;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px;
}
.section-title small {
  color: var(--purple);
}
.chip {
  font-size: 11px;
  color: var(--purple);
  background: #34214c66;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
}
.hero-title {
  font-size: 25px;
  margin: 12px 0 18px;
  line-height: 1.4;
}
.carousel {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-right: -16px;
  padding-right: 16px;
  scrollbar-width: none;
}
.carousel .card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  padding: 12px;
}
.hero-img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  border-radius: 14px;
}
.carousel h3 {
  font-size: 16px;
  margin: 8px 0;
}
.dots {
  text-align: center;
  letter-spacing: 6px;
  color: #45414d;
  margin: 8px 0;
}
.dots .active {
  color: white;
}
.rank-banner {
  padding: 10px 8px 10px 0;
  gap: 6px;
  min-height: 100px;
}
.rank-banner img {
  width: 90px;
  height: 86px;
  object-fit: contain;
}
.rank-number {
  font-size: 26px;
  font-weight: 700;
  color: #a88cff;
}
.field {
  display: flex;
  align-items: center;
  border: 1px solid #2d2737;
  border-radius: 13px;
  background: #101014;
  margin: 12px 0;
  overflow: hidden;
}
.field:focus-within {
  border-color: var(--purple);
}
input:not([type='checkbox']):not([type='radio']):not([type='file']),
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 15px 12px;
  background: transparent;
  color: white;
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 98px;
}
input::placeholder,
textarea::placeholder {
  color: #716b7c;
}
.field button {
  padding: 0 12px;
  white-space: nowrap;
  min-height: 46px;
}
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 18px 0;
}
.check input {
  accent-color: #9e72ff;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.error {
  font-size: 12px;
  color: var(--red);
  min-height: 18px;
}
.auth .content {
  padding: 18px 20px 32px;
}
.auth .btn {
  margin-top: 22px;
}
.brand {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin: 0 auto 18px;
}
.welcome {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome .brand-block {
  margin: 24px 0 70px;
}
.welcome h1 {
  font-size: 29px;
}
.auth {
  background: radial-gradient(ellipse at 80% 0, #34125760, transparent 42%), #09090c;
}
.welcome-phone {
  background: linear-gradient(180deg, #000 52%, #301669 82%, #6841c3);
}
.onboarding-img {
  width: 100%;
  height: 330px;
  object-fit: contain;
}
.guide-copy {
  margin: 35px 12px 50px;
}
.guide-copy h1 {
  font-size: 27px;
}
.vote-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.vote {
  min-height: 82px;
  font-size: 25px;
  font-weight: 700;
  border: 1px solid #5f556b;
  border-radius: 13px;
  background: linear-gradient(140deg, #120f1c, #171022);
  box-shadow: inset 0 1px 10px #c3a7fc15;
}
.vote.yes {
  color: var(--green);
}
.vote.no {
  color: var(--red);
}
.vote.selected {
  border-color: currentColor;
  box-shadow: inset 0 0 22px #9c73ff30;
}
.vote small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: white;
}
.event-card {
  box-shadow: inset 0 0 22px #b5a1ff70;
  background: linear-gradient(165deg, #251847, #0a0415 72%);
  padding: 12px;
}
.event-card h2 {
  font-size: 17px;
  line-height: 1.5;
  margin: 8px 0;
}
.event-card .summary {
  font-size: 12px;
  color: #a6a0b3;
  line-height: 1.55;
}
.event-card .disclaimer {
  font-size: 10px;
}
.analysis-entry {
  padding: 12px;
  gap: 8px;
}
.analysis-entry img {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  object-fit: cover;
}
.disclaimer {
  font-size: 11px;
  color: #726d7c;
  line-height: 1.55;
  margin: 12px 0;
}
.progress {
  height: 6px;
  background: #25222b;
  border-radius: 6px;
  overflow: hidden;
  margin: 14px 0 8px;
}
.progress > i {
  display: block;
  background: linear-gradient(90deg, #bca3ff, #8e18ff);
  height: 100%;
  border-radius: 6px;
}
.progress.gold-bar > i {
  background: linear-gradient(90deg, #ff9200, #ffe20e);
}
.result-bars .progress {
  height: 8px;
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 6px 0 18px;
  padding: 2px 0;
  scrollbar-width: none;
}
.filters button {
  white-space: nowrap;
  padding: 8px 13px;
  color: #9e95ad;
  border-radius: 9px;
  background: #19151f;
}
.filters .active {
  background: #543092;
  color: white;
}
.empty {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--muted);
  gap: 14px;
}
.empty .symbol {
  font-size: 52px;
  color: #7b758a;
}
.empty .btn {
  width: auto;
  min-width: 150px;
}
.robot {
  display: block;
  width: 240px;
  height: 230px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.prompt-card {
  display: block;
  background: #19181d;
  border-radius: 18px;
  padding: 13px;
  margin: 6px 0;
  text-align: left;
  width: 100%;
  font-size: 12px;
}
.composer {
  border: 1px solid #7d728d;
  border-radius: 17px;
  background: linear-gradient(150deg, #060509, #241143a0);
  padding: 0 10px 10px;
  margin-top: 10px;
}
.composer textarea {
  min-height: 60px;
  resize: none;
  padding: 14px 3px;
}
.send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #a986ee;
  color: #15082c;
  font-size: 21px;
}
.composer .row {
  font-size: 10px;
}
.chat-dock {
  flex-shrink: 0;
  padding: 0 16px 26px;
  background: #050406;
}
.chat-dock .composer {
  margin: 0;
}
.message {
  padding: 15px;
  border-radius: 16px;
  background: #17121e;
  margin: 14px 0;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.message.user {
  background: #4a277b;
  margin-left: 48px;
}
.message .actions {
  display: flex;
  gap: 22px;
  margin-top: 14px;
  color: #a49baa;
}
.suggestions button {
  border: 1px solid #41364c;
  border-radius: 20px;
  padding: 9px 14px;
  margin: 5px 0;
  text-align: left;
  font-size: 12px;
}
.steps {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  gap: 4px;
  margin: 22px 0;
}
.step-log {
  padding: 18px 0;
  border-bottom: 1px solid #3a2a4c;
}
.step-log:last-child {
  border: 0;
}
.step-log p {
  font-size: 12px;
  color: #aaa0ba;
}
.step-log .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #756191;
  display: grid;
  place-items: center;
}
.step-log.done .num {
  background: var(--green);
  color: #142e11;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.course {
  position: relative;
  text-align: left;
  padding: 10px;
  background: linear-gradient(#030304, #171719);
  border: 1px solid #303033;
  border-radius: 13px;
}
.course img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}
.course.locked h3,
.course.locked p {
  color: #7b7581;
}
.course .lock {
  position: absolute;
  top: 10px;
  left: 10px;
  border: 1px solid #3b3840;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 11px;
}
.course p {
  font-size: 11px;
}
.continue img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}
.lesson-row {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 12px;
  border: 1px solid #302c37;
  border-radius: 13px;
  background: linear-gradient(145deg, #201a2c, #09080c);
  margin: 8px 0;
}
.lesson-row .num {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #30293d;
  border-radius: 9px;
  color: var(--purple);
  flex-shrink: 0;
}
.lesson-row p {
  font-size: 11px;
  margin: 2px 0;
  color: var(--muted);
}
.reading h2 {
  margin: 25px 0 10px;
}
.reading p {
  font-size: 13px;
  color: #b1a9bd;
  line-height: 1.85;
}
.reading ul,
.reading ol {
  padding-left: 22px;
  color: #b1a9bd;
  line-height: 1.85;
  font-size: 13px;
}
.option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px;
  text-align: left;
  border: 1px solid #504859;
  border-radius: 12px;
  margin: 9px 0;
  line-height: 1.5;
}
.option.active {
  border-color: var(--purple);
  background: #36204d;
}
.option.correct {
  border-color: var(--green);
  background: #193320;
}
.option.wrong {
  border-color: var(--red);
  background: #381b29;
}
.option span:first-child {
  color: #a59bb3;
}
.feedback {
  font-size: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #222031;
  margin: 12px 0;
}
.quiz-actions {
  margin-top: 26px;
}
.profile {
  margin: 20px 0 32px;
}
.avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}
.xp-box {
  padding: 12px;
  border: 1px solid #b4a2bd;
  border-radius: 14px;
  background: linear-gradient(140deg, #53435970, #0a070f);
  text-align: left;
}
.xp-box strong {
  font-size: 27px;
  color: var(--gold);
}
.setting-row {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid #24202a;
  text-align: left;
}
.setting-row .muted {
  font-size: 12px;
}
.toggle {
  width: 44px;
  height: 25px;
  background: #423a4b;
  border-radius: 20px;
  padding: 3px;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #c8c3d2;
  transition: transform 0.2s;
}
.toggle[aria-checked='true'] {
  background: #8b55db;
}
.toggle[aria-checked='true']::after {
  transform: translateX(19px);
  background: white;
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 35px 0 22px;
}
.podium > div {
  width: 30%;
  text-align: center;
  background: linear-gradient(#6944a544, #14101c);
  border-radius: 18px 18px 0 0;
  padding: 15px 5px;
}
.podium > div:nth-child(2) {
  padding-top: 32px;
  border-top: 2px solid var(--gold);
}
.podium .avatar {
  width: 50px;
  height: 50px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 10px;
  border-bottom: 1px solid #26222e;
}
.rank-row strong {
  margin-left: auto;
  font-size: 13px;
}
.my-rank {
  border: 1px solid #655477;
  border-radius: 12px;
  background: #32213e;
}
.dialog {
  width: calc(100% - 32px);
  max-width: 358px;
  max-height: calc(100dvh - 100px);
  border: 1px solid #6c5c82;
  border-radius: 23px;
  background: linear-gradient(155deg, #302042, #0d0913 60%);
  color: white;
  padding: 22px;
  box-shadow: 0 20px 100px #0009;
  overflow-y: auto;
}
.dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.dialog h2 {
  font-size: 19px;
  padding-right: 28px;
  margin-bottom: 14px;
}
.dialog .close {
  position: absolute;
  right: 13px;
  top: 11px;
  font-size: 25px;
  width: 30px;
  height: 30px;
}
.dialog p {
  font-size: 12px;
  color: #b8acc7;
}
.dialog .btn {
  margin-top: 12px;
  font-size: 14px;
  min-height: 47px;
}
.dialog input[type='radio'] {
  accent-color: #ae85ff;
}
.radio-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #3a2d48;
}
.toast {
  position: absolute;
  inset: 30% auto auto 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  min-width: 88px;
  max-width: var(--toast-max-width, calc(100% - 48px));
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #bca3ff38;
  background: linear-gradient(135deg, #32273aed, #211c28f5);
  color: #f8f7fc;
  border-radius: 14px;
  box-shadow: 0 8px 28px #0005, inset 0 1px 0 #ffffff0a;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  overflow-wrap: anywhere;
  z-index: 100;
  pointer-events: none;
  animation: toast-feedback var(--toast-duration, 2400ms) ease both;
}
.toast[popover] {
  position: fixed;
  inset: var(--toast-y) auto auto var(--toast-x);
}
.toast::backdrop {
  background: transparent;
  pointer-events: none;
}
@keyframes toast-feedback {
  0%, 100% { opacity: 0; transform: translate(-50%, calc(-50% - 4px)); }
  8%, 90% { opacity: 1; transform: translate(-50%, -50%); }
}
.demo-tools {
  position: fixed;
  left: max(16px, calc(50% + 220px));
  top: 30px;
  color: #9990a7;
  font-size: 12px;
}
.demo-tools > button {
  border: 1px solid #45404e;
  border-radius: 9px;
  padding: 9px 12px;
  background: #1c1724;
}
.demo-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  max-width: 170px;
}
.demo-panel[hidden] {
  display: none;
}
.demo-panel a,
.demo-panel button {
  text-align: left;
  font-size: 12px;
  padding: 7px;
}
.phone.no-glow {
  background: #030305;
}
.loading-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.2;
  }
}
@media (max-width: 600px) {
  body {
    background: #030305;
  }
  .phone {
    margin: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .status {
    height: max(30px, env(safe-area-inset-top));
    padding-top: 4px;
  }
  .status span {
    font-size: 12px;
  }
  .home-indicator {
    bottom: 7px;
  }
  .demo-tools {
    position: absolute;
    left: auto;
    right: 9px;
    top: 2px;
    z-index: 30;
  }
  .demo-tools > button {
    font-size: 9px;
    padding: 3px 6px;
    opacity: 0.65;
  }
  .demo-panel {
    background: #16101fec;
    padding: 9px;
    border: 1px solid #50415f;
    border-radius: 10px;
  }
  .status span:last-child {
    visibility: hidden;
  }
  .course img {
    height: 145px;
  }
  .dialog {
    max-height: calc(100dvh - 65px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.carousel .mt {
  margin-top: 12px;
}
.carousel .hero-img {
  display: block;
}
.auth .header:empty {
  display: none;
}
.continue {
  display: block;
}
.event-card > .mt {
  margin-top: 12px;
}
.event-card > .summary {
  margin: 6px 0;
}
.event-card > .text-button {
  display: block;
  margin: 6px 0;
  min-height: 22px;
}
.event-card > .disclaimer {
  margin: 6px 0;
}
.event-card h2 {
  font-size: 16px;
}
.event-card .vote-buttons {
  margin-top: 18px;
}
.event-card .vote {
  min-height: 74px;
}
.brand {
  background: #130728;
}
.hero-img[src$='foldable.png'] {
  object-position: center 18%;
}
.has-nav .empty {
  min-height: 240px;
}
.card.row > .num {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #ffffff14;
  display: grid;
  place-items: center;
  font-size: 23px;
  flex-shrink: 0;
}
