:root {
  --bg: #0d0912;
  --bg2: #17101f;
  --card: #1e1529;
  --line: #34254a;
  --text: #f3ead8;
  --muted: #a898b8;
  --pumpkin: #ff7a1a;
  --slime: #8cff5a;
  --blood: #ff4d5e;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% -10%, #3a1d4d 0%, transparent 55%),
    radial-gradient(ellipse at 110% 110%, #4a2208 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--pumpkin); }
.spooky { font-family: 'Creepster', 'Inter', cursive; letter-spacing: 0.04em; font-weight: 400; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--slime); }
.down { color: var(--blood); }

.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
header.top { text-align: center; padding: 18px 0 8px; }
header.top h1 { margin: 0; font-size: clamp(34px, 9vw, 56px); color: var(--pumpkin); text-shadow: 0 0 24px #ff7a1a66; }
.raised { margin-top: 6px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.raised b { display: block; font-size: clamp(28px, 8vw, 40px); color: var(--slime); letter-spacing: 0; text-shadow: 0 0 18px #8cff5a55; }

.tabs { display: flex; gap: 6px; margin: 16px 0 12px; background: var(--bg2); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 10px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--pumpkin); color: #1a0d02; }

.list { display: flex; flex-direction: column; gap: 8px; position: relative; }
.row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; position: relative; overflow: hidden; }
.row .rank { font-weight: 800; font-size: 18px; color: var(--muted); text-align: center; }
.row:nth-child(1) .rank { color: #ffd166; }
.row .name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.row .amt { font-weight: 800; font-size: 17px; }
.row .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--c, var(--pumpkin)); transition: width .8s ease; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 8px var(--c); }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 2px var(--slime), 0 0 30px #8cff5a88; } 100% { box-shadow: none; } }

.search { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; margin-bottom: 10px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 26px 0 10px; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feed li { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.feed li time { color: var(--muted); font-size: 12px; margin-right: 8px; }
footer { text-align: center; padding: 30px 0; font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td.r, th.r { text-align: right; }
.scroll-x { overflow-x: auto; }

.offline { position: fixed; top: 0; left: 0; right: 0; background: var(--blood); color: #fff; text-align: center; font-size: 13px; padding: 4px; display: none; z-index: 10; }
.offline.show { display: block; }
