/* challenge.css — PLAY & CREATE CHALLENGE.
 *
 * Kept as its own file rather than folded into style.css: this feature is
 * additive and self-contained (its own screens, its own components), so
 * isolating it here means it can be reviewed, changed or (if ever needed)
 * torn out without touching the base game's stylesheet at all.
 *
 * Deliberately reuses style.css's existing tokens instead of inventing a
 * second palette: the cyan→purple gradient (#8ff8ff/#4f8cff/#6a3bff), the
 * glass-panel recipe (rgba(16,18,40,.55) + blur(10px) + a faint white
 * border), body text #e9edff, muted #9a8fb5, the earnings-green #14f195
 * and warning-amber #ffd166 already used for money and highlights, and the
 * Orbitron/Inter font pair. Buttons stay the existing .btn/.btn.alt — this
 * file only styles the content AROUND them: panels, stat grids, steps, the
 * visibility picker, and challenge-list rows.
 */

.chal-panel {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(16, 18, 40, 0.55);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}

.chal-panel.wide {
  max-width: 720px;
  margin: auto;
}

.chal-heading {
  font-family: "Orbitron", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: clamp(22px, 4.5vw, 32px);
  background: linear-gradient(100deg, #8ff8ff 0%, #4f8cff 52%, #6a3bff 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.chal-sub {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #9a8fb5;
  text-align: center;
  margin-top: -10px;
}

/* ---- score / trophy callout (create + accept screens) ---- */

.chal-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.35);
}

.chal-score-card .k {
  font-size: 11px;
  letter-spacing: 3px;
  color: #9a8fb5;
}

.chal-score-card .v {
  font-size: 28px;
  font-weight: 800;
  color: #eafff6;
  text-shadow: 0 0 12px rgba(20, 241, 149, 0.5);
}

.chal-score-card .v small {
  font-size: 14px;
  opacity: 0.7;
  margin-left: 4px;
}

.chal-trophy {
  font-size: 30px;
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.6));
}

.chal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 241, 149, 0.18);
  color: #39ff8f;
  border: 1px solid rgba(57, 255, 143, 0.4);
  text-transform: uppercase;
}

.chal-badge.new {
  background: rgba(255, 209, 102, 0.16);
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.45);
}

/* ---- form fields (entry fee, duration, message, @handle) ---- */

.chal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chal-field label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #9a8fb5;
}

.chal-field .row {
  display: flex;
  gap: 8px;
}

.chal-field .row .chal-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.chal-field .row .chal-select {
  flex: 0 0 auto;
  width: auto;
}

