/* $CONFIDENTIAL: D's flywheel, one loop across the two grounds (creator fees, treasury, house buys, House lots, the burn),
   every figure live, and the market it buys from. From the approved design (ui-upgrade/variations/final/coin.html).
   Scoped under .pg-coin; the diagram system is flow.css, laid out by web/flow.js drawWheel. */

.pg-coin .cn-id { display: flex; align-items: center; gap: 14px; }
.pg-coin .cn-id .ci { width: 44px; height: 44px; }
.pg-coin .cn-pair { color: var(--label); font: 500 16px / 1 var(--f); letter-spacing: -0.01em; align-self: flex-end; padding-bottom: 4px; }
.pg-coin .cn-ca { margin-top: 10px; font-size: 13px; }
@media (max-width: 480px) {
  .pg-coin .cn-pair { display: none; }
  .pg-coin .cn-id .ci { width: 36px; height: 36px; }
  .pg-coin .cn-id { gap: 10px; }
}

/* ---------- the wheel ---------- */
.pg-coin .wheel { position: relative; }
.pg-coin .wheel-in { position: relative; }
.pg-coin .n .st-name { display: flex; align-items: center; gap: 8px; }
.pg-coin .n .st-rule { margin-top: 4px; }
.pg-coin .bname { white-space: nowrap; }
.pg-coin .burned { margin-top: 8px; }
.pg-coin .on-line .link { font-weight: 400; }

/* the burn gate: the page's one big figure, with the pool's slots */
.pg-coin .hero .fig { font-size: clamp(48px, calc(34px + 2.4vw), 76px); letter-spacing: -0.045em; }
.pg-coin .hero .fig small { font-size: 0.36em; }
.pg-coin .hero-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 26px; margin-top: 8px; }
.pg-coin .hero-row .fig { margin: 0; }
.pg-coin .pool { padding-bottom: 6px; }
.pg-coin .slots { display: flex; align-items: center; gap: 10px; color: var(--paper2); font-size: 14px; font-variant-numeric: tabular-nums; }
.pg-coin .slots i { display: inline-flex; gap: 4px; }
.pg-coin .slots i b { display: block; width: 26px; height: 12px; border-radius: 1px; }
.pg-coin .slots i b.full { background: var(--coral); }
.pg-coin .slots i b.open { outline: 1.5px dashed var(--coral-dim); outline-offset: -1.5px; }
.pg-coin .yetline { margin-top: 6px; color: var(--label); font-size: 13px; }
.pg-coin .rules { margin-top: 8px; display: grid; grid-template-columns: auto auto; gap: 3px 14px; justify-content: end; font: 500 14px / 1.35 var(--f); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--steel); }
.pg-coin .rules dt { color: var(--label); font-weight: 400; text-align: right; }
.pg-coin .rules dd { text-align: left; }
.pg-coin .rules .link { color: var(--label); font-weight: 400; }

@media (min-width: 980px) {
  .pg-coin .wheel { height: 580px; }
  .pg-coin .wheel .band { display: block; position: absolute; left: 0; right: 0; }
  .pg-coin .wheel .band.pub { top: 0; height: 290px; background: var(--g-public); }
  .pg-coin .wheel .band.priv { top: 290px; bottom: 0; background: var(--g-private); }
  .pg-coin .wheel-in { height: 100%; }
  .pg-coin .wheel .seg, .pg-coin .wheel .gate { display: contents; }
  .pg-coin .wheel .item { position: absolute; width: max-content; max-width: 360px; }
  .pg-coin .wheel .item.n { text-align: center; width: 240px; }
  .pg-coin .wheel .item.hero { max-width: 640px; }
  .pg-coin .n .st-name { justify-content: center; }
  .pg-coin .e { padding: 4px 12px; text-align: center; }
  .pg-coin .e.pub { background: var(--g-public); }
  .pg-coin .e.priv { background: var(--g-private); }
  .pg-coin .r-align { text-align: right; }
}
/* phones and narrow tablets: the same loop stood on end, the flow down the left, the way back up the right */
@media (max-width: 979.98px) {
  .pg-coin .wheel .seg, .pg-coin .wheel .gate { padding: 22px 46px 22px 50px; }
  .pg-coin .wheel .seg.pub { background: var(--g-public); }
  .pg-coin .wheel .seg.priv { background: var(--g-private); }
  .pg-coin .wheel .seg > .item + .item { margin-top: 22px; }
  .pg-coin .wheel .gate { border-bottom: 2px solid var(--bar); }
  .pg-coin .wheel .gate.verified { background: var(--g-public); padding-top: 4px; }
  .pg-coin .wheel .gate.burn { background: var(--g-private); padding-top: 4px; }
  .pg-coin .wheel-in { padding: 0; }
  .pg-coin .bname { display: block; white-space: normal; }
  .pg-coin .rules { justify-content: start; }
  .pg-coin .rules dt { text-align: left; }
  .pg-coin .r-align { text-align: left; }
}

/* ---------- the market ---------- */
.pg-coin .market { padding: 56px 0 8px; }
.pg-coin .bar-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pg-coin .market h2 { color: var(--paper); font: 600 22px / 1.1 var(--f); letter-spacing: -0.03em; }
.pg-coin .mk-chart { position: relative; height: 340px; background: var(--tile); border-radius: 6px; }
.pg-coin .mk-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-coin .mk-lab { position: absolute; left: 18px; top: 16px; pointer-events: none; }
.pg-coin .mk-lab .fig { font-size: 30px; }
.pg-coin .mk-lab p { margin-top: 6px; color: var(--label); font-size: 13px; }
.pg-coin .mk-lab p b { color: var(--paper2); font-weight: 500; }
.pg-coin .cap-line { margin-top: 12px; color: var(--label); font-size: 13px; }
.pg-coin .cap-line b { color: var(--paper2); font-weight: 500; font-variant-numeric: tabular-nums; }
.pg-coin .tick { fill: var(--label); font: 500 13px var(--f); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .pg-coin .mk-chart { height: 280px; }
  .pg-coin .mk-lab .fig { font-size: 24px; }
}
