:root {
  --bg: #07100e;
  --panel: rgba(14, 27, 24, .86);
  --panel-strong: #101f1b;
  --line: rgba(191, 235, 219, .13);
  --text: #f3f8f6;
  --muted: #8ca69d;
  --mint: #76f5c2;
  --mint-dark: #163f32;
  --big: #ffb455;
  --big-dark: #5b3214;
  --small: #72a7ff;
  --small-dark: #16395f;
  --danger: #ff7777;
  --shadow: 0 24px 90px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .18; z-index: -1; }
.ambient-one { width: 520px; height: 520px; background: #19d58e; top: -220px; left: -170px; }
.ambient-two { width: 480px; height: 480px; background: #2469c9; right: -160px; top: 280px; }

.topbar {
  height: 82px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(7,16,14,.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; color: #06241a; background: var(--mint); border-radius: 13px; font-weight: 900; box-shadow: 0 0 28px rgba(118,245,194,.26); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.network-badge { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.network-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--mint); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px var(--mint); }

.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 70px 0 40px; }
.hero { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 56px; margin-bottom: 42px; }
.eyebrow, .pool-kicker { color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; margin: 13px 0 22px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(240,250,246,.45); }
.hero-copy { color: var(--muted); max-width: 690px; line-height: 1.8; font-size: 15px; margin: 0; }
.hero-stats { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.hero-stats div { background: rgba(11,23,20,.95); padding: 18px 21px; display: flex; justify-content: space-between; align-items: baseline; }
.hero-stats span { color: var(--muted); font-size: 12px; }
.hero-stats strong { font-size: 20px; }

.card { border: 1px solid var(--line); background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.round-strip { padding: 19px 24px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.round-strip div { padding: 0 20px; border-right: 1px solid var(--line); }
.round-strip div:first-child { padding-left: 0; }
.round-strip div:last-child { border: 0; }
.label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.round-strip strong { font-size: 14px; }

.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pool-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(18,34,29,.97), rgba(8,17,15,.97)); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.pool-glow { position: absolute; width: 230px; height: 230px; border-radius: 50%; right: -80px; top: -105px; filter: blur(55px); opacity: .22; }
.pool-big .pool-glow { background: var(--big); }
.pool-small .pool-glow { background: var(--small); }
.pool-head { display: flex; align-items: center; justify-content: space-between; position: relative; }
.pool-head h2 { font-size: 34px; margin: 5px 0 0; }
.side-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; font-size: 20px; font-weight: 900; }
.pool-big .side-icon { background: var(--big-dark); color: var(--big); }
.pool-small .side-icon { background: var(--small-dark); color: var(--small); }
.pool-big .pool-kicker { color: var(--big); }
.pool-small .pool-kicker { color: var(--small); }
.chance { margin: 40px 0 15px; display: flex; align-items: baseline; gap: 12px; }
.chance strong { font-size: clamp(44px, 5vw, 66px); letter-spacing: -.05em; }
.chance span { color: var(--muted); font-size: 12px; }
.meter { height: 7px; background: rgba(255,255,255,.06); border-radius: 9px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; transition: width .5s ease; }
.pool-big .meter span { background: linear-gradient(90deg, #d87522, var(--big)); box-shadow: 0 0 16px var(--big); }
.pool-small .meter span { background: linear-gradient(90deg, #376cc5, var(--small)); box-shadow: 0 0 16px var(--small); }
.pool-balance { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 28px; }
.pool-balance span { color: var(--muted); font-size: 12px; }
.pool-balance strong { font-size: 19px; }
.amount-box { display: grid; grid-template-columns: 1fr auto; padding: 13px 15px; border: 1px solid var(--line); background: rgba(0,0,0,.16); border-radius: 14px; margin-bottom: 12px; }
.amount-box span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.amount-box input { border: 0; outline: 0; color: var(--text); background: transparent; min-width: 0; font-size: 18px; }
.amount-box em { color: var(--muted); font-size: 11px; font-style: normal; align-self: center; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

.button { border: 1px solid transparent; border-radius: 12px; padding: 11px 17px; color: var(--text); background: transparent; font-weight: 750; font-size: 13px; transition: transform .16s ease, opacity .16s ease, border-color .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .36; cursor: not-allowed; }
.button-primary { color: #062219; background: var(--mint); }
.button-secondary { color: #08251b; background: #a0f4d1; }
.button-ghost { border-color: var(--line); color: var(--muted); }
.button-big { color: #2b1706; background: linear-gradient(135deg, #ff9b36, #ffd18a); }
.button-small { color: #071b35; background: linear-gradient(135deg, #568ee9, #9ac1ff); }
.wide { width: 100%; padding: 14px; }

.info-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 20px; }
.account-card, .action-card, .history-card { padding: 25px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-title h3 { margin: 5px 0 0; font-size: 18px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 25px 0 18px; }
.account-stats div { border: 1px solid var(--line); background: rgba(0,0,0,.12); padding: 14px; border-radius: 14px; }
.account-stats span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.account-stats strong { font-size: 14px; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.history-card { margin-top: 20px; }
.claim-manual { display: flex; gap: 8px; }
.claim-manual input { width: 110px; border: 1px solid var(--line); background: rgba(0,0,0,.14); border-radius: 10px; padding: 9px 11px; outline: none; color: var(--text); }
.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 14px 11px; border-bottom: 1px solid var(--line); font-size: 12px; }
th { color: var(--muted); font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #d7e4df; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.status-pill { display: inline-block; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; }
.claim-link { border: 0; background: none; color: var(--mint); font-weight: 700; padding: 0; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.rules > div { border-top: 1px solid var(--line); padding: 24px 8px 0; }
.rules span { color: var(--mint); font-family: ui-monospace, monospace; font-size: 11px; }
.rules h3 { font-size: 15px; margin: 11px 0 8px; }
.rules p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.notice { padding: 13px 16px; border-radius: 12px; margin: 0 0 18px; border: 1px solid var(--line); background: rgba(19,43,35,.95); font-size: 12px; line-height: 1.6; }
.notice-warn { border-color: rgba(255,180,85,.28); color: #ffd8a6; background: rgba(72,43,16,.7); }
.notice-error { border-color: rgba(255,119,119,.3); color: #ffb2b2; background: rgba(71,21,21,.7); }
.hidden { display: none !important; }

footer { width: min(1180px, calc(100% - 36px)); margin: 32px auto 0; padding: 24px 0 35px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
footer div { display: flex; gap: 20px; }
footer a:hover { color: var(--mint); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .pools, .info-grid { grid-template-columns: 1fr; }
  .round-strip { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .round-strip div:nth-child(2) { border-right: 0; }
  .rules { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .topbar { padding: 0 16px; }
  .brand small, .network-badge { display: none; }
  .shell { width: min(100% - 24px, 1180px); padding-top: 45px; }
  .hero h1 { font-size: 43px; }
  .round-strip { grid-template-columns: 1fr; }
  .round-strip div { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .round-strip div:last-child { border-bottom: 0; }
  .pool-card { padding: 22px; }
  .account-stats { grid-template-columns: 1fr; }
  .section-title { align-items: flex-start; }
  .history-card .section-title { flex-direction: column; }
  footer { flex-direction: column; gap: 15px; }
}

/* ===== V3: high-end multi-asset visual system ===== */
:root {
  --bg: #05070a;
  --panel: rgba(11, 15, 21, .88);
  --panel-strong: #0c1118;
  --line: rgba(190, 209, 236, .13);
  --text: #f7f9fc;
  --muted: #7f8b9e;
  --mint: #63f7c4;
  --mint-dark: #12372d;
  --gold: #f5b849;
  --big: #ffad32;
  --big-dark: rgba(102, 51, 5, .46);
  --small: #8d91ff;
  --small-dark: rgba(44, 42, 113, .48);
  --shadow: 0 32px 110px rgba(0, 0, 0, .48);
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 11%, rgba(75, 58, 177, .18), transparent 31%),
    radial-gradient(circle at 13% 17%, rgba(235, 148, 28, .1), transparent 27%),
    linear-gradient(180deg, #05070a 0%, #070b11 46%, #040609 100%);
  font-variant-numeric: tabular-nums;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 80;
  background: linear-gradient(90deg, transparent 3%, #f7b33a 22%, #8e8fff 58%, #63f7c4 82%, transparent 97%);
  box-shadow: 0 0 22px rgba(132, 139, 255, .45);
}

.chain-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(168, 185, 216, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 185, 216, .035) 1px, transparent 1px),
    linear-gradient(135deg, transparent 49.7%, rgba(166, 180, 205, .025) 50%, transparent 50.3%);
  background-size: 64px 64px, 64px 64px, 128px 128px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.72) 55%, transparent 100%);
}

.ambient { opacity: .18; filter: blur(135px); }
.ambient-one { width: 620px; height: 620px; background: #f29b19; left: -390px; top: 45px; }
.ambient-two { width: 600px; height: 600px; background: #5c54e6; right: -310px; top: 180px; }
.ambient-three { width: 430px; height: 430px; background: #21b889; left: 38%; top: 760px; opacity: .08; }

.topbar {
  height: 88px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom-color: rgba(191, 204, 227, .1);
  background: rgba(5, 7, 10, .74);
  backdrop-filter: blur(24px) saturate(130%);
}

.brand { gap: 13px; }
.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  overflow: hidden;
  color: #08090b;
  border: 1px solid rgba(255, 226, 160, .58);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffe09a, #f3a322 52%, #80500c);
  box-shadow: inset 0 1px rgba(255,255,255,.7), 0 0 34px rgba(244, 168, 46, .2);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(69, 38, 0, .28);
  border-radius: 10px;
}
.brand-mark span { position: relative; z-index: 1; }
.brand strong { font-size: 16px; letter-spacing: .13em; }
.brand small { color: #677286; letter-spacing: .13em; font-size: 8px; }

.header-actions { gap: 13px; }
.asset-mini-stack { display: flex; margin-right: 4px; }
.asset-mini-stack img {
  width: 29px;
  height: 29px;
  margin-left: -7px;
  border: 2px solid #080b10;
  border-radius: 50%;
  filter: saturate(.88);
}
.asset-mini-stack img:first-child { margin-left: 0; }
.network-badge { border-color: rgba(176, 195, 224, .16); background: rgba(255,255,255,.025); color: #929caf; }
.network-badge::before { background: #63f7c4; box-shadow: 0 0 12px #63f7c4; }
.button-primary {
  color: #111318;
  border-color: rgba(255, 223, 150, .4);
  background: linear-gradient(120deg, #f7cb70, #f0a92d 58%, #ffd98d);
  box-shadow: inset 0 1px rgba(255,255,255,.62), 0 8px 28px rgba(235, 158, 29, .17);
}

.shell { width: min(1240px, calc(100% - 40px)); padding: 26px 0 44px; }

.market-rail {
  min-height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border: 1px solid rgba(176, 193, 221, .1);
  border-radius: 16px;
  background: rgba(9, 12, 17, .7);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  overflow: hidden;
}
.market-item { min-width: 0; height: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-right: 1px solid rgba(176, 193, 221, .08); }
.market-item:last-child { border-right: 0; }
.market-item img { width: 35px; height: 35px; flex: 0 0 auto; }
.market-item span { min-width: 0; }
.market-item small, .market-item strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-item small { color: #596477; font-size: 8px; letter-spacing: .15em; margin-bottom: 4px; }
.market-item strong { color: #c9d0dc; font-size: 11px; letter-spacing: .06em; }
.verified-item i { width: 35px; height: 35px; flex: 0 0 auto; border-radius: 11px; background: #2959c7; position: relative; box-shadow: 0 0 24px rgba(48, 102, 229, .26); }
.verified-item i::before { content: ""; position: absolute; inset: 9px; border: 3px solid white; clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); }

.hero { grid-template-columns: 1.03fr .97fr; align-items: center; gap: 48px; margin: 52px 0 46px; }
.hero-copy-wrap { padding-left: 3px; }
.eyebrow, .pool-kicker { font-weight: 760; }
.hero .eyebrow { color: #94a0b2; display: flex; align-items: center; gap: 9px; letter-spacing: .19em; }
.hero .eyebrow i { width: 27px; height: 1px; background: linear-gradient(90deg, #f2ad31, #8a8fff); box-shadow: 0 0 9px #efaa32; }
.hero h1 { margin: 18px 0 17px; font-size: clamp(52px, 6.15vw, 82px); line-height: .98; letter-spacing: -.07em; }
.hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, #f6cb72 6%, #f3a526 40%, #b5b5ff 69%, #7d81ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 9px 28px rgba(100, 87, 211, .1));
}
.hero-lead { margin: 0 0 10px; color: #d9dee8; font-size: 17px; font-weight: 650; letter-spacing: .04em; }
.hero-copy { max-width: 600px; color: #7e899b; font-size: 14px; line-height: 1.85; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags span { padding: 7px 9px; border: 1px solid rgba(174, 191, 218, .12); border-radius: 7px; color: #697589; background: rgba(255,255,255,.018); font-size: 8px; letter-spacing: .11em; }

.hero-console {
  position: relative;
  min-height: 468px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(183, 196, 221, .15);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 29%),
    radial-gradient(circle at 50% 41%, rgba(105, 90, 224, .17), transparent 31%),
    rgba(8, 11, 16, .9);
  box-shadow: inset 0 1px rgba(255,255,255,.045), inset 0 -40px 90px rgba(0,0,0,.27), 0 42px 120px rgba(0,0,0,.5);
}
.hero-console::before, .hero-console::after { content: ""; position: absolute; width: 55px; height: 55px; pointer-events: none; }
.hero-console::before { top: 10px; left: 10px; border-top: 1px solid rgba(244,180,62,.5); border-left: 1px solid rgba(244,180,62,.5); border-radius: 18px 0 0; }
.hero-console::after { right: 10px; bottom: 10px; border-right: 1px solid rgba(128,133,255,.55); border-bottom: 1px solid rgba(128,133,255,.55); border-radius: 0 0 18px; }
.console-topline { position: relative; z-index: 3; display: flex; align-items: center; color: #788499; font-size: 8px; letter-spacing: .14em; }
.console-topline i { width: 5px; height: 5px; margin: 0 8px; border-radius: 50%; background: #63f7c4; box-shadow: 0 0 10px #63f7c4; animation: protocol-pulse 1.9s ease-in-out infinite; }
.console-topline em { margin-left: auto; color: #5f697c; font-style: normal; }

.crypto-orbit { position: relative; height: 301px; margin-top: 1px; overflow: hidden; }
.crypto-orbit::before {
  content: "";
  position: absolute;
  width: 226px;
  height: 226px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,177,56,.14), rgba(102,89,219,.06) 45%, transparent 69%);
  filter: blur(2px);
}
.orbit { position: absolute; left: 50%; top: 49%; border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
.orbit-one { width: 282px; height: 174px; border: 1px solid rgba(192, 206, 233, .16); box-shadow: inset 0 0 24px rgba(122, 125, 255, .04); }
.orbit-two { width: 360px; height: 230px; border: 1px dashed rgba(192, 206, 233, .085); transform: translate(-50%, -50%) rotate(17deg); }
.core-token {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 142px;
  height: 142px;
  display: grid;
  place-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 225, 160, .7);
  border-radius: 50%;
  color: #17100a;
  background:
    radial-gradient(circle at 34% 26%, #fff0bd 0 3%, transparent 4%),
    radial-gradient(circle at 38% 26%, #ffd681, #d9911b 52%, #68400e 100%);
  box-shadow: inset 0 0 0 7px rgba(255,226,158,.14), inset 0 0 0 9px rgba(52,29,1,.23), 0 0 0 1px rgba(255,255,255,.08), 0 18px 55px rgba(224,139,17,.22);
}
.core-token::before { content: ""; position: absolute; inset: 13px; border: 1px dashed rgba(86,48,3,.34); border-radius: 50%; }
.core-token span { position: relative; z-index: 1; font-size: 52px; line-height: 1; font-weight: 950; text-shadow: 0 1px rgba(255,255,255,.23); }
.core-token small { position: relative; z-index: 1; margin-top: 8px; font-size: 7px; font-weight: 900; letter-spacing: .17em; }
.floating-coin { position: absolute; z-index: 2; border-radius: 50%; }
.btc-coin { width: 68px; height: 68px; left: 7%; top: 28%; animation: coin-float-a 5.2s ease-in-out infinite; }
.eth-coin { width: 72px; height: 72px; right: 6%; top: 24%; animation: coin-float-b 6s ease-in-out infinite; }
.bnb-coin { width: 44px; height: 44px; right: 18%; bottom: 7%; filter: saturate(.83); animation: coin-float-a 4.6s ease-in-out -1.5s infinite; }
.orbit-node { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #8e91ff; box-shadow: 0 0 11px #8e91ff; }
.node-one { left: 20%; bottom: 21%; }
.node-two { right: 20%; top: 14%; background: #f4b440; box-shadow: 0 0 11px #f4b440; }

.hero-stats {
  position: relative;
  z-index: 4;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(183, 198, 224, .12);
  border-radius: 14px;
  background: rgba(3, 5, 8, .62);
  box-shadow: none;
}
.hero-stats div { min-width: 0; display: block; padding: 14px 13px; border-right: 1px solid rgba(183, 198, 224, .09); background: transparent; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats span { display: block; margin-bottom: 7px; color: #596477; font-size: 7px; letter-spacing: .08em; white-space: nowrap; }
.hero-stats strong { display: block; overflow: hidden; color: #e9edf5; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }

.card { border-color: rgba(182, 199, 228, .12); background: rgba(10, 14, 20, .86); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(20px); }
.round-strip { position: relative; padding: 20px 24px; border-radius: 17px; overflow: hidden; }
.round-strip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(#f2af35, #8589ff); }
.round-strip div { border-right-color: rgba(182, 199, 228, .09); }
.label { color: #5f6a7d; letter-spacing: .06em; }
.round-strip strong { color: #dce2ec; }

.pools { gap: 22px; }
.pool-card { min-height: 500px; padding: 31px; border-color: rgba(183, 197, 224, .13); border-radius: 25px; background: rgba(9, 13, 19, .92); box-shadow: 0 36px 100px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.03); }
.pool-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .6; }
.pool-big::before { background: linear-gradient(135deg, rgba(244,156,26,.09), transparent 37%); }
.pool-small::before { background: linear-gradient(135deg, rgba(111,105,241,.11), transparent 37%); }
.pool-glow { width: 330px; height: 330px; right: -190px; top: -170px; opacity: .18; filter: blur(70px); }
.pool-watermark { position: absolute; right: -32px; bottom: 82px; width: 190px; height: 190px; opacity: .026; filter: grayscale(1); transform: rotate(-15deg); pointer-events: none; }
.pool-head { z-index: 2; }
.pool-head h2 { margin-top: 9px; font-size: 36px; letter-spacing: -.04em; }
.pool-kicker { font-size: 9px; letter-spacing: .2em; }
.side-icon { width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.025) !important; }
.side-icon img { width: 49px; height: 49px; }
.pool-big .side-icon { box-shadow: 0 0 35px rgba(247,147,26,.1); }
.pool-small .side-icon { box-shadow: 0 0 35px rgba(98,126,234,.14); }
.chance { position: relative; z-index: 2; margin-top: 44px; }
.chance strong { font-size: clamp(50px, 5vw, 70px); font-weight: 750; }
.pool-big .chance strong { background: linear-gradient(100deg, #fff1c6, #f2a32a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pool-small .chance strong { background: linear-gradient(100deg, #e8e8ff, #7c81ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meter { position: relative; z-index: 2; height: 5px; background: rgba(255,255,255,.045); }
.pool-balance, .amount-box, .wide { position: relative; z-index: 2; }
.pool-balance { margin-top: 23px; }
.pool-balance span { color: #667185; }
.pool-balance strong { color: #e5e9f1; }
.amount-box { padding: 15px 17px; border-color: rgba(184, 199, 224, .13); border-radius: 13px; background: rgba(3,5,8,.46); }
.amount-box:focus-within { border-color: rgba(197, 207, 227, .27); box-shadow: 0 0 0 3px rgba(139, 144, 255, .05); }
.button-big { color: #1f1305; background: linear-gradient(112deg, #f09a20, #ffd779 53%, #ed9d27); box-shadow: inset 0 1px rgba(255,255,255,.62), 0 13px 30px rgba(231,142,21,.12); }
.button-small { color: #0a0b20; background: linear-gradient(112deg, #6e73dc, #bdc0ff 53%, #7075e4); box-shadow: inset 0 1px rgba(255,255,255,.52), 0 13px 30px rgba(103,103,226,.13); }
.wide { padding: 15px; letter-spacing: .12em; }

.info-grid { gap: 22px; margin-top: 22px; }
.account-card, .action-card, .history-card { padding: 27px; }
.section-title h3 { color: #e4e8ef; }
.account-stats div { border-color: rgba(181, 198, 225, .1); background: rgba(2,4,7,.28); }
.button-secondary { color: #11151b; background: linear-gradient(120deg, #93f0d0, #5cd8b1); }
.button-ghost { border-color: rgba(181, 198, 225, .13); background: rgba(255,255,255,.018); }
.history-card { margin-top: 22px; }

.rules { gap: 22px; margin-top: 24px; }
.rules > div { position: relative; padding: 25px 15px 4px 0; border-top-color: rgba(183, 198, 225, .12); }
.rules > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 45px; height: 1px; background: linear-gradient(90deg, #f1ae36, #858aff); box-shadow: 0 0 10px rgba(133,138,255,.35); }
.rules span { color: #858aff; }

.protocol-banner {
  min-height: 105px;
  margin-top: 35px;
  padding: 20px 25px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(189, 202, 226, .12);
  border-radius: 19px;
  background:
    linear-gradient(105deg, rgba(240,164,38,.06), transparent 35%, rgba(105,102,229,.08)),
    rgba(8, 11, 16, .78);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.protocol-banner > div { display: flex; }
.protocol-banner img { width: 43px; height: 43px; margin-left: -9px; border: 2px solid #0b0e13; border-radius: 50%; }
.protocol-banner img:first-child { margin-left: 0; }
.protocol-banner p { margin: 0; }
.protocol-banner p span, .protocol-banner p strong { display: block; }
.protocol-banner p span { margin-bottom: 6px; color: #606c80; font-size: 8px; letter-spacing: .19em; }
.protocol-banner p strong { color: #c9d0dc; font-size: 13px; font-weight: 550; }
.protocol-banner em { color: #f2b143; font-size: 9px; font-style: normal; letter-spacing: .17em; }

footer { width: min(1240px, calc(100% - 40px)); border-top-color: rgba(182, 198, 225, .1); }

@keyframes protocol-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes coin-float-a { 0%, 100% { transform: translate3d(0,0,0) rotate(-4deg); } 50% { transform: translate3d(0,-10px,0) rotate(4deg); } }
@keyframes coin-float-b { 0%, 100% { transform: translate3d(0,0,0) rotate(5deg); } 50% { transform: translate3d(0,8px,0) rotate(-3deg); } }

@media (prefers-reduced-motion: reduce) {
  .floating-coin, .console-topline i { animation: none; }
}

@media (max-width: 960px) {
  .market-rail { grid-template-columns: 1fr 1fr; }
  .market-item:nth-child(2) { border-right: 0; }
  .market-item:nth-child(-n+2) { border-bottom: 1px solid rgba(176, 193, 221, .08); }
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy-wrap { max-width: 720px; }
  .hero-console { width: min(610px, 100%); justify-self: center; }
}

@media (max-width: 580px) {
  .topbar { width: 100vw; height: 76px; padding-left: 12px; padding-right: 12px; gap: 10px; overflow: hidden; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 41px; height: 41px; }
  .brand strong { font-size: 14px; }
  .asset-mini-stack { display: none; }
  .header-actions { flex: 0 0 auto; gap: 8px; }
  #connectButton { padding-left: 11px; padding-right: 11px; white-space: nowrap; }
  .button { padding-left: 13px; padding-right: 13px; }
  .shell { width: calc(100vw - 24px); padding-top: 14px; }
  .market-rail { width: 100%; min-height: 55px; border-radius: 13px; }
  .market-item { padding: 10px; gap: 8px; }
  .market-item img, .verified-item i { width: 29px; height: 29px; }
  .market-item small { display: none; }
  .market-item strong { font-size: 9px; }
  .verified-item i::before { inset: 7px; }
  .hero, .hero-copy-wrap, .hero-console { min-width: 0; max-width: 100%; }
  .hero { margin: 38px 0 28px; }
  .hero h1 { font-size: clamp(47px, 14.4vw, 62px); line-height: 1; }
  .hero-lead { font-size: 15px; }
  .hero-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
  .hero-tags span { overflow: hidden; font-size: 7px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .hero-console { width: 100%; min-height: 397px; padding: 14px; border-radius: 22px; }
  .crypto-orbit { height: 250px; }
  .orbit-one { width: 232px; height: 145px; }
  .orbit-two { width: 290px; height: 190px; }
  .core-token { width: 119px; height: 119px; }
  .core-token span { font-size: 43px; }
  .btc-coin { width: 54px; height: 54px; left: 4%; }
  .eth-coin { width: 58px; height: 58px; right: 3%; }
  .bnb-coin { width: 38px; height: 38px; }
  .hero-stats span { font-size: 6px; }
  .hero-stats strong { font-size: 13px; }
  .hero-stats div { padding: 12px 8px; }
  .round-strip { border-radius: 15px; }
  .pool-card { min-height: 0; padding: 23px; }
  .chance { margin-top: 36px; }
  .chance strong { font-size: 53px; }
  .side-icon { width: 52px; height: 52px; }
  .side-icon img { width: 43px; height: 43px; }
  .protocol-banner { grid-template-columns: auto 1fr; gap: 15px; padding: 17px; }
  .protocol-banner em { display: none; }
  .protocol-banner img { width: 36px; height: 36px; }
  .protocol-banner p strong { font-size: 11px; line-height: 1.5; }
  footer { width: calc(100vw - 24px); }
}

/* ===== V4: ranking, affiliate and precision polish ===== */
.topbar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(1240px, 100%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(244,174,51,.28), rgba(129,132,255,.25), transparent);
}

.market-rail { position: relative; }
.market-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.035) 45%, transparent 65%);
  transform: translateX(-110%);
  animation: rail-scan 8s ease-in-out infinite;
}

.hero-console { isolation: isolate; }
.hero-console::selection { background: transparent; }
.crypto-orbit::after {
  content: "HASH / 03 BLOCKS / PUBLIC SETTLEMENT";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  color: rgba(126,139,160,.45);
  font-size: 6px;
  letter-spacing: .24em;
  white-space: nowrap;
}

.pool-card { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.pool-card:hover { transform: translateY(-3px); }
.pool-big:hover { border-color: rgba(244,164,38,.25); box-shadow: 0 42px 115px rgba(0,0,0,.48), 0 0 55px rgba(230,137,20,.055), inset 0 1px rgba(255,255,255,.04); }
.pool-small:hover { border-color: rgba(126,129,240,.28); box-shadow: 0 42px 115px rgba(0,0,0,.48), 0 0 55px rgba(104,102,224,.07), inset 0 1px rgba(255,255,255,.04); }
.pool-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.018);
  border-radius: 17px;
  pointer-events: none;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 22px;
  margin-top: 22px;
}

.ranking-card, .referral-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}
.ranking-card::before, .referral-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246,182,62,.55), rgba(126,130,245,.48), transparent);
}
.ranking-card::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -190px;
  top: -190px;
  border-radius: 50%;
  background: #f0a62c;
  filter: blur(90px);
  opacity: .055;
  pointer-events: none;
}
.ranking-title { position: relative; z-index: 2; }
.settlement-clock { min-width: 112px; padding: 10px 12px; border: 1px solid rgba(177,194,222,.12); border-radius: 11px; background: rgba(2,4,7,.36); text-align: right; }
.settlement-clock small, .settlement-clock strong { display: block; }
.settlement-clock small { margin-bottom: 4px; color: #606b7e; font-size: 8px; letter-spacing: .12em; }
.settlement-clock strong { color: #f2b446; font-size: 14px; letter-spacing: .05em; }

.reward-vault { display: grid; grid-template-columns: 1.35fr .7fr 1fr; gap: 9px; margin: 23px 0 17px; }
.reward-vault > div { min-width: 0; padding: 14px; border: 1px solid rgba(180,197,225,.1); border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(0,0,0,.1)); }
.reward-vault > div:first-child { border-color: rgba(242,175,52,.18); background: linear-gradient(145deg, rgba(239,158,31,.075), rgba(0,0,0,.11)); }
.reward-vault span, .reward-vault strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reward-vault span { margin-bottom: 7px; color: #616d81; font-size: 8px; letter-spacing: .08em; }
.reward-vault strong { color: #dce2eb; font-size: 13px; }
.reward-vault > div:first-child strong { color: #f3bf5b; font-size: 16px; }

.leaderboard-head { display: flex; justify-content: space-between; padding: 0 11px 8px; color: #505b6d; font-size: 8px; letter-spacing: .12em; }
.leaderboard-body { display: grid; gap: 5px; }
.leader-row { min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 7px 11px; border: 1px solid rgba(178,195,222,.075); border-radius: 9px; background: rgba(2,4,7,.22); transition: border-color .2s ease, background .2s ease; }
.leader-row:hover { border-color: rgba(179,196,224,.16); background: rgba(255,255,255,.023); }
.leader-row > span { display: flex; align-items: center; gap: 11px; min-width: 0; }
.leader-row i { width: 24px; color: #667287; font-family: ui-monospace, monospace; font-size: 9px; font-style: normal; text-align: center; }
.leader-row:nth-child(1) i { color: #ffc75c; text-shadow: 0 0 14px rgba(255,191,73,.38); }
.leader-row:nth-child(2) i { color: #c5ccdc; }
.leader-row:nth-child(3) i { color: #d69565; }
.leader-row b { overflow: hidden; color: #aeb7c6; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 550; text-overflow: ellipsis; }
.leader-row strong { color: #d4dae5; font-size: 10px; font-weight: 650; }
.leader-row.mine { border-color: rgba(98,239,190,.2); background: rgba(48,189,141,.04); }
.leader-row.mine b::after { content: "YOU"; margin-left: 7px; color: #62efbe; font-family: Inter, sans-serif; font-size: 6px; letter-spacing: .1em; }
.empty-rank { color: #596477; }
.empty-rank span { font-size: 10px; }

.ranking-actions { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; margin-top: 15px; }
.ranking-actions > div span, .ranking-actions > div strong { display: block; }
.ranking-actions > div span { margin-bottom: 5px; color: #596477; font-size: 8px; }
.ranking-actions > div strong { color: #d8dee8; font-size: 12px; }
.button-gold { color: #1e1405; border-color: rgba(255,222,150,.35); background: linear-gradient(112deg, #e9941f, #f9cf79); box-shadow: inset 0 1px rgba(255,255,255,.55); }
.micro-note { margin: 14px 0 0; color: #586376; font-size: 9px; line-height: 1.7; }

.referral-card {
  min-height: 100%;
  background:
    radial-gradient(circle at 83% 16%, rgba(103,98,229,.18), transparent 28%),
    linear-gradient(145deg, rgba(13,16,25,.94), rgba(7,10,15,.94));
}
.referral-card h3 { position: relative; z-index: 2; margin: 7px 0 11px; font-size: 24px; letter-spacing: -.035em; }
.referral-card > p { position: relative; z-index: 2; max-width: 82%; margin: 0; color: #707b8e; font-size: 11px; line-height: 1.75; }
.referral-orb { position: absolute; right: 26px; top: 27px; width: 72px; height: 72px; display: grid; place-content: center; text-align: center; border: 1px solid rgba(158,161,255,.33); border-radius: 50%; background: radial-gradient(circle at 35% 28%, #c9caff, #676bd7 54%, #292967); box-shadow: inset 0 0 0 6px rgba(255,255,255,.035), 0 0 45px rgba(101,100,222,.2); }
.referral-orb::after { content: ""; position: absolute; inset: -8px; border: 1px dashed rgba(151,155,255,.16); border-radius: 50%; animation: slow-spin 17s linear infinite; }
.referral-orb span, .referral-orb small { position: relative; z-index: 2; }
.referral-orb span { color: white; font-size: 27px; font-weight: 800; line-height: 1; }
.referral-orb small { margin-top: 4px; color: #d9d9ff; font-size: 6px; letter-spacing: .13em; }

.level-ladder { position: relative; z-index: 2; display: grid; gap: 6px; margin: 22px 0 14px; }
.level-ladder > div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(177,193,220,.085); border-radius: 9px; background: rgba(2,4,7,.23); }
.level-ladder i { color: #676fdd; font-family: ui-monospace, monospace; font-size: 8px; font-style: normal; }
.level-ladder span { color: #7e899b; font-size: 10px; }
.level-ladder strong { color: #c6c8ff; font-size: 13px; }

.referral-state { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }
.referral-state > div { min-width: 0; padding: 11px; border: 1px solid rgba(177,194,222,.09); border-radius: 9px; background: rgba(0,0,0,.15); }
.referral-state span, .referral-state strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.referral-state span { margin-bottom: 5px; color: #596477; font-size: 8px; }
.referral-state strong { color: #b8c1cf; font-size: 10px; }
.referrer-box { display: block; padding: 11px 13px; border: 1px solid rgba(177,194,222,.11); border-radius: 10px; background: rgba(0,0,0,.18); }
.referrer-box span { display: block; margin-bottom: 5px; color: #596477; font-size: 8px; }
.referrer-box input { width: 100%; padding: 0; border: 0; outline: 0; color: #d5dbe5; background: transparent; font-size: 11px; }
.referrer-box input:disabled { opacity: .5; }
.referral-card > .wide { margin-top: 7px; padding: 12px; }
.share-link { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 7px; }
.share-link input { min-width: 0; padding: 9px 10px; border: 1px solid rgba(177,194,222,.1); border-radius: 9px; outline: 0; color: #687487; background: rgba(0,0,0,.15); font-size: 9px; }

.info-grid { margin-top: 22px; }
.account-card, .action-card, .history-card { position: relative; overflow: hidden; }
.account-card::before, .action-card::before { content: ""; position: absolute; left: 0; top: 23px; bottom: 23px; width: 1px; background: linear-gradient(transparent, rgba(96,240,190,.42), transparent); }
.action-card::before { background: linear-gradient(transparent, rgba(131,134,246,.5), transparent); }

@keyframes rail-scan { 0%, 45% { transform: translateX(-110%); } 75%, 100% { transform: translateX(110%); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
  .referral-card > p { max-width: 72%; }
}

@media (max-width: 680px) {
  .ranking-card, .referral-card { padding: 20px; }
  .ranking-title { align-items: center; }
  .reward-vault { grid-template-columns: 1fr 1fr; }
  .reward-vault > div:first-child { grid-column: 1 / -1; }
  .ranking-actions { grid-template-columns: 1fr 1fr; }
  .ranking-actions > div { grid-column: 1 / -1; }
  .ranking-actions .button { width: 100%; }
  .referral-card > p { max-width: calc(100% - 74px); }
  .referral-orb { width: 58px; height: 58px; right: 19px; top: 20px; }
  .referral-orb span { font-size: 22px; }
}

@media (max-width: 430px) {
  .settlement-clock { min-width: 101px; }
  .settlement-clock strong { font-size: 12px; }
  .leader-row { padding-left: 8px; padding-right: 8px; }
  .leader-row strong { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .referral-state { grid-template-columns: 1fr; }
  .share-link { grid-template-columns: 1fr; }
  .share-link .button { width: 100%; }
}
