/* ZAZA World app (/world/app/): the home-screen hub. Same navy / gold / electric-blue look as the World. */
:root {
  --navy-950: #030a2c;
  --navy-900: #06124f;
  --navy-800: #0a1a6b;
  --card: #141e52;
  --card-2: #1a2663;
  --line: #2c3b78;
  --line-2: #3b4c80;
  --gold: #ffd23f;
  --gold-2: #e8b52a;
  --gold-dark: #8a6410;
  --blue: #1d4bff;
  --cyan: #7fd4ff;
  --text: #f1ecd8;
  --muted: #a9b3d6;
  --green: #5fe86f;
  --red: #ff6b6b;
  --ui: "Jersey 10", ui-monospace, monospace;
  --display: "Titan One", "Arial Black", system-ui, sans-serif;
  --top-h: 60px;
  --bar-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--navy-950); overscroll-behavior-y: contain; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--text); font-family: var(--ui); font-size: 20px; line-height: 1.15;
  letter-spacing: 0.02em; -webkit-font-smoothing: antialiased; font-synthesis: none; font-variant-ligatures: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(29, 75, 255, 0.45), transparent 60%),
    radial-gradient(80% 50% at 100% 40%, rgba(127, 212, 255, 0.08), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950) 70%);
  background-attachment: fixed;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--cyan); }
[hidden] { display: none !important; }
img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

