/* ═══════════════════════════════════════════════════════════════
   PRAANA — MODULE · SCARCITY MARKET  ·  css
   Every colour is a token. Prefix: mx-
   ═══════════════════════════════════════════════════════════════ */

.mx-mkt { display: block; width: 100%; }

/* ── head ─────────────────────────────────────────────────── */
.mx-mkt-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.mx-mkt-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-mkt-live {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--amber); flex-shrink: 0;
}
.mx-mkt-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
  animation: mx-mkt-pulse 2.2s var(--ease-io) infinite;
}
@keyframes mx-mkt-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

/* ── the board ────────────────────────────────────────────── */
.mx-mkt-frame {
  position: relative;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.mx-mkt-cv {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 420px);
  outline: none;
}
.mx-mkt-cv:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
  border-radius: var(--r);
}

/* ── foot ─────────────────────────────────────────────────── */
.mx-mkt-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-top: .55rem;
}
.mx-mkt-legend {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: var(--t-fine);
  color: var(--ink-3);
}
.mx-mkt-k { display: inline-flex; align-items: center; gap: .38rem; white-space: nowrap; }
.mx-mkt-k i { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.mx-mkt-k.is-green i { background: var(--green); }
.mx-mkt-k.is-amber i { background: transparent; border-top: 2px solid var(--amber); border-radius: 0; height: 2px; }
.mx-mkt-k.is-blue i { background: var(--blue); border-radius: 50%; }

.mx-mkt-hint {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-fine);
  color: var(--ink-4);
}

.mx-mkt-sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ── small screens ────────────────────────────────────────── */
@media (max-width: 720px) {
  .mx-mkt-cv { height: clamp(300px, 74vw, 380px); }
  .mx-mkt-foot { flex-direction: column; align-items: flex-start; gap: .4rem; }
}
@media (max-width: 420px) {
  .mx-mkt-head { font-size: 8.5px; letter-spacing: .1em; }
  .mx-mkt-legend { gap: .6rem; font-size: 10px; }
  .mx-mkt-cv { height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .mx-mkt-live i { animation: none; }
}
