:root {
  --bg: #070c1c; --bg2: #0a1226; --side: rgba(7, 12, 28, .78); --panel: #111a36; --panel2: #0d1530;
  --line: rgba(150, 180, 255, .13); --line2: rgba(160, 190, 255, .24); --glass: rgba(255, 255, 255, .045); --glass2: rgba(255, 255, 255, .08);
  --ink: #f3f6ff; --ink2: #c5cfe8; --mute: #93a0c2; --dim: #6c7899; --on: #1c0d00;
  --snow: #6fd6ff; --fire: #ff6a1a; --water: #1f6bff; --waterT: #6ea3ff; --power: #ffc62e;
  --amber: #ffc62e; --ok: #3ddc97; --bad: #ff7a7a;
  --grad: linear-gradient(100deg, #ff6a1a 0%, #ff9a24 45%, #ffc62e 100%);
  --display: "Fredoka", system-ui, sans-serif; --sans: "DM Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 22px; --shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 44px -26px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(900px 620px at 8% -6%, rgba(31, 107, 255, .26) 0%, transparent 62%),
  radial-gradient(820px 600px at 104% 4%, rgba(255, 106, 26, .2) 0%, transparent 60%),
  radial-gradient(900px 700px at 62% 112%, rgba(111, 214, 255, .09) 0%, transparent 62%),
  linear-gradient(180deg, #070c1c 0%, #0a1226 100%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.05; color: var(--ink); }
.mono { font-family: var(--mono); }
.mute { color: var(--mute); }
.up { color: var(--ok); }
.hot, .hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 198, 46, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--snow); outline-offset: 2px; }

/* ---------------------------------------------------------- ticker */
.ticker { position: sticky; top: 0; z-index: 30; height: 32px; overflow: hidden; background: rgba(5, 9, 22, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink2); border-bottom: 1px solid var(--line); font: 600 12.5px/31px var(--display); letter-spacing: .02em; }
.ticker .track { display: inline-flex; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker span { padding: 0 22px; }
.ticker span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; vertical-align: 1px; background: var(--power); box-shadow: 0 0 8px var(--power); }
.ticker span:nth-child(4n+1)::before { background: var(--snow); box-shadow: 0 0 8px var(--snow); }
.ticker span:nth-child(4n+2)::before { background: var(--fire); box-shadow: 0 0 8px var(--fire); }
.ticker span:nth-child(4n+3)::before { background: var(--waterT); box-shadow: 0 0 8px var(--water); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 32px); }
.side { position: sticky; top: 32px; height: calc(100vh - 32px); background: var(--side); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-right: 1px solid var(--line); padding: 26px 18px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand b { font: 700 27px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.tagline { padding: 8px 8px 22px; font: 600 12px var(--display); color: var(--mute); }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; font: 600 16px var(--display); color: var(--ink2); transition: background .15s, color .15s, box-shadow .15s; }
.nav a svg { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.nav a .logo { width: 24px; height: 24px; }
.nav a:hover { background: var(--glass); color: var(--ink); }
.nav a.on { background: linear-gradient(100deg, rgba(255, 106, 26, .2), rgba(255, 198, 46, .1) 60%, rgba(255, 198, 46, .03)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .34), inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 26px -14px rgba(255, 130, 30, .7); }
.nav a.on svg { stroke: var(--power); opacity: 1; }
.cta { display: block; margin-top: 16px; text-align: center; padding: 13px 18px; border-radius: 999px; background: var(--grad); color: var(--on); font: 700 15px var(--display); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 28px -10px rgba(255, 120, 30, .7); transition: transform .12s, filter .15s; }
.cta:hover { transform: translateY(-1px); filter: brightness(1.07); }
.side .foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: center; align-items: flex-end; gap: 10px; }

.logo { flex: none; display: inline-block; object-fit: contain; }
.brand .logo { margin: -6px -4px -6px -6px; filter: drop-shadow(0 0 10px rgba(80, 150, 255, .45)) drop-shadow(0 0 12px rgba(255, 120, 30, .3)); }
@keyframes flick { 0%, 100% { filter: brightness(1); } 40% { filter: brightness(1.25); } 70% { filter: brightness(.85); } }

.main { position: relative; padding: 34px 44px 90px; min-width: 0; }
.wrap { max-width: 1180px; margin: 0 auto; }
.topright { position: absolute; top: 26px; right: 36px; display: flex; gap: 10px; z-index: 5; }
.capill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(14, 22, 46, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line2), inset 0 1px 0 rgba(255, 255, 255, .08); font: 600 13.5px var(--display); color: var(--ink2); transition: box-shadow .15s; }
.capill:hover { box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .5), 0 0 22px -8px rgba(255, 198, 46, .6); }
.capill b { color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
@media (max-width: 1280px) { .capill b { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.xbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 22, 46, .8); box-shadow: inset 0 0 0 1px var(--line2); }
.xbtn svg { width: 17px; height: 17px; fill: var(--ink); }

/* ---------------------------------------------------------- pieces */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line2); font: 600 12.5px var(--display); color: var(--ink2); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--power); box-shadow: 0 0 10px var(--power); }

