.tasks-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 25px var(--app-gutter) 140px;
}

.tasks-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
}

.tasks-heading {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tasks-card--row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tasks-card__main {
  flex: 1 1 auto;
  min-width: 0;
}

.tasks-card__main .tasks-card__desc {
  margin-bottom: 0;
}

.tasks-card__side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.tasks-card__prize,
.tasks-card__done {
  font-size: 12px;
  font-weight: 700;
  color: #ffbf32;
  text-align: center;
  white-space: nowrap;
}

.tasks-card__done {
  color: #ffffff80;
}

.tasks-btn {
  appearance: none;
  border: none;
  border-radius: 100px;
  padding: 9px 14px;
  background: #ffbf32;
  color: #141414;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.tasks-btn:disabled {
  opacity: 0.5;
}

.tasks-btn--ghost {
  background: #ffffff14;
  color: #fff;
}

.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,
.screen-game.is-tasks {
  background: #141414;
}

.app-scroll.is-tasks .balance-card {
  display: none;
}