.chal-input,
.chal-select {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #e9edff;
  background: rgba(6, 6, 20, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
}

.chal-input:focus,
.chal-select:focus {
  border-color: #4f8cff;
}

.chal-input.money {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.chal-hint-inline {
  font-size: 11px;
  color: #766c8d;
  letter-spacing: 0.5px;
}

.chal-counter {
  font-size: 10px;
  color: #766c8d;
  text-align: right;
}

/* pill-style option groups: duration and visibility */

.chal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chal-pill {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #c9c3de;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.chal-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.chal-pill.on {
  color: #04040e;
  background: linear-gradient(100deg, #8ff8ff 0%, #4f8cff 52%, #6a3bff 115%);
  border-color: transparent;
}

.chal-visibility {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 560px) {
  .chal-visibility {
    grid-template-columns: 1fr;
  }
}

.chal-vis-option {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.15s;
}

.chal-vis-option .icon {
  font-size: 16px;
}

.chal-vis-option .name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e9edff;
}

.chal-vis-option .desc {
  font-size: 10.5px;
  color: #9a8fb5;
  line-height: 1.4;
}

.chal-vis-option.on {
  border-color: #39ff8f;
  background: rgba(57, 255, 143, 0.08);
  box-shadow: inset 0 0 16px rgba(57, 255, 143, 0.12);
}

/* ---- fee breakdown ---- */

.chal-fee-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.chal-fee-row {
  display: flex;
  justify-content: space-between;
  color: #b7b0cf;
}

.chal-fee-row.total {
  color: #fff;
  font-weight: 800;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

/* ---- share links ---- */

.chal-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.chal-share-link {
  flex: 1;
  font-size: 12px;
  color: #8ff8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chal-copy-btn {
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e9edff;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
}

.chal-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---- challenge detail / accept screen ---- */

.chal-creator-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #9a8fb5;
}

.chal-creator-row b {
  color: #e9edff;
  font-size: 14px;
}

.chal-target {
  font-size: 15px;
  color: #c9c3de;
  text-align: center;
}

.chal-target b {
  color: #ffd166;
}

.chal-beat {
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(30px, 7vw, 48px);
  color: #fff;
  text-shadow: 0 0 22px rgba(79, 140, 255, 0.55);
}

.chal-beat .num {
  background: linear-gradient(100deg, #8ff8ff 0%, #4f8cff 52%, #6a3bff 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chal-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.chal-stat-grid .stat {
  align-items: center;
  gap: 3px;
}

.chal-stat-grid .stat .k {
  font-size: 10px;
  letter-spacing: 1px;
  text-align: center;
}

.chal-stat-grid .stat .v {
  font-size: 20px;
}

@media (max-width: 480px) {
  .chal-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* status pill: ACTIVE / COMPLETED / EXPIRED / SETTLED ... */

.chal-status {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #c9c3de;
}

.chal-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chal-status.active {
  background: rgba(57, 255, 143, 0.14);
  color: #39ff8f;
}

.chal-status.completed,
.chal-status.settled {
  background: rgba(255, 209, 102, 0.16);
  color: #ffd166;
}

.chal-status.expired,
.chal-status.cancelled {
  background: rgba(255, 92, 92, 0.14);
  color: #ff8c8c;
}

.chal-status.pending {
  background: rgba(79, 140, 255, 0.16);
  color: #8ab4ff;
}

/* step list: connect X → connect wallet → pay → accept */

.chal-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chal-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.chal-step.done {
  border-color: rgba(57, 255, 143, 0.4);
  background: rgba(57, 255, 143, 0.06);
}

.chal-step .num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #c9c3de;
}

.chal-step.done .num {
  background: #39ff8f;
  color: #04040e;
}

.chal-step .body {
  flex: 1;
  text-align: left;
}

.chal-step .title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e9edff;
}

.chal-step .desc {
  font-size: 11px;
  color: #9a8fb5;
}

.chal-step .action {
  flex: 0 0 auto;
}

/* small ghost/gold action buttons used inside steps, sized down from .btn */
.chal-step-btn {
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 9px 16px;
  border-radius: 8px;
  color: #04040e;
  border: none;
  background: linear-gradient(100deg, #8ff8ff 0%, #4f8cff 52%, #6a3bff 115%);
}

.chal-step-btn:hover {
  filter: brightness(1.12);
}

.chal-step-btn[disabled] {
  opacity: 0.4;
  cursor: default;
  filter: none;
}

/* ---- inline payment progress (kept inside chal-view, not a full screen
   swap — the wait is a few seconds, and a hard cut is more jarring than
   a status line that updates in place) ---- */

.chal-pay-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.3);
  font-size: 12px;
  color: #c9c3de;
}

.chal-pay-progress.error {
  background: rgba(255, 92, 92, 0.1);
  border-color: rgba(255, 92, 92, 0.4);
  color: #ffb3b3;
}

.chal-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #8ff8ff;
  animation: chal-spin 0.8s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

@keyframes chal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- outcome screen (failed / won / completed-by-other / expired) ---- */

.chal-outcome-icon {
  font-size: 52px;
  filter: drop-shadow(0 0 18px rgba(255, 209, 102, 0.5));
}

.chal-outcome-title {
  font-family: "Orbitron", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: clamp(24px, 6vw, 36px);
}

.chal-outcome-title.win {
  color: #ffd166;
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.5);
}

.chal-outcome-title.fail {
  color: #e9edff;
}

.chal-outcome-title.expired,
.chal-outcome-title.completed {
  color: #8ab4ff;
}