.herotop { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 29vw, 440px); gap: 36px; align-items: center; }
.herocopy { min-width: 0; }
.heroorb { position: relative; aspect-ratio: 1; width: 100%; margin-top: 30px; }
.heroorb::before { content: ""; position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(closest-side at 28% 54%, rgba(40, 125, 255, .8), transparent 80%), radial-gradient(closest-side at 74% 46%, rgba(255, 112, 26, .72), transparent 80%); filter: blur(38px); opacity: .9; animation: pulse 7s ease-in-out infinite; }
.heroorb::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -9%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); filter: blur(6px); animation: shade 7s ease-in-out infinite; }
.heroorb img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .55)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes pulse { 0%, 100% { opacity: .8; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes shade { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.88); opacity: .6; } }

.hero h1 { font-size: clamp(40px, 4.7vw, 78px); margin: 20px 0 20px; text-shadow: 0 2px 30px rgba(8, 14, 34, .6); }
.hero h1 em { display: block; text-shadow: none; filter: drop-shadow(0 0 26px rgba(255, 130, 30, .35)); }
.lead { max-width: 56ch; font-size: 17px; color: var(--ink2); margin: 0 0 14px; }
.sub { font: 600 13.5px var(--display); color: var(--ink); margin-bottom: 22px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px var(--display); background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .12s, background .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); background: var(--glass2); box-shadow: inset 0 0 0 1px rgba(190, 215, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn.pri { background: var(--grad); color: var(--on); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(160, 50, 0, .22), 0 12px 30px -10px rgba(255, 120, 30, .75); }
.btn.pri:hover { background: var(--grad); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(160, 50, 0, .22), 0 14px 36px -8px rgba(255, 140, 30, .9); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chips { margin-top: 18px; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font: 600 12.5px var(--display); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); }
.chip.dark { background: var(--ink); color: var(--bg); }
.cabar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 100%; margin-top: 26px; padding: 12px 14px 12px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(26, 38, 74, .75), rgba(13, 21, 46, .75)); box-shadow: inset 0 0 0 1px var(--line2), var(--shadow); text-align: left; transition: box-shadow .15s; }
.cabar:hover { box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .5), var(--shadow), 0 0 30px -12px rgba(255, 198, 46, .6); }
.cabar .k { font: 700 12px var(--display); color: var(--power); white-space: nowrap; }
.cabar b { font: 600 15px var(--mono); color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.cabar .cp { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: var(--on); font: 700 12px var(--display); white-space: nowrap; }
.card { background: linear-gradient(180deg, rgba(27, 39, 76, .74) 0%, rgba(13, 21, 46, .78) 100%); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.label { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 18px; padding: 0; overflow: hidden; }
.steps > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.steps > div:last-child { border-right: 0; }
.num { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 7px; background: color-mix(in srgb, var(--bc, var(--power)) 17%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc, var(--power)) 50%, transparent); font: 700 11px var(--mono); color: var(--bct, var(--power)); }
.steps h3 { font-size: 17px; margin: 12px 0 4px; }
.steps p { margin: 0; font-size: 13px; color: var(--mute); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 20px; top: 0; width: 34px; height: 2px; border-radius: 0 0 2px 2px; background: var(--grad); opacity: .9; }
.stat b { display: block; margin-top: 8px; font: 600 30px/1.1 var(--mono); color: var(--ink); }

.sec { margin-top: 74px; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sechead .k { display: flex; align-items: center; gap: 10px; font: 600 13px var(--display); color: var(--ink2); margin-bottom: 8px; }
.sechead h2 { font-size: clamp(30px, 4vw, 48px); }
.sechead h2 svg { width: .82em; height: .82em; vertical-align: -.08em; margin-right: .22em; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.more { font: 600 13px var(--display); padding: 8px 14px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink2); white-space: nowrap; transition: color .15s, box-shadow .15s; }
.more:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .5); }
.two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 34px; align-items: center; }
.two p { color: var(--ink2); font-size: 16.5px; margin: 0 0 14px; }
.two p b { color: var(--ink); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 14px; }
.mini { padding: 14px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.mini b { display: block; font: 700 14px var(--display); margin: 10px 0 2px; }
.mini span { font-size: 12.5px; color: var(--mute); }
.fine { font-size: 13px !important; color: var(--mute) !important; }

.loop { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin: 0 auto; }
.loop::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; border: 2px dashed rgba(170, 200, 255, .32); animation: spin 40s linear infinite; }
.loop::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(closest-side at 34% 52%, rgba(40, 120, 255, .42), transparent 80%), radial-gradient(closest-side at 68% 48%, rgba(255, 112, 26, .38), transparent 80%); filter: blur(22px); }
@keyframes spin { to { transform: rotate(360deg); } }
.loop .core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
.loop .core .logo { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .5)); animation: float 7s ease-in-out infinite; }
.loop .core span { display: block; margin-top: 4px; font: 600 12px var(--display); color: var(--ink2); }
.node { position: absolute; z-index: 3; width: 138px; transform: translate(-50%, -50%); padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--bc, #8fb0ff) 20%, #0e1731), color-mix(in srgb, var(--bc, #8fb0ff) 8%, #0b1228)); border: 1px solid color-mix(in srgb, var(--bc, #8fb0ff) 55%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 26px -8px color-mix(in srgb, var(--bc, #8fb0ff) 70%, transparent), 0 14px 26px -16px rgba(0, 0, 0, .9); text-align: center; }
.node b { display: block; font: 700 13.5px var(--display); color: var(--bct, var(--ink)); }
.node span { font-size: 11.5px; color: var(--ink2); line-height: 1.25; display: block; }

.live { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; align-items: start; }
.feed { padding: 8px; }
.ev { display: grid; grid-template-columns: 58px 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-size: 13.5px; transition: background .12s; }
.ev + .ev { border-top: 1px solid rgba(150, 180, 255, .08); }
.ev:hover { background: var(--bt, rgba(255, 255, 255, .04)); }
.badge { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font: 700 10px var(--mono); letter-spacing: .08em; }
.badge.burn { background: var(--grad); color: var(--on); }
.badge.fees { background: rgba(255, 198, 46, .1); color: var(--power); box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .42); }
.badge.dry { background: rgba(255, 255, 255, .07); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.ev .txt { font-family: var(--mono); font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .txt b { color: var(--ink); font-weight: 600; }
.ev .when { font: 500 11.5px var(--mono); color: var(--mute); white-space: nowrap; }
.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: linear-gradient(140deg, #22325f, #121c3c); display: inline-grid; place-items: center; font: 700 11px var(--display); color: var(--ink2); flex: none; overflow: hidden; box-shadow: 0 0 0 1px var(--line2); }
.av.lg { width: 54px; height: 54px; font-size: 18px; border-radius: 16px; }
.av.xl { width: 78px; height: 78px; font-size: 26px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line2), 0 14px 30px -14px rgba(0, 0, 0, .9); }
.howlist > div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; }
.howlist > div + div { border-top: 1px solid var(--line); }
.howlist b { font: 700 15px var(--display); display: block; color: var(--ink); }
.howlist p { margin: 2px 0 0; font-size: 13px; color: var(--mute); }
.empty { padding: 34px 20px; text-align: center; color: var(--mute); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.coin { display: block; padding: 20px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.coin:hover { transform: translateY(-3px); border-color: rgba(255, 198, 46, .45); box-shadow: var(--shadow), 0 0 36px -14px rgba(255, 160, 40, .7); }
.coin .top { display: flex; align-items: center; gap: 12px; }
.coin .top > div { min-width: 0; }
.coin .top b { font: 700 18px/1.15 var(--display); display: block; color: var(--ink); overflow-wrap: anywhere; }
.coin .top .tk { font: 500 12.5px var(--mono); color: var(--mute); }
.state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font: 600 11.5px var(--display); white-space: nowrap; letter-spacing: 0; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.state.burning { background: rgba(255, 198, 46, .14); color: var(--power); box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .45); }
.state.fueled { background: rgba(255, 106, 26, .14); color: #ff9a5c; box-shadow: inset 0 0 0 1px rgba(255, 106, 26, .45); }
.state.waiting { background: rgba(255, 255, 255, .06); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.state.waiting::before { box-shadow: none; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; margin-top: 18px; }
.kv > div { min-width: 0; }
.kv b { display: block; font: 600 16px var(--mono); color: var(--ink); margin-top: 3px; }
.kv .big b { font-size: 24px; color: var(--ink); }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); min-width: 2px; }
.coin .foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; font: 500 11.5px var(--mono); color: var(--mute); }

.lookup { padding: 34px; text-align: center; }
.lookup h2 { font-size: 34px; margin-bottom: 8px; }
.inrow { display: flex; gap: 10px; max-width: 640px; margin: 20px auto 0; }
.in { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; background: rgba(5, 9, 22, .55); border: 0; box-shadow: inset 0 0 0 1px var(--line2); font-family: var(--mono); font-size: 13px; outline: none; color: var(--ink); transition: box-shadow .15s, background .15s; }
.in::placeholder { color: var(--dim); opacity: 1; }
.in:hover { box-shadow: inset 0 0 0 1px rgba(190, 215, 255, .4); }
.in:focus { background: rgba(5, 9, 22, .75); box-shadow: inset 0 0 0 1.5px var(--snow), 0 0 0 4px rgba(111, 214, 255, .14); }
textarea.in { border-radius: 18px; height: 92px; padding: 12px 18px; resize: vertical; font-family: var(--sans); font-size: 14px; }
.result { margin: 18px auto 0; max-width: 640px; font: 500 12.5px var(--mono); color: var(--mute); letter-spacing: .06em; }
.result .card { text-align: left; letter-spacing: 0; }

/* ---------------------------------------------------------- pages */
.phead { margin-bottom: 26px; padding-right: 250px; }
.phead h1 { font-size: clamp(34px, 4.6vw, 58px); margin-top: 12px; }
.phead p { max-width: 62ch; color: var(--ink2); font-size: 16.5px; margin: 14px 0 0; }
.phead p b { color: var(--ink); overflow-wrap: anywhere; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px; font: 600 13px var(--display); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink2); transition: background .15s, color .15s, box-shadow .15s; }
.pill:hover { background: var(--glass2); color: var(--ink); }
.pill.on { background: linear-gradient(100deg, rgba(255, 106, 26, .26), rgba(255, 198, 46, .2)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .65), 0 6px 22px -12px rgba(255, 150, 30, .9); }
.filters .sp { flex: 1; }
select.pill { appearance: none; -webkit-appearance: none; padding-right: 32px; border: 0; background: rgba(255, 255, 255, .045) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c5cfe8' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 13px center; outline: none; }
select.pill option { background: #0d1530; color: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; padding: 12px 14px; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line2); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid rgba(150, 180, 255, .08); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; color: var(--ink2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .035); }
td.empty { white-space: normal; font-family: var(--sans); font-size: 14px; color: var(--mute); }
tbody tr:hover td.empty { background: none; }
td.r, th.r { text-align: right; }
.tw { overflow-x: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: rgba(150, 180, 255, .3) transparent; }
.rank { font: 700 13px var(--display); color: var(--mute); }
.rank.g { color: var(--power); text-shadow: 0 0 14px rgba(255, 198, 46, .5); }
.cc { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.cc small { font: 500 11.5px var(--mono); color: var(--mute); display: block; }
td a.lk, .lk { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(190, 215, 255, .4); text-underline-offset: 2px; transition: color .12s, text-decoration-color .12s; }
.lk:hover { color: var(--power); text-decoration-color: var(--power); }

.form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.field { margin-bottom: 14px; }
.field label { display: block; font: 600 12.5px var(--display); color: var(--ink2); margin-bottom: 6px; }
.field .in { width: 100%; border-radius: 16px; font-family: var(--sans); font-size: 14.5px; }
.up2 { display: grid; grid-template-columns: 112px 1fr; gap: 16px; }
.drop { width: 112px; height: 112px; border-radius: 22px; display: grid; place-items: center; text-align: center; background: rgba(5, 9, 22, .5); border: 1.5px dashed rgba(170, 200, 255, .38); font: 600 12px var(--display); color: var(--ink2); cursor: pointer; overflow: hidden; transition: border-color .15s, color .15s, background .15s; }
.drop:hover { border-color: var(--power); color: var(--ink); background: rgba(255, 198, 46, .06); }
.drop img { width: 100%; height: 100%; object-fit: cover; }
.sum { margin: 16px 0; border-radius: 16px; background: rgba(5, 9, 22, .45); box-shadow: inset 0 0 0 1px var(--line); padding: 6px 16px; }
.sum div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 13.5px; color: var(--ink2); }
.sum div + div { border-top: 1px solid var(--line); }
.sum b { font-family: var(--mono); color: var(--ink); font-weight: 600; white-space: nowrap; }
.sum .tot span { color: var(--ink); font-weight: 600; }
.sum .tot b { color: var(--power); font-size: 16px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--mute); margin: 14px 0; }
.agree input { margin-top: 3px; accent-color: var(--power); }
.err { color: var(--bad); font-size: 13px; margin-top: 10px; min-height: 18px; }
.gets h3 { font-size: 20px; margin-bottom: 12px; }
.gets p { margin: 0 0 12px; font-size: 14px; color: var(--ink2); }
.gets p b { color: var(--ink); }
.warn { margin-top: 16px; padding: 16px; border-radius: 16px; background: linear-gradient(120deg, rgba(255, 106, 26, .16), rgba(255, 198, 46, .08)); box-shadow: inset 0 0 0 1px rgba(255, 150, 40, .45); font-size: 13.5px; color: var(--ink2); }
.warn b { display: block; font: 700 14.5px var(--display); color: var(--power); margin-bottom: 4px; }
.addr { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(5, 9, 22, .5); box-shadow: inset 0 0 0 1px var(--line2); font: 500 12.5px var(--mono); word-break: break-all; color: var(--ink); }
.addr button { margin-left: auto; flex: none; }

.chead { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-right: 250px; flex-wrap: wrap; }
.chead > div { min-width: 0; }
.chead h1 { font-size: clamp(30px, 4vw, 52px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; overflow-wrap: anywhere; }
.chead .links { display: flex; gap: 12px; flex-wrap: wrap; font: 500 12.5px var(--mono); color: var(--mute); margin-top: 8px; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.strip > div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip b { display: block; margin-top: 8px; font: 600 clamp(15px, 1.45vw, 22px)/1.1 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.strip > div[class*="b-"] b { color: var(--bct); font-family: var(--display); font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.strip small { font: 500 10.5px var(--mono); color: var(--mute); }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; margin-top: 20px; align-items: start; }
.acct div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13.5px; color: var(--ink2); }
.acct div + div { border-top: 1px solid rgba(150, 180, 255, .08); }
.acct b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.acct .in2 { padding-left: 16px; color: var(--mute); font-size: 12.5px; }
.acct .hl b { color: var(--power); }
.ptitle { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.chart { height: 250px; }
.chart canvas { width: 100%; height: 100%; display: block; }
.stack > * + * { margin-top: 20px; }
.clock { font: 600 12.5px var(--mono); color: var(--power); }

.doc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc .card { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--bc, #8fb0ff) 30%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--bc, #8fb0ff) 13%, rgba(20, 30, 62, .8)) 0%, rgba(13, 21, 46, .8) 55%); }
.doc .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--bc, transparent), transparent 75%); }
.doc .card h3 { font-size: 19px; margin: 12px 0 6px; }
.doc .card p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.faq details { padding: 16px 4px; border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font: 600 16px var(--display); color: var(--ink); }
.faq summary::marker { color: var(--power); }
.faq p { color: var(--ink2); margin: 10px 0 0; font-size: 14.5px; max-width: 80ch; }

.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(3, 6, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.on { display: grid; }
.modal .card { width: min(380px, 92vw); background: linear-gradient(180deg, #1a2750, #0e1733); border-color: var(--line2); box-shadow: var(--shadow), 0 30px 80px -20px #000; }
.modal .w { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: flex-start; margin-top: 10px; }
.modal .w img { width: 24px; height: 24px; border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; z-index: 80; padding: 10px 18px; border-radius: 999px; background: var(--grad); color: var(--on); font: 700 13px var(--display); pointer-events: none; box-shadow: 0 12px 30px -8px rgba(255, 120, 30, .7); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.banner { margin-bottom: 18px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 198, 46, .1); box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .4); font: 600 12.5px var(--display); color: var(--power); }
@media (min-width: 821px) { .banner { margin-right: 200px; } }

/* ---------------------------------------------------------- the four balls */
.b-snow { --bc: var(--snow); --bct: #8fdfff; --bt: rgba(111, 214, 255, .11); }
.b-fire { --bc: var(--fire); --bct: #ff8b4a; --bt: rgba(255, 106, 26, .13); }
.b-water { --bc: var(--water); --bct: var(--waterT); --bt: rgba(31, 107, 255, .17); }
.b-power { --bc: var(--power); --bct: var(--power); --bt: rgba(255, 198, 46, .11); }
.orb { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, .35) 22%, transparent 46%), radial-gradient(circle at 68% 82%, rgba(0, 0, 0, .42), transparent 62%), var(--bc, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bc, #fff) 60%, #fff), 0 0 12px color-mix(in srgb, var(--bc, #fff) 75%, transparent), inset 0 -2px 4px rgba(0, 0, 0, .25); }
.orb.lg { width: 54px; height: 54px; }
.orb.md { width: 26px; height: 26px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--bc, #fff) 60%, #fff), 0 0 18px color-mix(in srgb, var(--bc, #fff) 75%, transparent), inset 0 -3px 6px rgba(0, 0, 0, .25); }
.side .foot .orb { width: 22px; height: 22px; }
.badge.snow, .badge.fire, .badge.water, .badge.power { --bc: var(--snow); background: color-mix(in srgb, var(--bc) 17%, transparent); color: var(--bct); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 55%, transparent); }
.badge.snow { --bc: var(--snow); --bct: #8fdfff; } .badge.fire { --bc: var(--fire); --bct: #ff8b4a; } .badge.water { --bc: var(--water); --bct: #8db6ff; background: rgba(31, 107, 255, .26); } .badge.power { --bc: var(--power); --bct: var(--power); }
.dryflag { font: 600 10px var(--mono); letter-spacing: .08em; color: var(--mute); padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); margin-left: 6px; white-space: nowrap; }

.balls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.bcard { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border-color: color-mix(in srgb, var(--bc) 30%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 9%, rgba(22, 33, 66, .82)) 0%, rgba(12, 19, 42, .84) 60%); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--bc) 30%, color-mix(in srgb, var(--bc) 60%, #fff) 50%, var(--bc) 70%, transparent); opacity: .9; z-index: 1; }
.bcard::after { content: ""; position: absolute; left: -30%; top: -90px; width: 160%; height: 190px; background: radial-gradient(closest-side, color-mix(in srgb, var(--bc) 34%, transparent), transparent); pointer-events: none; }
.bcard:hover { border-color: color-mix(in srgb, var(--bc) 60%, transparent); box-shadow: var(--shadow), 0 0 40px -14px color-mix(in srgb, var(--bc) 80%, transparent); }
.bcard .bhead { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 20px 18px 16px 16px; border-bottom: 1px solid color-mix(in srgb, var(--bc) 22%, transparent); }
.bcard .bhead h3 { font-size: 21px; letter-spacing: .01em; color: #fff; overflow-wrap: anywhere; }
.bico { flex: none; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .22), transparent 46%), radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--bc, #8fb0ff) 42%, transparent), transparent 70%), #0a1126; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc, #8fb0ff) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 26px -4px color-mix(in srgb, var(--bc, #8fb0ff) 70%, transparent), 0 10px 18px -10px rgba(0, 0, 0, .9); transition: transform .18s ease; }
.bico svg { width: 38px; height: 38px; display: block; overflow: visible; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bc, #8fb0ff) 75%, transparent)); }
.bcard .btitle { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bcard .bn { font: 700 10.5px var(--mono); letter-spacing: .12em; color: var(--bct); }
.bcard:hover .bico { transform: rotate(-8deg) scale(1.06); }
.bcard.on .bico { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.bcard .bbody { position: relative; z-index: 1; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.bcard .bbody p { margin: 0; font-size: 13.5px; color: var(--ink2); min-height: 4.6em; }
.bcard .bstat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.bcard .bstat .label { font-size: 10px; letter-spacing: .1em; }
.bcard .bstat b { display: block; margin-top: 4px; font: 600 20px/1.1 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .bfoot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font: 500 11.5px var(--mono); color: var(--mute); }
.bcard .next { display: none; }
.bcard.on { border-color: color-mix(in srgb, var(--bc) 75%, transparent); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--bc) 35%, transparent), 0 0 54px -12px color-mix(in srgb, var(--bc) 85%, transparent); transform: translateY(-4px); }
.bcard.on .bhead { padding-top: 38px; }
.bcard.on .next { position: absolute; top: 11px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bc) 22%, #0a1126); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 65%, transparent); color: var(--bct); font: 700 9.5px var(--mono); letter-spacing: .1em; white-space: nowrap; }
.bcard.on .next i { width: 7px; height: 7px; border-radius: 50%; background: var(--bc); box-shadow: 0 0 8px var(--bc); animation: flick 1.2s infinite; }
.bcard.on .bfoot { color: var(--bct); font-weight: 600; border-top-color: color-mix(in srgb, var(--bc) 30%, transparent); }
.order { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 12.5px var(--display); color: var(--ink2); }
.order span { display: inline-flex; align-items: center; gap: 7px; }

.nextpill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 7px; border-radius: 999px; background: var(--bt, var(--glass)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc, #8fb0ff) 55%, transparent); font: 700 11px var(--mono); letter-spacing: .06em; color: var(--bct, var(--ink)); white-space: nowrap; vertical-align: middle; }
.nextpill .orb { width: 12px; height: 12px; }

.draw { padding: 14px 14px 12px; border-radius: 16px; }
.draw + .draw { border-top: 1px solid rgba(150, 180, 255, .08); border-radius: 0; }
.draw .dh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 12.5px var(--mono); color: var(--mute); }
.draw .dh b { font: 700 14.5px var(--display); color: var(--ink); }
.draw .dh .when { margin-left: auto; white-space: nowrap; }
.draw .dw { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.win { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 198, 46, .09); box-shadow: inset 0 0 0 1px rgba(255, 198, 46, .36); font: 500 11.5px var(--mono); color: var(--ink2); }
.win b { font-weight: 700; color: var(--power); }
.draw .dv { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 11px var(--mono); color: var(--mute); }
.draw .dv button { font: inherit; color: var(--ink2); text-decoration: underline dotted; text-underline-offset: 2px; }
.draw .dv button:hover { color: var(--power); }
.rot > div { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font: 600 13.5px var(--display); color: var(--ink2); }
.rot > div small { margin-left: auto; font: 500 11px var(--mono); color: var(--mute); text-align: right; }
.rot > div.on { background: var(--bt); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 60%, transparent), 0 0 26px -12px var(--bc); color: var(--ink); }
.rot > div.on small { color: var(--bct); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .heroorb img, .heroorb::before, .heroorb::after, .loop .core .logo, .loop::before, .bcard.on .bico, .bcard.on .next i { animation: none; }
}

@media (min-width: 1081px) and (max-width: 1480px) {
  .bcard .bhead { gap: 11px; padding-left: 14px; padding-right: 12px; }
  .bcard .bico { width: 48px; height: 48px; } .bcard .bico svg { width: 31px; height: 31px; }
  .bcard .bhead h3 { font-size: 17.5px; }
  .bcard .bbody { padding-left: 16px; padding-right: 16px; }
}
.mtop { display: none; }
@media (max-width: 1080px) {
  .two, .live, .form, .cols { grid-template-columns: minmax(0, 1fr); }
  .live > *, .stack, .stack > * { min-width: 0; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps > div:nth-child(2) { border-right: 0; } .steps > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .doc { grid-template-columns: 1fr; }
  .balls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .herotop { grid-template-columns: minmax(0, 1fr) clamp(220px, 30vw, 320px); gap: 24px; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .side { min-width: 0; }
  .side { position: static; height: auto; padding: 12px 12px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .foot, .tagline { display: none; }
  .brand b { font-size: 22px; }
  .nav { flex-direction: row; overflow-x: auto; margin-top: 10px; gap: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 12px; font-size: 13.5px; gap: 8px; white-space: nowrap; }
  .nav a svg, .nav a .logo { width: 18px; height: 18px; }
  .cta { position: absolute; top: 14px; right: 12px; margin: 0; padding: 8px 14px; font-size: 13px; }
  .main { padding: 22px 16px 70px; }
  .topright { position: static; margin-bottom: 16px; }
  .phead, .chead { padding-right: 0; }
  .grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minis { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 52px 26px minmax(0, 1fr); } .ev .when { display: none; }
  .inrow { flex-direction: column; } .up2 { grid-template-columns: 1fr; }
  .node { width: 108px; padding: 7px 8px; } .node span { display: none; }
  .balls { grid-template-columns: 1fr; } .bcard .bbody p { min-height: 0; } .bcard.on { transform: none; }
  .herotop { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .heroorb { order: -1; width: 224px; margin: 6px auto 4px; }
  .hero h1 { font-size: clamp(38px, 12vw, 60px); margin-top: 16px; } .hero h1 em { display: inline; }
  .lead { font-size: 16px; }
  .draw .dh .when { margin-left: 0; }
  .ev { align-items: start; } .ev .txt { white-space: normal; overflow: visible; }
  .cabar b { font-size: 12.5px; }
  .stat b { font-size: 24px; }
  .stats { gap: 12px; }
  .sec { margin-top: 56px; }
}
