/* Ordi Agent — retro Windows 98 theme */
@font-face { font-family: "VT323"; src: url(vt323.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Silkscreen"; font-weight: 400; src: url(silkscreen-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Silkscreen"; font-weight: 700; src: url(silkscreen-700.woff2) format("woff2"); font-display: swap; }
:root {
  --desk: #0b0e11; --face: #1e2329; --hi: #5e6673; --lite: #2b3139; --shade: #474d57; --dark: #000; --well: #0b0e11;
  --y: #f0b90b; --y2: #fcd535; --navy: #f0b90b; --navy2: #fcd535; --ink: #eaecef; --sub: #929aa5; --or: #f0b90b; --or-d: #f0b90b; --green: #0ecb81; --red: #f6465d;
  --ui: Tahoma, "MS Sans Serif", Geneva, Verdana, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --px: "Silkscreen", "VT323", monospace; --term: "VT323", "Lucida Console", monospace;
  --mono: "Lucida Console", "Courier New", ui-monospace, monospace;
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker ul { animation: none !important; } }
body { margin: 0; background: var(--desk); color: var(--ink); font: 13px/1.45 var(--ui); padding-bottom: 46px;
  background-image: radial-gradient(rgba(240,185,11,.10) 1px, transparent 1px); background-size: 4px 4px; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 8px; }
ul, ol { margin: 0; }
[hidden] { display: none !important; }
.x-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { font-size: 12px; color: var(--sub); }
.muted { color: var(--shade) !important; }
.x-mono, .mono { font-family: var(--mono); overflow-wrap: anywhere; font-size: 12px; }
:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }

/* bevels */
.win, .nav, .taskbar, .btn, .chip, .x-step { box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shade), inset 2px 2px var(--lite); }
.sunk, .x-input, .x-field, .x-stepper input, .x-cmd, .x-bar, .x-kv, .x-pay > div, .x-kvrow > div, .cdbox, .x-addr code, .x-soon, .hero__art {
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shade), inset -2px -2px var(--lite), inset 2px 2px var(--dark); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 4px 14px; border: 0; background: var(--face);
  color: var(--ink); font: 700 13px var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:active:not(:disabled) { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--dark), inset -2px -2px var(--lite), inset 2px 2px var(--shade); padding: 5px 13px 3px 15px; }
