@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  --bg: #0f0e0d;
  --surf: #171513;
  --surf-2: #201d1a;
  --line: #27231f;
  --line-2: #3a342e;
  --text: #f2ede7;
  --muted: #b3a99e;
  --ink-3: #93897e;
  --flare: #ff5b2e;
  --flare-hi: #ff7a54;
  --flare-ink: #2a0b02;
  --flare-soft: rgba(255, 91, 46, .12);
  --flare-line: rgba(255, 91, 46, .38);
  --gold: #ffc54d;
  --ok: #6ad893;
  --err: #ff6b7a;
  --r: 14px;
  --r-sm: 9px;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --side: 236px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--flare); color: var(--flare-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea { caret-color: var(--flare); }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--flare); color: var(--flare-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 18px; border-right: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; }
.mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { background: var(--surf); color: var(--text); }
.nav a[aria-current="page"] { background: var(--surf-2); color: var(--text); }
.nav a[aria-current="page"] .ic { color: var(--flare); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-clock { display: flex; justify-content: space-between; align-items: baseline; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surf); }
.side-clock-label { color: var(--muted); font-size: 13px; }
.side-clock-time { font-family: var(--mono); font-weight: 600; color: var(--flare); }
.ca-chip { all: unset; cursor: pointer; display: block; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-chip:hover { color: var(--text); border-color: var(--ink-3); }
.ca-chip:focus-visible { outline: 2px solid var(--flare); }
.x-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--muted); font-size: 13px; text-decoration: none; border-radius: 10px; }
.x-link svg { width: 15px; height: 15px; }
.x-link[href]:hover { color: var(--text); background: var(--surf); }
.x-link:not([href]) { cursor: default; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: rgba(15, 14, 13, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand-top { display: none; }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surf); color: var(--ink-3); transition: border-color .2s; }
.search:focus-within { border-color: var(--flare-line); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); }
.search input::placeholder { color: var(--ink-3); }
.search kbd { font: 500 11px var(--mono); padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-3); }
.btn-wallet { margin-left: auto; }

#view { flex: 1; padding: 32px 32px 64px; outline: none; max-width: 1240px; width: 100%; }
.foot { padding: 22px 32px 30px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; max-width: 1240px; }
.foot p { max-width: 70ch; }

.tabs { display: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surf-2); color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--flare); border-color: var(--flare); color: var(--flare-ink); }
.btn-primary:hover { background: var(--flare-hi); border-color: var(--flare-hi); }
.btn-ghost { background: none; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-wallet.connected { background: var(--surf); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.icon-btn { all: unset; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); }
.icon-btn:hover { background: var(--surf-2); color: var(--text); }
.icon-btn:focus-visible { outline: 2px solid var(--flare); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: var(--surf); }
.seg button { all: unset; cursor: pointer; padding: 7px 13px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surf-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.seg button:focus-visible { outline: 2px solid var(--flare); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--ink-3); font-size: 13px; }
.input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--flare); box-shadow: 0 0 0 3px var(--flare-soft); }
.input[aria-invalid="true"] { border-color: var(--err); }
.affix { position: relative; }
.affix .input { padding-right: 52px; }
.affix span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; font-size: 13px; }
.err { color: var(--err); font-size: 13px; }

