/* OTCX · the hero (Stage). Storyboard: public/DESIGN.md "THE HERO". Only transforms + opacity move. */
.hero { position: relative; height: calc(100vh - var(--hdr) - 86px); min-height: 600px; max-height: 1000px; padding: 20px 0 14px; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 66% 30%, rgba(224, 178, 92, .055), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(150, 175, 210, .05), transparent 70%); }
.hero-in { position: relative; height: 100%; display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 28px; }

/* ---- left: the words + the outcome board ---- */
.hcopy { display: flex; flex-direction: column; min-width: 0; padding-top: 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow .lbl { color: var(--ink3); letter-spacing: .14em; }
.hcopy h1 { margin: 18px 0 0; font: 600 52px/1.04 var(--fd); letter-spacing: -.015em; color: #f2f4f7; }
.hcopy .lead { margin: 20px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--ink2); max-width: 44ch; }
.hcopy .cta { display: flex; gap: 10px; margin-top: 28px; }
.hcopy .cta .btn { height: 44px; padding: 0 20px; font-size: 14px; font-weight: 500; }

.outc { margin-top: auto; border: 1px solid var(--l2); background: linear-gradient(180deg, rgba(24, 32, 44, .9), rgba(19, 26, 36, .9)); box-shadow: var(--lift); }
.outc-h { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-bottom: 1px solid var(--l1); }
.outc-h .lbl b { color: var(--ink); font-weight: 600; }
.outc-h .tok { margin-left: auto; font: 400 11.5px/1 var(--fm); color: var(--ink3); }
.orow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 112px; align-items: center; gap: 12px; height: 74px; padding: 0 16px; position: relative; }
.orow + .orow { border-top: 1px solid var(--l1); }
.orow::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; }
.orow.pool::before { background: var(--dn); } .orow.otc::before { background: var(--au); }
.orow .w b { display: block; font: 600 10.5px/1 var(--fm); letter-spacing: .14em; }
.orow.pool .w b { color: var(--dn); } .orow.otc .w b { color: var(--au); }
.orow .w span { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow .big { font: 500 27px/1 var(--fd); letter-spacing: -.015em; text-align: right; white-space: nowrap; }
.orow.pool .big { color: var(--dn); } .orow.otc .big { color: #f2f4f7; }
.orow .s { text-align: right; font: 500 14px/1.15 var(--fm); color: var(--ink); white-space: nowrap; }
.orow .s small { display: block; font: 400 10.5px/1.3 var(--fm); color: var(--ink3); letter-spacing: .06em; text-transform: uppercase; }
.outc-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 16px; border-top: 1px solid var(--l1); background: rgba(224, 178, 92, .06); font: 500 12.5px/1 var(--fm); }
.outc-f .k { color: var(--ink2); font-family: var(--ft); font-size: 13px; }
.outc-f .v { color: var(--au2); }

/* the live feed in the left column: the last big sells into a pool (real pool tape) */
.hfeed { margin-top: 34px; border-top: 1px solid var(--l1); }
.hfeed-h { display: flex; align-items: center; height: 36px; }
.hfeed-h a { margin-left: auto; font: 500 12px/1 var(--ft); color: var(--ink2); display: inline-flex; gap: 6px; }
.hfeed-h a:hover { color: var(--au); }
.hfr { display: grid; grid-template-columns: 22px minmax(0, 1fr) 62px 74px 76px 34px; align-items: center; gap: 10px; height: 33px; border-top: 1px solid var(--l1); font: 400 12px/1 var(--fm); }
.hfr img, .hfr .ph { width: 20px; height: 20px; border-radius: 50%; background: var(--bg4); object-fit: cover; }
.hfr .ph { display: flex; align-items: center; justify-content: center; font: 600 8.5px/1 var(--fm); color: var(--ink3); }
.hfr b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hfr .r { text-align: right; white-space: nowrap; } .hfr .m { color: var(--dn); font-weight: 600; }
.hfr.new { animation: rowInDn 1.6s var(--ez); }
a.hfr:hover b { color: var(--au2); }
@media (max-height: 880px) and (min-width: 1100px) { .hfeed { display: none; } }

/* ---- right: the stage ---- */
.stage { position: relative; min-width: 0; height: 100%; background: var(--glass); border: 1px solid var(--l2); overflow: hidden; contain: layout paint; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 58% 34%, rgba(224, 178, 92, .07), transparent 65%), linear-gradient(180deg, transparent 72%, rgba(224, 178, 92, .025)); }
.tick { position: absolute; width: 12px; height: 12px; border-color: var(--st3); border-style: solid; pointer-events: none; z-index: 6; }
.tick.a { left: 7px; top: 7px; border-width: 1px 0 0 1px; } .tick.b { right: 7px; top: 7px; border-width: 1px 1px 0 0; }
.tick.c { left: 7px; bottom: 7px; border-width: 0 0 1px 1px; } .tick.d { right: 7px; bottom: 7px; border-width: 0 1px 1px 0; }

