.tasks-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.tasks-screen {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 0 0 24px;
}

.tasks-heading {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tasks-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 14px;
  background: #ffffff0a;
  border: 1px solid #ffffff10;
}

.tasks-tab {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  border-radius: 10px;
  padding: 10px 6px;
  background: transparent;
  color: #ffffff80;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tasks-tab.is-active {
  background: #ffffff14;
  color: #fff;
}

.tasks-panel[hidden] {
  display: none !important;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tasks-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff0c, #ffffff05);
  border: 1px solid #ffffff12;
}

.tasks-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.tasks-card__desc {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff80;
  line-height: 1.45;
}

.tasks-card__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffffb3;
}

.tasks-card__bar {
  height: 8px;
  border-radius: 999px;
  background: #ffffff12;
  overflow: hidden;
}

.tasks-card__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8cff, #7c5cff);
  transition: width 0.35s ease;
}

.tasks-card__reward {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ffffff10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff99;
}

.tasks-card__reward-val {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.tasks-placeholder {
  padding: 28px 18px;
  border-radius: 18px;
  text-align: center;
  background: #ffffff06;
  border: 1px dashed #ffffff18;
}

.tasks-placeholder__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.tasks-placeholder__text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff70;
}

.app-scroll.is-tasks {
  background: radial-gradient(120% 90% at 50% 0%, #1a2230, #0b0d12 100%);
}

.app-scroll.is-tasks .balance-card {
  display: none;
}
