/* MegaStonkz desktop header and page composition. */
html { scroll-padding-top: 106px; }
body { min-width: 0; padding-left: 0; }
body > main { min-height: calc(100vh - 270px); }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.nav, .top { position: sticky; top: 0; z-index: 40; padding: 0; width: 100%; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-in, .top-in { min-height: 82px; display: flex; flex-direction: row; align-items: center; gap: 28px; }
.brand { gap: 9px; letter-spacing: -.045em; font-size: 18px; white-space: nowrap; }
.brand img, .brand .mark { width: 38px; height: 38px; object-fit: contain; flex: none; }
.links, .nav-links { display: flex; flex-direction: row; align-items: center; gap: 5px; margin: 0; }
.links a, .nav-links a { padding: 10px 12px; border-radius: 9px; font-size: 12px; white-space: nowrap; border: 1px solid transparent; }
.links a.on, .nav-links a.on { background: var(--soft, rgba(82,185,226,.12)); color: var(--accent); border-color: var(--line); }
.links a:hover, .nav-links a:hover { color: var(--accent); }
.nav-right, .top-r { margin-left: auto; display: flex; flex-direction: row; align-items: center; gap: 10px; }
.nav-right .btn, .top-r .btn { white-space: nowrap; height: 38px; padding: 0 14px; font-size: 12px; }
.nav-right .xlink, .top-r .xlink { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.nav-right .ca, .top-r .ca { max-width: 138px; }
.foot { margin-top: 56px; padding-top: 26px; padding-bottom: 32px; }
.foot .brand { font-size: 16px; }
.foot .brand img { width: 28px; height: 28px; }
.foot-top { gap: 24px; }
.foot .disclaim { max-width: 80ch; font-size: 12px; }
.eyebrow { color: var(--accent); font: 500 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 10px; }
h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 16px; }
.page-heading { padding: 42px 0 24px; }
.section-no { color: var(--accent); font: 12px var(--mono); margin-right: 12px; }
.page-home .hero { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 24px 36px 0; min-height: 420px; }
.page-home .hero-txt { grid-column: 1; grid-row: 1; margin: 0; padding: 24px 0; width: auto; pointer-events: auto; }
.page-home .hero-txt h1 { font-size: clamp(38px,3.5vw,60px); line-height: 1.08; margin: 18px 0; }
.hero-desc { color: var(--dim); font-size: 14px; line-height: 1.7; max-width: 38ch; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin: 25px 0 20px; }
.text-link { color: var(--accent2); font-size: 13px; }
.page-home .hero-n { margin-top: 16px; font-size: 12px; }
.page-home .sect { padding: 36px 0; }
.page-home .sheet { grid-template-columns: 286px minmax(0,1fr); gap: 20px; }
.page-home .slip { grid-column: 1; grid-row: 1; top: 106px; padding: 20px; }
.page-home .pick { grid-column: 2; grid-row: 1; }
.page-home .slip-coin b { font-size: 18px; }
.page-home .slip-coin .coin img { object-fit: contain; }
.page-home .sentence { font-size: 14px; }
.page-home .slip .bar { height: auto; min-height: 34px; display: grid; grid-template-columns: repeat(10,1fr); gap: 3px; }
.page-home .bar > span { height: 20px; min-width: 0; }
.page-home .bar > span img { width: 15px; height: 15px; }
.page-home .legs { max-height: 260px; overflow-y: auto; margin-bottom: 14px; }
.page-home .legs .t { display: none; }
.page-home .legs .n { font-size: 11px; }
.page-home .slip .btn { height: 42px; font-size: 12px; padding: 0 8px; }
.page-home .sgrid { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 418px; }
.page-home .how > .wrap { display: grid; grid-template-columns: 1fr; gap: 26px; }
.page-home .how .head { grid-column: 1/-1; margin-bottom: 0; }
.page-home .how .head h2 { margin-top: 12px; }
.page-home .how .payout-demo { grid-column: 1; grid-row: 2; }
.page-home .how .caps { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin: 0; }
.page-home .caps p { font-size: 13px; }
.flow-label { font-size: 9px; margin: 12px 0 0; letter-spacing: .08em; }
.page-home .head h2 { font-size: 28px; }
.page-home .stable { grid-template-columns: repeat(3,minmax(0,1fr)); }
.page-home .srow { min-width: 0; padding: 12px; }
.page-home .srow > div { min-width: 0; }
.page-home .srow b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-home .srow .m { font-size: 10px; }
.dep .stk { flex-wrap: wrap; max-height: 64px; overflow: hidden; }
.page-create main > .bar { display: block; margin: 38px 0 24px !important; }
.page-create #mode-note { display: block; max-width: 90ch; line-height: 1.5; font-size: 11px; }
.launch-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 22px; }
.launch-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.launch-fields > .panel { min-width: 0; margin: 0 !important; padding: 18px; }
.launch-fields > .panel:first-child, .launch-fields > .panel:last-child { grid-column: 1/-1; }
.launch-fields > .panel:nth-child(2), .launch-fields > .panel:nth-child(3) { display: flex; flex-direction: column; }
.launch-fields h3 { margin-bottom: 12px; }
.launch-fields > .panel > .hint { font-size: 12px; }
.launch-fields > .panel:nth-child(2) > .hint, .launch-fields > .panel:nth-child(3) > .hint { min-height: 78px; }
.launch-fields .picker { flex: 1; display: flex; flex-direction: column; }
.picker-head { display: block; }
.picker-head .search { width: 100% !important; margin-bottom: 10px; }
.picker-head .chips { gap: 5px; }
.picker-head .chip { padding: 0 9px; height: 26px; font-size: 10px; }
.picker-list { max-height: 335px; min-height: 250px; }
.mrow { gap: 9px; padding: 10px; min-height: 52px; }
.asset-logo { display: block; width: 26px; height: 26px; border-radius: 50%; object-fit: contain; flex: 0 0 26px; }
.asset-name { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 4px; }
.mrow .sym { width: auto; font-size: 12px; }
.mrow .px { display: block; font-size: 10px; }
.mrow .lev { display: none; }
.mrow .tick { margin-left: auto; }
#bchosen { max-height: 128px; overflow-y: auto; }
#bchosen .chip { padding: 4px 8px; height: auto; min-height: 30px; font-size: 10px; }
#bchosen .asset-logo { width: 18px; height: 18px; flex-basis: 18px; }
.launch-layout > div:last-child > .panel { padding: 20px; }
#prev .flow > div { align-items: flex-start; gap: 12px; }
#prev .amt { max-height: 180px; overflow-y: auto; overflow-wrap: anywhere; }
.page-create .idrow { gap: 16px; }
.page-create .two { gap: 10px; }
.page-create .field label { font-size: 10px; letter-spacing: .09em; }
.page-create .drop { width: 100px; height: 112px; }
.page-create .field input[type=text] { font-size: 12px; padding: 10px; }
.page-community .com-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; max-width: none; margin: 42px 0 32px; }
.page-community .com-head .eyebrow { grid-column: 1/-1; }
.page-community .com-head h1 { max-width: 14ch; font-size: 42px; }
.page-community .com-head > p:last-child { align-self: center; font-size: 14px; line-height: 1.8; }
.com-grid { grid-template-columns: minmax(0,1fr) 330px; gap: 28px; }
.com-form { grid-column: 2; grid-row: 1; position: sticky; top: 28px; }
.com-list { grid-column: 1; grid-row: 1; }
.com-tools { min-height: 35px; }
.docs-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px 34px; }
.docs-layout > header { grid-column: 1/-1; border-bottom: 1px solid var(--line); }
.doc-index { position: sticky; top: 106px; align-self: start; display: flex; flex-direction: column; gap: 18px; padding-top: 22px; font-size: 12px; color: var(--dim); }
.doc-index a:hover { color: var(--accent); }
.docs-layout .prose { max-width: none; }
.doc-section { padding: 20px 26px; margin-bottom: 18px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel); }
.doc-section h2, .doc-section .bar { margin: 8px 0 18px !important; }
.doc-section p, .doc-section li { font-size: 13px; }
.doc-section .steps .step { padding: 14px 0; }
.page-coin main > .bar { margin: 38px 0 28px !important; }
.coin-layout { grid-template-columns: minmax(0,1fr) 320px; gap: 20px; }
.coin-layout > div { display: contents; }
.coin-layout .panel { margin: 0 !important; min-width: 0; }
.coin-layout > div:first-child > .panel:first-child { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); column-gap: 30px; align-items: center; }
.coin-layout > div:first-child > .panel:first-child .book { grid-column: 2; grid-row: 1/4; margin: 0; grid-template-columns: 1fr 1fr; }
.coin-layout > div:first-child > .panel:first-child .stocks { flex-wrap: wrap; max-height: 150px; overflow-y: auto; }
.coin-layout > div:first-child > .panel:nth-child(2) { grid-column: 1; grid-row: 2; }
.coin-layout > div:last-child > .panel:first-child { grid-column: 2; grid-row: 2/4; }
.coin-layout > div:last-child > .panel:last-child { grid-column: 1; grid-row: 3; }
.missing-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px; }
.missing-number { color: var(--accent); font: 800 150px var(--sans); letter-spacing: -.08em; text-align: center; border-right: 1px solid var(--line); }
.missing-layout .btn { margin-top: 24px; }
@media(min-width:1600px) { .page-home .sgrid { grid-template-columns: repeat(3,minmax(0,1fr)); } .launch-layout { grid-template-columns: minmax(0,1fr) 320px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
