/* ELGTA — shared design system. Elysium blue on near-black (Kinetiq palette), big caps type.
   --gold / --green keep their names from the first build; both now hold the Elysium blue accent. */
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF, U+2C60-2C7F; }
@font-face { font-family: 'Inter Tight'; src: url(/fonts/inter-tight-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  --ink: #04080b;
  --ink2: #07111a;
  --panel: rgba(9,22,30, .72);
  --panel-solid: #0a1720;
  --line: rgba(200,236,250, .10);
  --line2: rgba(200,236,250, .17);
  --text: #f4f5f7;
  --mute: #8fa6b2;
  --dim: #586d78;
  --green: #5fd3ef;
  --green-hi: #8ee6ff;
  --green-deep: #03191d;
  --gold: #5fd3ef;
  --gold-hi: #8ee6ff;
  --red: #ff5a5f;
  --up: #52d18b;         /* price up (trading convention), not a brand colour */
  --radius: 18px;
  --gutter: clamp(16px, 3vw, 48px);
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --pixel: 'JetBrains Mono', monospace;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 500 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: #03191d; }
.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; color: var(--mute); }
.dim { color: var(--mute); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.label { font: 700 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.micro { font: 700 12px/1.2 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--green); }
.wrap { padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn { --bg: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg); font: 800 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: transform .18s ease, background .2s, border-color .2s, box-shadow .2s, filter .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.3); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--green { background: linear-gradient(180deg, #8ee6ff, var(--green) 55%, #3fb7d4); color: #03191d; border-color: rgba(142,230,255,.6); box-shadow: 0 0 0 1px rgba(95,211,239,.25), 0 10px 40px -8px rgba(95,211,239,.55), inset 0 1px 0 rgba(255,255,255,.45); }
.btn--green:hover { filter: brightness(1.06); border-color: #d8f7ff; box-shadow: 0 0 0 1px rgba(95,211,239,.4), 0 14px 50px -6px rgba(95,211,239,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #3fb7d4); color: #03191d; border-color: rgba(142,230,255,.7); box-shadow: 0 10px 36px -10px rgba(95,211,239,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.btn--sm { height: 42px; padding: 0 16px; font-size: 12.5px; border-radius: 12px; gap: 8px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); transition: background .2s, border-color .2s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px var(--gutter); background: linear-gradient(180deg, rgba(3,5,4,.92), rgba(3,5,4,.6) 70%, transparent); backdrop-filter: blur(6px); }
.top-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-ball { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 16px -4px rgba(95,211,239,.55), inset 0 0 0 1px rgba(255,255,255,.2); }
/* the logo (the trainer's head on Robinhood green) is a square tile: always round its corners */
img[src*="/brand/logo-"] { border-radius: 22%; }
.wordmark { display: block; width: auto; height: 38px; }
.ca-chip { display: inline-flex; align-items: center; gap: 9px; min-width: 0; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid rgba(95,211,239,.35); background: rgba(95,211,239,.07); color: var(--text); font: 600 12px/1 var(--mono); transition: background .2s, border-color .2s; }
.ca-chip b { flex: none; padding: 6px 9px; border-radius: 999px; background: var(--gold); color: #03191d; font: 800 11px/1 var(--body); letter-spacing: .04em; }
.ca-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-chip svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.ca-chip:hover { background: rgba(95,211,239,.14); border-color: rgba(95,211,239,.6); }
.ca-chip.is-soon span { letter-spacing: .08em; color: var(--gold-hi); }
/* a real address is never cut: two lines of 21 characters when the chip is narrow */
.ca-chip.has-ca { height: auto; min-height: 36px; padding-block: 4px; }
.ca-chip.has-ca span { max-width: 21ch; white-space: normal; word-break: break-all; font-size: 10.5px; line-height: 1.2; text-align: left; }
/* phones: the chip (and X) get a row of their own under the header instead of hiding in the menu */
:root { --strip: 0px; }
.top-strip { display: none; }
.pill-nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(10,14,11,.7); backdrop-filter: blur(14px); }
.pill-nav a { padding: 10px 20px; border-radius: 999px; font: 700 14px/1 var(--body); color: var(--mute); transition: color .2s, background .2s; }
.pill-nav a:hover { color: var(--text); }
.pill-nav a.on { color: var(--text); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.top-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
#acct i { font-style: normal; } #acct .sm { display: none; }
#acct.is-on { background: rgba(95,211,239,.1); color: var(--text); border-color: rgba(95,211,239,.45); box-shadow: none; }
#acct.is-on svg { color: var(--green); }
.burger { display: none; }
@media (max-width: 1100px) { .top { grid-template-columns: 1fr auto; } .pill-nav { display: none; } .burger { display: inline-grid; }
  /* touch layouts: every header control is at least 44px tall */
  /* phones and tablets: secondary notes never drop under 14px */
  body .card-note, body .tkp-story, body .cta-card p, body .pp-note ol, body .pp-tnote, body .pnl-note, body .tbox-note { font-size: 14px; }
  .top .ca-chip, .foot .ca-chip { min-height: 44px; } .top .icon-btn, .foot .icon-btn { width: 44px; height: 44px; } .top #acct, .btn--sm { height: 44px; } }
@media (max-width: 720px) {
  .top { padding: 12px 16px; }
  :root { --strip: 52px; }
  .top-left .ca-chip, .top-right > .icon-btn:not(.burger) { display: none; }
  .top { row-gap: 8px; }
  .top-strip { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
  .top-strip .ca-chip { flex: 1; min-height: 44px; background: rgba(6,16,20,.88); }
  .top-strip .ca-chip.has-ca span { max-width: none; }
  .top-strip .icon-btn { flex: none; width: 44px; height: 44px; }
  .top .btn--sm, .top .burger { min-height: 44px; }
  .burger { width: 44px; }
  #acct span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  #acct .lg { display: none; } #acct .sm { display: inline; }
  .wordmark { height: 32px; }
}
@media (max-width: 400px) { .top .wordmark { height: 27px; } }   /* the E + wordmark lockup is wider than the old wordmark */

/* ---------- sheet (modal) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(2,4,3,.72); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .22s; }
.sheet-bg.open { opacity: 1; pointer-events: auto; }
.sheet { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border-radius: 22px; border: 1px solid var(--line2); background: linear-gradient(180deg, #131418, #0a0b0d); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(95,211,239,.06); transform: translateY(12px) scale(.98); transition: transform .26s cubic-bezier(.2,.9,.3,1.2); }
.sheet-bg.open .sheet { transform: none; }
.sheet h2 { margin: 0 0 8px; font: 800 22px/1.15 var(--display); letter-spacing: -.01em; }
.sheet p { margin: 0 0 18px; color: var(--mute); }
.sheet-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.sheet-x svg { width: 16px; height: 16px; }
.wlist { display: grid; gap: 8px; }
.wlist button, .wlist a { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-weight: 700; text-align: left; transition: background .2s, border-color .2s; }
.wlist button:hover, .wlist a:hover { background: rgba(95,211,239,.08); border-color: rgba(95,211,239,.4); }
.wlist img, .wlist .ph { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.wlist .ph svg { width: 20px; height: 20px; }
.wlist small { margin-left: auto; color: var(--green); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.menu-list { display: grid; gap: 6px; margin: 10px 0 18px; }
.menu-list a, .menu-list button { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font: 700 16px/1 var(--body); text-align: left; }
.menu-list a:hover, .menu-list button:hover { border-color: rgba(95,211,239,.45); }
.menu-extra { display: grid; gap: 12px; }
.menu-extra .row { display: flex; gap: 8px; }
.menu-extra .ca-chip { width: 100%; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 600; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 14px; border: 1px solid rgba(95,211,239,.4); background: rgba(12,13,16,.95); backdrop-filter: blur(10px); font-weight: 700; box-shadow: 0 20px 60px -10px rgba(0,0,0,.7); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="bad"] { border-color: rgba(255,90,95,.5); }

/* ---------- type badges, tier chips ---------- */
.type { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 22%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); color: color-mix(in srgb, var(--tc) 60%, white); font: 800 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.tier { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 6px; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); font: 800 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.tier::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px var(--gutter) 40px; background: var(--ink); }
.foot-in { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand .wordmark { height: 44px; }
.foot-brand b { font: 900 16px/1 var(--display); }
.foot-brand span { color: var(--mute); font-size: 13.5px; }
.foot-social { display: flex; gap: 8px; }
.foot-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 22px 0 0; font-size: 12.5px; }
.foot-verify b { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.foot-verify a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.foot-verify a:hover { color: var(--text); border-color: rgba(95,211,239,.5); }
.foot-legal { margin: 14px 0 0; color: var(--dim); font-size: 12px; max-width: 980px; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr; } .foot-mid .ca-chip { max-width: 100%; } }
@media (max-width: 720px) { .foot-verify { gap: 0 16px; } .foot-verify b { width: 100%; padding: 6px 0 2px; } .btn--sm { height: 44px; } .icon-btn { width: 44px; height: 44px; } .foot .ca-chip { min-height: 44px; } }

/* ---------- skeleton ---------- */
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.4s infinite linear; border-radius: 12px; }
@keyframes skel { to { background-position: -200% 0; } }
/* creator fees bar (token page, trainer page, in-game trade panel) */
.fees-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fees-bar > div { display: grid; gap: 4px; min-width: 0; }
.fees-bar b { font: 900 20px/1.1 var(--display); color: var(--gold); }
.fees-bar small { color: var(--dim); font-size: 12px; }
.foot-legal a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }

/* ELGTA additions */
.local-ribbon { position: fixed; right: 12px; bottom: 12px; z-index: 9999; padding: 7px 12px; border-radius: 8px; background: #ff5a5f; color: #fff; font: 800 11px/1 var(--body); letter-spacing: .08em; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ic { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; vertical-align: -0.12em; }
.stars { display: inline-flex; gap: 2px; color: rgba(255,255,255,.18); }
.stars .ic.on { color: #fff; }
.logo-mark { border-radius: 22%; }
/* the bridge button beside X (wide screens only; the phone menu lists it) */
.top-bridge.on { border-color: var(--green); color: var(--green); }
@media (max-width: 1100px) { .top-bridge { display: none; } }
/* once the CA is live, desktops up to 1440px move the centre nav into the menu so the full 42-character address fits */
@media (min-width: 1101px) and (max-width: 1440px) { .top.has-ca { grid-template-columns: 1fr auto; } .top.has-ca .pill-nav { display: none; } .top.has-ca .burger { display: inline-grid; } }