.st-coin { position: absolute; left: 0; right: 0; top: 0; height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--l1); z-index: 5; background: linear-gradient(180deg, rgba(19, 26, 36, .7), rgba(19, 26, 36, 0)); }
.st-coin .cph { display: flex; align-items: center; justify-content: center; font: 600 11px/1 var(--fm); color: var(--ink2); }
.st-coin .ci { width: 34px; height: 34px; border-radius: 50%; background: var(--bg4); object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--l2); }
.st-coin .cn { min-width: 0; width: 210px; }
.st-coin .cn b { display: block; font: 600 15px/1.1 var(--fm); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-coin .cn span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-coin .kv { display: flex; gap: 0; }
.st-coin .kv > div { padding: 0 16px; border-left: 1px solid var(--l1); min-width: 92px; white-space: nowrap; }
.st-coin .kv .v { display: block; margin-top: 6px; font: 500 13.5px/1 var(--fm); color: var(--ink); white-space: nowrap; }
.st-rot { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.st-rot .n { font: 500 12px/1 var(--fm); color: var(--ink2); width: 70px; text-align: right; white-space: nowrap; }
.st-rot .pb { width: 120px; height: 2px; background: var(--bg5); overflow: hidden; position: relative; }
.st-rot .pb i { position: absolute; inset: 0; background: var(--au); transform-origin: 0 50%; transform: scaleX(0); }
.st-rot button { width: 26px; height: 26px; border: 1px solid var(--l2); border-radius: var(--r); color: var(--ink2); font: 400 12px/1 var(--fm); }
.st-rot button:hover { color: var(--ink); border-color: var(--l3); }

/* the chart (SVG) and its HTML labels */
.st-chart { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.st-chart text { font: 400 10.5px var(--fm); fill: var(--ink3); }
.st-fut { position: absolute; top: 0; height: 100%; overflow: hidden; z-index: 2; will-change: transform; }
.st-fut > div { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.st-fut svg { position: absolute; top: 0; left: 0; overflow: visible; }
.nowdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--au2); box-shadow: 0 0 0 4px rgba(224, 178, 92, .22), 0 0 18px rgba(246, 216, 145, .8); z-index: 4; }
.nowdot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--au); animation: ping 2s var(--ez) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.nowtag { position: absolute; z-index: 4; transform: translate(-50%, 0); font: 600 9.5px/1 var(--fm); letter-spacing: .16em; color: var(--au); background: var(--bg); padding: 3px 6px; border: 1px solid var(--auB); }
.blab { position: absolute; z-index: 4; right: 84px; text-align: right; white-space: nowrap; transition: opacity .4s var(--ez); }
.blab b { display: block; font: 600 10px/1 var(--fm); letter-spacing: .14em; }
.blab .v { display: block; margin-top: 6px; font: 500 20px/1 var(--fd); letter-spacing: -.01em; }
.blab .v small { font: 500 12.5px/1 var(--fm); letter-spacing: 0; margin-left: 8px; color: var(--ink2); }
.blab.otc b { color: var(--au); } .blab.otc .v { color: var(--au2); }
.blab.pool b { color: var(--dn); } .blab.pool .v { color: var(--dn); }
.ylab { position: absolute; right: 0; width: 72px; padding-left: 10px; transform: translateY(-50%); font: 400 10.5px/1 var(--fm); color: var(--ink3); z-index: 3; }
.ylab.pxl { color: var(--au); font-weight: 600; } .ylab.pxa { color: var(--dn); font-weight: 600; }

/* the lane: seller · vault · buyer, and the two legs */
.party { position: absolute; z-index: 5; width: 232px; height: 104px; padding: 12px 14px; background: linear-gradient(180deg, #19212d, #141b25); border: 1px solid var(--l2); box-shadow: var(--lift); }
.party .ph { display: flex; align-items: center; justify-content: space-between; }
.party .ph .who { font: 400 11px/1 var(--fm); color: var(--ink2); }
.party .row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; margin-top: 10px; }
.party .row .lbl { font-size: 9.5px; }
.party .row .v { font: 500 13px/1 var(--fm); color: var(--ink); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party .row .v.got { color: var(--ink3); transition: color .3s; }
.party.done .row .v.got { color: var(--up); }
.party.seller.done { border-color: rgba(224, 178, 92, .35); } .party.buyer.done { border-color: rgba(224, 178, 92, .35); }

.vault { position: absolute; z-index: 4; }
.vault .door, .vault .wheel { position: absolute; display: block; pointer-events: none; user-select: none; }
.vault .door { inset: 0; width: 100%; height: 100%; }
.vault .wheel { width: 51.6%; height: 51.6%; left: calc(50.67% - 25.8%); top: calc(50.22% - 25.8%); will-change: transform; }
.vault .halo { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(246, 216, 145, .32), rgba(224, 178, 92, .1) 55%, transparent 72%); opacity: .35; will-change: opacity, transform; }
.vault .ring { position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(224, 178, 92, .4); opacity: .5; will-change: transform; }
.vault .ring2 { position: absolute; inset: -16%; border-radius: 50%; border: 1px solid rgba(196, 210, 230, .1); }
.vault .vlab { position: absolute; left: 50%; top: calc(100% + 16px); transform: translateX(-50%); white-space: nowrap; text-align: center; }
.vault .vlab b { display: block; font: 600 10px/1 var(--fm); letter-spacing: .2em; color: var(--au); }
.vault .vlab span { display: block; margin-top: 5px; font: 400 10.5px/1 var(--fm); color: var(--ink3); letter-spacing: .04em; }
.beam { position: absolute; z-index: 1; width: 1px; background: linear-gradient(180deg, rgba(224, 178, 92, .7), rgba(224, 178, 92, .15)); }
.pulse { position: absolute; left: 0; top: 0; width: 140px; height: 8px; margin: -4px 0 0 -140px; z-index: 3; opacity: 0; pointer-events: none; border-radius: 4px; background: linear-gradient(90deg, rgba(246, 216, 145, 0), rgba(246, 216, 145, .35) 55%, #fff4d2 92%, rgba(255, 244, 210, 0)); will-change: transform, opacity; }
.lanepath { position: absolute; z-index: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--l3) 0 4px, transparent 4px 9px); }

.leg { position: absolute; z-index: 6; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; }
.leg .tag { position: absolute; left: 0; bottom: 30px; transform: translateX(-50%); white-space: nowrap; font: 500 11px/1 var(--fm); padding: 5px 7px; border-radius: var(--r); }
.leg.tok .tag { color: var(--st1); background: rgba(16, 21, 29, .92); border: 1px solid var(--l3); }
.leg.sol .tag { color: var(--au2); background: rgba(16, 21, 29, .92); border: 1px solid var(--auB); }
.cube { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; perspective: 520px; }
.cube .c3 { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin 7s linear infinite; }
.cube .f { position: absolute; inset: 0; backface-visibility: hidden; }
.cube .f1 { transform: translateZ(18px); } .cube .f2 { transform: rotateY(180deg) translateZ(18px); }
.cube .f3 { transform: rotateY(90deg) translateZ(18px); } .cube .f4 { transform: rotateY(-90deg) translateZ(18px); }
.cube .f5 { transform: rotateX(90deg) translateZ(18px); } .cube .f6 { transform: rotateX(-90deg) translateZ(18px); }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.tok .f { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px), linear-gradient(135deg, #f1f4f7 0%, #a9b4c1 42%, #dfe5ec 58%, #76828f 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tok .f3, .tok .f4 { filter: brightness(.78); } .tok .f5 { filter: brightness(1.12); } .tok .f6 { filter: brightness(.6); }
.sol .f { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px), linear-gradient(135deg, #fff0c4 0%, #e0b25c 42%, #f6d891 58%, #9c7128 100%); box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .35); }
.sol .f3, .sol .f4 { filter: brightness(.8); } .sol .f5 { filter: brightness(1.1); } .sol .f6 { filter: brightness(.6); }
.leg .glow { position: absolute; left: -34px; top: 16px; width: 68px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 178, 92, .35), transparent); }
.leg.tok .glow { background: radial-gradient(closest-side, rgba(200, 215, 235, .28), transparent); }

/* the band: big state word + the four steps */
.st-band { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; display: flex; align-items: center; gap: 28px; padding: 0 22px; border-top: 1px solid var(--l1); z-index: 5; background: linear-gradient(180deg, rgba(11, 16, 23, .4), rgba(11, 16, 23, .9)); }
.st-word { width: 330px; flex: none; }
.st-word b { display: block; font: 600 22px/1.1 var(--fd); letter-spacing: -.005em; color: #f2f4f7; transition: opacity .25s var(--ez); }
.st-word span { display: block; margin-top: 7px; font: 400 11.5px/1 var(--fm); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.steps > div { position: relative; padding-top: 12px; min-width: 0; }
.steps > div::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bg5); }
.steps > div::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--au); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ez); }
.steps > div.on::after, .steps > div.done::after { transform: scaleX(1); }
.steps > div.done::after { background: var(--au3); }
.steps b { display: block; font: 600 10.5px/1 var(--fm); letter-spacing: .14em; color: var(--ink3); transition: color .3s; }
.steps span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.steps > div.on b { color: var(--au); } .steps > div.on span, .steps > div.done span { color: var(--ink2); } .steps > div.done b { color: var(--ink2); }
.st-src { flex: none; text-align: right; font: 400 10.5px/1.6 var(--fm); color: var(--ink3); width: 190px; white-space: nowrap; }

