/* Conduit — game-local styles. Extends the shared claed3d-games token set
   (styles.css); never edits it. Adds the reactor board backing, the level
   picker overlay, and the reactor-online next card. */

.cd-par { color: var(--muted); font-weight: 300; font-size: 0.72em; }

/* the reactor board frame: mostly-opaque backing so the grid reads over the
   moving cosmos starfield, with a faint violet↔cyan reactor tint. */
.cd-frame {
  padding: 0.4rem;
  background:
    linear-gradient(rgba(10, 10, 16, 0.9), rgba(7, 7, 11, 0.94)),
    radial-gradient(circle at 50% 6%, rgba(121, 87, 255, 0.12), transparent 62%);
  touch-action: none;
}
.cd-frame #board {
  width: 100%;
  height: auto;
  cursor: pointer;
  touch-action: none;
}

/* ---------- level picker overlay ---------- */
.cd-picker {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem;
  background: rgba(7, 7, 11, 0.92);
  backdrop-filter: blur(4px);
  z-index: 3;
}
.cd-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cd-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.cd-lvl {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(239, 241, 250, 0.16);
  border-radius: 0.55rem;
  background: rgba(10, 10, 17, 0.6);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, color 140ms ease;
}
.cd-lvl:hover { border-color: rgba(105, 221, 255, 0.6); transform: translateY(-1px); }
.cd-lvl.is-current {
  border-color: rgba(105, 221, 255, 0.8);
  background: linear-gradient(rgba(30, 24, 54, 0.8), rgba(12, 12, 19, 0.8));
  box-shadow: 0 0 0.7rem rgba(105, 221, 255, 0.24);
}
.cd-lvl.is-locked {
  color: rgba(146, 151, 168, 0.5);
  background: rgba(8, 8, 13, 0.4);
  cursor: not-allowed;
  opacity: 0.5;
}
.cd-lvl.is-locked:hover { border-color: rgba(239, 241, 250, 0.16); transform: none; }
.cd-lvl.is-done::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  right: 0.25rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0.35rem var(--cyan);
}
.cd-lvl.is-star::after { background: var(--gold, #ffd23f); box-shadow: 0 0 0.4rem #ffd23f; }
.cd-lvl-band {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cd-lvl-band:first-child { margin-top: 0; }

/* ---------- reactor-online next card ---------- */
.cd-next h2 {
  color: var(--cyan);
  text-shadow: 0 0 1.6rem rgba(105, 221, 255, 0.5);
  letter-spacing: 0.02em;
}
.cd-next-actions { display: flex; gap: 0.5rem; }
.cd-primary {
  border-color: rgba(105, 221, 255, 0.7);
  background: linear-gradient(rgba(35, 44, 78, 0.9), rgba(18, 22, 40, 0.9));
  color: var(--ink);
}
.cd-primary:hover { border-color: var(--cyan); }
.cd-stars {
  display: flex;
  gap: 0.35rem;
  min-height: 1.6rem;
  align-items: center;
  font-size: 1.5rem;
  color: #ffd23f;
  text-shadow: 0 0 0.8rem rgba(255, 210, 63, 0.6);
}

@media (max-width: 400px) {
  .cd-picker-grid { grid-template-columns: repeat(5, 1fr); }
  .cd-lvl { font-size: 0.85rem; }
}