/* ---------- page heads & panels ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 62ch; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 17px; font-weight: 700; }
.panel-head .meta { color: var(--ink-3); font-size: 13px; }
.panel-body { padding: 18px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 20px; color: var(--muted); }
.empty .ic { width: 26px; height: 26px; color: var(--ink-3); margin-bottom: 4px; }
.empty strong { color: var(--text); font-weight: 600; font-size: 15px; }
.empty p { font-size: 14px; max-width: 46ch; }
.empty .btn { margin-top: 10px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 13px; padding: 11px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
th.num, td.num { text-align: right; }
tr.you td { background: var(--flare-soft); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: stretch; margin-bottom: 40px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.hero h1 { font-size: clamp(54px, 8.4vw, 104px); line-height: .9; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; }
.hero h1 .flare { color: var(--flare); display: block; }
.hero-sub { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 44ch; line-height: 1.5; }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.clock { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 24px; border-radius: 20px; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 91, 46, .16), transparent 55%), var(--surf); border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(255, 91, 46, .35), 0 2px 6px rgba(0,0,0,.35); }
.clock-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--flare); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,91,46,.5); } 100% { box-shadow: 0 0 0 10px rgba(255,91,46,0); } }
.clock-time { font-family: var(--mono); font-weight: 600; font-size: clamp(64px, 8vw, 96px); line-height: 1; letter-spacing: -.04em; margin: 22px 0 18px; font-variant-numeric: tabular-nums; }
.ticks { display: grid; grid-template-columns: repeat(60, 1fr); gap: 2px; height: 34px; }
.ticks i { border-radius: 2px; background: var(--line-2); transition: background .4s, transform .4s var(--ease); transform-origin: bottom; }
.ticks i.on { background: var(--flare); }
.ticks i.now { background: var(--flare-hi); transform: scaleY(1.25); }
.ticks i:nth-child(6n) { opacity: .85; }
.clock-scale { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-3); font: 500 12px var(--mono); }
.clock-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; margin-top: auto; padding-top: 22px; }
.clock-facts div { padding: 14px 0 0; border-top: 1px solid var(--line-2); }
.clock-facts dt { color: var(--ink-3); font-size: 12.5px; }
.clock-facts dd { margin: 4px 0 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.clock-facts dd small { color: var(--muted); font-weight: 500; font-size: 13px; }
.rounds { display: flex; gap: 4px; margin-top: 18px; align-items: center; }
.rounds span { color: var(--ink-3); font-size: 12.5px; margin-right: 6px; white-space: nowrap; }
.rounds i { flex: 1; height: 8px; border-radius: 3px; background: var(--line); }
.rounds i.paid { background: var(--ok); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.how { padding: 26px 24px; }
.how h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 4px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--flare-soft); color: var(--flare); font-weight: 800; border: 1px solid var(--flare-line); }
.steps h3 { font-size: 16px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.score { padding: 26px 24px; display: flex; flex-direction: column; }
.score h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.score > p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.mults { margin-top: 18px; display: flex; flex-direction: column; }
.mult { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.mult span { color: var(--muted); font-size: 14px; }
.mult b { font: 600 16px var(--mono); color: var(--gold); }
.score .btn { margin-top: auto; align-self: flex-start; }
.score .mults { margin-bottom: 20px; }

/* ---------- coins ---------- */
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.coin { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.coin:hover { border-color: var(--line-2); transform: translateY(-2px); }
.coin img, .coin .ph { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; background: var(--surf-2); flex: none; }
.coin h3 { font-size: 15px; font-weight: 700; }
.coin .tk { color: var(--muted); font-size: 13px; }
.coin .row { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.coin .row b { color: var(--text); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar .search { max-width: 380px; }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .who { font-weight: 600; }
.feed .what { color: var(--muted); }

/* ---------- launch ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.launch form { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.drop { font-weight: 400; font-size: 14px; display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--flare); background: var(--flare-soft); }
.drop input { position: absolute; opacity: 0; pointer-events: none; }
.drop .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--surf-2); display: grid; place-items: center; color: var(--ink-3); overflow: hidden; flex: none; }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop:focus-within { outline: 2px solid var(--flare); outline-offset: 2px; }
.note { display: flex; gap: 10px; padding: 13px 14px; border-radius: 11px; background: var(--flare-soft); border: 1px solid var(--flare-line); font-size: 14px; color: var(--text); }
.note .ic { color: var(--flare); margin-top: 2px; }
.preview { position: sticky; top: 92px; padding: 18px; }
.preview .label { color: var(--ink-3); font-size: 13px; margin-bottom: 12px; }
.pv-coin { display: flex; gap: 14px; align-items: center; }
.pv-img { width: 72px; height: 72px; border-radius: 14px; background: var(--surf-2); overflow: hidden; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; word-break: break-word; }
.pv-tk { color: var(--muted); font-size: 14px; }
.pv-desc { color: var(--muted); font-size: 14px; margin-top: 14px; word-break: break-word; }
.pv-pair { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.pv-pair div { display: flex; justify-content: space-between; color: var(--muted); }
.pv-pair b { color: var(--text); font-weight: 600; }

/* ---------- raid ---------- */
.raid-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.flow { display: flex; flex-direction: column; }
.flow-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); }
.flow-step:last-child { border-bottom: 0; }
.flow-num { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--surf-2); color: var(--muted); border: 1px solid var(--line-2); }
.flow-step.active .flow-num { background: var(--flare); color: var(--flare-ink); border-color: var(--flare); }
.flow-step.done .flow-num { background: rgba(106, 216, 147, .14); color: var(--ok); border-color: rgba(106, 216, 147, .4); }
.flow-step h2 { font-size: 17px; font-weight: 700; }
.flow-step > div > p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.flow-body { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.inline .input { flex: 1; min-width: 180px; }
.code-box { padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.side-rules { display: flex; flex-direction: column; gap: 16px; }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list b { color: var(--text); font-weight: 600; text-align: right; }

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px; }
.stat dt { color: var(--ink-3); font-size: 13px; }
.stat dd { margin: 6px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat dd small { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.stat .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-grid .wide { grid-column: 1 / -1; }
.connect-card { max-width: 560px; margin: 40px auto; padding: 34px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.connect-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.connect-card p { color: var(--muted); max-width: 44ch; }
.connect-card .btn { margin-top: 10px; }

/* ---------- coin page / 404 ---------- */
.big-404 { font-size: clamp(90px, 16vw, 180px); font-weight: 900; letter-spacing: -.06em; line-height: .9; color: var(--flare); }
.lost { padding: 50px 0; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.lost h1 { font-size: 30px; font-weight: 800; }
.lost p { color: var(--muted); }
.lost .inline { margin-top: 8px; }

/* ---------- dialog & toast ---------- */
.sheet { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surf); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.sheet::backdrop { background: rgba(8, 7, 6, .7); backdrop-filter: blur(4px); }
.sheet[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 10px 20px; }
.sheet-head h2 { font-size: 18px; font-weight: 700; }
#walletList { padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.wallet-opt { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; }
.wallet-opt:hover { border-color: var(--line-2); background: var(--surf-2); }
.wallet-opt:focus-visible { outline: 2px solid var(--flare); }
.wallet-opt img { width: 28px; height: 28px; border-radius: 8px; }
.wallet-opt span.tag { margin-left: auto; color: var(--ok); font-size: 12px; font-weight: 500; }
.wallet-none { padding: 4px 8px 6px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 11px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; transition: opacity .25s, transform .35s var(--ease); z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.view-enter { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .launch, .raid-layout { grid-template-columns: 1fr; }
  .preview { position: static; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .brand-top { display: flex; padding: 0; }
  .brand-top .brand-name { display: none; }
  .top { padding: 10px 16px; gap: 10px; }
  .search kbd { display: none; }
  .btn-wallet { padding: 0 12px; }
  #view { padding: 22px 16px 40px; }
  .foot { padding: 18px 16px calc(86px + env(safe-area-inset-bottom)); }
  .home-grid, .dash-grid, .stats { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tabs { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(15, 14, 13, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--ink-3); text-decoration: none; font-size: 10.5px; font-weight: 500; border-radius: 9px; }
  .tabs a[aria-current="page"] { color: var(--text); }
  .tabs a[aria-current="page"] .ic { color: var(--flare); }
  .clock-facts dd { font-size: 16px; }
  .ticks { height: 26px; gap: 1px; }
  .flow-step { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- X login & profile ---------- */
.btn-login, .btn-user { margin-left: auto; }
.btn-login .ic { width: 15px; height: 15px; }
.btn-user { background: var(--surf); padding: 0 14px 0 6px; font-weight: 600; font-size: 14px; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surf-2); }
.avatar-ph { display: inline-grid; place-items: center; font-weight: 800; color: var(--flare); font-size: 13px; border: 1px solid var(--line-2); }
.btn-user .avatar { width: 28px; height: 28px; }
.who-row { display: flex; align-items: center; gap: 14px; }
.who-row b { font-weight: 700; }
.hint { color: var(--ink-3); font-size: 13px; }
.profile-head { align-items: center; }
.profile-head .avatar { width: 64px; height: 64px; }
.profile-head h1 { font-size: clamp(26px, 3.4vw, 36px); }
.profile-head p { margin-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--gold); background: rgba(255, 197, 77, .1); border: 1px solid rgba(255, 197, 77, .3); }
.meta.ok { color: var(--ok); }
.posts-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.posts-total { display: block; font-size: 56px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--flare); }
.posts-label { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.posts-top .hint { max-width: 46ch; }
.linkish { all: unset; cursor: pointer; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.linkish:hover { color: var(--text); }
.linkish:focus-visible { outline: 2px solid var(--flare); border-radius: 4px; }
.wallet-form .input { font-size: 14px; }
.err a { color: inherit; }
@media (max-width: 860px) {
  .btn-login span, .btn-user span { display: none; }
  .btn-login, .btn-user { padding: 0 11px; }
  .btn-user { padding: 0 7px; }
  .posts-total { font-size: 44px; }
}
