/* Monthly campaign — a FACEIT-style dual-tier challenge list.
   One continuous vertical list: a dashed rail with node dots down the left,
   each challenge a row with its title and progress bar, the counter, then two
   fixed reward columns (FREE / PREMIUM) on the right. Everyone runs the same
   challenges; premium unlocks the higher value on the same row. Colours come
   from the site tokens in styles.css so the page belongs to the rest of Blinta. */

.camp-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.camp-hero-copy {
  min-width: 0;
}

.camp-hero h1 {
  font-family: "Anton", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.camp-hero-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.camp-hero-stats {
  display: flex;
  gap: 2.25rem;
  margin: 0;
}

.camp-hero-stats dt {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.camp-hero-stats dd {
  margin: 0.3rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.75rem;
  color: var(--text);
  white-space: nowrap;
}

/* -- Connect notice -------------------------------------------------------- */

/* Amber rather than red: nothing has gone wrong, there is just a step left
   before any match can count toward the ladder. */
.camp-connect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #6a4a2e;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(30, 20, 8, 0.9), rgba(14, 11, 8, 0.9));
}

.camp-connect-copy {
  min-width: 0;
}

.camp-connect-title {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0b429;
}

.camp-connect-note {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.camp-connect-btn {
  flex: none;
  border: 1px solid #6a4a2e;
  border-radius: 4px;
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: #f0b429;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 640px) {
  .camp-connect-btn {
    width: 100%;
    text-align: center;
  }
}

/* -- Summary tiles --------------------------------------------------------- */

.camp-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.camp-stat-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.camp-stat-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.camp-stat-value img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.camp-stat .helper {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
}

.camp-stat.is-top-tier {
  border-color: #6a4a2e;
  background:
    linear-gradient(180deg, rgba(25, 14, 10, 0.96), rgba(12, 9, 8, 0.93)),
    radial-gradient(circle at 85% 15%, rgba(255, 122, 47, 0.2), transparent 45%);
}

/* The Access Token reads as a struck coin — a solid gold disc with the spark
   punched out of it — so it stays legible at the 26px the reward tiles use,
   where a thin outline just disappeared. */
.camp-token-icon {
  width: 28px;
  height: 28px;
}

.camp-token-icon .camp-token-disc {
  fill: #f0b429;
}

.camp-token-icon .camp-token-ring {
  fill: none;
  stroke: rgba(255, 232, 176, 0.75);
  stroke-width: 1;
}

.camp-token-icon .camp-token-spark {
  fill: #1a1204;
}

/* -- Actions --------------------------------------------------------------- */

.camp-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.camp-upgrade-btn {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.6rem 1.1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.camp-upgrade-btn {
  background: transparent;
  border-color: #6a4a2e;
  color: #f0b429;
}

/* -- Challenge list -------------------------------------------------------- */

/* One grid shared by the header and every row, so the two reward columns line
   up under their labels no matter how long a challenge title runs. */
.camp-list {
  --camp-grid: 46px minmax(0, 1fr) 74px 84px 84px;
}

.camp-list-head {
  display: grid;
  grid-template-columns: var(--camp-grid);
  align-items: center;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.camp-list-head h2 {
  grid-column: 2 / 4;
  margin: 0;
  font-family: "Anton", system-ui, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.camp-list-head h2 strong {
  font-weight: inherit;
  color: var(--text);
}

.camp-list-head h2 span {
  color: var(--muted);
}

.camp-col-labels {
  grid-column: 4 / 6;
  display: grid;
  grid-template-columns: 84px 84px;
}

.camp-col-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.camp-col-label.is-premium {
  color: #f0b429;
}

/* -- Rows ------------------------------------------------------------------ */

.camp-rows {
  display: grid;
  padding-top: 0.35rem;
}

.camp-row {
  display: grid;
  grid-template-columns: var(--camp-grid);
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.55rem 0;
  border-radius: 6px;
}

/* The first outstanding challenge gets the lifted reference background. */
.camp-row.is-active {
  background: #161616;
}

.camp-row.is-premium-only {
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.05), transparent 60%);
}

/* Only a premium-only challenge is dimmed for a free player. */
.camp-row.is-premium-locked {
  opacity: 0.45;
}

.camp-row.is-collected {
  background: linear-gradient(90deg, rgba(61, 220, 151, 0.06), transparent 60%);
}

/* -- The rail -------------------------------------------------------------- */

.camp-rail {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 46px;
}

/* Dashed line runs the full height of every row; the ends are trimmed so the
   rail starts and stops at the first and last dot. */
.camp-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 2px dashed #333;
}

.camp-row.is-first .camp-rail::before {
  top: 50%;
}

.camp-row.is-last .camp-rail::before {
  bottom: 50%;
}

.camp-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #4a4a4a;
  background: var(--bg1);
}

.camp-row.is-active .camp-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 28, 36, 0.15);
}

