/* ==========================================================================
   Command Deck — the proof section between the journey and the store.
   Composes nag-tokens.css exclusively; no colour literal here that is not
   a WoW class identity or a Discord brand tone.
   ========================================================================== */

.command-deck {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 110px);
  background: var(--nag-ink);
  border-top: 1px solid var(--nag-hairline);
}

.command-deck__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.4vw, 44px);
}

.deck-head { max-width: 720px; }
.deck-head .nag-lead { margin: 0; }

/* ---------- plates ---------- */

.deck-plate__body {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 30px);
  padding: clamp(24px, 3vw, 40px);
}

.deck-plate__head { max-width: 640px; }
.deck-plate__head .nag-display { margin-bottom: 0; }
.deck-plate__head .nag-eyebrow { margin-bottom: 10px; }

.deck-plate__pitch {
  margin: 0;
  color: var(--nag-text-dim);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 58ch;
}

.deck-plate__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* the door row inside plates */
.deck-door {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 18px;
  border: 1px solid var(--nag-hairline);
  border-radius: var(--nag-radius);
  color: var(--nag-text-dim);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.deck-door:hover,
.deck-door:focus-visible { color: var(--nag-text); }
.deck-door__text { color: inherit; }

/* ---------- ledger demo ---------- */

.deck-ledger { max-width: 980px; }
.deck-ledger__caption { margin: 16px 0 0; }

/* ---------- the metric slab ---------- */

.deck-slab {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  backdrop-filter: blur(2px);
  background: var(--nag-inset);
}
.deck-slab .nag-slab__cell { text-shadow: var(--nag-over-art-shadow); }

/* ---------- two-column row ---------- */

.deck-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
}

.deck-side {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
  min-width: 0;
}

.deck-side .deck-plate { flex: 1; }

/* ---------- rotation chat mock ---------- */

.deck-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.deck-chat__msg {
  padding: 14px 16px;
  border: 1px solid var(--nag-hairline);
  border-radius: var(--nag-radius-lg);
  background: var(--nag-panel);
}

.deck-chat__msg b {
  display: block;
  margin-bottom: 6px;
  color: var(--nag-text-mute);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}
.deck-chat__msg--nag b { color: var(--nag-gold-eyebrow); }

.deck-chat__msg p {
  margin: 0;
  color: var(--nag-text);
  font-size: 1rem;
  line-height: 1.5;
}

.deck-chat__msg--you { align-self: flex-end; max-width: 88%; }
.deck-chat__msg--nag { align-self: flex-start; max-width: 94%; border-color: var(--nag-gold-edge); }

.deck-chat__clause {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 2px solid var(--nag-gold-edge-strong);
  border-radius: 3px;
  background: var(--nag-inset);
  color: var(--nag-text);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.5;
}
.deck-chat__clause em {
  font-style: normal;
  color: var(--nag-gold-text);
}

.deck-chat__proof {
  display: block;
  margin-top: 8px;
  color: var(--nag-text-faint);
  font-size: 0.8rem;
}

/* ---------- feature points ---------- */

.deck-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.deck-points li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--nag-hairline);
  color: var(--nag-text-dim);
  font-size: 0.98rem;
  line-height: 1.5;
}
.deck-points li:first-child { border-top: 1px solid var(--nag-hairline); }
.deck-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.35em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--nag-gold-fill);
}

/* ---------- leaderboard teaser ---------- */

.deck-board {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nag-hairline);
}

.deck-board__loading,
.deck-board__quiet {
  padding: 14px 4px;
  color: var(--nag-text-faint);
  font-size: 0.9rem;
  font-style: italic;
  border-bottom: 1px solid var(--nag-hairline);
}

.deck-board__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--nag-hairline);
}

.deck-board__rank {
  color: var(--nag-text-mute);
  font-size: 0.86rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.deck-board__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.deck-board__name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nag-text);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-board__class-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.deck-board__meta {
  color: var(--nag-text-faint);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-board__score {
  color: var(--nag-text);
  font-size: 1.02rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
}

/* WoW class identity colours (identity only — never judgement) */
.deck-board__class-dot[data-class="WARRIOR"] { background: #c79c6e; }
.deck-board__class-dot[data-class="PALADIN"] { background: #f58cba; }
.deck-board__class-dot[data-class="HUNTER"] { background: #abd473; }
.deck-board__class-dot[data-class="ROGUE"] { background: #fff569; }
.deck-board__class-dot[data-class="PRIEST"] { background: #ffffff; }
.deck-board__class-dot[data-class="DEATHKNIGHT"] { background: #c41f3b; }
.deck-board__class-dot[data-class="SHAMAN"] { background: #0070de; }
.deck-board__class-dot[data-class="MAGE"] { background: #69ccf0; }
.deck-board__class-dot[data-class="WARLOCK"] { background: #9482c9; }
.deck-board__class-dot[data-class="MONK"] { background: #00ff96; }
.deck-board__class-dot[data-class="DRUID"] { background: #ff7d0a; }
.deck-board__class-dot:not([data-class]) { background: var(--nag-neutral); }

/* ---------- discord pulse ---------- */

.deck-pulse {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--nag-hairline);
  border-radius: var(--nag-radius);
  background: var(--nag-panel-raised);
}

.deck-pulse header .nag-display { margin-bottom: 0; }
.deck-pulse header .nag-eyebrow { margin-bottom: 8px; }

.deck-pulse__slab { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.deck-pulse__copy {
  margin: 0;
  color: var(--nag-text-dim);
  font-size: 0.98rem;
  line-height: 1.55;
}

.deck-pulse__cta { align-self: flex-start; }

/* online-now value carries the pos tone: it is a live fact, not a judgement,
   but it should read as "alive" — the one place the deck uses green */
[data-discord-online].is-live { color: var(--nag-pos); }

/* ---------- responsive: collapse, never reflow ---------- */

@media (max-width: 1180px) {
  .deck-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .deck-slab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-slab .nag-slab__cell:nth-child(2n) { border-right: none; }
  .deck-slab .nag-slab__cell:nth-child(n + 3) { border-top: 1px solid var(--nag-hairline); }
  .nag-ledger__bar { height: 46px; }
  .deck-plate__foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .deck-chat__msg--you,
  .deck-chat__msg--nag { max-width: 100%; }
  .deck-board__row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; }
}
