@import url("../app-shell.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }
body {
  overflow: hidden;
  background: #000;
  color: var(--task-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.task-detail-phone { background: var(--task-page); }
.task-detail-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--task-page);
}
.task-detail-header {
  position: relative;
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}
.task-detail-header h1 { font-size: 15px; font-weight: 650; }
.task-detail-back {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #e8e8e8;
  text-decoration: none;
}
.task-detail-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.task-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 16px 28px;
  scrollbar-width: none;
}
.task-detail-scroll::-webkit-scrollbar { display: none; }

.task-detail-head { margin-bottom: 24px; }
.task-detail-meta { min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-detail-badges { display: flex; align-items: center; gap: 7px; }
.task-detail-qid { flex: 0 0 auto; color: #747474; font-size: 12px; }
.task-detail-title { margin-top: 13px; font-size: 21px; font-weight: 720; line-height: 1.35; letter-spacing: -.35px; }
.task-detail-lead { margin-top: 7px; color: #909090; font-size: 14px; line-height: 1.65; }

.extra-reward-banner {
  min-height: 70px;
  margin: -5px 0 22px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #6e5725;
  border-radius: 15px;
  background: linear-gradient(120deg, rgba(102, 77, 28, .54), rgba(29, 26, 19, .94) 58%, #181713);
}
.extra-reward-banner + .task-detail-head { margin-top: 0; }
.extra-reward-banner img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; object-fit: cover; }
.extra-reward-copy { min-width: 0; }
.extra-reward-copy small { display: block; color: #c5ae76; font-size: 10px; }
.extra-reward-copy strong { display: block; margin-top: 3px; color: #f6d98e; font-size: 16px; }
.extra-reward-copy span { display: block; margin-top: 3px; color: #8d8269; font-size: 11px; }

.detail-section + .detail-section { margin-top: 30px; }
.detail-section-head { min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.detail-section h2 { font-size: 16px; font-weight: 650; }
.detail-section-link { border: 0; background: transparent; color: #777; font-size: 12px; cursor: pointer; }
.detail-description { color: #929292; font-size: 13px; line-height: 1.7; }
.detail-description p + p { margin-top: 12px; }
.detail-description.is-collapsed { max-height: 116px; overflow: hidden; }
.detail-guide-image { width: 100%; height: 101px; margin-top: 14px; display: block; border-radius: 2px; object-fit: cover; }
.detail-collapse { margin: 8px 0 0 auto; display: block; border: 0; background: transparent; color: #747474; font-size: 11px; cursor: pointer; }

.pledge-card {
  padding: 15px 16px;
  border: 1px solid var(--task-line);
  border-radius: 13px;
  background: #191919;
}
.pledge-cycle { display: flex; align-items: baseline; gap: 7px; color: #c6c6c6; font-size: 13px; }
.pledge-cycle strong { color: var(--task-gold); font-size: 18px; }
.pledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #282828; }
.pledge-grid.has-pledge { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pledge-label { color: #777; font-size: 10px; line-height: 1.35; }
.pledge-value { margin-top: 8px; font-size: 15px; }

.simple-reward-card {
  min-height: 66px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--task-line);
  border-radius: 13px;
  background: #191919;
}
.simple-reward-card span { color: #ddd; font-size: 14px; }
.simple-reward-card strong { display: inline-flex; align-items: center; gap: 5px; font-size: 17px; }
.simple-reward-card strong img { width: 18px; height: 18px; display: block; object-fit: contain; }
.simple-reward-card small { margin-left: 4px; color: #777; font-size: 12px; font-weight: 500; }

.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.reward-tile { min-height: 70px; padding: 10px 12px; display: grid; place-items: center; align-content: center; border: 1px solid var(--task-line); border-radius: 12px; background: #191919; text-align: center; }
.reward-tile strong { font-size: 22px; line-height: 1; }
.reward-tile strong small { margin-left: 3px; color: #999; font-size: 11px; font-weight: 500; }
.reward-tile span { margin-top: 8px; color: #777; font-size: 11px; }

.progress-summary { color: #777; font-size: 11px; }
.progress-card { padding: 13px 16px 16px; border: 1px solid var(--task-line); border-radius: 13px; background: #191919; }
.progress-legend { display: flex; align-items: center; gap: 13px; color: #8c8c8c; font-size: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: #6a6a6a; }
.legend-dot.is-done { background: #62d65e; }
.legend-dot.is-failed { background: #e25055; }
.legend-dot.is-today { border: 1px solid #d5d5d5; background: transparent; }
.progress-days { display: flex; gap: 10px; margin-top: 14px; }
.progress-day { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(140, 34, 41, .22); color: #cf4d56; font-size: 13px; font-weight: 650; }
.progress-day.is-done { border: 1px solid #cc6b71; }
.received-row { min-height: 50px; margin-top: 14px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #2d2d2d; border-radius: 12px; background: #202020; color: #d9d9d9; font-size: 12px; }
.received-row + .received-row { margin-top: 8px; }
.received-row strong { font-weight: 500; }

.restricted-card {
  position: relative;
  min-height: 198px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid #282828;
  border-radius: 13px;
  background: #202020 center / cover no-repeat;
  text-align: center;
}
.restricted-card::after { content: ""; position: absolute; inset: 0; background: rgba(9, 9, 9, .16); }
.restricted-content { position: relative; z-index: 1; }
.restricted-lock { width: 18px; height: 18px; display: block; margin: 0 auto 8px; image-rendering: auto; }
.restricted-content strong { font-size: 15px; }
.restricted-content p { margin-top: 8px; color: #898989; font-size: 12px; line-height: 1.55; }
.restricted-support { min-width: 92px; height: 34px; margin-top: 14px; border: 1px solid #3d3d3d; border-radius: 999px; background: rgba(24, 24, 24, .42); color: #ddd; font-size: 12px; cursor: pointer; }

.instruction-list { display: grid; gap: 9px; padding-left: 18px; color: #929292; font-size: 13px; line-height: 1.65; }

.task-detail-footer {
  flex: 0 0 auto;
  padding: 10px 24px 17px;
  border-top: 1px solid #252525;
  background: rgba(29, 29, 29, .98);
}
.task-detail-action { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #6b6b6b; border-radius: 15px; background: #272727; color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; }
.task-detail-action img { width: 16px; height: 16px; display: block; opacity: .8; }
.task-detail-action:disabled { border-color: #444; color: #7b7b7b; cursor: default; }

.detail-sheet {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: rgba(0, 0, 0, .68);
}
.detail-sheet-card { position: relative; width: 100%; padding: 11px 16px 18px; border: 1px solid #303030; border-radius: 20px; background: #1a1a1a; box-shadow: 0 -18px 60px rgba(0,0,0,.45); }
.detail-sheet-grabber { width: 34px; height: 4px; margin: 0 auto 18px; border-radius: 999px; background: #555; }
.detail-sheet-card h2 { font-size: 18px; }
.detail-sheet-card > p { margin-top: 7px; color: #7f7f7f; font-size: 12px; line-height: 1.55; }
.detail-sheet-actions { display: grid; gap: 8px; margin-top: 16px; }
.detail-sheet-primary, .detail-sheet-secondary { height: 42px; border-radius: 13px; font-size: 14px; font-weight: 650; cursor: pointer; }
.detail-sheet-primary { border: 1px solid #777; background: #303030; color: #fff; }
.detail-sheet-secondary { border: 1px solid #353535; background: transparent; color: #919191; }
.credential-field { margin-top: 14px; padding: 15px; border: 1px dashed #484848; border-radius: 13px; color: #8e8e8e; font-size: 12px; text-align: center; }

.detail-sheet.is-confirm { align-items: center; padding: 27px; backdrop-filter: blur(2px); }
.detail-sheet.is-confirm .detail-sheet-card { padding: 25px 16px 28px; border-color: #444; border-radius: 23px; background: #252525; box-shadow: 0 22px 70px rgba(0, 0, 0, .62); }
.detail-sheet.is-confirm h2 { text-align: center; font-size: 18px; }
.pledge-confirm-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pledge-confirm-close img { width: 19px; height: 19px; display: block; }
.pledge-confirm-stats { min-height: 84px; margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; border: 1px solid #404040; border-radius: 13px; }
.pledge-confirm-stats > div { min-width: 0; display: grid; place-items: center; gap: 7px; padding: 4px 6px; text-align: center; }
.pledge-confirm-stats > div + div { border-left: 1px solid #363636; }
.pledge-confirm-stats strong { font-size: 18px; line-height: 1; }
.pledge-confirm-stats strong small { margin-left: 4px; font-size: 11px; font-weight: 600; }
.pledge-confirm-stats > div > span { color: #898989; font-size: 10px; white-space: nowrap; }
.pledge-confirm-title { margin: 20px 3px 10px; font-size: 14px; font-weight: 650; }
.pledge-confirm-selection { min-height: 54px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #3b3b3b; border-radius: 13px; background: #252525; color: #8e8e8e; font-size: 13px; }
.pledge-confirm-selection strong { color: #fff; font-size: 20px; }
.pledge-confirm-selection strong small { margin-left: 4px; font-size: 10px; font-weight: 600; }
.detail-sheet.is-confirm .detail-sheet-actions { margin-top: 30px; gap: 11px; }
.detail-sheet.is-confirm .detail-sheet-primary,
.detail-sheet.is-confirm .detail-sheet-secondary { height: 45px; border-color: #717171; border-radius: 16px; color: #fff; }

@media (max-width: 520px) {
  .task-detail-header { height: 62px; flex-basis: 62px; }
  .task-detail-scroll { padding-top: 6px; }
  .task-detail-footer { padding-bottom: max(17px, env(safe-area-inset-bottom)); }
  .project-back-link { display: none !important; }
}