.chal-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.chal-compare .stat .v {
  font-size: 30px;
}

.chal-compare .vs {
  font-size: 11px;
  letter-spacing: 2px;
  color: #766c8d;
}

.chal-outcome-msg {
  text-align: center;
  font-size: 13px;
  color: #c9c3de;
  line-height: 1.6;
}

/* ---- my challenges / history rows ---- */

.chal-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.chal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.chal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(20, 4, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.chal-row .main {
  flex: 1;
  min-width: 0;
}

.chal-row .title {
  font-size: 13px;
  font-weight: 700;
  color: #e9edff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chal-row .meta {
  font-size: 11px;
  color: #9a8fb5;
}

.chal-row .amt {
  flex: 0 0 auto;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.chal-row .amt.in {
  color: #39ff8f;
}

.chal-row .amt.out {
  color: #ff8c8c;
}

.chal-empty {
  font-size: 12px;
  color: #766c8d;
  text-align: center;
  padding: 24px 0;
}

/* small icon-button used for X connect state, matches .btn.alt sizing but
   compact enough to sit inside a step row / score card */
.chal-x-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e9edff;
}

.chal-x-chip.connected {
  color: #39ff8f;
  border-color: rgba(57, 255, 143, 0.4);
  background: rgba(57, 255, 143, 0.08);
}

/* ---- CREATE CHALLENGE: desktop two-column layout ----
 * Phone and tablet get a single centered column (.chal-panel.wide alone —
 * unchanged). Only above the desktop breakpoint does .chal-create-side
 * appear and the layout switch to a grid, so nothing below that width
 * renders any differently than before this block existed. */

.chal-create-layout {
  width: 100%;
}

.chal-create-side {
  display: none;
}

@media (min-width: 1100px) {
  .chal-create-layout {
    display: grid;
    grid-template-columns: minmax(380px, 460px) 1fr;
    gap: 24px;
    align-items: start;
    max-width: 1120px;
    margin: auto;
  }

  .chal-create-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* aside has no heading — offset it so its score card lines up with
       the wide panel's "YOUR SCORE TO BEAT" card instead of sitting
       higher than it */
    margin-top: 44px;
  }

  .chal-create-layout .chal-panel.wide {
    margin: 0;
    max-width: none;
  }
}

.chal-create-side .stat-row {
  justify-content: space-between;
  padding: 0 4px;
}

.chal-create-side .stat:nth-child(1) .v {
  color: var(--cyan);
}

.chal-create-side .stat:nth-child(2) .v {
  color: var(--purple);
}

.chal-car-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #12131a 0%, #05050a 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.chal-car-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.chal-car-name {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #c9c3de;
}

.chal-car-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chal-car-stat {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 10px;
}

.chal-car-stat .k {
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8b8fa8;
}

.chal-car-stat .bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chal-car-stat .bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #7fe9ff, #6aa8ff 55%, #a06bff);
}

.chal-car-stat .v {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #e8e6f5;
  min-width: 52px;
  text-align: right;
}

.chal-how {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(16, 18, 40, 0.55);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.chal-how-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chal-how-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: rgba(79, 140, 255, 0.16);
  color: #8ab4ff;
  border: 1px solid rgba(79, 140, 255, 0.4);
}

.chal-how-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: #c9c3de;
}

/* ============================================================
   ACCEPT CHALLENGE screen (#chal-view) — the shared-link landing
   page. Own block rather than a variant of .chal-panel: it is a
   centered marketing-style column (creator → score → prize card →
   two connect steps → one CTA), not a form panel.
   ============================================================ */

.chal-accept {
  width: 100%;
  max-width: 1120px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 24px;
  text-align: center;
}

.chal-from-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #c9c3de;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chal-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #04040e;
  background: linear-gradient(140deg, #8ff8ff 0%, #4f8cff 52%, #6a3bff 115%);
  box-shadow: 0 0 0 3px rgba(10, 12, 30, 0.9), 0 0 0 5px rgba(79, 140, 255, 0.55);
  margin-top: 6px;
}

