/* ============================================================
   Class2Class . THE WEEK GAME
   Only what the ordering list and the per-post plan need; the card,
   header, buttons and fields come from gamekit.css.
   ============================================================ */

/* ---------- step 1: the orderable week ---------- */
.cwk-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.cwk-row {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--cg-line);
  border-radius: 12px;
  padding: 11px 12px;
  cursor: grab;
  transition:
    border-color 0.18s var(--cg-ease),
    box-shadow 0.18s var(--cg-ease),
    transform 0.18s var(--cg-ease);
}
.cwk-row:hover {
  border-color: var(--cg-purple);
}
.cwk-row:focus-visible {
  outline: none;
  border-color: var(--cg-purple);
  box-shadow: 0 0 0 3px rgba(129, 87, 217, 0.18);
}
.cwk-row.is-dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.cwk-row.is-over {
  border-color: var(--cg-purple);
  background: var(--cg-lpurple);
}
.cwk-grip {
  display: inline-grid;
  place-items: center;
  color: var(--cg-line);
}
.cwk-grip svg {
  width: 15px;
  height: 15px;
}
.cwk-num {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: none;
  border-radius: 50%;
  background: var(--cg-lpurple);
  color: var(--cg-deep);
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cwk-emoji {
  font-size: 1.05rem;
  line-height: 1;
}
.cwk-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cwk-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--cg-ink);
}
.cwk-detail {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--cg-soft);
}
.cwk-moves {
  display: grid;
  gap: 3px;
}
.cwk-move {
  display: grid;
  place-items: center;
  width: 24px;
  height: 19px;
  padding: 0;
  border: 1px solid var(--cg-line);
  border-radius: 6px;
  background: #fff;
  color: var(--cg-soft);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cwk-move svg {
  width: 12px;
  height: 12px;
}
.cwk-move:hover:not(:disabled) {
  color: var(--cg-deep);
  border-color: var(--cg-purple);
}
.cwk-move:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

/* ---------- step 2: the order, read back ----------
   Tinted and badged rather than boxed like an input, because a plain
   bordered list at the top of the step reads as an empty first field. */
.cwk-summary {
  margin-top: 4px;
  background: var(--cg-lpurple);
  border: 1.5px solid var(--cg-purple);
  border-radius: 12px;
  padding: 10px 12px 11px;
}
.cwk-summary-lab {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cg-deep);
  margin-bottom: 7px;
}
.cwk-recap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.cwk-recap li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cg-ink);
}
.cwk-recap .rn {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 50%;
  background: var(--cg-purple);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .cwk-row {
    grid-template-columns: auto auto 1fr auto;
    gap: 8px;
  }
  /* the grip is decorative, and the arrows do the same job on touch */
  .cwk-grip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cwk-row,
  .cwk-move {
    transition: none;
  }
  .cwk-row.is-over {
    transform: none;
  }
}
