.quest-home-v2 {
  min-height: 100vh;
  padding: 18px clamp(16px, 3vw, 34px) 36px;
  opacity: 1;
  animation: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #f6ffe9 0%, #e8f8dc 48%, #dff7f8 100%);
  color: #203225;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans", Arial, sans-serif;
}

.quest-home-v2.page.active {
  display: block;
  opacity: 1;
  animation: none;
}

#app:has(.quest-home-v2) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.quest-home-v2)::before,
body:has(.quest-home-v2)::after {
  display: none;
}

body:has(.quest-home-v2) #fx-canvas,
body:has(.quest-home-v2) #combo-layer,
body:has(.quest-home-v2) #flash-overlay,
body:has(.quest-home-v2) #crack-overlay,
body:has(.quest-home-v2) #slowmo-overlay {
  display: none !important;
}

.quest-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.quest-topbar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(340px, auto) minmax(360px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px 18px;
  border: 2px solid rgba(86, 200, 0, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(69, 154, 34, 0.16), inset 0 -5px 0 rgba(72, 190, 0, 0.08);
}

.quest-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quest-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  font-size: 25px;
  font-weight: 1000;
  background: linear-gradient(180deg, #6ee000, #31bd00);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14);
}

.quest-brand strong,
.quest-hero-title,
.free-school-title,
.quest-section-title {
  letter-spacing: 0;
}

.quest-brand strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  font-weight: 1000;
  color: #1e3323;
}

.quest-brand span {
  display: block;
  margin-top: 4px;
  color: #38c000;
  font-size: 13px;
  font-weight: 900;
}

.quest-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.quest-tabs button,
.quest-pill {
  border: 2px solid #d6eec8;
  border-radius: 999px;
  background: #fff;
  color: #47644d;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.quest-tabs button {
  min-width: 94px;
  min-height: 42px;
  padding: 0 18px;
}

.quest-tabs button.active {
  border-color: #56c800;
  background: #56d900;
  color: #fff;
}

.quest-stats {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.quest-pill {
  min-width: 88px;
  padding: 8px 14px 10px;
}

.quest-pill span {
  display: block;
  color: #6c806e;
  font-size: 12px;
  line-height: 1.05;
}

.quest-pill strong {
  display: block;
  color: #203225;
  font-size: 20px;
  line-height: 1.1;
}

.quest-account-btn {
  min-width: 132px;
  min-height: 50px;
  padding: 7px 14px 9px;
  border: 2px solid #56c800;
  border-radius: 18px;
  background: #f4ffe9;
  color: #203225;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 -3px 0 rgba(49, 189, 0, 0.12);
}

.quest-account-btn span {
  display: block;
  color: #38a600;
  font-size: 12px;
  line-height: 1.05;
}

.quest-account-btn strong {
  display: block;
  max-width: 112px;
  overflow: hidden;
  color: #203225;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 18px;
  margin-top: 16px;
}

.quest-card {
  border: 2px solid rgba(106, 203, 19, 0.28);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(68, 145, 33, 0.14), inset 0 -7px 0 rgba(74, 194, 0, 0.07);
}

.quest-route-card {
  position: relative;
  overflow: hidden;
  min-height: 408px;
  padding: 24px 28px 22px;
}

.quest-route-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12%;
  height: 160px;
  background: linear-gradient(180deg, rgba(152, 226, 84, 0), rgba(132, 217, 62, 0.42));
  border-radius: 50% 50% 0 0;
}

.quest-hero-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  z-index: 1;
}

.quest-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #42c700;
  font-weight: 1000;
  font-size: 14px;
}

.quest-hero-title {
  margin: 5px 0 8px;
  color: #223426;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.04;
  font-weight: 1000;
}

.quest-subtitle {
  margin: 0;
  max-width: 620px;
  color: #58705e;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 800;
}