.chal-handle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
}

.chal-verified {
  width: 20px;
  height: 20px;
}

.chal-handle-sub {
  font-size: 13px;
  color: #9a8fb5;
  margin-top: -6px;
}

.chal-taunt {
  font-size: 19px;
  font-weight: 600;
  color: #e9edff;
  margin-top: 6px;
}

/* the big BEAT <score> headline: white word, teal number, white unit */
.chal-accept .chal-beat {
  font-size: clamp(34px, 8vw, 56px);
  letter-spacing: 1px;
  margin: 2px 0;
}

.chal-accept .chal-beat .num {
  background: linear-gradient(100deg, #3ff0c4 0%, #14f195 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chal-accept .chal-beat .unit {
  font-size: 0.55em;
  color: #fff;
}

.chal-beat-sub {
  font-size: 13px;
  color: #9a8fb5;
  margin-top: -4px;
}

/* ---- prize / mode / score card + the stats strip under it ---- */

.chal-info-card {
  width: 100%;
  max-width: 620px;
  margin-top: 10px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(16, 18, 40, 0.55);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(79, 140, 255, 0.28);
}

.chal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.chal-info .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #9a8fb5;
}

.chal-info .v {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 7px 0 4px;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.chal-info .ic {
  font-size: 17px;
}

.chal-info .s {
  font-size: 11px;
  color: #9a8fb5;
}

.chal-info-sep {
  height: 1px;
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.1);
}

.chal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.chal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
}

.chal-meta .chip {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  background: rgba(79, 140, 255, 0.16);
}

.chal-meta .n {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.chal-meta .l {
  font-size: 11px;
  color: #9a8fb5;
}

/* ---- the two connect steps, side by side with a chevron between ---- */

.chal-steps-card {
  width: 100%;
  max-width: 900px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(16, 18, 40, 0.5);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.chal-step2-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chal-step2-text {
  flex: 1;
}

.chal-step2-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #c9c3de;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.chal-step2-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 8px 0 5px;
}

.chal-step2-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #9a8fb5;
  max-width: 210px;
}

.chal-step2-note {
  margin-top: 10px;
  font-size: 11px;
  color: #9a8fb5;
}

.chal-step2-note.right {
  text-align: right;
}

.chal-step2-note b {
  color: #14f195;
}

.chal-step2.done .chal-step2-title {
  color: #39ff8f;
}

.chal-step2-arrow {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-size: 26px;
  color: #6b6690;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}

.chal-x-btn,
.chal-wallet-btn {
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Orbitron", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 14px 22px;
  border-radius: 12px;
  border: none;
}

.chal-btn-ic {
  width: 16px;
  height: 16px;
}

.chal-x-btn {
  background: #fff;
  color: #04040e;
}

.chal-wallet-btn {
  background: linear-gradient(100deg, #8ff8ff 0%, #4f8cff 52%, #6a3bff 115%);
  color: #04040e;
}

.chal-x-btn:hover,
.chal-wallet-btn:hover {
  filter: brightness(1.08);
}

.chal-x-btn[disabled],
.chal-wallet-btn[disabled] {
  cursor: default;
  filter: none;
  background: rgba(57, 255, 143, 0.14);
  color: #39ff8f;
  box-shadow: inset 0 0 0 1.5px rgba(57, 255, 143, 0.4);
}

/* ---- the single CTA ---- */

.chal-accept-cta {
  width: 100%;
  max-width: 460px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.chal-accept-btn {
  width: 100%;
  font-size: clamp(15px, 2.4vw, 20px);
  padding: 18px 24px;
}

.chal-accept-note {
  font-size: 11px;
  color: #9a8fb5;
}

@media (max-width: 780px) {
  .chal-steps-card {
    grid-template-columns: 1fr;
  }

  .chal-step2-arrow {
    display: none;
  }

  .chal-step2-desc {
    max-width: none;
  }

  .chal-step2-note.right {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .chal-info-grid,
  .chal-meta-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .chal-step2-main {
    flex-direction: column;
    align-items: stretch;
  }
}