/* ---------------------------------------------------------------- top bar and tabs */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-t)) 16px 8px; min-height: calc(var(--top-h) + var(--safe-t));
  background: rgba(3, 10, 44, 0.95); border-bottom: 1px solid rgba(255, 210, 63, 0.35);
}
/* No backdrop-filter on the header on phones: it would become the containing block of the fixed bottom tab bar. */
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; margin-right: auto; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(255, 210, 63, 0.35); }
.brand span { font-family: var(--display); font-size: 19px; letter-spacing: 0.01em; }
.brand b { color: var(--gold); font-weight: 400; }
.top-right { display: flex; align-items: center; gap: 6px; }
.online { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(95, 232, 111, 0.12); border: 1px solid rgba(95, 232, 111, 0.4); font-size: 17px; color: #c9f7cf; white-space: nowrap; }
.online i, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95, 232, 111, 0.6); animation: live 2s infinite; display: inline-block; flex: none; }
.online b { font-weight: 400; color: #fff; }
button.online { cursor: pointer; font-size: 17px; }
button.online:active { transform: scale(0.96); }
/* Who's online: the popup behind the header's "N online" pill. */
.online-panel h2 { display: flex; align-items: center; gap: 9px; }
.online-panel .note { word-break: normal; }
.who-list { list-style: none; margin: 0; padding: 0 2px 2px; display: grid; gap: 6px; max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.who-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(3, 10, 44, 0.5); }
.who-row.holder { border-color: color-mix(in srgb, var(--tc) 60%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 22%, transparent); }
.who-row.away { opacity: 0.6; }
.who-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tc); background: var(--navy-800); flex: none; }
.who-row img.px { border-radius: 10px; object-fit: contain; background: radial-gradient(circle at 50% 40%, #3a66ff, var(--navy-900)); }
.who-row span { min-width: 0; display: grid; gap: 2px; }
.who-row b { font-weight: 400; font-size: 19px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-row small { font-size: 15px; color: var(--muted); }
.who-row small .tier-ico { margin-right: 4px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(20, 30, 82, 0.8); color: var(--text); font-size: 20px; line-height: 1; padding: 0; flex: none;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { transform: scale(0.94); }
#installTop { border-color: rgba(255, 210, 63, 0.6); color: var(--gold); }
body.loading .refresh svg { animation: spin 0.9s linear infinite; }

/* Mobile: the tab bar sits at the bottom, thumb-reachable, with Play in the middle. */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px 6px calc(6px + var(--safe-b)); min-height: calc(var(--bar-h) + var(--safe-b));
  background: rgba(3, 10, 44, 0.9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid rgba(255, 210, 63, 0.3);
}
.tabbar > * {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; padding: 4px 0;
  background: none; border: 0; color: var(--muted); text-decoration: none; font-size: 16px; border-radius: 12px; position: relative;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.tabbar svg .dot { fill: currentColor; stroke: none; }
.tabbar [aria-current="page"] { color: var(--gold); }
.tabbar [aria-current="page"]::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.tabbar [aria-current="page"] svg { fill: rgba(255, 210, 63, 0.18); }
.tabbar > *:active { transform: scale(0.95); }
.tabbar .desk-only { display: none; }

/* ---------------------------------------------------------------- Play (centre of the tab bar): a gold button like the others */
.tabbar .play-tab { color: var(--gold); z-index: 2; }
.pb {
  width: 56px; height: 56px; margin-top: -30px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid #3a2a00; background: linear-gradient(180deg, #ffe066, var(--gold-2));
  /* The navy ring (the tab bar's colour) keeps whatever scrolls behind the raised button from reading as a glow. */
  box-shadow: inset 0 0 0 1px #fff3b0, 0 3px 0 var(--gold-dark), 0 0 0 5px #030a2c;
}
.tabbar .pb svg { width: 26px; height: 26px; margin-left: 3px; fill: var(--navy-900); stroke: none; }
.play-tab:active .pb { transform: translateY(2px); box-shadow: inset 0 0 0 1px #fff3b0, 0 1px 0 var(--gold-dark), 0 0 0 5px #030a2c; }

/* ---------------------------------------------------------------- layout */
.views { width: min(640px, 100%); margin: 0 auto; padding: 14px 16px calc(var(--bar-h) + var(--safe-b) + 28px); }
.view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; animation: view-in 0.22s ease-out; }
.view > * { min-width: 0; } /* nothing may widen the page: a phone would zoom out to fit it */
.stale { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 10; margin: 0; padding: 5px 16px; text-align: center; font-size: 17px; background: #3a2a00; color: #ffe9a8; border-bottom: 1px solid var(--gold-dark); }
.foot { text-align: center; color: var(--muted); font-size: 16px; margin: 22px 0 0; opacity: 0.8; }

.card {
  position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.card h2, .card h3 { font-family: var(--display); font-weight: 400; margin: 0 0 8px; letter-spacing: 0.01em; }
.card h2 { font-size: 22px; color: var(--gold); }
.card h3 { font-size: 18px; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 small { font-family: var(--ui); font-size: 17px; color: var(--muted); margin-left: auto; }
.card h4 { font-family: var(--ui); font-weight: 400; font-size: 18px; color: var(--muted); margin: 14px 0 6px; }
.kicker { display: block; font-size: 17px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.note { margin: 0 0 10px; color: var(--muted); font-size: 19px; }
.note b { color: var(--text); font-weight: 400; }
.note.small { font-size: 17px; }
.note:last-child { margin-bottom: 0; }
.center { text-align: center; }
.up { color: var(--green); }
.down { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: 12px; min-height: 46px;
  border: 1px solid var(--line-2); background: rgba(3, 10, 44, 0.55); color: var(--text); text-decoration: none; font-size: 19px; text-align: center;
}
.btn.gold { font-family: var(--display); font-size: 16px; letter-spacing: 0.02em; color: var(--navy-900); border: 2px solid #3a2a00; background: linear-gradient(180deg, #ffe066, var(--gold-2)); box-shadow: inset 0 0 0 1px #fff3b0, 0 3px 0 var(--gold-dark); }
.btn.gold:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px #fff3b0, 0 1px 0 var(--gold-dark); }
.btn.wide { width: 100%; }
.btn.big { min-height: 54px; font-size: 18px; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-style: normal; font-size: 16px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); white-space: nowrap; }
.tier-ico { width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }

/* Meters: the unfilled track is a darker step of the same colour. */
.meter { display: block; height: 8px; border-radius: 99px; background: rgba(127, 212, 255, 0.14); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5fb4ff, var(--cyan)); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.meter.gold, .meter.tier { background: rgba(255, 210, 63, 0.16); }
.meter.gold > span, .meter.tier > span { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.meter.cards { background: rgba(192, 138, 255, 0.16); }
.meter.cards > span { background: linear-gradient(90deg, #a070f0, #c08aff); }
.meter.big { height: 12px; margin: 6px 0 4px; }

/* ---------------------------------------------------------------- home */
.install { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-color: rgba(255, 210, 63, 0.55); background: linear-gradient(135deg, #2a2a6a, #16215a); }
.install img { border-radius: 12px; flex: none; }
.install div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.install b { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--gold); line-height: 1.2; }
.install small { font-size: 16px; color: var(--muted); }
.install .btn { min-height: 40px; padding: 8px 14px; }
.install .x { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 0; }

.who { display: flex; align-items: center; gap: 12px; }
.who .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--navy-950); box-shadow: 0 0 0 2px var(--gold); }
.who .av.px { border-radius: 14px; padding: 4px; }
.who-id { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.who-id b { font-family: var(--display); font-weight: 400; font-size: 20px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.who-id small { flex-basis: 100%; font-size: 16px; color: var(--muted); }

.play { overflow: hidden; border-color: rgba(255, 210, 63, 0.45); background: radial-gradient(90% 120% at 100% 0%, rgba(29, 75, 255, 0.45), transparent 60%), linear-gradient(180deg, #1c2a72, #121b4e); }
.play-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.play-zaza { width: 72px; height: 72px; flex: none; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255, 210, 63, 0.5)); animation: bob 3s ease-in-out infinite; }
.play h2 { margin: 0 0 2px; }
.play .note { margin: 0; }
.play .note .live-dot { margin-right: 6px; vertical-align: 1px; }
.steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(3, 10, 44, 0.5); border: 1px solid var(--line); }
.steps li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--line-2); color: #fff; flex: none; }
.steps li.ok i { background: var(--green); color: #06340c; }
.steps li.no i { background: #5a2330; color: #ffb3b3; }
.steps li span { flex: 1; }
.steps li a { color: var(--gold); text-decoration: none; white-space: nowrap; }
.play .btn.big { margin-top: 4px; }

.since ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.since li { display: flex; align-items: baseline; gap: 8px; }
.since li i { font-style: normal; font-size: 13px; width: 14px; flex: none; }
.since li.up i { color: var(--green); }
.since li.down i { color: var(--red); }
.since li b { font-family: var(--display); font-weight: 400; font-size: 17px; color: #fff; white-space: nowrap; }
.since li span { color: var(--muted); font-size: 18px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 13px 14px; border-radius: 16px; min-width: 0;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); color: var(--text);
}
button.tile:active { transform: scale(0.98); }
button.tile:hover { border-color: var(--line-2); }
.tile small { font-size: 16px; color: var(--muted); }
.tile b { font-family: var(--display); font-weight: 400; font-size: 25px; color: #fff; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile b i { font-style: normal; font-size: 16px; color: var(--muted); margin-left: 2px; }
.tile span { font-size: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tile .meter { margin-top: auto; }

.market-top, .vault-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.market h3 { margin: 2px 0 0; font-size: 21px; color: var(--gold); }
.market h3 span { font-family: var(--ui); font-size: 19px; color: var(--text); }
.mc { text-align: right; display: grid; }
.mc b { font-family: var(--display); font-weight: 400; font-size: 21px; color: #fff; }
.mc small { font-size: 17px; }
.market .note { margin-top: 8px; }
.vault-top h3 { margin: 0; }
.vault-top b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--gold); }
.cell { position: relative; display: block; height: 26px; border-radius: 8px; border: 2px solid #5a6ea8; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 calc(10% - 2px), transparent calc(10% - 2px) 10%), #0a1240; overflow: hidden; margin-bottom: 8px; }
.cell::after { content: ""; position: absolute; right: -8px; top: 6px; width: 6px; height: 10px; border-radius: 2px; background: #5a6ea8; }
.cell > span { display: block; height: 100%; background: linear-gradient(180deg, #fff3a0, var(--gold) 40%, var(--gold-2)); box-shadow: 0 0 14px rgba(255, 210, 63, 0.6); }
.vault .you { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(3, 10, 44, 0.5); border: 1px solid var(--line); font-size: 18px; color: var(--muted); }
.vault .you.on { color: var(--gold); border-color: rgba(255, 210, 63, 0.45); }

/* Login / track a wallet */
.login .btn.gold { margin-bottom: 12px; }
.login .btn.phantom { margin-bottom: 8px; }
.login .note.small { margin-bottom: 12px; }
.login .ph-fallback { margin-top: -6px; font-size: 15px; }
.ph-copy { margin: 0 2px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--gold); background: none; color: var(--gold); font: inherit; cursor: pointer; }
.btn.phantom {
  gap: 10px; min-height: 52px; font-family: var(--display); font-size: 17px; letter-spacing: 0.02em; color: #fff; border: 0;
  background: linear-gradient(180deg, #b9adff, #8b75f2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #4b3aa8, 0 0 20px rgba(171, 159, 242, 0.35); text-shadow: 0 1px 0 rgba(40, 20, 120, 0.4);
}
.btn.phantom .ph-ico { width: 26px; height: 26px; flex: none; }
.btn.phantom:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 0 #4b3aa8; }
.steps li button.link { background: none; border: 0; padding: 0; color: var(--gold); font-size: inherit; }
.watch { display: grid; gap: 6px; margin-bottom: 8px; }
.watch label { font-size: 17px; color: var(--muted); }
.watch .row { display: flex; gap: 8px; }
.watch input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--navy-950); color: #fff;
  font: 16px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0;
}
.watch input:focus { outline: none; border-color: var(--gold); }
.watch .err { color: var(--red); font-size: 17px; }

/* ---------------------------------------------------------------- charts: one series, gold line, soft wash */
.chart { position: relative; margin-top: 4px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(169, 179, 214, 0.16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .tick { fill: var(--muted); font: 15px var(--ui); font-variant-numeric: tabular-nums; }
.chart .wash { fill: var(--gold); fill-opacity: 0.1; }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .end { fill: var(--gold); stroke: var(--card); stroke-width: 2; }
.chart .hair { stroke: rgba(241, 236, 216, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .tip { position: absolute; top: -6px; pointer-events: none; display: grid; padding: 5px 10px; border-radius: 10px; background: var(--navy-950); border: 1px solid var(--line-2); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.chart .tip b { font-family: var(--display); font-weight: 400; font-size: 15px; color: #fff; }
.chart .tip small { font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- holdings */
.hero { text-align: center; }
.hero-num { font-family: var(--display); font-size: clamp(40px, 12vw, 56px); line-height: 1.05; color: #fff; margin: 4px 0; text-shadow: 0 0 24px rgba(255, 210, 63, 0.25); }
.hero-sub { margin: 0; color: var(--muted); font-size: 19px; }
.hero h4, .hero .note { text-align: left; }
.hero .chart { margin-bottom: 6px; }
.tiers .ladder { list-style: none; margin: 12px -16px 0; padding: 0 16px 2px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(66px, 1fr); gap: 5px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tiers .ladder::-webkit-scrollbar { display: none; }
.ladder li { scroll-snap-align: start; }
.ladder li { display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 10px; background: rgba(3, 10, 44, 0.45); border: 1px solid transparent; opacity: 0.55; text-align: center; }
.ladder li .tier-ico { width: 20px; height: 20px; }
.ladder li b { font-weight: 400; font-size: 14px; color: var(--text); }
.ladder li small { font-size: 13px; color: var(--muted); }
.ladder li.done { opacity: 0.85; }
.ladder li.now { opacity: 1; border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 30%, transparent); }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links .btn { padding: 10px 6px; font-size: 18px; }
.links .btn.gold { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- cards */
.cards-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.cards-head h2 { margin: 2px 0 0; font-size: 30px; color: #fff; }
.cards-head h2 i { font-style: normal; font-family: var(--ui); font-size: 20px; color: var(--muted); }
.cards-head .note { grid-column: 1 / -1; margin-top: 6px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#c08aff calc(var(--p) * 1%), rgba(192, 138, 255, 0.16) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-family: var(--display); font-weight: 400; font-size: 15px; }
.dex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { display: grid; gap: 5px; padding: 0; background: none; border: 0; color: var(--text); text-align: center; min-width: 0; }
.slot img, .slot .ph, .slot .back { width: 100%; aspect-ratio: 63 / 88; border-radius: 8px; display: block; }
.slot.won img { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); transition: transform 0.15s; }
.slot.won:active img { transform: scale(0.96); }
.slot .ph { background: linear-gradient(110deg, #1a2663 30%, #243378 50%, #1a2663 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.slot .back {
  display: grid; place-items: center; border: 2px solid rgba(255, 210, 63, 0.35);
  background: radial-gradient(circle, rgba(29, 75, 255, 0.35), transparent 70%), repeating-linear-gradient(45deg, #0d1a5c 0 6px, #0a1450 6px 12px);
}
.slot .back span { width: 42%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 22px; color: rgba(255, 210, 63, 0.55); border: 2px dashed rgba(255, 210, 63, 0.35); }
.slot .cap { display: grid; font-size: 16px; line-height: 1.05; color: #fff; overflow: hidden; }
.slot .cap small { font-size: 14px; color: var(--muted); }
.slot.missing .cap { color: var(--muted); }

/* ---------------------------------------------------------------- gear (Avatar tab) */
.gear-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gear { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(3, 10, 44, 0.45); border: 1px solid var(--line); }
.gear img { grid-row: span 2; image-rendering: pixelated; }
.gear b { font-weight: 400; font-size: 17px; }
.gear small { font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- wallet: assets list with Buy / Sell */
.assets h3 small { font-family: var(--ui); font-size: 15px; color: var(--green); margin-left: auto; }
.assets h3 small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--green); vertical-align: 1px; animation: live 2s infinite; }
.assets-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; }
.assets-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 11px 0; border-top: 1px solid rgba(59, 76, 128, 0.55); }
.assets-list li:first-child { border-top: 0; }
.as-ico img, .as-ico svg { width: 40px; height: 40px; border-radius: 50%; display: block; }
.as-name, .as-amt { display: grid; min-width: 0; }
.as-name b, .as-amt b { font-family: var(--display); font-weight: 400; font-size: 17px; color: #fff; }
.as-name small, .as-amt small { font-size: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-name i { font-style: normal; margin-left: 2px; }
.as-amt { text-align: right; }
.as-act { display: flex; gap: 6px; }
.as-act:empty { display: none; }
.as-act button { min-height: 34px; min-width: 52px; padding: 4px 10px; border-radius: 10px; font-size: 17px; border: 1px solid; }
.buy-btn { color: #06340c; background: linear-gradient(180deg, #9dffa8, var(--green)); border-color: #2d9a3a; }
.sell-btn { color: #fff; background: linear-gradient(180deg, #ff9494, #e04a4a); border-color: #a02a2a; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.sell-btn:disabled { opacity: 0.4; }
.btn.buy-btn, .btn.sell-btn { font-family: var(--display); font-size: 15px; letter-spacing: 0.02em; }
.assets-connect { display: grid; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(59, 76, 128, 0.55); font-size: 18px; color: var(--muted); }
.trade-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.trade-row .btn { min-height: 44px; padding: 8px 6px; }
@media (max-width: 459px) {
  /* Buy / Sell drop under the token so the numbers keep their room. */
  .assets-list li { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .as-act { grid-column: 2 / -1; }
  .as-act button { flex: 1; }
}

/* ---------------------------------------------------------------- trade */
.tok-tabs, .side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(3, 10, 44, 0.55); border: 1px solid var(--line); margin-bottom: 12px; }
.tok-tabs button, .side-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-family: var(--display); font-size: 16px; letter-spacing: 0.02em; }
.tok-tabs img { border-radius: 50%; }
.tok-tabs [aria-selected="true"] { background: linear-gradient(180deg, #26378f, #1a2663); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.6), 0 0 14px rgba(29, 75, 255, 0.45); }
.side-tabs .buy[aria-selected="true"] { background: linear-gradient(180deg, #9dffa8, var(--green)); color: #06340c; box-shadow: 0 0 14px rgba(95, 232, 111, 0.4); }
.side-tabs .sell[aria-selected="true"] { background: linear-gradient(180deg, #ff9d9d, #e85050); color: #fff; box-shadow: 0 0 14px rgba(255, 107, 107, 0.4); }
.px-row { display: flex; align-items: center; gap: 12px; }
.px-row > img { border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(255, 210, 63, 0.35); }
.px-main { flex: 1; min-width: 0; display: grid; }
.px-main small { font-size: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-main b { font-family: var(--display); font-weight: 400; font-size: 28px; color: #fff; line-height: 1.1; }
.px-main .chg { font-size: 17px; }
.px-mc { text-align: right; display: grid; }
.px-mc small { font-size: 16px; color: var(--muted); }
.px-mc b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--gold); }
.chart-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(3, 10, 44, 0.55); border: 1px solid var(--line); }
.seg button { min-height: 32px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 17px; }
.seg button.on { background: var(--card-2); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.5); }
.seg.tiny button { min-width: 0; min-height: 30px; padding: 0 9px; font-size: 16px; }
.candles { position: relative; min-height: 232px; touch-action: pan-y; }
.candles svg { display: block; width: 100%; height: auto; overflow: visible; }
.candles .grid { stroke: rgba(169, 179, 214, 0.13); stroke-width: 1; }
.candles .tick { fill: var(--muted); font: 14px var(--ui); font-variant-numeric: tabular-nums; }
.candles .wick { stroke-width: 1; }
.candles .up { fill: var(--green); stroke: var(--green); }
.candles .down { fill: var(--red); stroke: var(--red); }
.candles .flat { fill: #55679f; stroke: #55679f; }
.candles .body { stroke: none; }
.candles .vol { opacity: 0.3; }
.candles .last-line { fill: none; stroke-width: 1; stroke-dasharray: 3 4; }
.candles .last-tag rect { stroke: none; }
.candles .last-tag text, .candles .y-tag text { font: 14px var(--ui); fill: #06124f; stroke: none; }
.candles .y-tag rect { fill: #e8eefc; }
.candles .hair { stroke: rgba(241, 236, 216, 0.5); stroke-width: 1; stroke-dasharray: 2 3; fill: none; }
.candles .tip { position: absolute; top: 4px; pointer-events: none; display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; background: rgba(3, 10, 44, 0.94); border: 1px solid var(--line-2); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); white-space: nowrap; font-size: 15px; color: var(--muted); }
.candles .tip b { font-weight: 400; color: #fff; }
.candles .tip i { font-style: normal; }
.chart-empty { display: grid; place-items: center; min-height: 220px; margin: 0; }
.mkt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.mkt-stats div { display: grid; min-width: 0; padding: 7px 9px; border-radius: 10px; background: rgba(3, 10, 44, 0.45); border: 1px solid var(--line); }
.mkt-stats small { font-size: 14px; color: var(--muted); white-space: nowrap; }
.mkt-stats b { font-family: var(--display); font-weight: 400; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) { .mkt-stats { grid-template-columns: 1fr 1fr; } }

.trade-box { --side: var(--green); border-color: color-mix(in srgb, var(--side) 40%, var(--line)); transition: border-color 0.2s; }
.trade-box.sell { --side: var(--red); }
.trade-box.locked { --side: #ab9ff2; }
.amt { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; color: var(--muted); margin-bottom: 6px; }
.amt small { font-size: 16px; }
.amt-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--navy-950); border: 1px solid var(--line-2); }
.amt-row:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.15); }
.amt-row input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 28px var(--display); padding: 6px 0; outline: none; letter-spacing: 0.01em; }
.amt-row input::placeholder { color: #3b4c80; }
.amt-row .unit { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); font-family: var(--display); font-size: 15px; white-space: nowrap; }
.unit img, .unit svg { width: 24px; height: 24px; border-radius: 50%; }
.chips { display: flex; gap: 6px; margin-top: 8px; }
.chips button { flex: 1; min-height: 36px; min-width: 0; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(3, 10, 44, 0.5); color: var(--text); font-size: 17px; padding: 0 4px; }
.chips button.on { border-color: var(--gold); color: var(--gold); }
.swap-arrow { display: grid; place-items: center; margin: 10px 0 6px; }
.swap-arrow svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line-2); stroke: var(--side); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote { display: grid; gap: 1px; padding: 12px 14px; border-radius: 14px; background: rgba(3, 10, 44, 0.5); border: 1px solid var(--line); min-height: 84px; align-content: center; font-size: 18px; }
.quote small { font-size: 16px; color: var(--muted); }
.quote b { font-family: var(--display); font-weight: 400; font-size: 24px; color: #fff; line-height: 1.15; overflow-wrap: anywhere; }
.quote .usd { color: var(--muted); font-size: 17px; }
.quote .fine { margin-top: 3px; }
.quote .fine i { font-style: normal; }
.quote .muted { color: var(--muted); }
.quote.warn { border-color: rgba(255, 107, 107, 0.6); background: rgba(90, 20, 30, 0.35); }
.slip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 12px; font-size: 17px; color: var(--muted); }
.trade-go { position: relative; overflow: hidden; width: 100%; min-height: 58px; border: 0; border-radius: 16px; font-family: var(--display); font-size: 20px; letter-spacing: 0.04em; }
.trade-go span { position: relative; }
.trade-go.buy { color: #06340c; background: linear-gradient(180deg, #b0ffb9, var(--green) 55%, #36c048); box-shadow: 0 4px 0 #1f7a2a, 0 0 22px rgba(95, 232, 111, 0.45); }
.trade-go.sell { color: #fff; background: linear-gradient(180deg, #ffa6a6, #f05656 55%, #c83434); box-shadow: 0 4px 0 #8a1f1f, 0 0 22px rgba(255, 107, 107, 0.45); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.trade-go:not(:disabled)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%); transform: translateX(-110%); animation: pb-shine 3s ease-in-out infinite; }
.trade-go:disabled { filter: grayscale(0.75) brightness(0.65); box-shadow: none; cursor: default; }
.trade-go:active:not(:disabled) { transform: translateY(2px); }
.trade-go.confirm { font-size: 16px; animation: shake 0.4s; }
.trade-msg { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(3, 10, 44, 0.5); border: 1px solid var(--line-2); font-size: 18px; overflow-wrap: anywhere; }
.trade-msg.ok { border-color: rgba(95, 232, 111, 0.6); color: #c9f7cf; }
.trade-msg.err { border-color: rgba(255, 107, 107, 0.6); color: #ffc4c4; }
.trade-msg a { color: var(--gold); white-space: nowrap; }
.trade-box > .note.small { margin-top: 10px; }
.trade-box.zapped { animation: box-zap 1.2s ease-out; }
.trade-connect { text-align: center; display: grid; justify-items: center; gap: 8px; }
.trade-connect h3 { margin: 4px 0 0; }
.trade-connect .note { margin: 0; }
.trade-connect .btn { margin-top: 4px; }
.tc-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(180deg, #b9adff, #8b75f2); }
.tc-ico .ph-ico { width: 40px; height: 40px; }
.trade-recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.trade-recent li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: 8px; font-size: 17px; }
.trade-recent li i { font-style: normal; color: var(--green); }
.trade-recent li.sell i { color: var(--red); }
.trade-recent li b { font-family: var(--display); font-weight: 400; font-size: 15px; color: #fff; }
.trade-recent li span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-recent li a { text-decoration: none; color: var(--gold); }

/* ---------------------------------------------------------------- avatar */
.avatar-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; overflow: hidden;
  border-color: color-mix(in srgb, var(--cc) 55%, var(--line));
  background: radial-gradient(70% 90% at 0% 40%, color-mix(in srgb, var(--cc) 26%, transparent), transparent 70%), radial-gradient(90% 120% at 100% 0%, rgba(29, 75, 255, 0.4), transparent 60%), linear-gradient(180deg, #1c2a72, #121b4e);
}
.av-stage { position: relative; width: 120px; height: 138px; display: grid; place-items: end center; }
.av-aura { position: absolute; left: 50%; bottom: 2px; width: 116px; height: 30px; margin-left: -58px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cc) 75%, transparent), transparent); animation: aura 2.6s ease-in-out infinite; }
.av-ring { position: absolute; inset: 4px 0 12px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cc) 32%, transparent), transparent 78%); }
.av-img { position: relative; width: 112px; height: 128px; margin-bottom: 8px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); animation: bob 3s ease-in-out infinite; }
.av-lv {
  position: absolute; top: -2px; left: -6px; z-index: 1; width: 50px; height: 50px; display: grid; place-content: center; text-align: center; line-height: 0.85; color: #4a2c00;
  clip-path: polygon(50% 0%, 61% 12%, 77% 6%, 80% 22%, 96% 26%, 88% 41%, 100% 54%, 86% 63%, 90% 80%, 73% 81%, 65% 97%, 50% 88%, 35% 97%, 27% 81%, 10% 80%, 14% 63%, 0% 54%, 12% 41%, 4% 26%, 20% 22%, 23% 6%, 39% 12%);
  background: radial-gradient(circle at 40% 35%, #fff8c0, var(--gold) 55%, #d98f0a);
}
.av-lv small { font-family: var(--display); font-size: 10px; }
.av-lv b { font-family: var(--display); font-weight: 400; font-size: 21px; }
.av-info { min-width: 0; display: grid; gap: 6px; }
.av-info .kicker { font-size: 15px; }
.av-info h2 { margin: 0; font-size: 24px; color: #fff; overflow-wrap: anywhere; line-height: 1.05; }
.av-tags, .av-status { display: flex; flex-wrap: wrap; gap: 6px; }
.st { font-size: 15px; padding: 2px 8px; border-radius: 8px; background: rgba(3, 10, 44, 0.55); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.st.on, .st.gold { color: var(--gold); border-color: rgba(255, 210, 63, 0.5); }
.st .sq { font-family: var(--display); font-weight: 400; font-size: 12px; color: var(--cyan); }
.xp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.xp-top b { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--gold); white-space: nowrap; }
.xp-top small { font-size: 15px; color: var(--muted); text-align: right; }
.meter.xp.big { height: 12px; margin: 0; background: rgba(127, 212, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(127, 212, 255, 0.25); }
.meter.xp.big > span, .meter.next-bar > span { position: relative; overflow: hidden; background: linear-gradient(90deg, #1d4bff, #5fb4ff 60%, #d8f3ff); box-shadow: 0 0 10px rgba(127, 212, 255, 0.8); }
.meter.xp.big > span::after, .meter.next-bar > span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); transform: translateX(-100%); animation: pb-shine 2.4s ease-in-out infinite; }
.meter.next-bar { height: 9px; margin: 5px 0 2px; }
.next-up {
  grid-column: 1 / -1; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left; color: var(--text);
  border-radius: 16px; border: 1px solid rgba(127, 212, 255, 0.55); background: linear-gradient(135deg, rgba(29, 75, 255, 0.4), rgba(3, 10, 44, 0.65)); box-shadow: 0 0 20px rgba(29, 75, 255, 0.3);
}
.next-up:active { transform: scale(0.99); }
.nu-ico { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(3, 10, 44, 0.75); border: 1.5px dashed rgba(255, 210, 63, 0.7); animation: gift 2.2s ease-in-out infinite; }
.nu-ico img { image-rendering: pixelated; }
.nu-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.nu-txt small { font-size: 14px; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.06em; }
.nu-txt b { font-family: var(--display); font-weight: 400; font-size: 18px; color: #fff; }
.nu-txt em { font-style: normal; font-size: 17px; color: var(--gold); }
.nu-txt > small:last-child { text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 15px; }
p.next-up.done { margin: 0; justify-content: center; color: var(--gold); font-family: var(--display); font-size: 16px; }
.avatar-hero > .btn, .avatar-hero > .note { grid-column: 1 / -1; }
.avatar-hero > .note { margin: 0; }
.ico-lock svg, .lock { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-lock { display: grid; place-items: center; color: #aeb8dc; }
.ico-lock svg { width: 26px; height: 26px; }

/* The ZAZA Road: bottom to top, candy-striped, your avatar on the next stop. */
.road-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.road-head h3 { margin: 0; }
.road-head small { font-size: 16px; color: var(--muted); }
.small-btn { min-height: 36px; padding: 4px 12px; font-size: 17px; }
.road-wrap { position: relative; height: min(66vh, 620px); overflow-y: auto; overflow-x: hidden; margin: 0 -16px -16px; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; background: #0b1240; }
.road-wrap:focus-visible { outline-offset: -3px; }
.road { position: relative; width: 100%; overflow: hidden; }
.band { position: absolute; left: 0; right: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.6px), linear-gradient(180deg, var(--z2), var(--z1)); background-size: 22px 22px, 100% 100%; }
.z-gate { --z1: #140f3c; --z2: #221a5c; --rib: linear-gradient(180deg, #ffe066, #e0a41a); --rib-t: #3a2a00; --rib-s: #8a5a06; }
.z-town { --z1: #0e1f66; --z2: #1b3a9a; --rib: linear-gradient(180deg, #5d8bff, #2446c8); --rib-s: #122a86; }
.z-quarry { --z1: #3b2014; --z2: #6a3a1a; --rib: linear-gradient(180deg, #ffab52, #d9651a); --rib-s: #86380c; }
.z-meadow { --z1: #0f3a26; --z2: #1f6a3c; --rib: linear-gradient(180deg, #6fe07c, #2d9a3a); --rib-s: #1a5e24; }
.z-gym { --z1: #25134e; --z2: #472283; --rib: linear-gradient(180deg, #b98cff, #7a4ad8); --rib-s: #45208c; }
.z-deep { --z1: #0a3140; --z2: #105866; --rib: linear-gradient(180deg, #6fe6ff, #1aa3c8); --rib-s: #0c5e76; }
.z-grove { --z1: #0c3a32; --z2: #186050; --rib: linear-gradient(180deg, #62e8c2, #1f9e7c); --rib-s: #10604a; }
.z-peak { --z1: #4a1840; --z2: #7a2c4a; --rib: linear-gradient(180deg, #ff9ad0, #d9468f); --rib-s: #86204f; }
.road-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.road-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rd-edge { stroke: rgba(0, 0, 0, 0.35); stroke-width: 24; }
.rd-base { stroke: #cfdaff; stroke-width: 17; }
.road-svg .rd-stripe { stroke: #6177cf; stroke-width: 17; stroke-dasharray: 6 10; stroke-linecap: butt; }
.rd-done { stroke: #fff4c9; stroke-width: 17; }
.road-svg .rd-done-stripe { stroke: #f2b31d; stroke-width: 17; stroke-dasharray: 6 10; stroke-linecap: butt; }
.rd-spark { stroke: #fff; stroke-width: 4; stroke-dasharray: 3 90; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px #7fd4ff); animation: road-flow 2.6s linear infinite; }
.deco { position: absolute; z-index: 1; transform: translate(-50%, -50%); opacity: 0.85; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3)); animation: bob 4s ease-in-out infinite; pointer-events: none; }
.deco:nth-of-type(2n) { animation-delay: -2s; }
.deco img { display: block; image-rendering: pixelated; }
.deco img.creature { width: auto; height: 34px; }
.ribbon { position: absolute; left: 50%; z-index: 2; transform: translate(-50%, -50%); pointer-events: none; }
.ribbon span { position: relative; display: block; padding: 5px 20px; font-family: var(--display); font-size: 15px; color: var(--rib-t, #fff); white-space: nowrap; background: var(--rib); border-radius: 3px; box-shadow: 0 3px 0 var(--rib-s), 0 8px 14px rgba(0, 0, 0, 0.35); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.z-gate.ribbon span { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 7px; width: 18px; height: 100%; background: var(--rib-s); z-index: -1; }
.ribbon::before { left: -12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.ribbon::after { right: -12px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.stop { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 60px; height: 60px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.stop:active .coin { transform: scale(0.94); }
.stop .coin { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 20px; transition: transform 0.1s; }
.stop.done .coin { color: #5a3a00; background: radial-gradient(circle at 35% 30%, #fff7c0, var(--gold) 45%, #d48d0b); box-shadow: inset 0 -4px 0 rgba(150, 90, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #8a5a06, 0 7px 12px rgba(0, 0, 0, 0.4); }
.stop.next .coin { color: #fff; text-shadow: 0 2px 0 #0a1a6b; background: radial-gradient(circle at 35% 30%, #e0f6ff, #4aa8ff 45%, #1d4bff); box-shadow: inset 0 -4px 0 rgba(10, 26, 107, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #0a1a6b, 0 0 0 4px rgba(127, 212, 255, 0.4), 0 0 26px #7fd4ff; animation: next-pulse 1.6s ease-in-out infinite; }
.stop.locked .coin { color: #aeb8dc; background: radial-gradient(circle at 35% 30%, #5d6b96, #36426f 55%, #232c55); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 4px 0 #161d40, 0 7px 12px rgba(0, 0, 0, 0.35); }
.stop .coin .lock { position: absolute; bottom: -4px; right: -4px; width: 21px; height: 21px; padding: 3px; border-radius: 50%; background: #161d40; color: #aeb8dc; }
.stars { position: absolute; bottom: -9px; display: flex; align-items: flex-end; gap: 1px; }
.stars i { width: 14px; height: 14px; background: linear-gradient(180deg, #fff7c0, var(--gold) 60%, #e8a520); clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 81% 100%, 50% 78%, 19% 100%, 29% 61%, 0 38%, 37% 35%); filter: drop-shadow(0 1px 0 #8a5a06); }
.stars i:nth-child(2) { width: 17px; height: 17px; margin-bottom: 3px; }
.gift { position: absolute; top: -8px; right: -12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(3, 10, 44, 0.9); border: 1.5px solid rgba(255, 210, 63, 0.65); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.gift img { width: 22px; height: 22px; image-rendering: pixelated; object-fit: contain; }
.gift .ico-lock svg { width: 16px; height: 16px; }
.stop.locked .gift { filter: saturate(0.6) brightness(0.9); }
.stop.next .gift { border-color: var(--gold); animation: gift 2.2s ease-in-out infinite; }
.me { position: absolute; z-index: 3; display: grid; justify-items: center; pointer-events: none; animation: me-hop 1.5s ease-in-out infinite; }
.me.left { transform: translate(calc(-100% - 22px), -62%); }
.me.right { transform: translate(22px, -62%); }
.stop.next.me-right .gift { right: auto; left: -12px; }
.me img { width: 49px; height: 56px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 0 8px rgba(127, 212, 255, 0.85)); }
.me span { margin-top: -3px; padding: 1px 7px; border-radius: 6px; font-family: var(--display); font-size: 11px; letter-spacing: 0.06em; background: var(--gold); color: var(--navy-900); box-shadow: 0 2px 0 var(--gold-dark); }
.me.finished span { background: linear-gradient(90deg, #ff9ad0, var(--gold)); }

.traits h4 { margin-top: 14px; }
.core-stats { display: grid; gap: 10px; }
.cs { display: grid; grid-template-columns: 24px 76px minmax(0, 1fr); grid-template-areas: "ico label bar" "ico val hint"; align-items: center; column-gap: 10px; }
.cs-ico { grid-area: ico; width: 22px; height: 22px; }
.cs.hp .cs-ico { fill: #ff6b8a; }
.cs.atk .cs-ico { fill: none; stroke: #ffa25a; stroke-width: 1.8; stroke-linecap: round; }
.cs.def .cs-ico { fill: #7fd4ff; }
.cs small { grid-area: label; font-size: 16px; color: var(--muted); }
.cs b { grid-area: val; font-family: var(--display); font-weight: 400; font-size: 20px; color: #fff; line-height: 1; }
.cs .meter { grid-area: bar; height: 9px; }
.cs em { grid-area: hint; font-style: normal; font-size: 15px; color: var(--muted); }
.cs.hp .meter > span { background: linear-gradient(90deg, #d93a64, #ff8aa6); }
.cs.atk .meter > span { background: linear-gradient(90deg, #d9651a, #ffb86b); }
.cs.def .meter > span { background: linear-gradient(90deg, #1d74c8, #9be0ff); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(59, 76, 128, 0.55); }
.role { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 17px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.pips i.on { background: var(--sc); box-shadow: 0 0 6px var(--sc); }
.traits .note.small { margin-top: 8px; }

.medals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.medal { display: grid; justify-items: center; align-content: start; text-align: center; gap: 3px; padding: 12px 4px; border-radius: 14px; background: rgba(3, 10, 44, 0.45); border: 1px solid var(--line); min-width: 0; }
.md-badge { --m1: #6576ad; --m2: #34406e; width: 62px; height: 66px; display: grid; place-items: center; clip-path: polygon(50% 0, 95% 24%, 95% 76%, 50% 100%, 5% 76%, 5% 24%); background: linear-gradient(180deg, var(--m1), var(--m2)); }
.md-badge b { font-family: var(--display); font-weight: 400; font-size: 16px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.medal.p1 .md-badge { --m1: #fff0a0; --m2: #d9960e; }
.medal.p2 .md-badge { --m1: #ffffff; --m2: #9aa6c8; }
.medal.p3 .md-badge { --m1: #ffc896; --m2: #b8652a; }
.medal.p1 .md-badge b, .medal.p2 .md-badge b, .medal.p3 .md-badge b { color: #3a2a00; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.medal small { font-size: 16px; color: #fff; }
.medal em { font-style: normal; font-size: 14px; color: var(--muted); line-height: 1.1; }
@media (max-width: 519px) { .medals { grid-template-columns: 1fr 1fr; } }
.rw { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rw li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(3, 10, 44, 0.45); border: 1px solid var(--line); }
.rw-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--card-2); font-size: 22px; }
.rw-ico img { image-rendering: pixelated; }
.rw li > div { display: grid; min-width: 0; }
.rw small { font-size: 16px; color: var(--muted); }
.rw b { font-family: var(--display); font-weight: 400; font-size: 18px; color: #fff; }
.rw em { font-style: normal; font-size: 15px; color: var(--muted); }
.mini-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ms { aspect-ratio: 63 / 88; padding: 0; border-radius: 6px; border: 1.5px solid rgba(255, 210, 63, 0.35); background: repeating-linear-gradient(45deg, #0d1a5c 0 5px, #0a1450 5px 10px); color: rgba(255, 210, 63, 0.55); font-family: var(--display); font-size: 16px; }
.ms.won { color: #5a3a00; border-color: #fff3b0; background: linear-gradient(160deg, #fff3b0, var(--gold) 50%, #c98a0c); box-shadow: 0 0 10px rgba(255, 210, 63, 0.5); }

/* A stop on the road, opened as a sheet */
.stop-panel .sp-top { display: flex; align-items: center; gap: 12px; }
.sp-coin { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 20px; color: #aeb8dc; background: radial-gradient(circle at 35% 30%, #5d6b96, #36426f 55%, #232c55); box-shadow: 0 3px 0 #161d40; }
.stop-panel.done .sp-coin { color: #5a3a00; background: radial-gradient(circle at 35% 30%, #fff7c0, var(--gold) 45%, #d48d0b); box-shadow: 0 3px 0 #8a5a06; }
.stop-panel.next .sp-coin { color: #fff; background: radial-gradient(circle at 35% 30%, #e0f6ff, #4aa8ff 45%, #1d4bff); box-shadow: 0 3px 0 #0a1a6b, 0 0 18px #7fd4ff; }
.sp-top small { font-size: 16px; color: var(--muted); }
.stop-panel h2 { margin: 0; line-height: 1.1; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(3, 10, 44, 0.5); border: 1px dashed rgba(255, 210, 63, 0.55); }
.sp-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.sp-ico img { image-rendering: pixelated; object-fit: contain; }
.sp-row small { font-size: 16px; color: var(--muted); }
.sp-row b { display: block; font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--gold); }
.panel.stop-panel .note { word-break: normal; }

@media (max-width: 380px) {
  .av-stage { width: 100px; height: 118px; }
  .av-img { width: 94px; height: 107px; }
  .avatar-hero { gap: 10px; }
  .as-act button { min-width: 0; }
}

/* ---------------------------------------------------------------- sheets: card viewer and wallet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); background: rgba(3, 10, 44, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s; }
.sheet.open { opacity: 1; }
.viewer { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; height: 100%; justify-content: center; perspective: 900px; }
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; width: min(78vw, 330px, calc((100dvh - 230px) * 63 / 88)); transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(0.9); transition: transform 0.12s ease-out; border-radius: 14px; touch-action: none; }
.sheet.open .tilt { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.tilt img { display: block; width: 100%; border-radius: 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 210, 63, 0.2); }
.tilt .shine { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.55), transparent 55%); }
.tilt.holo .shine { mix-blend-mode: color-dodge; opacity: 0.55; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.5), transparent 45%), linear-gradient(115deg, transparent 20%, rgba(255, 90, 200, 0.35) 35%, rgba(90, 220, 255, 0.35) 50%, rgba(255, 240, 90, 0.35) 65%, transparent 80%); background-size: 100% 100%, 250% 250%; background-position: center, var(--mx) var(--my); }
.viewer-cap { display: grid; justify-items: center; gap: 2px; text-align: center; }
.viewer-cap b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--gold); }
.viewer-cap small { color: var(--muted); font-size: 18px; }
.sample { font-style: normal; font-size: 15px; padding: 1px 8px; border-radius: 6px; background: #3a2a00; color: #ffe9a8; margin-top: 4px; }
.viewer .btn { min-width: 140px; }
.panel { width: min(440px, 100%); background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 20px; padding: 18px; display: grid; gap: 10px; transform: translateY(16px); transition: transform 0.2s; }
.sheet.open .panel { transform: none; }
.panel h2 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--gold); font-size: 22px; }
.panel .note { word-break: break-all; margin: 0; }

/* Pull to refresh */
.ptr { --pull: 0; position: fixed; left: 50%; top: calc(var(--top-h) + var(--safe-t) + 6px); z-index: 25; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); opacity: var(--pull); transform: translateY(calc(var(--pull) * 26px - 20px)) rotate(calc(var(--pull) * 240deg)); pointer-events: none; }
.ptr.ready { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 210, 63, 0.5); }
body.loading .ptr { --pull: 1; animation: spin 0.9s linear infinite; }

/* ---------------------------------------------------------------- ZAZA's level (app-levels.js) */
.levels { --lc: var(--gold); --lc2: var(--gold); overflow: hidden; border-color: color-mix(in srgb, var(--lc) 45%, var(--line)); background: radial-gradient(90% 60% at 15% 0%, color-mix(in srgb, var(--lc) 16%, transparent), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); }
.lv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.levels h3 { margin: 2px 0 0; font-size: 25px; color: var(--lc); text-shadow: 0 2px 0 #000a2e, 0 0 16px color-mix(in srgb, var(--lc) 45%, transparent); }
.levels h3 span { font-family: var(--ui); font-size: 22px; color: #fff; text-shadow: none; }
.lv-evo-mini { flex: none; display: grid; justify-items: end; padding: 4px 10px; border-radius: 10px; background: rgba(3, 10, 44, 0.55); border: 1px solid var(--line); }
.lv-evo-mini small { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lv-evo-mini b { font-family: var(--display); font-weight: 400; font-size: 19px; background: linear-gradient(90deg, #fff6c8, #ffd23f, #ff9fd0, #7fd4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-next { margin: 12px 0 14px; }
.lv-next-row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 18px; color: var(--muted); }
.lv-next-row b { font-weight: 400; color: #fff; }
.lv-next-row em { font-style: normal; color: var(--gold); }
.lv-bar { display: block; height: 12px; border-radius: 99px; background: rgba(3, 10, 44, 0.8); border: 1px solid #000; overflow: hidden; }
.lv-bar > span { position: relative; display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lc), var(--lc2)); box-shadow: 0 0 12px color-mix(in srgb, var(--lc) 70%, transparent); }
.lv-bar > span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent) no-repeat; background-size: 40% 100%; animation: lv-shine 2.4s linear infinite; }
@keyframes lv-shine { from { background-position: -60% 0; } to { background-position: 160% 0; } }

.lv-show { display: grid; gap: 12px; align-items: center; }
.lv-stage { --pc: var(--gold); position: relative; display: grid; place-items: center; border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--pc) 50%, var(--line)); background: radial-gradient(60% 70% at 50% 62%, color-mix(in srgb, var(--pc) 32%, transparent), transparent 70%), linear-gradient(180deg, #0c1a5e, #06124f); transition: border-color 0.3s; }
.lv-stage canvas { display: block; width: min(320px, 100%); height: auto; aspect-ratio: 160 / 104; image-rendering: pixelated; }
.lv-stage-tag { position: absolute; left: 10px; top: 8px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lv-q { display: none; position: absolute; left: 50%; top: 42%; translate: -50% -50%; font-style: normal; font-family: var(--display); font-size: 48px; color: #fff; text-shadow: 0 3px 0 #8a6410, 0 0 16px #ffd23f; animation: lv-bob 2s ease-in-out infinite; }
.lv-stage.is-evo { border-color: #ff9fd0; background: radial-gradient(60% 70% at 50% 62%, rgba(255, 159, 208, 0.35), transparent 70%), linear-gradient(135deg, #3a1a6a, #0c1a5e 50%, #1a4a6a); }
.lv-stage.is-evo .lv-q { display: block; }
@keyframes lv-bob { 50% { translate: -50% calc(-50% - 5px); } }
.lv-info { display: grid; gap: 4px; align-content: start; }
.lv-info .st { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 99px; border: 1px solid; font-style: normal; font-size: 16px; }
.lv-info .st.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.lv-info .st.now { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: rgba(255, 210, 63, 0.1); }
.lv-info .st.lock { color: var(--muted); border-color: var(--line-2); }
.lv-name { font-family: var(--display); font-weight: 400; font-size: 21px; color: #fff; }
.lv-name.evo { background: linear-gradient(90deg, #fff6c8, #ffd23f, #ff9fd0, #7fd4ff, #ffd23f); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lv-rainbow 4s linear infinite; }
@keyframes lv-rainbow { to { background-position: 200% 0; } }
.lv-info > small { font-size: 17px; color: var(--muted); }
.lv-perks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.lv-perks li { display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 8px; background: rgba(3, 10, 44, 0.45); font-size: 18px; }
.lv-perks i { flex: none; width: 22px; font-style: normal; text-align: center; }
@media (min-width: 520px) { .lv-show { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* the 11 levels as a track: a line that lights up to ZAZA's level, one medallion per level */
.lv-track-wrap { margin: 14px -16px 0; padding: 6px 16px 8px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.lv-track { position: relative; display: flex; gap: 6px; width: max-content; margin: 0; padding: 0; list-style: none; }
.lv-track li { --lc: var(--gold); position: relative; scroll-snap-align: center; }
.lv-track li + li::before { content: ""; position: absolute; z-index: 0; top: 28px; right: 50%; width: calc(100% + 6px); height: 4px; border-radius: 2px; background: var(--line-2); }
.lv-track li.done::before, .lv-track li.now::before { background: var(--lc); box-shadow: 0 0 8px var(--lc); }
.lv-track button { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; width: 78px; padding: 0 0 6px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; cursor: pointer; }
.lv-track button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lc) 70%, transparent); }
.lv-track button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.md { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 3px solid #0a0f2e; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--lc) 45%, #fff), var(--lc) 45%, color-mix(in srgb, var(--lc) 55%, #000)); box-shadow: 0 3px 0 #000a2e, 0 0 0 2px var(--lc); }
.md b { font-family: var(--display); font-weight: 400; font-size: 24px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.md img { width: 44px; height: auto; image-rendering: pixelated; }
.lv-track .locked .md { background: #1a2350; box-shadow: 0 3px 0 #000a2e, 0 0 0 2px color-mix(in srgb, var(--lc) 45%, #2c3b78); }
.lv-track .locked .md b { color: color-mix(in srgb, var(--lc) 75%, #fff); text-shadow: none; opacity: 0.75; }
.lv-track .now .md { width: 66px; height: 66px; margin-top: -4px; box-shadow: 0 3px 0 #000a2e, 0 0 0 3px var(--lc), 0 0 22px var(--lc); animation: lv-pulse 1.8s ease-in-out infinite; }
@keyframes lv-pulse { 50% { box-shadow: 0 3px 0 #000a2e, 0 0 0 3px var(--lc), 0 0 36px var(--lc); } }
.md-now { position: absolute; bottom: -9px; left: 50%; translate: -50% 0; padding: 0 6px; border-radius: 6px; font-style: normal; font-size: 13px; letter-spacing: 0.08em; color: #1b1424; background: var(--gold); }
.md-ok, .md-lock { position: absolute; right: -5px; top: -5px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #0a0f2e; font-style: normal; font-size: 13px; }
.md-ok { background: var(--green); color: #0a2a10; }
.md-lock { background: #2c3b78; color: var(--muted); }
.md-name { font-size: 15px; white-space: nowrap; color: #fff; }
.lv-track small { font-size: 13px; color: var(--muted); }
.lv-track .locked .md-name { color: var(--muted); }
/* the Evolution: a spinning rainbow ring around ZAZA's secret silhouette */
.lv-track .evo .md { width: 66px; height: 66px; margin-top: -4px; background: radial-gradient(circle, #2a1a5a, #0a0620); box-shadow: 0 3px 0 #000a2e, 0 0 18px rgba(255, 159, 208, 0.6); }
.lv-track .evo .md::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; padding: 3px; background: conic-gradient(#ff6ad0, #ffe36a, #6affc8, #6ab4ff, #ff6ad0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: lv-spin 4s linear infinite; }
@keyframes lv-spin { to { rotate: 360deg; } }
.lv-track .evo .md img { filter: brightness(0) drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #ff9fd0); }
.md-q { position: absolute; font-style: normal; font-family: var(--display); font-size: 26px; color: #fff; text-shadow: 0 2px 0 #8a6410, 0 0 10px #ffd23f; }
.lv-track .evo button { width: 96px; }
.lv-track .evo .md-name { font-family: var(--display); font-size: 13px; background: linear-gradient(90deg, #fff6c8, #ffd23f, #ff9fd0, #7fd4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.market h3 span { font-size: 17px; color: var(--muted); }

/* ---------------------------------------------------------------- wider screens: tabs move up into the header */
@media (min-width: 760px) {
  :root { --bar-h: 0px; }
  .top { padding-left: max(24px, calc((100vw - 1040px) / 2)); padding-right: max(24px, calc((100vw - 1040px) / 2)); background: rgba(3, 10, 44, 0.82); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); }
  .tabbar { position: static; display: flex; gap: 4px; min-height: 0; padding: 4px; background: rgba(20, 30, 82, 0.7); border: 1px solid var(--line-2); border-radius: 99px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar > * { flex-direction: row; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px; font-size: 18px; }
  .tabbar svg { width: 18px; height: 18px; }
  .tabbar [aria-current="page"] { background: rgba(255, 210, 63, 0.14); }
  .tabbar [aria-current="page"]::before { display: none; }
  .tabbar .desk-only { display: flex; }
  /* Play: a gold pill, like the app's other gold buttons. */
  .tabbar .play-tab { order: 9; margin-left: 6px; padding: 0 16px 0 12px; color: var(--navy-900); font-family: var(--display); font-size: 16px; border: 2px solid #3a2a00; background: linear-gradient(180deg, #ffe066, var(--gold-2)); box-shadow: inset 0 0 0 1px #fff3b0, 0 2px 0 var(--gold-dark); }
  .pb { width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .tabbar .pb svg { width: 16px; height: 16px; margin-left: 0; }
  .views { width: min(1040px, 100%); padding: 22px 24px 40px; }
  #view-home:not([hidden]), #view-holdings:not([hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  #view-home > .who-card, #view-home > .install, #view-home > .play, #view-home > .since, #view-home > .tiles, #view-home > .login, #view-home > .levels { grid-column: 1 / -1; }
  .lv-show { grid-template-columns: 300px 1fr; }
  .lv-stage canvas { width: 300px; }
  #view-home > .tiles { grid-template-columns: repeat(4, 1fr); }
  #view-holdings > .card:first-child, #view-holdings > .hero, #view-holdings > .assets, #view-holdings > .links, #view-holdings > .note, #view-holdings > .login { grid-column: 1 / -1; }
  #view-trade:not([hidden]) { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  #view-trade > .trade-chart-card { grid-row: span 2; }
  #view-avatar:not([hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  #view-avatar > .avatar-hero { grid-column: 1 / -1; grid-template-columns: auto 1fr minmax(0, 0.9fr); }
  #view-avatar > .avatar-hero .next-up { grid-column: 3; grid-row: 1; align-self: center; }
  #view-avatar > .road-card { grid-column: 2; grid-row: 2 / span 4; }
  .road-wrap { height: 720px; }
  .links { grid-template-columns: repeat(3, 1fr); }
  .links .btn.gold { grid-column: auto; }
  .dex { grid-template-columns: repeat(6, 1fr); }
  .tiers .ladder { margin: 12px 0 0; padding: 0 0 2px; }
  .hero .chart { max-width: 760px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 380px) {
  .brand span { font-size: 16px; }
  .online { display: none; }
  .tile b { font-size: 21px; }
}

@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(95, 232, 111, 0.6); } 70% { box-shadow: 0 0 0 7px rgba(95, 232, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 232, 111, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pb-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes aura { 0%, 100% { transform: scaleX(0.9); opacity: 0.7; } 50% { transform: scaleX(1.08); opacity: 1; } }
@keyframes next-pulse { 0%, 100% { box-shadow: inset 0 -4px 0 rgba(10, 26, 107, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #0a1a6b, 0 0 0 4px rgba(127, 212, 255, 0.4), 0 0 20px #7fd4ff; } 50% { box-shadow: inset 0 -4px 0 rgba(10, 26, 107, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #0a1a6b, 0 0 0 9px rgba(127, 212, 255, 0.15), 0 0 36px #7fd4ff; } }
@keyframes me-hop { 0%, 100% { translate: 0 0; } 40%, 60% { translate: 0 -7px; } }
@keyframes road-flow { to { stroke-dashoffset: -186; } }
@keyframes gift { 0%, 100% { transform: rotate(0deg); } 10% { transform: rotate(-7deg); } 20% { transform: rotate(6deg); } 30% { transform: rotate(0deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes box-zap { 0% { box-shadow: 0 0 0 0 rgba(127, 212, 255, 0.9), 0 0 50px rgba(127, 212, 255, 0.8); border-color: #fff; } 100% { box-shadow: 0 0 0 16px rgba(127, 212, 255, 0), 0 0 0 rgba(127, 212, 255, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