.quest-primary-btn {
  min-width: 174px;
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #58e400, #39c800);
  color: #fff;
  font-size: 20px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 8px 0 #229400, 0 14px 22px rgba(47, 166, 0, 0.28);
}

.quest-primary-btn:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #229400;
}

.quest-hero-actions {
  display: grid;
  gap: 10px;
  min-width: 174px;
}

.quest-radar-btn {
  min-height: 44px;
  border: 2px solid rgba(34, 52, 38, 0.14);
  border-radius: 14px;
  background: #fffdf4;
  color: #223426;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
}

.quest-radar-btn[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

.quest-path {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 30px;
  padding: 34px 10px 14px;
}

.quest-path::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 86px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #78dd33, #a6e86f 68%, #dfe8da 68%, #dfe8da);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.38);
}

.quest-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.quest-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(78px, 8vw, 108px);
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #66e800, #2fc200);
  color: #fff;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 1000;
  box-shadow: 0 8px 0 rgba(35, 120, 21, 0.28), 0 0 0 6px rgba(95, 220, 0, 0.22);
}

.quest-node.current .quest-orb {
  background: linear-gradient(180deg, #37baff, #1997ed);
  box-shadow: 0 8px 0 rgba(0, 87, 166, 0.25), 0 0 0 9px rgba(41, 172, 255, 0.25);
}

.quest-node.locked .quest-orb {
  background: linear-gradient(180deg, #f7f8f4, #dfe5dc);
  color: #9ca99e;
  box-shadow: 0 8px 0 rgba(127, 139, 128, 0.22);
}

.quest-node:disabled,
.quest-task:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.quest-node.boss .quest-orb {
  background: linear-gradient(180deg, #ff8c2d, #ff4737);
  box-shadow: 0 8px 0 rgba(180, 54, 24, 0.3), 0 0 0 10px rgba(255, 88, 49, 0.18);
}

.quest-check {
  position: absolute;
  right: -5px;
  top: -7px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #58d900;
  color: #fff;
  font-size: 17px;
}

.quest-node-label {
  max-width: 128px;
  color: #314338;
  text-align: center;
  font-weight: 1000;
  font-size: 15px;
  line-height: 1.18;
}

.quest-node-label span {
  display: block;
  margin-top: 4px;
  color: #63b516;
  font-size: 12px;
}

.quest-progress-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.quest-progress-badge {
  min-width: 178px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  color: #39c800;
  font-size: 22px;
  font-weight: 1000;
  text-align: center;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.quest-mistake-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid rgba(255, 108, 49, 0.28);
  border-radius: 18px;
  background: #fff2dd;
  color: #b84913;
  font-weight: 1000;
}

.quest-side {
  display: grid;
  gap: 14px;
}

.quest-panel {
  padding: 18px;
}

.quest-section-title {
  margin: 0 0 12px;
  color: #213427;
  font-size: 23px;
  font-weight: 1000;
}

.quest-task-list {
  display: grid;
  gap: 10px;
}

.quest-task {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 2px solid #e4f0de;
  border-radius: 17px;
  background: #fff;
  color: #263a2a;
  cursor: pointer;
}

.quest-task-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #ecf8e8;
  color: #44c800;
  font-weight: 1000;
}

.quest-task strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.quest-task span {
  display: block;
  margin-top: 3px;
  color: #708173;
  font-size: 12px;
  font-weight: 800;
}

.quest-task-state {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef2ec;
  color: #718071;
  font-size: 12px;
  font-weight: 1000;
}

.quest-task.done .quest-task-state {
  background: #55d600;
  color: #fff;
}

.quest-task.locked {
  background: #f8faf6;
  color: #7b887c;
}

.quest-task.locked .quest-task-num {
  background: #eef2ec;
  color: #9aa69a;
}

.quest-boss-card {
  overflow: hidden;
  padding: 0;
  border-color: rgba(255, 91, 54, 0.36);
  background: linear-gradient(180deg, #fff, #fff7eb);
}

.quest-boss-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.quest-boss-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 7px solid #ffe596;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff9233, #ff3f35);
  color: #fff;
  font-weight: 1000;
  font-size: 28px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}

.quest-boss-head h3 {
  margin: 0 0 5px;
  color: #ff4b35;
  font-size: 25px;
  font-weight: 1000;
}

.quest-boss-head p {
  margin: 0;
  color: #6c756a;
  font-weight: 900;
  line-height: 1.45;
}

.quest-boss-meter {
  margin: 0 18px 18px;
  height: 14px;
  border-radius: 999px;
  background: #dfe5dc;
  overflow: hidden;
}

.quest-boss-meter div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd944, #ff6b35);
}

.free-school {
  margin-top: 16px;
  padding: 16px 18px 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, #073b4c, #052b3f);
  box-shadow: 0 18px 38px rgba(11, 67, 91, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.free-school-title {
  margin: 0 0 12px;
  color: #ffe07b;
  font-size: 22px;
  font-weight: 1000;
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.free-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 84px;
  border: 0;
  border-radius: 19px;
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.18), inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.free-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
  font-size: 24px;
}

.free-card span {
  font-size: 19px;
}

.free-vocab { background: linear-gradient(180deg, #8bd15b, #55b83f); }
.free-reading { background: linear-gradient(180deg, #ffbb45, #f3981e); }
.free-listening { background: linear-gradient(180deg, #51b8ff, #2c8fe2); }
.free-writing { background: linear-gradient(180deg, #9867f0, #734fd6); }
.free-speaking { background: linear-gradient(180deg, #ff6a6f, #e34b51); }
.free-mock { background: linear-gradient(180deg, #58d4d2, #24aeb2); }

@media (max-width: 980px) {
  .quest-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quest-tabs,
  .quest-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .quest-grid {
    grid-template-columns: 1fr;
  }
  .quest-route-card {
    min-height: auto;
  }
  .free-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .quest-home-v2 {
    padding: 8px 8px 22px;
  }
  .quest-shell {
    width: 100%;
  }
  .quest-topbar,
  .quest-card,
  .free-school {
    border-radius: 20px;
  }
  .quest-topbar {
    padding: 12px;
  }
  .quest-logo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 23px;
  }
  .quest-brand strong {
    font-size: 22px;
  }
  .quest-brand span {
    font-size: 12px;
  }
  .quest-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .quest-tabs button {
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
    font-size: 14px;
    white-space: nowrap;
  }
  .quest-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .quest-pill {
    min-width: 0;
    padding: 7px 8px 8px;
  }
  .quest-account-btn {
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 46px;
    text-align: center;
  }
  .quest-account-btn strong {
    max-width: none;
  }
  .quest-pill span {
    font-size: 11px;
  }
  .quest-pill strong {
    font-size: 18px;
  }
  .quest-grid {
    gap: 12px;
    margin-top: 12px;
  }
  .quest-route-card {
    padding: 20px 18px 18px;
  }
  .quest-hero-title {
    font-size: 34px;
    line-height: 1.08;
  }
  .quest-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }
  .quest-hero-row,
  .quest-progress-row {
    flex-direction: column;
    align-items: stretch;
  }
  .quest-primary-btn,
  .quest-hero-actions,
  .quest-progress-badge {
    width: 100%;
  }
  .quest-path {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
    padding: 8px 0 4px;
  }
  .quest-path::before {
    left: 53px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 18px;
    height: auto;
  }
  .quest-node {
    grid-template-columns: 92px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
  }
  .quest-orb {
    width: 78px;
    border-width: 7px;
  }
  .quest-node-label {
    max-width: none;
    text-align: left;
  }
  .quest-task {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .quest-task-state {
    grid-column: 1 / -1;
    text-align: center;
  }
  .free-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .free-school-title {
    font-size: 18px;
    line-height: 1.3;
  }
  .free-card {
    min-height: 74px;
  }
  .free-card span {
    font-size: 16px;
  }
}
