/* ==========================================================================================
   preload.css — the first-visit 素材预下载 gate (public/js/ui/preloadGate.js, DESIGN §27).

   The dialog itself is the shared .modal (components.css) with the shared .pbar — this sheet only adds
   what those two do not already carry: the step list, the detail line with its elapsed clock, the
   error block and the footer strip. Every colour and length is a theme token / design px, so it
   matches 设置 and 确认本局信息 exactly.

   The gate is NOT closable, so there is no ✕ control, no backdrop affordance and no action row —
   the footer is a status strip, not buttons.
   ========================================================================================== */

.pl-gate__intro {
  margin: 0 0 .16rem;
  font-size: .17rem;
  line-height: 1.7;
  color: var(--text-md);
}
.pl-gate__intro b { color: var(--mint-400); font-weight: 700; }

/* ---- steps ------------------------------------------------------------------------------ */
.pl-gate__steps {
  display: flex;
  flex-wrap: wrap;
  gap: .06rem .18rem;
  margin: 0 0 .18rem;
  padding: 0;
  list-style: none;
}
.pl-gate__step {
  display: inline-flex;
  align-items: center;
  gap: .06rem;
  font-size: .15rem;
  color: var(--text-dim);
  transition: color var(--t-med) var(--ease-out);
}
.pl-gate__step.is-on { color: var(--mint-400); }
.pl-gate__step.is-done { color: var(--text-lo); }
.pl-gate__step-mark {
  display: inline-grid;
  place-items: center;
  width: .19rem;
  height: .19rem;
  flex: none;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  font-family: var(--font-num);
  font-size: .12rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-dim);
}
.pl-gate__step-mark .icon { width: .13rem; height: .13rem; }
.pl-gate__step.is-on .pl-gate__step-mark {
  border-color: var(--mint-500);
  color: var(--mint-400);
  box-shadow: 0 0 .1rem rgba(23, 249, 183, .25);
}
.pl-gate__step.is-done .pl-gate__step-mark { border-color: var(--mint-800); color: var(--mint-600); }

/* ---- progress detail -------------------------------------------------------------------- */
.pl-gate__detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .12rem;
  margin-top: .07rem;
  font-size: .15rem;
  color: var(--text-lo);
}
.pl-gate__line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-gate__clock { flex: none; font-weight: 700; color: var(--text-md); }

/* ---- failure (still not closable: it counts down and retries) ---------------------------- */
.pl-gate__err {
  display: flex;
  gap: .1rem;
  align-items: flex-start;
  margin-top: .16rem;
  padding: .1rem .13rem;
  border: 1px solid var(--red);
  border-left-width: 2px;
  background: var(--red-a20);
  color: var(--text-md);
  font-size: .15rem;
  line-height: 1.6;
}
.pl-gate__err > .icon { flex: none; width: .18rem; height: .18rem; margin-top: .02rem; color: var(--red-premium); }
.pl-gate__err b { color: var(--red-premium); }
.pl-gate__err p { margin: .03rem 0 0; color: var(--text-lo); word-break: break-word; }

/* ---- footer strip ----------------------------------------------------------------------- */
.pl-gate__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .04rem .16rem;
  margin-top: .18rem;
  padding-top: .12rem;
  border-top: 1px solid var(--line);
}
.pl-gate__foot .num { color: var(--text-md); }

/* Phones in landscape: the modal is the only thing on screen, so it may use the height. */
@media (max-height: 420px) {
  .pl-gate__steps { display: none; }
  .pl-gate__intro { font-size: .15rem; }
}
