/* RO Ely on Elysium: shared look. Dark editorial: near-black, off-white type, muted moss green.
   Green and red only for up/down. Thin 1px rules, square corners, no glow. Fonts are local (SIL OFL, see /fonts). */
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0b0a;
  --bg2: #0e100e;
  --panel: #111311;
  --panel2: #161916;
  --line: #20241f;
  --line2: #2d322c;
  --text: #b4b7ad;
  --text-hi: #ecebe3;
  --dim: #868b80;
  --mute: #5c6158;
  --moss: #8fa67a;
  --moss-dim: #66795a;
  --moss-bg: rgba(143,166,122,.08);
  --up: #79c27c;
  --down: #d76a5f;
  --ochre: #c8b27c;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  /* old names some templates still use */
  --poring: var(--moss); --poring-dim: var(--moss-dim); --gold: var(--text-hi); --gold-dim: var(--dim); --red: var(--down);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); min-height: 100vh; overflow-x: hidden; font-feature-settings: "liga" 1, "calt" 0; }
a { color: inherit; }
img.px, .px { image-rendering: pixelated; }
[hidden] { display: none !important; }
.wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--text-hi); outline-offset: 3px; }
::selection { background: var(--moss); color: var(--bg); }
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
em, .it { font-style: italic; }
.up, .w { color: var(--up); } .down, .l { color: var(--down); }

/* ── ticker (very top, mono) ── */
.ticker { position: relative; z-index: 60; height: 30px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); font: 500 11.5px/30px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ticker .lab { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; padding: 0 14px 0 32px; background: var(--bg); color: var(--text-hi); border-right: 1px solid var(--line); }
.ticker .lab i { display: inline-block; width: 6px; height: 6px; background: var(--moss); margin-right: 8px; vertical-align: 1px; }
.ticker .track { display: inline-flex; gap: 0; padding-left: 130px; animation: tick 70s linear infinite; will-change: transform; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .it { padding: 0 22px; border-right: 1px solid var(--line); font-style: normal; }
.ticker .it b { color: var(--text-hi); font-weight: 600; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(10,11,10,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 26px; height: 58px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; flex-shrink: 0; color: var(--text-hi); }
.brand .word { font: 400 27px/1 var(--serif); letter-spacing: .06em; }
.brand .on { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; color: var(--dim); font-size: 14px; padding: 6px 10px; transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--text-hi); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.iconlink { display: grid; place-items: center; width: 34px; height: 34px; color: var(--dim); text-decoration: none; }
.iconlink:hover { color: var(--text-hi); }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--line2); font-size: 13px; color: var(--text-hi); text-decoration: none; }
.me-chip .av { width: 26px; height: 26px; background: var(--panel2) center/cover; display: grid; place-items: center; font: 400 16px var(--serif); color: var(--text-hi); }
.me-chip .bal { font-family: var(--mono); font-size: 12px; color: var(--text); }