.btn:disabled { color: #6b717c; cursor: not-allowed; }
.btn--y { background: var(--y); color: #000; }
.btn--y:disabled { background: #5c4a12; color: #a99a6a; }
.btn--ink { background: var(--lite); color: var(--y); }
.btn--big { min-height: 40px; font-size: 14px; padding: 6px 20px; width: auto; }
.btn--icon { width: 32px; padding: 0; }
.btn--icon svg { width: 16px; height: 16px; fill: var(--ink); }
.btn.is-on { background: var(--lite); color: var(--y); font-family: var(--mono); }
.link { color: var(--navy); font-weight: 700; margin-left: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; background: var(--face); font-size: 12px; font-weight: 700; }
.chip--solid, .chip--y { background: var(--y); color: #000; }

/* window */
.win { background: var(--face); padding: 3px; }
.win__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; padding: 2px 3px 2px 4px;
  background: linear-gradient(90deg, var(--y), var(--y2)); color: #000; font-weight: 700; }
.win__title { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.win__title img { width: 16px; height: 16px; flex: none; }
.win__btns { display: flex; gap: 2px; flex: none; }
.win__btns i { width: 18px; height: 16px; display: grid; place-items: center; background: var(--face); color: var(--ink); font: 700 11px/1 var(--ui); font-style: normal;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shade), inset 2px 2px var(--lite); }
.win__btns i:last-child { margin-left: 2px; }
.win__body { padding: 14px; }
.win h2 { font: 700 18px var(--ui); margin-bottom: 10px; }
.win h2 small, .win h3 small { font-weight: 400; font-size: 12px; color: var(--sub); }
.win h3 { font: 700 14px var(--ui); margin-bottom: 6px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 6px 10px; background: var(--face); }
.nav__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 700 16px var(--px); flex: none; }
.nav__brand img { width: 28px; height: 28px; }
.nav__brand em { font-style: normal; color: var(--or-d); margin-left: 4px; }
.nav__links { display: flex; gap: 2px; flex: 1; }
.nav__links a { padding: 5px 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.nav__links a:hover { background: var(--y); color: #000; }
.nav__right { display: flex; gap: 6px; align-items: center; margin-left: auto; }

main { max-width: var(--max); margin: 0 auto; padding: 22px 16px 10px; }

/* hero */
.hero { display: block; }
.hero__main .win__body { padding: 20px 20px 18px; }
.eyebrow { font: 700 12px var(--px); letter-spacing: .06em; color: var(--or-d); margin: 0 0 6px; text-transform: uppercase; }
.hero h1 { font: 400 46px/0.98 var(--term); margin: 2px 0 12px; letter-spacing: .01em; }
.callout__lead { font-size: 14px; }
.callout__lead strong { color: var(--navy); }
.tagline { display: inline-block; background: #000; color: var(--y); border: 1px solid var(--y); font: 18px var(--term); padding: 2px 8px; margin: 2px 0 12px; }
.cdbox { background: var(--well); padding: 10px 12px; margin-bottom: 14px; }
.cdbox__label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 4px; }
.x-cd { display: flex; gap: 6px; }
.x-cd span { display: flex; align-items: baseline; gap: 2px; background: #000; color: var(--y); padding: 2px 8px; border: 1px solid #3a3000; }
.x-cd b { font: 400 34px/1 var(--term); }
.x-cd i { font: 16px var(--term); font-style: normal; color: #a37d06; }
.x-cd-txt { font: 400 26px/1.1 var(--term); color: var(--navy); }
.hero__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hero__mini { list-style: none; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.hero__mini li { background: var(--lite); color: var(--y); border: 1px solid var(--y); padding: 2px 8px; font-size: 12px; font-weight: 700; }
.hero__paint .win__body { padding: 8px; position: relative; background: var(--face); }
.hero__art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 80% center; padding: 2px; background: #000; }
.hero__badge { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 8px; background: var(--face); padding: 4px 10px 4px 4px;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shade), inset 2px 2px var(--lite); font: 700 13px var(--px); }
.hero__badge img { width: 34px; height: 34px; }

/* ticker */
.ticker { margin: 20px -16px 0; overflow: hidden; background: var(--y); border-top: 2px solid #000; border-bottom: 2px solid #000; }
.ticker ul { list-style: none; margin: 0; padding: 6px 0; display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker li { font: 22px var(--term); color: #000; padding: 0 22px; white-space: nowrap; }
.ticker li::before { content: "◆"; color: #000; margin-right: 10px; font-size: 12px; vertical-align: 3px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* blocks */
.block { margin-top: 34px; }
.block__head { color: var(--ink); margin-bottom: 12px; text-shadow: none; }
.block__head .eyebrow { color: var(--y); }
.block__head h2 { font: 400 40px/1 var(--term); }
.block__head p { max-width: 720px; margin-top: 6px; font-size: 14px; color: var(--sub); }
.mintgrid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.mintgrid__card { position: sticky; top: 58px; }
.mintgrid__side { display: grid; gap: 18px; }

/* mint card */
.x-thead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.x-thead h3 { font: 400 30px/1 var(--term); margin: 0; color: var(--y); }
.x-tcd { color: var(--navy); font-weight: 700; margin: 4px 0 10px; min-height: 1em; }
.x-kvrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.x-kvrow > div { background: var(--well); padding: 6px 8px; }
.x-kvrow small, .x-pay dt { display: block; font-size: 11px; color: var(--sub); }
.x-kvrow b { font: 400 22px/1.1 var(--term); }
.x-ref { background: #2b2410; border: 1px solid var(--y); padding: 6px 8px; font-size: 12px; }
.x-wallet { border: 1px solid var(--shade); box-shadow: 1px 1px 0 var(--dark) inset; padding: 10px; margin-bottom: 12px; position: relative; }
.x-wallet__head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.x-wallet__head .btn--y { flex: 1; }
.x-kv { margin: 8px 0 0; background: var(--well); padding: 6px 8px; }
.x-kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dotted var(--shade); }
.x-kv > div:last-child { border-bottom: 0; }
.x-kv dt { color: var(--sub); } .x-kv dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.x-stepper { display: grid; grid-template-columns: 40px 1fr 40px; gap: 6px; margin-bottom: 8px; }
.x-step { border: 0; background: var(--face); color: var(--ink); font: 700 18px var(--ui); cursor: pointer; min-height: 36px; }
.x-stepper input { width: 100%; border: 0; background: var(--well); color: var(--ink); text-align: center; font: 400 28px var(--term); min-height: 36px; -moz-appearance: textfield; }
.x-stepper input::-webkit-outer-spin-button, .x-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.x-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 10px; }
.x-pay > div { background: var(--well); padding: 6px 8px; }
.x-pay dd { margin: 0; font: 400 22px/1.1 var(--term); color: var(--or-d); }
#hj-paid { width: 100%; margin-bottom: 6px; }
.x-extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--shade); box-shadow: 0 1px 0 var(--hi) inset; }
.x-msg { margin: 10px 0 0; min-height: 1em; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.x-mylink { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--shade); }
.x-out { display: flex; gap: 6px; margin: 6px 0; }
.x-input { flex: 1; min-width: 0; border: 0; background: var(--well); color: var(--ink); padding: 6px 8px; font: 12px var(--mono); min-height: 30px; }

/* progress */
.x-soon { background: #2b2410; color: var(--y); padding: 10px 12px; margin-bottom: 10px; }
.x-pmeta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.x-pmeta b { font: 400 22px var(--term); }
.x-bar { height: 24px; background: var(--well); padding: 3px; }
.x-bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--navy) 0 12px, transparent 12px 15px); transition: width .4s; }
.tp-milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.tp-milestones > div { background: var(--well); padding: 6px 8px; border: 1px solid var(--shade); }
.tp-milestones small { display: block; font-size: 11px; color: var(--sub); }

/* steps */
.x-how, .x-isteps { list-style: none; padding: 0; display: grid; gap: 8px; }
.x-how li, .x-isteps li { display: flex; gap: 10px; align-items: flex-start; }
.x-how i, .x-isteps i { flex: none; width: 26px; height: 26px; display: grid; place-items: center; background: var(--y); color: #000; font: 700 13px var(--ui); font-style: normal; }
.x-how b, .x-isteps b { display: block; }
.x-cmd { background: #000; color: var(--y); padding: 10px; margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; font: 12px/1.5 var(--mono); }

/* rules */
.x-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.x-rule { background: var(--well); border: 1px solid var(--shade); padding: 12px; box-shadow: 3px 3px 0 var(--y); }
.x-rule__stamp { display: inline-block; font: 400 34px/1 var(--term); color: var(--or-d); margin-bottom: 6px; }
.x-rule ul { padding-left: 18px; }
.x-rule li { margin: 3px 0; }

/* invite */
.x-invite { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.x-invite__lead { font-size: 14px; }
.x-field { display: flex; align-items: center; background: var(--well); padding: 2px 8px; min-height: 34px; margin: 8px 0; }
.x-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 14px var(--ui); padding: 6px 4px; }
.x-at, .x-sfx { font-weight: 700; color: var(--shade); }

/* supply */
.x-alloc { display: flex; height: 22px; padding: 3px; background: var(--well); margin-bottom: 12px;
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shade), inset -2px -2px var(--lite), inset 2px 2px var(--dark); }
.x-alloc span:first-child { width: 58%; background: var(--or); }
.x-alloc span:last-child { width: 42%; background: #eaecef; }
.x-pcts, .x-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.x-pct, .x-chipcard { background: var(--well); border: 1px solid var(--shade); padding: 12px; box-shadow: 3px 3px 0 var(--y); }
.x-pct > b, .x-chipcard > b { font: 400 40px/1 var(--term); color: var(--or-d); display: block; }
.x-pct--lp > b { color: #eaecef; }
.x-pct__amt { font-weight: 700; margin: 2px 0; }
.x-split { margin: 6px 0; }
.x-split > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--shade); }
.x-split dt small { display: block; font-size: 11px; color: var(--sub); }
.x-split dd { margin: 0; font-weight: 700; }
.x-gap { margin-top: 8px; }

/* addresses */
.x-dossier { display: grid; gap: 0; background: var(--well); border: 1px solid var(--shade); }
.x-addr { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px dotted var(--shade); }
.x-addr:last-child { border-bottom: 0; }
.x-addr > span { font-weight: 700; }
.x-addr > span small { display: block; font-weight: 400; font-size: 11px; color: var(--sub); }
.x-addr code { font: 12px var(--mono); overflow-wrap: anywhere; background: #000; color: var(--y); padding: 4px 6px; }
.x-addr > div { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.x-addr .btn { min-height: 24px; padding: 2px 8px; font-size: 12px; }
.x-addr a.link { margin: 0; }
.x-warn { margin: 12px 0 0; display: flex; gap: 10px; align-items: flex-start; background: #2b2410; border: 1px solid var(--y); padding: 8px 10px; }
.x-warn strong { color: var(--red); }
.x-warn strong::before { content: "⚠ "; }

/* faq */
.x-faq { display: grid; gap: 4px; }
.x-faq details { background: var(--well); border: 1px solid var(--shade); }
.x-faq summary { cursor: pointer; padding: 8px 10px; font-weight: 700; list-style: none; display: flex; gap: 8px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::before { content: "+"; width: 13px; height: 13px; flex: none; display: grid; place-items: center; border: 1px solid var(--shade); font-size: 11px; line-height: 1; margin-top: 2px; background: transparent; }
.x-faq details[open] summary::before { content: "−"; }
.x-faq details[open] summary { background: var(--y); color: #000; }
.x-faq p { padding: 8px 10px 10px 31px; margin: 0; }

/* footer + taskbar */
.foot { max-width: var(--max); margin: 40px auto 0; padding: 18px 16px 24px; color: #fff; }
.foot .nav__brand { color: #fff; margin-bottom: 8px; }
.foot .nav__brand em { color: var(--y); }
.foot p { max-width: 760px; font-size: 12px; color: var(--sub); }
.foot .link { color: var(--y); }
.foot__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.foot__links a { color: var(--ink); font-weight: 700; }
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 38px; display: flex; align-items: center; gap: 6px; padding: 4px; background: var(--face); }
.taskbar__start, .taskbar__task { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: var(--face); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shade), inset 2px 2px var(--lite); }
.taskbar__start img { width: 20px; height: 20px; }
.taskbar__task { min-width: 160px; background: var(--lite); color: var(--y); box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--dark), inset -2px -2px var(--lite), inset 2px 2px var(--shade); }
.taskbar__clock { margin-left: auto; padding: 0 12px; height: 30px; display: inline-flex; align-items: center;
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shade); }

/* responsive */
@media (max-width: 960px) {
  .hero, .mintgrid, .x-invite { grid-template-columns: 1fr; }
  .mintgrid__card { position: static; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__brand span { font-size: 13px; }
  .hero h1 { font-size: 38px; }
  .block__head h2 { font-size: 34px; }
  .x-rules, .x-pcts, .x-chips, .tp-milestones { grid-template-columns: 1fr; }
  .x-addr { grid-template-columns: 1fr; gap: 4px; }
  .x-addr > div { justify-content: flex-start; }
  .win__body { padding: 10px; }
  .taskbar__task { min-width: 0; }
}

.x-faq summary { color: var(--ink); }
.x-msg { color: var(--y); }
.hero h1 { color: #fff; }

/* hero without banner */
.hero__main .win__body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 28px; padding: 24px 26px 22px; }
.hero__main .win__body > * { grid-column: 1; }
.hero__main .cdbox, .hero__main .hero__cta, .hero__main .hero__mini { grid-column: 2; }
.hero__main .cdbox { grid-row: 1 / span 3; align-self: end; margin: 0 0 14px; padding: 18px; }
.hero__main .hero__cta { grid-row: 4; }
.hero__main .hero__mini { grid-row: 5; }
.hero__main .eyebrow { grid-row: 1; } .hero__main h1 { grid-row: 2; } .hero__main .callout__lead { grid-row: 3; } .hero__main .tagline { grid-row: 4; align-self: start; justify-self: start; }
.hero h1 { font-size: 58px; }
.x-cd b { font-size: 46px; }
.x-cd-txt { font-size: 36px; }
@media (max-width: 960px) {
  .hero__main .win__body { display: block; }
  .hero h1 { font-size: 40px; }
}

/* language toggle */
.lang { display: flex; }
.lang__b { min-width: 46px; padding: 4px 8px; font-size: 12px; }
.lang__b.is-cur { background: var(--y); color: #000; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--dark), inset -2px -2px var(--lite), inset 2px 2px var(--shade); }
@media (max-width: 720px) { .lang__b { min-width: 38px; padding: 4px 6px; } #nav-x { display: none; } .nav { gap: 8px; } }
/* Chinese sizing (CJK falls back to system font, which renders larger than VT323) */
html[lang="zh-CN"] .hero h1 { font-size: 46px; line-height: 1.15; }
html[lang="zh-CN"] .block__head h2 { font-size: 34px; line-height: 1.15; }
html[lang="zh-CN"] .x-cd-txt { font-size: 28px; }
html[lang="zh-CN"] .ticker li { font-size: 18px; }
@media (max-width: 720px) {
  html[lang="zh-CN"] .hero h1 { font-size: 32px; }
  html[lang="zh-CN"] .block__head h2 { font-size: 28px; }
  html[lang="zh-CN"] .x-cd-txt { font-size: 24px; }
}