/* the live strip right under the hero */
.hstrip { padding-bottom: 0; }
.hstrip .strip > div:first-child .v { color: var(--ink); }

/* ---- responsive ---- */
@media (max-width: 1599px) { .hero-in { grid-template-columns: 440px minmax(0, 1fr); } .hcopy h1 { font-size: 46px; } .orow { grid-template-columns: minmax(0, 1fr) 128px 104px; } .orow .big { font-size: 24px; } .st-coin .kv > div:nth-child(n+4) { display: none; } .st-src { display: none; } }
@media (max-width: 1279px) { .hero-in { grid-template-columns: 380px minmax(0, 1fr); gap: 20px; } .hcopy h1 { font-size: 38px; } .hcopy .lead { font-size: 15px; } .orow { grid-template-columns: minmax(0, 1fr) 112px; } .orow .s { grid-column: 2; } .orow { height: auto; padding: 14px 16px; row-gap: 6px; } .st-coin .kv > div:nth-child(n+3) { display: none; } .st-word { width: 240px; } }
@media (max-width: 1099px) {
  .hero { height: auto; max-height: none; min-height: 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hcopy { display: contents; }
  .hcopy > .eyebrow { padding-top: 6px; }
  .stage { order: 5; margin-top: 26px; } .outc { order: 6; margin-top: 16px; } .hfeed { order: 7; margin-top: 22px; }
  .hcopy > .eyebrow, .hcopy > h1, .hcopy > .lead, .hcopy > .cta { order: 1; }
  .orow { grid-template-columns: minmax(0, 1fr) 128px 112px; height: 70px; padding: 0 16px; }
  .orow .s { grid-column: auto; }
  .stage { height: 600px; }
}
@media (max-width: 719px) {
  .hcopy h1 { font-size: 34px; margin-top: 16px; } .hcopy .lead { font-size: 14.5px; }
  .hcopy .cta .btn { flex: 1; padding: 0 12px; }
  .orow { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 12px 14px; row-gap: 4px; }
  .orow .w { grid-column: 1 / -1; } .orow .big { text-align: left; font-size: 24px; } .orow .s { text-align: right; }
  .outc-h .tok { display: none; }
  .stage { height: 540px; }
  .st-coin { padding: 0 14px; gap: 10px; } .st-coin .kv { display: none; } .st-coin .cn { width: auto; flex: 1; }
  .st-rot .pb { width: 56px; } .st-rot button { display: none; }
  .party { width: 108px; height: 62px; padding: 7px 9px; } .party .ph .who { display: none; } .party .row { display: block; margin-top: 5px; } .party .row .lbl { display: none; } .party .row .v { display: block; text-align: left; font-size: 11px; }
  .leg .tag { display: none; } .leg .cube { transform: scale(.68); } .leg .glow { display: none; }
  .blab { right: 12px; } .blab .v { font-size: 15px; } .blab .v small { display: block; font-size: 10.5px; margin: 4px 0 0; }
  .ylab { display: none; }
  .st-band { height: 64px; padding: 0 14px; } .steps { display: none; } .st-word { width: auto; } .st-word b { font-size: 19px; }
  .vault .vlab span { display: none; }
}
/* a 945-1000 px tall screen: the live feed keeps 3 rows so the outcome board never reaches the strip */
@media (max-height: 1000px) and (min-width: 1100px) { #hfeed .hfr:nth-child(n+4) { display: none; } .hfeed { margin-top: 28px; } }