/* ── buttons: solid off-white primary, outline, mono small, text link ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 500 15px var(--sans); text-decoration: none; cursor: pointer; padding: 11px 20px; border-radius: 2px;
  border: 1px solid var(--text-hi); color: #0b0c0b; background: linear-gradient(180deg, #f3f2ec, #dcdad1); white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: #fff; }
.btn[disabled] { cursor: not-allowed; background: var(--panel2); color: var(--mute); border-color: var(--line2); }
.btn.ghost { background: transparent; color: var(--text-hi); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--dim); background: var(--panel); }
.btn.ghost[disabled] { color: var(--mute); }
.btn.gold { /* the main money action stays the off-white primary */ }
.btn.sm { padding: 7px 12px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.btn.xl { padding: 14px 26px; font-size: 16px; }
.tlink { display: inline-flex; align-items: center; gap: 6px; color: var(--text-hi); text-decoration: none; border-bottom: 1px solid var(--dim); padding-bottom: 1px; font-size: 15px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-family: inherit; }
.tlink:hover { border-color: var(--text-hi); }
.xmark { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.linkbtn { background: none; border: 0; color: var(--text-hi); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); padding: 0; }

/* ── labels, pills, notes ── */
.kicker, .eyebrow { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--line2); color: var(--dim); background: rgba(10,11,10,.55); }
.pill.gold { color: var(--ochre); border-color: rgba(200,178,124,.35); }
.pill.ok { color: var(--moss); border-color: rgba(143,166,122,.4); }
.pill.bad { color: var(--down); border-color: rgba(215,106,95,.4); }
.pill.shinypill { color: #0b0c0b; background: var(--ochre); border-color: var(--ochre); }
.rank { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.rank::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: currentColor; vertical-align: 1px; }
.rank.iron { color: #8a8f86; } .rank.bronze { color: #b48b62; } .rank.silver { color: #c6c9c0; } .rank.gold { color: var(--ochre); } .rank.platinum { color: #93bdb6; }
.note { font-size: 13px; color: var(--dim); }
.note.warn { color: var(--ochre); } .note.bad { color: var(--down); } .note.good { color: var(--moss); }
.msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.msg.bad { color: var(--down); } .msg.good { color: var(--moss); }
input.in, select.shop-sel { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 0; padding: 11px 13px; font: 400 14px var(--mono); color: var(--text-hi); outline: none; }
input.in:focus, select.shop-sel:focus { border-color: var(--dim); }
input.in::placeholder { color: var(--mute); }

/* ── panels: a mono label row over a thin frame ── */
.win { border: 1px solid var(--line); background: rgba(17,19,17,.72); }
.win > .bar { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.win > .bar .dots { display: none; }
.win > .body { padding: 20px 18px; }

/* ── sections ── */
section.block { padding: 84px 0 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.head h2, h2.serif { font: 400 clamp(34px, 4.4vw, 48px)/1.02 var(--serif); color: var(--text-hi); letter-spacing: -.01em; }
.head h2 em { font-style: italic; }
.head p { color: var(--dim); font-size: 15px; margin-top: 10px; max-width: 620px; }
.head .kicker { margin-bottom: 12px; }

/* ── data table ── */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: 12px 14px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tbody tr:hover td { background: rgba(236,235,227,.02); }
.table td.r, .table th.r { text-align: right; }

/* ── toast + wallet picker (wallet.js) ── */
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 20px; opacity: 0; z-index: 90; padding: 12px 18px; background: var(--panel2); border: 1px solid var(--line2); color: var(--text-hi); font-size: 14px; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }
dialog.wallets { margin: auto; width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line2); border-radius: 0; background: var(--panel); color: var(--text); padding: 22px; }
dialog.wallets::backdrop { background: rgba(0,0,0,.7); }
.wl-head { display: flex; justify-content: space-between; align-items: center; }
.wl-head h2 { font: 400 30px var(--serif); color: var(--text-hi); }
.wl-x { background: none; border: 0; color: var(--dim); font-size: 26px; cursor: pointer; line-height: 1; }
.wl-note { font-size: 13px; color: var(--dim); margin: 8px 0 14px; }
.wl-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.wl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text-hi); text-decoration: none; cursor: pointer; font: 500 15px var(--sans); text-align: left; }
.wl:hover { background: var(--panel2); }
.wl img, .wl-mono { width: 32px; height: 32px; flex-shrink: 0; }
.wl-mono { display: grid; place-items: center; color: #fff; font: 600 15px var(--sans); }
.wl b { flex: 1; font-weight: 500; }
.wl-tag { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.wl-tag.ghost { color: var(--dim); }

/* ── painted sky (hero, 404, login): painting + drifting mist (sky.js) + scanlines + grain ── */
.sky { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: #1b2019; }
.sky .paint { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: 50% 40%; filter: saturate(.85) brightness(.82); animation: drift 60s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate3d(-1%, 0, 0); } to { transform: scale(1.06) translate3d(1%, -1%, 0); } }
.sky canvas.mist { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: .55; }
.sky .drifters { position: absolute; inset: 0; pointer-events: none; }
.sky .drifters img { position: absolute; left: 0; top: var(--y); height: var(--h); width: auto; opacity: var(--o, .6); filter: brightness(.9) saturate(.55) sepia(.2) contrast(.9); animation: fly var(--d) linear infinite; animation-delay: var(--dl); }
@keyframes fly { from { transform: translateX(-12vw) translateY(0); } 50% { transform: translateX(50vw) translateY(-14px); } to { transform: translateX(112vw) translateY(0); } }
.sky .scan { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0,0,0,.20) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; opacity: .75; }
.sky .grain { position: absolute; inset: -50%; background-size: 160px 160px; opacity: .10; animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
.sky .fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,10,.35) 0%, rgba(10,11,10,0) 22%, rgba(10,11,10,.05) 50%, rgba(10,11,10,.72) 82%, var(--bg) 100%), linear-gradient(90deg, rgba(10,11,10,.55) 0%, rgba(10,11,10,0) 60%); }

/* ── footer ── */
footer.foot { border-top: 1px solid var(--line); margin-top: 110px; padding: 56px 0 30px; color: var(--mute); font-size: 13px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot .big { font: 400 44px/1 var(--serif); letter-spacing: .06em; color: var(--text-hi); }
.foot .big + p { margin-top: 12px; max-width: 320px; color: var(--dim); }
.foot h5 { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--dim); }
.foot a:hover { color: var(--text-hi); }
.foot .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 18px; font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 980px) { .nav { display: none; } .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .brand .word { font-size: 24px; }
  .brand .on { display: none; }
  .ticker .lab { padding-left: 18px; }
  section.block { padding-top: 64px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > :first-child { grid-column: 1 / -1; }
  .me-chip .nm { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* player picture next to an @handle: real X picture (pbs.twimg.com) or the first letter */
.av { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; overflow: hidden; vertical-align: -4px;
  background: rgba(236,235,227,.08); border: 1px solid rgba(236,235,227,.16); color: var(--text, #c9c8bf); font: 500 9.5px/1 var(--mono, monospace); text-transform: uppercase; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
