/* The wallet stays in sight while the battlefield scrolls beneath it. */
.wallet-ribbon{position:sticky;top:0;z-index:35;display:grid;grid-template-columns:minmax(245px,1.1fr) minmax(210px,.85fr) minmax(230px,1fr) auto;align-items:center;gap:0;margin:12px 0 5px;border:1px solid #b76ebd;border-radius:13px;background:linear-gradient(100deg,#331b3bf5,#17162cf7 43%,#112930f7);box-shadow:0 8px 35px #0005,inset 0 1px #f6c7ff33;backdrop-filter:blur(16px);isolation:isolate}.noah-balance,.noah-market{border:0;color:#fff;text-align:left;background:none;display:flex;align-items:center;gap:13px;min-width:0;padding:17px 20px;cursor:pointer;position:relative}.noah-balance:focus-visible,.noah-market:focus-visible,.wallet-open:focus-visible{outline:2px solid #a5ffe9;outline-offset:-4px}.noah-token{width:50px;height:50px;flex:none;border-radius:50%;display:grid;place-items:center;font:31px Georgia;color:#ffb0ed;border:2px solid #ffb4eb;background:radial-gradient(circle at 32% 25%,#ad5e9f,#48275f 55%,#251f36 75%);box-shadow:inset 2px 2px 4px #ffedff88,inset -3px -3px 6px #050413,0 0 20px #ff8dde33;transform:rotate(-12deg)}.noah-amount{display:flex;flex-direction:column;gap:3px;min-width:0}.noah-amount>small{font:700 8px monospace;letter-spacing:1.5px;color:#f8b9e9}.noah-amount>b{font:900 40px/.95 var(--heading);letter-spacing:-.7px;font-variant-numeric:tabular-nums;color:#fff3fe;white-space:nowrap}.noah-amount em{font:800 17px var(--heading);color:#e7a6dd;font-style:normal;letter-spacing:1px}.noah-amount>span{font:9px var(--body);color:#b9b9cf;line-height:1.4}.noah-market{display:flex;align-items:flex-start;flex-direction:column;gap:6px;border-left:1px solid #93749a55;padding:12px 20px}.noah-market>small{font:700 8px monospace;letter-spacing:1.3px;color:#adf3e1}.noah-market>b{font:800 clamp(19px,2.2vw,28px)/1 var(--heading);font-variant-numeric:tabular-nums;color:#effff9;white-space:nowrap}.noah-market>span{font:700 10px monospace;color:#aebdca}.noah-market .positive{color:#8cffe0}.noah-market .negative{color:#ffabbc}.noah-market .neutral{color:#bbc8d0}.noah-market.is-stale>b{color:#c5bdc6}.wallet-journey{padding:8px 20px;border-left:1px solid #93749a55;display:flex;flex-direction:column;gap:5px;min-width:0}.wallet-journey>small{font:700 7px monospace;letter-spacing:1.2px;color:#a2ebdc}.wallet-journey>b{font:800 19px var(--heading);color:#e6fff3}.wallet-journey>span{font:9px var(--body);color:#c3c6d1;line-height:1.5}.wallet-progress{height:3px;background:#3a3e54;overflow:hidden;margin-top:3px;border-radius:3px}.wallet-progress>i{display:block;width:0;height:100%;background:linear-gradient(90deg,#ff80d2,#95fff0);transition:width .4s}.wallet-open{border:1px solid #a3fae388;background:#96fbe812;color:#b4ffed;border-radius:7px;font:700 10px var(--body);padding:13px 14px;margin:0 17px 0 4px;cursor:pointer;white-space:nowrap}.wallet-open:hover{background:#afffe626}.wallet-delta{position:absolute;right:12px;top:6px;font:800 10px monospace;opacity:0;pointer-events:none;padding:5px 7px;border-radius:5px;color:#19112a;background:#b4ffe3}.wallet-delta.debit{background:#ffb9ca}.wallet-delta.show{animation:wallet-receipt 4.8s both}.wallet-ribbon.credited{animation:wallet-credit 1.3s ease-out}.wallet-ledger{border:1px solid #80608f66;border-radius:10px;padding:15px;margin:14px 0;background:linear-gradient(130deg,#241933,#10272a)}.wallet-ledger>small{font:8px monospace;letter-spacing:1px;color:#b4f6df}.wallet-ledger svg{width:100%;height:95px;display:block;margin-top:10px}.wallet-ledger>p{font-size:11px!important;color:#c4c7d3}.ledger-empty{display:block;font-size:12px;padding:25px 0;color:#baacc7}.wallet-milestone{display:flex;align-items:center;gap:13px;background:#17322c;border:1px solid #89dcb566;border-radius:8px;padding:14px;margin:12px 0}.wallet-milestone>strong{font:800 29px var(--heading);color:#b4ffdb;white-space:nowrap}.wallet-milestone>span{font-size:12px;color:#cbdfd8;line-height:1.5}.topbar .top-actions{margin-left:auto}.topbar .market-chip,.topbar .wallet-chip{display:none}.battle-mode .topbar{height:48px}.battle-mode .wallet-ribbon{margin-top:3px;margin-bottom:9px}.battle-mode .noah-balance{padding:9px 15px}.battle-mode .noah-token{width:35px;height:35px;font-size:22px}.battle-mode .noah-amount>b{font-size:32px}.battle-mode .noah-market{padding:9px 18px}.battle-mode .wallet-journey{padding:7px 15px}.battle-mode .wallet-journey>b{font-size:17px}.battle-mode .noah-market>b{font-size:23px}.battle-mode .noah-amount>span{font-size:8px}.battle-mode .noah-market>small,.battle-mode .noah-amount>small{font-size:7px}.battle-mode .wallet-open{font-size:9px;padding:11px}
@keyframes wallet-receipt{0%{opacity:0;transform:translateY(8px)}10%,82%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-8px)}}@keyframes wallet-credit{0%{box-shadow:0 0 0 1px #b5ffe7,0 0 36px #93ffd866}100%{box-shadow:0 8px 35px #0005,inset 0 1px #f6c7ff33}}
@media(max-width:1100px){.wallet-ribbon{grid-template-columns:1fr 1fr .95fr}.wallet-open{display:none}.noah-balance{padding:14px}.noah-market{padding:12px 15px}.wallet-journey{padding:8px 13px}.noah-amount>b{font-size:35px}.noah-token{width:43px;height:43px;font-size:26px}}
@media(max-width:650px){.wallet-ribbon{grid-template-columns:1fr 1fr;border-radius:9px;margin:7px 0 3px}.noah-balance{padding:12px 10px;gap:8px}.noah-token{width:31px;height:31px;font-size:21px}.noah-amount>b{font-size:31px}.noah-amount em{font-size:12px}.noah-amount>small{font-size:6px;letter-spacing:.7px}.noah-amount>span{font-size:7px}.noah-market{padding:11px 10px;gap:5px}.noah-market>b{font-size:23px}.noah-market>small{font-size:6px;letter-spacing:.5px}.noah-market>span{font-size:8px}.wallet-journey{grid-column:1/-1;padding:8px 11px;border-left:0;border-top:1px solid #93749a44;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:3px 8px}.wallet-journey>small{font-size:6px}.wallet-journey>b{font-size:16px;grid-column:1;grid-row:2}.wallet-journey>span{font-size:8px;grid-column:2;grid-row:1/3;text-align:right}.wallet-progress{display:none}.wallet-delta{right:3px;top:0;font-size:7px;padding:4px}.battle-mode .wallet-ribbon{grid-template-columns:1fr 1fr}.battle-mode .wallet-journey{display:none}.battle-mode .noah-balance{padding:9px;gap:6px}.battle-mode .noah-token{width:28px;height:28px;font-size:18px}.battle-mode .noah-amount>b{font-size:29px}.battle-mode .noah-amount>small{font-size:6px}.battle-mode .noah-market{padding:10px}.battle-mode .noah-market>b{font-size:22px}.battle-mode .noah-market>small{font-size:6px}.battle-mode .topbar{height:45px}.wallet-milestone{padding:10px}.wallet-milestone>strong{font-size:24px}.wallet-milestone>span{font-size:10px}.wallet-ledger svg{height:80px}}
@media(prefers-reduced-motion:reduce){.wallet-delta.show{animation:none;opacity:1}.wallet-ribbon.credited{animation:none}.wallet-progress>i{transition:none}}
/* Share the top edge with the independently maintained universe navigation. */
.wallet-ribbon{top:var(--noah-header-height,0px)}
