/* App chrome: top bar, ticker, tabs, floating menu pill, menu overlay */
body { padding-bottom: 5.5rem; }
kbd { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em; border-radius: 6px; background: rgba(0,0,0,.14); font: 700 .72rem/1 inherit; border: 1px solid rgba(127,127,127,.4); }
.ico { vertical-align: -.2em; flex: none; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--tier, #888); box-shadow: 0 0 8px var(--tier, transparent); }
.coin { display: inline-block; width: 1.15em; height: 1.15em; border-radius: 50%; vertical-align: -.2em; margin-right: .3em; background: radial-gradient(circle at 35% 30%, #ffe27a, #e0a100 75%); box-shadow: inset 0 0 0 2px #b27c00; }
.coin.has-art { background: center/contain no-repeat; box-shadow: none; border-radius: 0; }
.pill { display: inline-block; min-width: 1.35em; padding: 0 .4em; border-radius: 999px; background: var(--teal); color: #031311; font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.5; }
.pill[hidden] { display: none; }
.bar { height: 8px; background: #26262a; border-radius: 99px; overflow: hidden; }
.bar.thick { height: 12px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb347, var(--accent)); border-radius: 99px; transition: width .4s; }
.bar.glow i { background: linear-gradient(90deg, #7c3aed, #d8a8ff); }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .65rem 1.4rem; background: #070707; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-size: .95rem; letter-spacing: .08em; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: #1c1f26 center/contain no-repeat; display: grid; place-items: center; }
.logo-mark.has-art { background-color: transparent; }
.logo-mark.has-art .ball { display: none; }
.ball, .pa-ball { display: block; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb15c, #e8590c 70%); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.45); }
.ticker { flex: 1; min-width: 0; overflow: hidden; border-radius: 999px; background: #131314; border: 1px solid #202023; padding: .5rem 0; position: relative; contain: layout paint; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #131314, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #131314, transparent); }
.ticker-track { display: inline-block; white-space: nowrap; will-change: transform; animation: tick 60s linear infinite; font-size: .84rem; color: #d7dae1; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: .5rem; margin-right: 2.4rem; }
.tag { font-style: normal; font-size: .64rem; font-weight: 900; letter-spacing: .1em; padding: .12rem .5rem; border-radius: 99px; background: #e4e4e8; color: #111; }
.t-pulls { background: #f2c230; } .t-scores { background: #fff; } .t-market { background: #7be08f; } .t-records { background: var(--teal); } .t-news { background: #a478ff; color: #fff; } .t-you { background: var(--accent); }
.balance { display: flex; align-items: center; background: #131314; border: 1px solid #202023; padding: .42rem 1rem; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.lvl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), #26262a 0); }
.lvl b { width: 32px; height: 32px; border-radius: 50%; background: #0c0c0d; display: grid; place-items: center; font-size: .95rem; }
.who { display: grid; gap: 2px; line-height: 1.1; }
.who b { font-size: .85rem; }
.who small { color: var(--muted); font-size: .68rem; }
.xpbar { display: block; width: 110px; height: 4px; background: #26262a; border-radius: 9px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--teal); }

.subtabs { display: flex; gap: .45rem; padding: .3rem 1.4rem 0; max-width: 1400px; width: 100%; margin: 0 auto; }
.subtabs[hidden] { display: none; }
.tab { display: inline-flex; align-items: center; gap: .4rem; background: #1b1b1c; color: var(--text); padding: .55rem 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.tab:hover { background: #262628; }
.tab.on { background: #e9eaee; color: #0b0b0b; }

main { padding: 1.4rem; max-width: 1400px; width: 100%; margin: 0 auto; flex: 1; }
.sitefoot { padding: 1.2rem; color: #666a74; font-size: .75rem; text-align: center; }
.sitefoot a { color: #8a8f9b; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

.menu-pill { position: fixed; z-index: 30; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .6rem; background: #f1f1f3; color: #0b0b0b; border: 0; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.menu-pill[hidden] { display: none; }
.menu-pill .dot { width: 1px; height: 1em; background: rgba(0,0,0,.3); }
.menu-pill .ctx { font-weight: 700; }
.menu-pill:hover { background: #fff; }

#menu-dialog { width: min(980px, 94vw); background: #101011; border-radius: 28px; border: 1px solid #242427; }
.menu-body { padding: 1.6rem 1.8rem; }
.menu-body header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.2rem; }
.menu-body h2 { font-size: 2rem; }
.menu-body header p { color: var(--muted); margin: .3rem 0 0; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1b1b1c; border: 0; cursor: pointer; }
.iconbtn:hover:not(:disabled) { background: #2a2a2c; }
.iconbtn:disabled { opacity: .35; cursor: default; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr; gap: 1.2rem; }
.menu-grid h4 { margin: 0 0 .6rem; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.mi { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; text-decoration: none; font-weight: 600; }
.mi:hover { color: var(--accent2); }
.mi.soon { color: #5b5f69; cursor: default; }
.mi.soon small { margin-left: auto; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.menu-grid aside { background: #18181a; border-radius: 20px; padding: 1rem; display: grid; gap: .6rem; align-content: start; }
.bigpill { display: block; text-align: center; padding: .8rem; border-radius: 999px; background: #232326; text-decoration: none; font-weight: 800; }
.bigpill.on { background: #f1f1f3; color: #0b0b0b; }
.bigpill.soon { color: #5b5f69; }
.bigpill small { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; margin-left: .3rem; }
.menu-body footer { display: flex; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid #242427; font-size: .85rem; }
.menu-body footer .sp { flex: 1; }

#toasts { position: fixed; bottom: 5rem; right: 1.2rem; display: grid; gap: .5rem; z-index: 60; }
.toast { background: #202023; border: 1px solid #2d2d31; border-radius: 16px; padding: .7rem 1.1rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: tin .25s ease; }
.toast.err { border-color: var(--bad); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; }
  .ticker { order: 10; flex-basis: 100%; }
  .topbar .balance { margin-left: auto; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .who small, .xpbar { display: none; }
  body { padding-bottom: 6rem; }
}
