/* ======================================= HOODSEA whitelist (scoped) ======= */

/*
 * Styles for the signup card only. Everything is scoped under `.wl` because
 * this loads alongside styles.css, which already owns generic names like
 * .card, .btn and .panel — an unscoped rule here would quietly restyle the
 * marketplace.
 *
 * No :root block either: the theme tokens (--panel, --line, --accent, the
 * rarity hues) come from styles.css so both themes stay in step automatically.
 */

.wl {
  width: min(720px, 100%);
  margin-inline: auto;
}

.wl .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 28px);
}

/* ----------------------------------------------------------------- steps -- */

.wl .steps {
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 24px; padding: 0; list-style: none;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
.wl .steps li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.wl .steps li + li::before {
  content: ""; width: clamp(14px, 5vw, 44px); height: 1px;
  background: var(--line); margin: 0 clamp(10px, 4vw, 22px);
}
.wl .steps li span { opacity: .7; }
.wl .steps li.is-active { color: var(--accent); }
.wl .steps li.is-done { color: var(--accent); opacity: .65; }

/* ---------------------------------------------------------------- panels -- */

.wl .panel { display: grid; gap: 14px; }
.wl .panel[hidden] { display: none; }

.wl .panel__title {
  margin: 0; font-size: clamp(19px, 3.4vw, 25px); line-height: 1.15;
  letter-spacing: -.01em; text-align: center;
}
.wl .panel__title span { color: var(--accent); }
.wl .panel__title--big {
  font-size: clamp(28px, 6vw, 46px); color: var(--accent);
  text-transform: uppercase; font-weight: 800;
}
.wl .panel__note {
  margin: -4px 0 6px; text-align: center; color: var(--muted); font-size: 13px;
}

/* ---------------------------------------------------------------- fields -- */

.wl .field {
  display: flex; align-items: center; gap: 2px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 0 16px;
  transition: border-color .18s, box-shadow .18s;
}
.wl .field:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--lime-glow);
}
.wl .field__prefix { color: var(--dim); font-size: 15px; }
.wl .field input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--text); font: inherit; font-size: 15px; padding: 16px 0;
}
.wl .field input::placeholder { color: var(--dim); }

.wl .err { margin: -6px 0 0; font-size: 12px; color: var(--danger); text-align: center; }
.wl .err[hidden] { display: none; }

/* --------------------------------------------------------------- buttons -- */

/* Deliberately not reusing .btn from styles.css: these are full-width pill
   buttons, and overriding the marketplace's .btn would leak everywhere. */
.wl .btn {
  display: block; width: 100%; text-align: center;
  padding: 16px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; cursor: pointer; transition: .18s;
}
.wl .btn--go {
  background: linear-gradient(180deg, var(--lime), var(--lime-dim));
  color: #10140a;
  box-shadow: 0 8px 24px -12px var(--lime);
}
.wl .btn--go:hover:not([disabled]) { filter: brightness(1.06); }
.wl .btn--go[disabled] {
  background: var(--panel-2); color: var(--dim);
  box-shadow: none; border-color: var(--line); cursor: not-allowed;
}
.wl .btn--back {
  background: none; color: var(--dim);
  padding: 6px; font-size: 11px; letter-spacing: .14em;
}
.wl .btn--back:hover { color: var(--accent); }

/* ----------------------------------------------------------------- tasks -- */

.wl .tasks { list-style: none; margin: 0; padding: 0; display: grid; }

.wl .task {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 2px; border-bottom: 1px solid var(--line-soft);
}
.wl .task:last-child { border-bottom: 0; }

.wl .task__check {
  width: 25px; height: 25px; flex: none;
  border: 1px solid var(--line); border-radius: 8px;
  display: grid; place-items: center; color: transparent; transition: .2s;
}
.wl .task__check svg { width: 13px; height: 13px; }
.wl .task.is-done .task__check {
  border-color: var(--accent); color: var(--accent); background: var(--lime-glow);
}

.wl .task__body { flex: 1; min-width: 0; }
.wl .task__body b { display: block; font-size: 14px; line-height: 1.3; }
.wl .task__body span { font-size: 12px; color: var(--muted); }

.wl .task__go {
  flex: none; min-width: 82px;
  padding: 10px 17px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; cursor: pointer; transition: .18s;
}
.wl .task__go:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.wl .task__go.is-waiting {
  border-color: var(--accent); color: var(--accent);
  background: var(--lime-glow); cursor: default;
}
.wl .task__go.is-done {
  background: linear-gradient(180deg, var(--lime), var(--lime-dim));
  border-color: transparent; color: #10140a; cursor: default;
}

/* -------------------------------------------------------------- progress -- */

.wl .progress { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.wl .progress__bar {
  flex: 1; height: 4px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line-soft); overflow: hidden;
}
.wl .progress__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--lime-dim), var(--lime));
  transition: width .4s cubic-bezier(.3, .9, .3, 1);
}
.wl .progress__count { margin: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.wl .progress__count b { color: var(--text); }

/* ------------------------------------------------------------------ done -- */

.wl .done { justify-items: center; text-align: center; }
.wl .done__tick {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 4px;
  color: var(--accent); background: var(--lime-glow);
  border: 1px solid var(--accent);
  animation: wl-pop .45s cubic-bezier(.2, .9, .3, 1.35);
}
.wl .done__tick svg { width: 28px; height: 28px; }
@keyframes wl-pop {
  from { transform: scale(.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.wl .done .btn { max-width: 330px; }

/* ------------------------------------------------------------- fineprint -- */

.wl__fineprint {
  margin: 18px auto 0; max-width: 62ch; text-align: center;
  font-size: 11px; line-height: 1.7; color: var(--dim);
}

/* ----------------------------------------------------------------- toast -- */

/* Sits above the marketplace toast so the two never overlap if both fire. */
.wl-toast { bottom: 84px; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 560px) {
  .wl .steps { font-size: 9px; letter-spacing: .08em; }
  .wl .steps li + li::before { width: 12px; margin: 0 8px; }
  .wl .task { gap: 11px; }
  .wl .task__go { min-width: 68px; padding: 9px 12px; }
  .wl .task__body b { font-size: 13px; }
}

/* ----------------------------------------------------------------- prizes -- */

.wl__prizes { margin: 0 0 26px; text-align: center; }
.wl__prizes-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}
.wl__prizes-row img {
  width: 92px; height: 92px; object-fit: cover;
  border: 1px solid var(--line); border-radius: 12px;
  transition: transform .2s, border-color .2s;
}
.wl__prizes-row img:hover { transform: translateY(-4px); border-color: var(--accent); }
.wl__prizes figcaption {
  margin-top: 12px; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim);
}

@media (max-width: 560px) {
  .wl__prizes-row { gap: 8px; }
  .wl__prizes-row img { width: 60px; height: 60px; border-radius: 9px; }
}
