/* TagRig · night rig yard, cartoon UI (ink outlines, hard drop shadows), Gabarito + Tanker */
@font-face { font-family: Gabarito; src: url(/assets/fonts/gabarito-latin.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Gabarito; src: url(/assets/fonts/gabarito-latin-ext.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Tanker; src: url(/assets/fonts/tanker.woff2) format('woff2'); font-display: swap; }
:root {
  --night: #0b0f1f; --night2: #10162e; --card: #141b36; --card2: #1a2245; --line: #27305a; --line2: #343f73;
  --ink: #070915; --paper: #f4f1ea; --paper2: #e7e2d6; --muted: #9aa1c6; --dim: #6b729a;
  --btc: #f7931a; --orange: #f28c1c; --amber: #ffb35c; --ok: #7be0b5;
  --r: 18px; --font: Gabarito, ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--paper); font: 500 16px/1.5 var(--font); background: radial-gradient(1200px 600px at 70% -10%, #1d2350 0%, transparent 60%), var(--night); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
img { display: block; }
.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
[hidden] { display: none !important; }

/* buttons: cartoon ink outline + hard shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; background: var(--paper); color: var(--ink); font-weight: 800; letter-spacing: -.01em; border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.go { background: var(--btc); }
.btn.go:hover { background: #ffa232; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* HUD: brand plate left, nav centre, wallet right; floats over the yard */
.hud { position: fixed; z-index: 40; top: 14px; left: 16px; right: 16px; display: flex; align-items: center; gap: 14px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 7px; border-radius: 14px; background: var(--ink); border: 2px solid #2a3260; }
.brand img { width: 32px; height: 32px; }
.brand b { font-weight: 900; font-size: 21px; letter-spacing: -.03em; }
.nav { margin: 0 auto; display: flex; gap: 2px; padding: 5px; border-radius: 14px; background: rgba(9, 12, 26, .72); border: 2px solid #232b55; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { padding: 7px 13px; border-radius: 10px; font-weight: 700; font-size: 15px; color: #c9cdea; }
.nav a:hover { background: #1c2448; color: #fff; }
.hud-r { display: flex; align-items: center; gap: 8px; }
.x-link { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); border: 2px solid #2a3260; }
.x-link svg { width: 18px; height: 18px; fill: #fff; }
.ca-pill { height: 46px; padding: 0 14px; border-radius: 14px; background: var(--ink); border: 2px solid #2a3260; font-weight: 700; font-size: 14px; color: #dfe2f5; }
.ca-pill b { color: var(--btc); font-weight: 800; margin-right: 6px; }
.wallet-btn { height: 46px; }
.wallet-btn img { width: 20px; height: 20px; border-radius: 5px; }

/* HERO */
.hero { position: relative; height: max(640px, 100svh); min-height: 640px; overflow: hidden; background: #0d1228; }
#yard { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
#yard.on { opacity: 1; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 520px at 72% 40%, #1d2350 0%, transparent 70%), linear-gradient(#0a0e22, #121735 70%, #151b39); }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(9, 12, 27, .86) 0%, rgba(9, 12, 27, .62) 30%, rgba(9, 12, 27, 0) 52%), linear-gradient(0deg, rgba(11, 15, 31, 1) 0%, rgba(11, 15, 31, 0) 22%); }
.hero-copy { position: absolute; z-index: 2; left: max(28px, calc((100vw - 1200px) / 2)); top: 50%; transform: translateY(-44%); width: min(640px, 47vw); }
h1 { margin: 0 0 18px; font-weight: 900; font-size: clamp(44px, 5vw, 86px); line-height: .94; letter-spacing: -.04em; text-wrap: balance; }
h1 span { display: block; }
h1 em { font-style: normal; color: var(--btc); }
.lede { margin: 0 0 24px; max-width: 520px; color: #c3c8e6; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; }

/* the rig console */
.console { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 7px; border-radius: 20px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.console .f { height: 50px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 13px; background: #fff; color: var(--ink); border: 2px solid #d9d3c4; min-width: 0; }
.console .f:focus-within { border-color: var(--ink); }
.console .pre { font-weight: 900; font-size: 18px; color: #8a8471; }
.console input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font-weight: 800; font-size: 17px; color: var(--ink); }
.console input::placeholder { color: #b5ad98; }
.console .f-at { grid-column: span 4; }
.console .f-tk { grid-column: span 2; }
.console .f-pick { grid-column: span 2; }
.console .go { grid-column: span 2; }
.console .f-at img { width: 28px; height: 28px; border-radius: 50%; background: #e9e4d7; flex: none; object-fit: cover; }
.console .f-at img:not([src]), .console .f-at img[src=""] { display: none; }
.f-pick { font-weight: 800; font-size: 15px; text-align: left; }
.f-pick img { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.f-pick span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-pick i { width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); flex: none; }
.console .go { height: 50px; padding: 0 22px; font-size: 17px; }
.cmdline { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.cmdline code { font: 700 14px var(--font); color: #e8ebff; background: rgba(12, 16, 36, .8); border: 1.5px solid var(--line); padding: 6px 10px; border-radius: 10px; }
.cmdline code .m, .xtext .m { color: #6cb6ff; }
.copy { font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 10px; background: #1b2348; border: 1.5px solid var(--line2); }
.copy:hover { background: #253063; }

/* the account badge the coins fly to */
.badge { position: absolute; z-index: 3; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); opacity: 0; will-change: transform; pointer-events: none; }
.badge img { width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--ink); object-fit: cover; background: #ddd; }
.badge b { display: block; font-weight: 900; font-size: 19px; letter-spacing: -.02em; line-height: 1.1; }
.badge span { display: block; font-weight: 700; font-size: 13px; color: #5a5f7a; }

.blockline { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(9, 12, 26, .82); border: 2px solid #232b55; font-weight: 700; font-size: 14px; color: #cfd3ef; white-space: nowrap; }
.blockline i { width: 9px; height: 9px; border-radius: 50%; background: var(--btc); box-shadow: 0 0 0 4px rgba(247, 147, 26, .2); animation: pulse 1.6s infinite; }
.blockline b { color: #fff; font-family: Tanker, var(--font); font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.blockline img { width: 20px; height: 20px; border-radius: 5px; background: #fff; padding: 2px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(247, 147, 26, 0); } }

/* sections */
section.wrap { padding: 96px 0 0; }
.sh { margin: 0; font-weight: 900; font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -.035em; line-height: 1; }
.sh-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.sub { margin: 0; color: var(--muted); font-size: 17px; max-width: 470px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.step { position: relative; padding: 26px 22px 22px; border-radius: 26px; background: var(--card); border: 2px solid var(--line); display: flex; flex-direction: column; }
.step .num { position: absolute; top: -18px; left: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--btc); color: var(--ink); font: 400 26px Tanker, var(--font); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.step h3 { margin: 8px 0 6px; font-weight: 900; font-size: 28px; letter-spacing: -.03em; }
.step p { margin: 0 0 18px; color: #b9bfdf; font-size: 16px; }
.step p b { color: #fff; }


/* X dark-mode replicas */
.xcard { background: #000; border: 1px solid #2f3336; border-radius: 16px; padding: 12px 14px; color: #e7e9ea; font: 400 15px/1.35 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.xrow { display: flex; gap: 10px; }
.xrow + .xrow { margin-top: 12px; }
.xav { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #333 center/cover; }
.xav.sq { border-radius: 10px; background-color: #000; }
.xmain { min-width: 0; flex: 1; }
.xhead { display: flex; align-items: center; gap: 4px; font-size: 15px; white-space: nowrap; overflow: hidden; }
.xhead b { font-weight: 700; color: #e7e9ea; overflow: hidden; text-overflow: ellipsis; }
.xhead span { color: #71767b; }
.xhead svg { width: 17px; height: 17px; flex: none; }
.xrep { color: #71767b; font-size: 14px; margin: 1px 0 3px; }
.xrep .m { color: #1d9bf0; }
.xtext { white-space: pre-wrap; word-break: break-word; }
.xtext .m { color: #1d9bf0; }
.xacts { display: flex; justify-content: space-between; max-width: 260px; margin-top: 10px; color: #71767b; font-size: 13px; }
.xacts span { display: inline-flex; gap: 5px; align-items: center; }
.xacts svg { width: 16px; height: 16px; fill: none; stroke: #71767b; stroke-width: 1.7; }

/* X Money replica */
.xmoney { background: #000; border: 1px solid #2f3336; border-radius: 16px; padding: 14px; color: #e7e9ea; font: 400 15px/1.35 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.xm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.xm-top img { width: 30px; height: 30px; border-radius: 8px; }
.xm-top b { font-weight: 800; font-size: 17px; }
.xm-top span { margin-left: auto; font-size: 13px; color: #71767b; }
.xm-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #202327; }
.xm-row img { width: 36px; height: 36px; border-radius: 50%; }
.xm-row .t { flex: 1; min-width: 0; }
.xm-row .t b { display: block; font-weight: 700; font-size: 15px; }
.xm-row .t span { display: block; color: #71767b; font-size: 13px; }
.auto { font-weight: 700; font-size: 12px; color: #00ba7c; background: rgba(0, 186, 124, .12); padding: 4px 9px; border-radius: 999px; }

/* pools */
.pool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pool { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); text-align: left; transition: border-color .2s, transform .2s, background .2s; overflow: hidden; }
.pool:hover { border-color: var(--line2); transform: translateY(-2px); }
.pool.on { border-color: var(--btc); background: #1d1f3a; }
.pool-top { display: flex; align-items: center; gap: 11px; }
.pool-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; border: 2px solid var(--ink); flex: none; }
.pool-logo img { width: 30px; height: 30px; object-fit: contain; }
.pool-top b { display: block; font-weight: 900; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.pool-top span { display: block; color: var(--dim); font-size: 13px; font-weight: 600; }
.pool-share { display: flex; align-items: baseline; gap: 6px; }
.pool-share b { font: 400 34px Tanker, var(--font); letter-spacing: .01em; line-height: 1; }
.pool-share span { color: var(--muted); font-size: 13px; font-weight: 600; }
.pool-bar { height: 8px; border-radius: 99px; background: #0d1229; overflow: hidden; }
.pool-bar i { display: block; height: 100%; border-radius: 99px; background: var(--btc); transition: width .8s; }
.pool-last { font-size: 13px; color: var(--dim); font-weight: 600; min-height: 19px; }
.pool-last b { color: #cfd3ef; }
.pool .pick { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #222b55; color: #cfd3ef; }
.pool.on .pick { background: var(--btc); color: var(--ink); }

/* paid in anything */
.paid-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; padding: 38px; border-radius: 32px; background: linear-gradient(135deg, #18204a, #10162f); border: 2px solid var(--line); }
.paid-copy .sub { margin-top: 14px; }
.any { margin: 14px 0 0; font-weight: 700; color: #e9ecff; }
.xm-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #000; border: 1.5px solid #2f3336; font-weight: 600; }
.xm-line img { width: 30px; height: 30px; border-radius: 8px; }
.coin-wall { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.coin { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 16px 0 7px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-weight: 900; font-size: 17px; transition: transform .15s; }
.coin:hover { transform: translateY(-2px); }
.coin img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; }
.coin small { font-weight: 700; font-size: 12px; color: #6b6655; }
.coin.on { background: var(--btc); }
.coin.add { padding: 0 18px; background: #1d2550; color: #fff; border-color: var(--ink); }
.coin.add b { font-size: 24px; line-height: 1; }

/* live rigs: every coin drawn as a container rig */
.rig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cont { position: relative; border-radius: 18px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); background: var(--paper); color: var(--ink); }
.cont .ribs { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(10, 14, 40, .0) 0 14px, rgba(10, 14, 40, .09) 14px 22px, rgba(255, 255, 255, .5) 22px 24px); pointer-events: none; }
.cont.dark { background: #2b3047; color: var(--paper); }
.cont.orange { background: var(--orange); }
.cont-body { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 18px; align-items: center; }
.porthole { width: 92px; height: 92px; border-radius: 50%; border: 6px solid #1a1e30; box-shadow: 0 0 0 3px rgba(255, 162, 58, .9), 0 0 18px rgba(255, 162, 58, .45); background: #1b2036 center/cover; }
.stencil { font: 400 clamp(26px, 2.6vw, 38px) Tanker, var(--font); letter-spacing: .02em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 5px; border-radius: 9px; background: rgba(10, 13, 28, .9); color: #fff; font-weight: 700; font-size: 13px; }
.tag img { width: 19px; height: 19px; border-radius: 5px; background: #fff; object-fit: contain; }
.tag.plain { padding: 0 10px; }
.cont-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; background: rgba(7, 9, 21, .9); color: #dfe2f5; font-size: 13px; font-weight: 700; }
.cont-foot .leds { display: flex; gap: 5px; }
.cont-foot .leds i { width: 6px; height: 6px; border-radius: 50%; background: #ffa23a; box-shadow: 0 0 6px #ffa23a; animation: led 1.4s infinite; }
.cont-foot .leds i:nth-child(2) { animation-delay: .2s; } .cont-foot .leds i:nth-child(3) { animation-delay: .4s; } .cont-foot .leds i:nth-child(4) { animation-delay: .6s; }
@keyframes led { 50% { opacity: .25; } }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; color: var(--ink); background: var(--ok); border-radius: 999px; padding: 3px 9px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.cont.open { background: transparent; border: 3px dashed var(--line2); box-shadow: none; color: var(--muted); }
.cont.open .porthole { border-color: #232b55; box-shadow: none; background: #0e1430; }
.cont.open .stencil { color: #4b5590; }
.cont.open .ribs { display: none; }
a.cont:hover { transform: translateY(-2px); }
a.cont { transition: transform .15s; }

/* launch form */
.lform { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; padding: 30px; border-radius: 32px; background: var(--card); border: 2px solid var(--line); }
.lcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lf { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.lf > span { font-weight: 800; font-size: 14px; color: #cfd3ef; }
.lf > span i, .more summary i { font-style: normal; font-weight: 600; color: var(--dim); }
.lin { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--night2); border: 2px solid var(--line); transition: border-color .2s; }
.lin:focus-within { border-color: var(--btc); }
.lin b { color: var(--dim); font-weight: 900; }
.lin input, .lin textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 700; font-size: 16px; padding: 12px 0; resize: vertical; }
.lin.at img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.lin.at img:not([src]), .lin.at img[src=""] { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 6px; border-radius: 11px; background: var(--night2); border: 2px solid var(--line); font-weight: 800; font-size: 14px; transition: border-color .15s, background .15s; }
.chip img { width: 24px; height: 24px; border-radius: 6px; background: #fff; object-fit: contain; }
.chip.c img { border-radius: 50%; }
.chip.on { border-color: var(--btc); background: #262148; }
.chip.add { padding: 0 14px; color: #fff; }
.hint { margin: 2px 0 0; font-size: 13px; color: var(--dim); font-weight: 600; }
.more summary { cursor: pointer; font-weight: 800; color: #cfd3ef; list-style: none; padding: 4px 0; }
.more summary::before { content: '+ '; color: var(--btc); }
.more[open] summary::before { content: '− '; }
.more > * + * { margin-top: 12px; }
.drop { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 16px; border-radius: 16px; border: 2px dashed var(--line2); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.drop.over { border-color: var(--btc); }
.drop img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.prev { gap: 14px; }
.cost { margin: 0; color: var(--muted); font-size: 14px; }
.cost b { color: #fff; }
.btn.big { height: 58px; font-size: 19px; border-radius: 16px; }
.lstat { padding: 14px 16px; border-radius: 16px; background: var(--night2); border: 2px solid var(--line); font-weight: 700; font-size: 15px; }
.lstat .st { display: flex; gap: 10px; align-items: center; color: var(--dim); padding: 4px 0; }
.lstat .st i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line2); flex: none; }
.lstat .st.on { color: #fff; } .lstat .st.on i { border-color: var(--btc); border-top-color: transparent; animation: spin .8s linear infinite; }
.lstat .st.ok { color: #fff; } .lstat .st.ok i { border-color: var(--ok); background: var(--ok); }
.lstat .err { color: #ff8b7a; }
.lstat .done { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.lstat .done .btn { height: 40px; font-size: 14px; padding: 0 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FAQ */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.q { padding: 20px 22px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); }
.q b { display: block; font-weight: 900; font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.q p { margin: 0; color: #b9bfdf; font-size: 15px; }

/* coin page */
.coinpage { padding-top: 110px !important; }
.cp-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.cp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cp-stat { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 2px solid var(--line); }
.cp-stat span { display: block; font-size: 13px; color: var(--dim); font-weight: 700; }
.cp-stat b { font-weight: 900; font-size: 20px; }
.cp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cp-ca { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--night2); border: 2px solid var(--line); font-weight: 700; font-size: 14px; word-break: break-all; }
.chart { margin-top: 22px; height: auto; min-height: 70px; border-radius: 22px; overflow: hidden; border: 2px solid var(--line); background: var(--card); }
.chart.on { height: 460px; }
.chart iframe { width: 100%; height: 100%; border: 0; }

/* footer */
.foot { margin-top: 110px; padding: 60px 0 40px; background: #080b18; border-top: 2px solid #1a2045; }
.foot-big { font: 400 clamp(64px, 12vw, 190px) Tanker, var(--font); line-height: .9; color: #1b2147; letter-spacing: .01em; }
.foot-row { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; font-weight: 700; color: #b9bfdf; }
.foot-links a:hover { color: #fff; }
.foot-ca { margin-left: auto; }
.fine { color: var(--dim); font-size: 13px; margin: 22px 0 0; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(5, 7, 16, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px; }
.mbox { position: relative; width: min(420px, 100%); max-height: 84vh; overflow: auto; padding: 24px; border-radius: 24px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }
.mbox.wide { width: min(560px, 100%); }
.mbox h3 { margin: 0 0 14px; font-weight: 900; font-size: 24px; letter-spacing: -.03em; }
.mbox .x { position: absolute; top: 14px; right: 16px; font-size: 26px; line-height: 1; color: #6b6655; }
.wlist, .plist { display: flex; flex-direction: column; gap: 8px; }
.witem, .pitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px solid #ddd6c6; font-weight: 800; text-align: left; }
.witem:hover, .pitem:hover { border-color: var(--ink); }
.witem img, .pitem img { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; background: #fff; }
.pitem .pt { flex: 1; min-width: 0; }
.pitem .pt span { display: block; font-weight: 600; font-size: 13px; color: #6b6655; }
.pitem.on { border-color: var(--btc); background: #fff6e8; }
.pitem .sh2 { font: 400 22px Tanker, var(--font); }
.padd { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.padd input { flex: 1; min-width: 200px; height: 46px; padding: 0 14px; border-radius: 14px; border: 2px solid #ddd6c6; background: #fff; color: var(--ink); font-weight: 700; outline: 0; }
.padd input:focus { border-color: var(--ink); }
.mnote { margin: 10px 0 0; font-size: 13px; color: #6b6655; font-weight: 600; width: 100%; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-weight: 800; transition: .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* the film: a container-card frame (ink outline + hard shadow), orange cartoon play button */
.film-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--card) url(/assets/film/poster.jpg) center / cover; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film-play { position: absolute; left: 20px; bottom: 20px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--btc); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.film-play:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.film-play:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.film-play span { width: 0; height: 0; margin-left: 4px; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.film-play.on span { margin-left: 0; width: 16px; height: 18px; border: 0; border-left: 5px solid var(--ink); border-right: 5px solid var(--ink); }

/* scroll reveals (everything stays visible without JS or with reduced motion) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .hud-r { margin-left: auto; }
  .pool-grid { grid-template-columns: repeat(3, 1fr); }
  .rig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  #yard { position: relative; height: 58svh; min-height: 360px; order: 1; }
  .hero::before { display: none; }
  .hero-scrim { background: linear-gradient(0deg, rgba(11, 15, 31, 1) 0%, rgba(11, 15, 31, 0) 26%); top: 0; height: 58svh; bottom: auto; }
  .hero-copy { position: relative; order: 2; left: auto; top: auto; transform: none; width: auto; padding: 0 18px 18px; margin-top: -40px; }
  h1 { font-size: clamp(40px, 11.5vw, 60px); }
  .blockline { position: relative; order: 3; left: auto; bottom: auto; transform: none; margin: 8px 18px 0; align-self: flex-start; white-space: normal; flex-wrap: wrap; }
  .steps, .qa, .paid-card, .lform, .cp-top { grid-template-columns: 1fr; }
  .paid-card { padding: 24px; }
  .coin-wall { justify-content: flex-start; }
  .sh-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pool-grid { grid-template-columns: repeat(2, 1fr); }
  .rig-grid { grid-template-columns: 1fr; }
  .lform { padding: 18px; }
  .ca-pill.hud-ca { display: none; }
  section.wrap { padding-top: 70px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .hud { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .brand b { font-size: 18px; }
  .x-link { display: none; }
  .wallet-btn { padding: 0 12px; font-size: 14px; }
  .console .f-at { grid-column: span 6; }
  .console .f-tk { grid-column: span 6; }
  .console .f-pick { grid-column: span 3; }
  .console .go { grid-column: span 6; }
  .pool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pool { padding: 12px; gap: 8px; }
  .pool-top span, .pool .pick, .pool-last { display: none; }
  .pool-top b { font-size: 15px; }
  .pool-logo { width: 36px; height: 36px; }
  .pool-logo img { width: 24px; height: 24px; }
  .pool-share b { font-size: 28px; }
  .pool-share span { font-size: 11px; }
  .two { grid-template-columns: 1fr; }
  .cmdline code { font-size: 12px; }
  .cont-body { grid-template-columns: 70px 1fr; }
  .porthole { width: 70px; height: 70px; }
  .film-frame { border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
  .film-play { left: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 14px; }
}