.camp-row.is-active .camp-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.camp-row.is-complete .camp-dot {
  border-color: #3ddc97;
  background: #3ddc97;
}

.camp-row.is-premium-only .camp-dot {
  border-color: #f0b429;
}

/* A capstone rung a free player cannot reach: the node carries the lock itself
   instead of a progress dot. */
.camp-dot.is-lock {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-color: #3ddc97;
  background: var(--bg1);
}

.camp-dot.is-lock svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #3ddc97;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.camp-row.is-premium-locked .camp-row-title,
.camp-row.is-premium-locked .camp-row-count {
  color: var(--muted);
}

/* -- Premium gate ---------------------------------------------------------- */

/* Sits inside the list, spanning every column, right above the first rung a
   free player cannot finish. */
.camp-gate {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.07), transparent 55%), #141414;
}

.camp-gate-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(230, 28, 36, 0.14);
}

.camp-gate-mark svg {
  width: 22px;
  height: 15px;
  fill: var(--accent);
}

.camp-gate-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.camp-gate-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.camp-gate-body {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.camp-gate-cta {
  flex: none;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  background: #3ddc97;
  color: #08120d;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.camp-gate-cta:hover {
  background: #55e6a8;
}

.camp-row.is-upcoming .camp-dot {
  border-color: #3a3a3a;
  background: transparent;
}

/* -- Row body -------------------------------------------------------------- */

.camp-row-body {
  min-width: 0;
  display: grid;
  gap: 0.4rem;
  padding: 0.1rem 0.4rem 0.1rem 0;
}

.camp-row-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
}

.camp-row-flag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(240, 180, 41, 0.14);
  color: #f0b429;
  vertical-align: middle;
}

.camp-row-flag.is-collected {
  background: rgba(61, 220, 151, 0.14);
  color: #3ddc97;
}

.camp-row-flag.is-upcoming {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.camp-bar {
  height: 6px;
  border-radius: 2px;
  background: #241111;
  overflow: hidden;
}

.camp-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease;
}

.camp-row.is-complete .camp-bar span {
  background: #3ddc97;
}

.camp-row-count {
  margin: 0;
  text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
}

.camp-row-count span {
  color: var(--muted);
}

/* -- Reward tiles ---------------------------------------------------------- */

.camp-tile-cell {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.camp-tile {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0d0d0d;
  color: var(--text);
  font: inherit;
}

.camp-tile.is-premium {
  border-color: #4a3a1e;
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.08), transparent), #0d0d0d;
}

.camp-tile.is-top-tier {
  border-color: #6a4a2e;
}

.camp-tile.is-locked {
  opacity: 0.65;
}

.camp-tile.is-claimed {
  border-color: rgba(61, 220, 151, 0.55);
  background: rgba(61, 220, 151, 0.08);
  opacity: 0.75;
}

.camp-tile.is-claimable {
  border-color: #3ddc97;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(61, 220, 151, 0.12);
}

.camp-tile.is-claimable:hover {
  background: rgba(61, 220, 151, 0.12);
}

.camp-tile-icon {
  display: grid;
  place-items: center;
}

.camp-tile-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* The Access Token badge is the only glyph here that is not an <img>, and it
   carries its own fills, so this only has to size it. */
.camp-tile-icon svg {
  width: 26px;
  height: 26px;
}

.camp-tile-value {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

.camp-tile-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg1);
}

.camp-tile-badge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.camp-tile-badge.is-lock svg {
  stroke: var(--muted);
}

.camp-tile-badge.is-done svg {
  stroke: #3ddc97;
}

.camp-empty {
  padding: 2rem 1.1rem;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
}

/* Below the breakpoint the counter folds into the body and the reward columns
   narrow, rather than the list scrolling sideways. */
@media (max-width: 720px) {
  .camp-list {
    --camp-grid: 32px minmax(0, 1fr) 58px 64px 64px;
  }

  .camp-hero-stats {
    gap: 1.5rem;
  }

  .camp-tile {
    width: 60px;
    height: 60px;
  }

  .camp-col-labels {
    grid-template-columns: 64px 64px;
  }

  .camp-gate {
    flex-wrap: wrap;
  }

  .camp-gate-cta {
    width: 100%;
    text-align: center;
  }
}
