/* Valuz — bubblegum light (default) + black/violet dark */
:root {
  color-scheme: light;
  --bg: #fff6fa;
  --grid: rgba(30, 14, 40, .028);
  --surface: #ffffff;
  --surface-2: #fff0f6;
  --surface-3: #ffe2ee;
  --line: #f3d3e2;
  --line-2: #e8b6cf;
  --text: #2c1a3b;
  --muted: #7d6791;
  --accent: #ff4f9f;          /* fills */
  --accent-d: #e22b84;        /* hover / pressed fills */
  --accent-text: #cc1d73;     /* accent used as text */
  --accent-soft: #ffe0ee;
  --on-accent: #ffffff;
  --sky: #2fa8f5;
  --good: #14a870;
  --bad: #e5384f;
  --warn: #e8a400;
  --shadow: 0 1px 2px rgba(120, 30, 80, .06), 0 8px 24px rgba(255, 79, 159, .08);
  --shadow-hover: 0 2px 4px rgba(120, 30, 80, .08), 0 14px 32px rgba(255, 79, 159, .16);
  --radius: 16px;
  --display: "Baloo 2", "Segoe UI Rounded", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --r-common: #9a93a8; --r-rare: #1f9bea; --r-epic: #8a55e6; --r-legendary: #e8a400;
  --r-super-legendary: #ef7a22; --r-unique: #14a870; --r-celestial: #17b8cf; --r-secret: #ec3f8e;
  --r-void: #5b2db0; --r-infinity: #b46bff;
  --inf: linear-gradient(110deg, #ff5fa8, #ffb23e 22%, #3fe0bd 45%, #5aa2ff 68%, #b06bff 88%, #ff5fa8);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08060d;
  --grid: rgba(255, 255, 255, .03);
  --surface: #110c1c;
  --surface-2: #1a1229;
  --surface-3: #241838;
  --line: #2b1f45;
  --line-2: #3c2c60;
  --text: #ede8f8;
  --muted: #9487b3;
  --accent: #7c4deb;
  --accent-d: #5b34c4;
  --accent-text: #b8a0ff;
  --accent-soft: #241838;
  --on-accent: #ffffff;
  --sky: #38bdf8;
  --good: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --shadow: none;
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, .45);

  --r-common: #9ca3af; --r-rare: #38bdf8; --r-epic: #a78bfa; --r-legendary: #fbbf24;
  --r-super-legendary: #fb923c; --r-unique: #34d399; --r-celestial: #67e8f9; --r-secret: #f472b6;
  --r-void: #7c3aed; --r-infinity: #b46bff;
  --inf: linear-gradient(110deg, #ff6fb1, #ffc04d 22%, #4aeac8 45%, #6fb0ff 68%, #bd82ff 88%, #ff6fb1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font: 600 16px/1.5 var(--body); color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column;
  background-color: var(--bg);
  background-image: linear-gradient(90deg, var(--grid) 1px, transparent 1px);   /* vertical lines only */
  background-size: 34px 100%;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
main { flex: 1; padding: 8px 0 72px; min-height: 60vh; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; }
h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
h3 { font-size: 19px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

/* ---- top bar ---- */
.dock-wrap { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dock { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 25px var(--display); letter-spacing: -.01em; flex: none; }
.bubble-logo { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); position: relative; flex: none; box-shadow: inset -3px -4px 0 rgba(0,0,0,.12); }
.bubble-logo::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.9); top: 5px; left: 6px; }
.nav { display: flex; gap: 4px; margin-inline: auto 0; }
.nav a, .nav button { padding: 8px 16px; border-radius: 999px; font: 700 16px var(--display); color: var(--muted); background: none; border: 0; white-space: nowrap; transition: color .12s, background .12s; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav button:hover { color: var(--text); background: var(--surface-3); }
.nav a.on { color: var(--on-accent); background: var(--accent); }
.nav .more-btn[aria-expanded="true"] { background: var(--surface-3); color: var(--text); }
.dock-right { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--text); transition: border-color .12s, background .12s; }
.icon-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 11px/18px var(--body); text-align: center; padding: 0 5px; }
.avatar-btn { padding: 0; overflow: hidden; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.user-menu { position: absolute; right: 0; top: 48px; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 6px; z-index: 40; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; background: none; border: 0; font: 700 15px var(--display); }
.user-menu a:hover, .user-menu button:hover { background: var(--surface-3); }
.user-menu .who-line { padding: 8px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* ---- Roblox login button + notification menu ---- */
.btn-roblox { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 17px 0 13px; border-radius: 999px; border: 0; background: var(--text); color: var(--bg); font: 700 15px var(--display); white-space: nowrap; transition: background .12s, color .12s, transform .1s; }
.btn-roblox:hover { background: var(--accent); color: var(--on-accent); }
.btn-roblox:active { transform: scale(.97); }
.rbx { width: 18px; height: 18px; flex: none; }
.rbx-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--bg); vertical-align: middle; margin-right: 6px; }
.rbx-badge .rbx { width: 20px; height: 20px; }
.menu-host { position: relative; }
.avatar-btn .initial { font: 800 16px var(--display); }
.avatar-btn { border: 2px solid var(--accent); }
.notif { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.notif:hover, .notif-all:hover { background: var(--surface-3); }
.notif img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.notif > span { min-width: 0; flex: 1; }
.notif b { display: block; font: 700 15px var(--display); }
.notif > span > span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.unread-pill { background: var(--accent); color: var(--on-accent); font: 700 11px/18px var(--body); min-width: 18px; padding: 0 6px; border-radius: 9px; text-align: center; font-style: normal; }
.notif-empty { padding: 14px 12px; font-size: 14px; }
.notif-all { display: block; text-align: center; margin-top: 4px; padding: 9px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font: 700 14px var(--display); color: var(--accent-text); }
.user-menu { width: 300px; max-width: calc(100vw - 24px); }

/* ---- "More" dropdown ---- */
.more-menu { position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-hover), 0 18px 40px rgba(0,0,0,.28); padding: 6px; display: grid; gap: 2px; animation: dropin .14s ease; }
.more-menu[hidden] { display: none; }
.more-menu a { display: block; padding: 8px 12px; border-radius: 10px; line-height: 1.2; }
.more-menu a:hover { background: var(--surface-3); }
.more-menu b { display: block; font: 700 16px var(--display); }
.more-menu span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.more-btn svg { transition: transform .15s; transform: rotate(180deg); }
.more-btn[aria-expanded="true"] svg { transform: none; }
@keyframes dropin { from { opacity: 0; transform: translateY(-6px); } }

/* ---- shared widgets ---- */
.pagehead { margin: 38px 0 24px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.pagehead p { max-width: 60ch; margin-top: 10px; color: var(--muted); }
.sticker-tag { display: inline-block; font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover, .card.hoverable:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 1px solid var(--accent); border-radius: 999px; font: 700 16px var(--display); background: var(--accent); color: var(--on-accent); transition: background .12s, border-color .12s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn:active { transform: scale(.98); }
.btn.alt { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn.alt:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.sm { padding: 6px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 999px; font: 600 13px var(--display); color: var(--muted); transition: color .12s, border-color .12s, background .12s; }
.tab:hover { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.tab .n { font: 600 11px var(--body); color: var(--muted); background: transparent; border-radius: 999px; padding: 0 2px; opacity: .8; }
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tab.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--accent-text); }
.tab.on .n { background: transparent; color: var(--accent-text); }

.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.field { height: 44px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; outline: none; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field::placeholder { color: var(--muted); font-weight: 600; }
textarea.field { height: auto; padding: 12px 16px; resize: vertical; min-height: 84px; width: 100%; }
input.field { flex: 1 1 260px; }
select.field { cursor: pointer; }
.count { margin-left: auto; font: 700 14px var(--display); color: var(--muted); }

.badge { display: inline-block; font: 800 11px var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--accent)) 16%, var(--surface)); color: color-mix(in srgb, var(--c, var(--accent)) 62%, var(--text)); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); white-space: nowrap; }
.badge.plain { --c: var(--muted); }
/* Infinity rarity: a slow rainbow so it reads as the top tier */
/* Infinity rarity: a saturated, slowly moving spectrum so it reads as the top tier */
.badge.infinity { background: var(--inf); background-size: 240% 100%; animation: shimmer 7s linear infinite; color: #1b0f2b; border: 0; padding: 3px 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.tab .dot.infinity { background: var(--inf); }
@keyframes shimmer { to { background-position: 240% 0; } }
.orb.infinity { border-bottom: 4px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--inf) border-box; }
.showcase .orb.infinity { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--inf) border-box; border: 3px solid transparent; }
.slot.inf { border-bottom-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--inf) border-box; }
.slot.inf:hover { background: linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box, var(--inf) border-box; }

/* ---- grids / item cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.item { padding: 12px; display: flex; flex-direction: column; gap: 9px; text-align: center; align-items: center; overflow: hidden; content-visibility: auto; contain-intrinsic-size: 250px; min-width: 0; }
.orb { width: 100%; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border-bottom: 4px solid var(--orb, var(--accent)); position: relative; }
.orb img { width: 78%; height: 78%; object-fit: contain; transition: transform .2s; }
a.item:hover .orb img { transform: scale(1.07); }
.item .name { font: 700 17px/1.15 var(--display); max-width: 100%; overflow-wrap: anywhere; }
.item .meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 14px; }
.cost { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.cost img { width: 18px; height: 18px; }
.more { display: block; margin: 32px auto 0; }
.qty { position: absolute; top: 6px; right: 6px; font: 800 13px var(--display); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 0 7px; }

/* egg groups */
.group { margin-bottom: 44px; }
.group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.group-head .n { font: 700 14px var(--display); color: var(--muted); }
.group-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.avail { font: 800 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--good); }

/* ---- detail pages ---- */
.crumbs { margin: 26px 0 6px; font: 700 14px var(--display); color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.detail { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 14px; }
.showcase { position: sticky; top: 88px; padding: 20px; text-align: center; border-top: 5px solid var(--c, var(--accent)); }
.showcase .orb { background: var(--surface-2); border-bottom: 0; }
.showcase h2 { margin-top: 14px; }
.showcase .side-sec { text-align: left; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.showcase .side-sec h4 { font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.showcase .stat-pill { width: 100%; }
.showcase .pills { flex-direction: column; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { padding: 22px; min-width: 0; }
.panel > h3 { margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel > h3 small { font: 600 13px var(--body); color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; min-width: 0; }
.fact small { display: block; font: 700 12px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact b { font: 700 23px var(--display); display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.fact b img { width: 24px; height: 24px; }
.up { color: var(--good); } .down { color: var(--bad); }

/* tables never push the page wider than the viewport */
.table-scroll { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 12px 10px; white-space: nowrap; user-select: none; }
th.sort { cursor: pointer; } th.sort:hover { color: var(--text); } th.sorted { color: var(--accent-text); }
td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
td.nw { white-space: nowrap; }
.r { text-align: right; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: var(--surface-2); }
.who { display: flex; align-items: center; gap: 12px; font: 700 17px var(--display); min-width: 0; }
.who > div { min-width: 0; overflow-wrap: anywhere; }
.who img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: var(--surface-2); flex: none; }
.who img.round { border-radius: 50%; }
.who small { display: block; font: 600 13px var(--body); color: var(--muted); }
.odds { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 6px; width: 100%; min-width: 70px; max-width: 160px; margin-left: auto; overflow: hidden; }
.odds i { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: 3px; }
.chance { display: block; line-height: 1.15; }
.chance small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }

/* value block + charts */
.value-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.val { padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); border-left: 5px solid var(--c, var(--accent)); min-width: 0; }
.val small { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.val b { display: block; font: 700 clamp(26px, 3.2vw, 36px)/1.05 var(--display); margin: 3px 0; overflow-wrap: anywhere; }
.val span { font-size: 13px; color: var(--muted); }
.meter { display: flex; gap: 5px; margin-top: 8px; }
.meter i { width: 22px; height: 8px; border-radius: 4px; background: var(--surface-3); }
.meter i.on { background: var(--accent); }
.meter i.half { background: linear-gradient(90deg, var(--accent) 50%, var(--surface-3) 50%); }

.chart-box { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; touch-action: none; }
.chart text { font: 600 12px var(--body); fill: var(--muted); }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .axis { stroke: var(--line-2); }
.chart .area { fill: var(--accent); opacity: .12; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.est { stroke: var(--sky); stroke-dasharray: 8 6; stroke-width: 2.5; }
.chart .pt { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.chart .cross { stroke: var(--accent); stroke-opacity: .5; }
.chart .bar { fill: var(--surface-3); }
.chart .bar.me { fill: var(--accent); }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -110%); background: var(--text); color: var(--bg); border-radius: 10px; padding: 6px 11px; font: 700 13px/1.3 var(--body); white-space: nowrap; opacity: 0; transition: opacity .1s; z-index: 5; }
.chart-tip small { display: block; font-weight: 600; opacity: .75; }
.chart-tip.show { opacity: 1; }
.chart-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.chart-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 12px; }
.chart-stats div small { display: block; font: 700 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chart-stats div b { font: 700 19px var(--display); }
.range { display: flex; gap: 6px; }
.range button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 1px 12px; font: 700 13px var(--display); color: var(--muted); }
.range button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.empty-chart { padding: 36px 10px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-pill { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px 8px 10px; min-width: 0; }
.stat-pill img { width: 30px; height: 30px; flex: none; }
.stat-pill b { font: 700 18px var(--display); }
.stat-pill span { font-size: 12px; color: var(--muted); display: block; margin-top: -3px; }
.chip { padding: 2px 11px; background: var(--accent-soft); border-radius: 999px; font: 700 13px var(--display); color: var(--accent-text); }

/* ---- home ---- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 54px 0 34px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: .98; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero p { font-size: 18px; max-width: 46ch; margin: 20px 0 28px; color: var(--muted); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-art a { aspect-ratio: 1; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; border-bottom: 4px solid var(--c, var(--accent)); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.hero-art a:nth-child(2n) { transform: translateY(12px); }
.hero-art a:hover { transform: translateY(-3px); border-color: var(--accent); }
.hero-art img { width: 74%; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 26px 0 54px; }
.tile { padding: 18px 20px; display: block; border-left: 5px solid var(--accent); }
.tile b { display: block; font: 700 clamp(28px, 3.2vw, 40px)/1 var(--display); }
.tile span { font: 700 13px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.section { margin-bottom: 54px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head a { font: 700 15px var(--display); color: var(--accent-text); }
.section-head a:hover { text-decoration: underline; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .rk { font: 800 18px var(--display); width: 26px; color: var(--accent-text); }
.row img { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); object-fit: cover; }
.row .nm { flex: 1; min-width: 0; font: 700 16px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- leaderboards ---- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-bottom: 18px; }
.pod { padding: 18px 12px 20px; text-align: center; display: block; min-width: 0; }
.pod.p1 { order: 2; padding-block: 30px; border-top: 5px solid var(--warn); } .pod.p2 { order: 1; border-top: 5px solid #aab3c2; } .pod.p3 { order: 3; border-top: 5px solid #cf7a2c; }
.pod .medal { font: 800 26px var(--display); color: var(--accent-text); }
.pod img { width: 76px; height: 76px; border-radius: 50%; margin: 8px auto 10px; background: var(--surface-2); object-fit: cover; }
.pod b { display: block; font: 700 19px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- bounties ---- */
.bounty-now { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 26px; border-top: 5px solid var(--accent); }
.bounty-side { padding: 28px; text-align: center; min-width: 0; }
.bounty-side + .bounty-side { border-left: 1px solid var(--line); }
.bounty-side .orb { width: min(220px, 70%); margin: 0 auto 14px; }
.bounty-side small { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bounty-side h2 { margin: 4px 0 8px; }
.today-tag { display: inline-block; background: var(--accent); color: var(--on-accent); font: 700 13px var(--display); padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; }

/* ---- player page ---- */
.p-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 22px; margin-top: 14px; }
.p-head img.av { width: 92px; height: 92px; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--accent); object-fit: cover; }
.p-head h1 { font-size: clamp(28px, 4vw, 42px); }
.p-head .tagline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; color: var(--muted); }
.p-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 22px; }
.split-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-3); margin: 6px 0 14px; }
.split-bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.two-eq { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.team { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.team h4 { font: 700 15px var(--display); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.team .mini { display: flex; flex-wrap: wrap; gap: 6px; }
.team .mini img { width: 40px; height: 40px; object-fit: contain; background: var(--surface); border-radius: 8px; border: 1px solid var(--line); }
.variant { font: 800 10px var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 0 6px; border-radius: 5px; background: var(--surface-3); color: var(--accent-text); }
.variant.shiny { color: var(--sky); } .variant.mythic { color: var(--r-secret); } .variant.xl { color: var(--warn); } .variant.super { color: var(--good); }
.item .tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; min-height: 18px; }
.top-pets { display: flex; gap: 4px; }
.top-pets img { width: 30px; height: 30px; object-fit: contain; background: var(--surface-2); border-radius: 7px; }

/* ---- calculator ---- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.side { padding: 18px; min-height: 340px; display: flex; flex-direction: column; gap: 12px; }
.side-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.side-top h3 { font-size: 22px; }
.side-total { font: 800 30px var(--display); }
.side-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.line-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.line-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--surface); }
.line-item .ln { font: 700 15px var(--display); overflow-wrap: anywhere; }
.line-item .lv { font-size: 12px; color: var(--muted); }
.line-ctrl { display: flex; align-items: center; gap: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); overflow: hidden; }
.stepper button { width: 26px; height: 28px; border: 0; background: none; font-weight: 800; }
.stepper button:hover { background: var(--accent-soft); }
.stepper input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.x-btn { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--muted); font-weight: 800; line-height: 1; }
.x-btn:hover { background: var(--bad); color: #fff; }
.add-tile { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 2px dashed var(--line-2); border-radius: 12px; background: none; font: 700 16px var(--display); color: var(--accent-text); width: 100%; transition: background .12s, border-color .12s; }
.add-tile:hover { background: var(--accent-soft); border-color: var(--accent); }
.verdict { padding: 20px 14px; text-align: center; position: sticky; top: 90px; }
.verdict .v-label { font: 800 34px var(--display); line-height: 1; }
.verdict .v-label.win { color: var(--good); } .verdict .v-label.lose { color: var(--bad); } .verdict .v-label.fair { color: var(--warn); }
.verdict small { display: block; color: var(--muted); margin-top: 6px; font-size: 13px; }
.verdict .diff { font: 700 20px var(--display); margin-top: 10px; }
.verdict .btns { display: grid; gap: 8px; margin-top: 16px; }
.val-input { width: 90px; height: 28px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); padding: 0 8px; text-align: right; font-weight: 700; }


/* ---- calculator grid ---- */
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-bottom: 4px solid var(--c, var(--line-2)); border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px 5px; min-width: 0; text-align: center; transition: transform .1s, border-color .12s, background .12s; }
.slot:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }
.slot.empty { border: 2px dashed var(--line-2); border-bottom: 2px dashed var(--line-2); background: transparent; color: var(--muted); }
.slot.empty span { font: 600 34px/1 var(--display); opacity: .55; }
.slot.empty:hover span { opacity: 1; color: var(--accent-text); }
.slot-img { width: 62%; aspect-ratio: 1; display: grid; place-items: center; }
.slot-img img { width: 100%; height: 100%; object-fit: contain; }
.slot-name { font: 700 12px/1.1 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-val { font: 700 12px var(--body); color: var(--muted); }
.slot .qty { top: 5px; right: 5px; font-size: 12px; }
.v-hint { margin: 10px 0 4px; font: 700 15px var(--display); color: var(--muted); }
.qty-edit { display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 8px; align-items: center; margin-top: 4px; }
.qty-edit input { width: 100%; min-width: 0; height: 52px; text-align: center; font: 700 26px var(--display); border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); outline: none; -moz-appearance: textfield; }
.qty-edit input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qty-edit input::-webkit-outer-spin-button, .qty-edit input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qbtn { height: 52px; min-width: 52px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: 700 17px var(--display); }
.qbtn:hover { background: var(--accent-soft); border-color: var(--accent); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-btn { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 999px; padding: 4px 14px; font: 700 14px var(--display); color: var(--muted); }
.chip-btn:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

/* ---- modal / picker ---- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(20, 8, 30, .5); animation: fadein .15s; }
.dialog { width: min(560px, 100%); max-height: min(86vh, 760px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-hover); }
.dialog.wide { width: min(820px, 100%); }
.dialog h2 { margin-bottom: 6px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 12px; }
.pick { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 8px 6px; text-align: center; font: 700 13px/1.15 var(--display); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .12s, transform .1s; overflow-wrap: anywhere; }
.pick:hover { border-color: var(--accent); transform: translateY(-2px); }
.pick img { width: 54px; height: 54px; object-fit: contain; }
.pick small { font: 600 11px var(--body); color: var(--muted); }
.step-code { font: 800 24px ui-monospace, Consolas, monospace; letter-spacing: .04em; background: var(--surface-2); border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 16px; text-align: center; user-select: all; margin: 12px 0; word-break: break-all; }
.form-msg { min-height: 20px; font-size: 14px; margin-top: 8px; }
.form-msg.err { color: var(--bad); } .form-msg.ok { color: var(--good); }
ol.steps { padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
@keyframes fadein { from { opacity: 0; } }

/* ---- trading ---- */
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.ad { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ad-top { display: flex; align-items: center; gap: 10px; }
.ad-top img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.ad-top b { font: 700 17px var(--display); }
.ad-top small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; }
.ad-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-side { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; }
.ad-side h5 { font: 700 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 8px; }
.ad-items { display: flex; flex-wrap: wrap; gap: 6px; min-height: 46px; }
.ad-chip { position: relative; width: 46px; height: 46px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.ad-chip img { width: 36px; height: 36px; object-fit: contain; }
.ad-chip i { position: absolute; right: -4px; bottom: -4px; font: 800 11px/1 var(--display); font-style: normal; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 2px 5px; }
.ad-note { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.ad-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ad-foot .grow { flex: 1; }
.composer-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.comp-side { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); min-width: 0; }
.comp-side h4 { font: 700 15px var(--display); margin-bottom: 8px; display: flex; justify-content: space-between; }

/* ---- messages ---- */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(70vh, 640px); overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; }
.thread { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.thread:hover, .thread.on { background: var(--surface-2); }
.thread img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.thread .t-main { min-width: 0; flex: 1; }
.thread b { font: 700 16px var(--display); display: block; }
.thread span.t-last { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.thread .unread { background: var(--accent); color: var(--on-accent); border-radius: 9px; font: 700 11px/18px var(--body); padding: 0 6px; min-width: 18px; text-align: center; }
.convo { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.convo-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.convo-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 76%; padding: 8px 13px; border-radius: 16px; background: var(--surface-3); overflow-wrap: anywhere; white-space: pre-wrap; font-weight: 600; }
.msg.mine { align-self: flex-end; background: var(--accent); color: var(--on-accent); }
.msg small { display: block; font-size: 11px; opacity: .65; font-weight: 600; }
.compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.compose input { flex: 1; }

/* ---- currencies ---- */
.cur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cur { padding: 16px; display: flex; gap: 14px; align-items: center; border-left: 6px solid var(--c); }
.cur img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.cur p { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.cur code { display: inline-block; margin-top: 6px; font: 600 12px ui-monospace, Consolas, monospace; background: var(--surface-3); border-radius: 6px; padding: 0 8px; color: var(--accent-text); }

/* ---- legal ---- */
.legal { max-width: 74ch; padding-top: 40px; }
.legal h1 { margin-bottom: 8px; } .legal h2 { margin: 30px 0 10px; font-size: 22px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; } .legal ul { padding-left: 22px; }

/* ---- states / footer ---- */
.state { text-align: center; padding: 80px 20px; }
.state h2 { margin-bottom: 12px; }
.pop-loader { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--surface-3); border-top-color: var(--accent); margin: 0 auto 16px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 12px; }
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 22px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.foot-brand { font: 800 18px var(--display); }
.foot-links { display: flex; align-items: center; gap: 12px; font: 700 14px var(--display); color: var(--muted); }
.foot-links a:hover { color: var(--accent-text); }
.foot-note { width: 100%; font-size: 12px; color: var(--muted); font-weight: 600; }
.pop-in { animation: popin .22s ease both; }
@keyframes popin { from { opacity: 0; transform: translateY(6px); } }
.big404 { font: 800 clamp(100px, 22vw, 200px)/1 var(--display); color: var(--accent); }

@media (max-width: 960px) {
  .hero, .detail, .bounty-now { grid-template-columns: 1fr; }
  .bounty-side + .bounty-side { border-left: 0; border-top: 1px solid var(--line); }
  .showcase { position: static; max-width: 420px; }
  .calc { grid-template-columns: 1fr; } .verdict { position: static; order: -1; }
  .chat { grid-template-columns: 1fr; height: auto; } .threads { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); } .convo { height: 480px; }
  .dock { gap: 8px; } .brand span.brand-text { display: none; }
  .nav a, .nav button { padding: 8px 11px; font-size: 15px; }
  .podium { gap: 8px; } .pod img { width: 52px; height: 52px; } .pod .medal { font-size: 20px; }
  td, th { padding-inline: 8px; }
}
@media (max-width: 700px) { .hide-s { display: none; } }
@media (max-width: 960px) { .nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; margin-inline: 0; } .nav::-webkit-scrollbar { display: none; } }
@media (max-width: 560px) {
  .ads { grid-template-columns: 1fr; } .ad-sides, .composer-sides { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; } .nav { overflow-x: auto; scrollbar-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---- Roblox-style login popup (always dark, like Roblox's own dialogs) ---- */
.dialog.rbx-dialog { background: #232527; color: #fff; border: 1px solid #393b3d; border-radius: 10px; padding: 0; width: min(420px, 100%); font-family: "Builder Sans", "Gotham SSm", "Helvetica Neue", Arial, sans-serif; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.rbx-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #393b3d; }
.rbx-mark { width: 30px; height: 30px; display: grid; place-items: center; background: #fff; color: #232527; border-radius: 7px; flex: none; }
.rbx-mark .rbx { width: 18px; height: 18px; }
.rbx-title { flex: 1; font-weight: 700; font-size: 18px; }
.rbx-x { background: none; border: 0; color: #bdbebe; font-size: 26px; line-height: 1; padding: 0 4px; }
.rbx-x:hover { color: #fff; }
.rbx-body { padding: 18px; }
.rbx-step { font-size: 12px; color: #9fa0a1; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-weight: 700; }
.rbx-label { display: block; font-size: 14px; margin-bottom: 6px; color: #e0e0e0; font-weight: 600; }
.rbx-input { width: 100%; height: 42px; padding: 0 12px; background: #393b3d; border: 1px solid #606162; border-radius: 8px; color: #fff; font: 500 16px inherit; font-family: inherit; outline: none; }
.rbx-input:focus { border-color: #fff; }
.rbx-input::placeholder { color: #8e8f90; }
.rbx-btn { display: block; width: 100%; height: 42px; padding: 0 20px; border: 0; border-radius: 8px; background: #335fff; color: #fff; font: 700 15px inherit; font-family: inherit; }
.rbx-btn:hover { background: #4a73ff; }
.rbx-btn.ghost { background: #393b3d; } .rbx-btn.ghost:hover { background: #4a4c4e; }
.rbx-btn[disabled] { opacity: .5; pointer-events: none; }
.rbx-row { display: flex; gap: 10px; } .rbx-row .rbx-btn { flex: 1; }
.rbx-code { display: flex; gap: 10px; align-items: center; background: #18191b; border: 1px solid #393b3d; border-radius: 8px; padding: 12px 14px; margin: 12px 0 8px; }
.rbx-code #phrase { flex: 1; font: 600 17px/1.35 "Source Code Pro", Consolas, monospace; word-break: break-word; user-select: all; }
.rbx-copy { background: #393b3d; border: 0; color: #fff; border-radius: 6px; padding: 6px 12px; font: 700 13px inherit; font-family: inherit; flex: none; }
.rbx-copy:hover { background: #4a4c4e; }
.rbx-text { color: #d0d1d1; font-size: 14px; line-height: 1.5; }
.rbx-text a { color: #6b93ff; text-decoration: underline; }
.rbx-hint { color: #9fa0a1; font-size: 13px; line-height: 1.4; }
.rbx-msg { min-height: 20px; font-size: 14px; margin: 10px 0 12px; color: #bdbebe; }
.rbx-msg.err { color: #ff7b7b; } .rbx-msg.ok { color: #5be28c; }
.rbx-foot { padding: 12px 18px; border-top: 1px solid #393b3d; font-size: 12px; color: #8e8f90; text-align: center; }
.slot-grid { width: 100%; max-width: 480px; margin-inline: auto; }

/* ---- stat icons (transparent bubble, egg emoji) ---- */
.ico { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; margin-right: 7px; object-fit: contain; background: none; }
.ico.lg { width: 30px; height: 30px; vertical-align: -8px; margin-right: 8px; }
.emo { display: inline-block; font-size: 1.05em; line-height: 1; margin-right: 7px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.val b .ico.lg, .val b .emo { vertical-align: -4px; }
.val b .emo { font-size: .85em; }
.stat-pill img { width: 36px; height: 36px; object-fit: contain; background: none; }
.stat-pill img[src^="data:image/svg"] { width: 38px; height: 38px; }
.tab .ico, .tab .emo { margin-right: 6px; vertical-align: -4px; }
th .ico, th .emo { vertical-align: -5px; }
.chart .hover-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 3.5; }
.chart-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; margin-bottom: 8px; }
.chart-top .chart-stats { margin-bottom: 0; }
.chart .line { stroke-width: 3.5; }
.chart .pt { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
/* player stat cards: keep the icon and a long number on one line */
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.stat-grid .val b { font-size: clamp(24px, 2.4vw, 32px); white-space: nowrap; display: flex; align-items: center; }
.stat-grid .val b .ico.lg { width: 28px; height: 28px; vertical-align: 0; margin-right: 8px; flex: none; }
.stat-grid .val b .emo { margin-right: 8px; vertical-align: 0; }

/* ---- top bar: line icons + translucent selected tab ---- */
.nav a, .nav button { gap: 8px; }
.nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav a.on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent); }
.nav a:hover:not(.on), .nav button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav .more-btn svg:last-child { width: 13px; height: 13px; stroke-width: 3; }
.nav .more-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
@media (max-width: 700px) { .nav a span, .nav .more-btn span { display: none; } .nav a, .nav button { padding: 9px 12px; } }

/* ---- login popup, take two ---- */
.dialog.rbx-dialog { width: min(440px, 100%); background: #1e2022; border-color: #34373a; max-height: 92vh; overflow-y: auto; }
.rbx-head { padding: 18px 20px 14px; border-bottom: 0; }
.rbx-mark { width: 42px; height: 42px; border-radius: 11px; }
.rbx-mark .rbx { width: 24px; height: 24px; }
.rbx-headtext { flex: 1; min-width: 0; }
.rbx-title { font-weight: 800; font-size: 19px; line-height: 1.2; }
.rbx-sub { font-size: 13px; color: #9fa0a1; margin-top: 2px; }
.rbx-title { flex: none; }
.rbx-progress { display: flex; gap: 6px; padding: 0 20px; }
.rbx-progress i { flex: 1; height: 4px; border-radius: 2px; background: #393b3d; transition: background .25s; }
.rbx-progress i.on { background: #335fff; }
.rbx-body { padding: 20px; }
.rbx-h { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.rbx-text { margin: 0 0 18px; }
.rbx-field { display: flex; align-items: center; background: #393b3d; border: 1px solid #606162; border-radius: 10px; padding-left: 14px; transition: border-color .12s, box-shadow .12s; }
.rbx-field span { color: #9fa0a1; font-weight: 700; }
.rbx-field:focus-within { border-color: #6b93ff; box-shadow: 0 0 0 3px rgba(51, 95, 255, .3); }
.rbx-field .rbx-input { border: 0; background: none; height: 48px; padding: 0 14px 0 6px; font-size: 17px; }
.rbx-field .rbx-input:focus { border: 0; }
.rbx-btn { height: 46px; border-radius: 10px; font-size: 16px; }
.rbx-user { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #2a2c2f; border: 1px solid #393b3d; border-radius: 12px; margin-bottom: 16px; }
.rbx-user img, .rbx-initial { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #393b3d; flex: none; }
.rbx-initial { display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.rbx-user div { flex: 1; min-width: 0; line-height: 1.25; }
.rbx-user b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbx-user span { color: #9fa0a1; font-size: 13px; }
.rbx-link { background: none; border: 0; color: #6b93ff; font: 600 13px inherit; font-family: inherit; text-decoration: underline; padding: 4px; }
.rbx-steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 14px; }
.rbx-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #d0d1d1; }
.rbx-steps li > span { width: 24px; height: 24px; border-radius: 50%; background: #335fff; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; margin-top: 1px; }
.rbx-steps li > div { flex: 1; min-width: 0; }
.rbx-steps a { color: #6b93ff; text-decoration: underline; }
.rbx-code { margin: 10px 0 0; }
.rbx-msg { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 14px 0; }
.rbx-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #4a4c4e; border-top-color: #6b93ff; animation: spin .8s linear infinite; flex: none; }
.rbx-foot { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 20px; }
.rbx-foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.stat-grid .val { padding: 14px 14px 14px 16px; }
.stat-grid .val b { font-size: clamp(22px, 2.1vw, 30px); }

/* ---- trading: one full-width ad per row ---- */
.live-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-status #live { font: 700 13px var(--display); color: var(--muted); margin-right: 6px; }
.live-status .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } }
.ads { display: flex; flex-direction: column; gap: 18px; }
.ads .state { padding: 60px 20px; }
.ad { display: grid; grid-template-columns: minmax(0, 1fr) 300px; padding: 0; overflow: hidden; }
.ad-trade { padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ad-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.ad-head .fair-chip { margin-left: auto; }
.fair-chip { font: 800 12px var(--display); letter-spacing: .04em; text-transform: uppercase; padding: 3px 11px; border-radius: 999px; }
.fair-chip.fair { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.fair-chip.win { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.fair-chip.lose { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.trade-cols { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.tcol { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); min-width: 0; border-top: 4px solid var(--c); }
.tcol.offer { --c: var(--good); } .tcol.request { --c: var(--sky); }
.tcol-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tcol-top b { font: 800 14px var(--display); letter-spacing: .1em; color: var(--c); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.tslot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; background: var(--surface); border: 1px solid var(--line); border-bottom: 3px solid var(--c, var(--line-2)); border-radius: 11px; text-align: center; min-width: 0; transition: transform .1s, border-color .12s; }
.tslot:hover { transform: translateY(-2px); border-color: var(--accent); }
.tslot .slot-img { width: 54px; }
.tslot .qty { top: 4px; right: 4px; font-size: 11px; padding: 0 5px; }
.t-empty { grid-column: 1 / -1; padding: 22px 8px; text-align: center; color: var(--muted); font-weight: 700; border: 2px dashed var(--line-2); border-radius: 11px; }
.swap { align-self: center; text-align: center; font-size: 22px; color: var(--muted); }
.ad-note { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; font-style: italic; }
.ad-profile { border-left: 1px solid var(--line); background: var(--surface-2); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pid { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pid img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 2px solid var(--accent); flex: none; }
.pid div { min-width: 0; line-height: 1.25; }
.pid b { display: block; font: 700 19px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pid span { color: var(--muted); font-size: 13px; }
.ad-profile .badge { align-self: flex-start; }
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pstats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; min-width: 0; }
.pstats small { display: block; font: 700 10px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pstats b { font: 700 16px var(--display); white-space: nowrap; }
.pstats .ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 5px; }
.pnote { font-size: 13px; }
.pbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pbtns .btn { flex: 1; min-width: 0; }
@media (max-width: 900px) { .ad { grid-template-columns: 1fr; } .ad-profile { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 620px) { .trade-cols { grid-template-columns: 1fr; } .swap { transform: rotate(90deg); } }

/* composer */
.comp-side.offer { border-top: 4px solid var(--good); } .comp-side.request { border-top: 4px solid var(--sky); }
.comp-side h4 { font: 800 14px var(--display); letter-spacing: .1em; }
.comp-side.offer h4 > span:first-child { color: var(--good); } .comp-side.request h4 > span:first-child { color: var(--sky); }
.comp-side .slot-grid { max-width: none; }
.comp-side .slot { aspect-ratio: 1 / 1.05; }

/* ---- smaller stat icons (leaderboards, tables, player page) ---- */
.ico { width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; }
.ico.lg { width: 22px; height: 22px; margin-right: 6px; vertical-align: -5px; }
.emo { font-size: .9em; margin-right: 5px; }
.tab .ico, .tab .emo { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.tab .emo { font-size: 14px; width: auto; height: auto; }
th .ico, th .emo { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.pod .num .ico, .pod .num .emo { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.stat-grid .val b .ico.lg { width: 20px; height: 20px; margin-right: 6px; vertical-align: -2px; }
.stat-grid .val b .emo { font-size: .7em; margin-right: 6px; }
.pstats .ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }

/* ---- final sizing pass: icons next to numbers stay small and sit on the text line ---- */
.ico { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.tab .ico { width: 14px; height: 14px; }
th .ico { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
td .ico { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.pod .num { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pod .num .ico, .pod .num .emo { width: 15px; height: 15px; margin: 0; vertical-align: 0; }
.stat-grid .val b .ico.lg { width: 20px; height: 20px; }

/* ---- chat: avatar beside every message (their avatar left, yours right) ---- */
.msgs { gap: 10px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; align-self: flex-start; }
.msg-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.mav { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); border: 2px solid var(--line-2); }
.msg-row.mine .mav { border-color: var(--accent); }
.mav.init { display: grid; place-items: center; font: 800 15px var(--display); color: var(--muted); }
.msg-row .msg { max-width: 100%; align-self: auto; border-radius: 16px 16px 16px 5px; padding: 7px 13px 6px; }
.msg-row .msg.mine { border-radius: 16px 16px 5px 16px; }
.msg-name { display: block; font: 700 12px var(--display); letter-spacing: .02em; margin-bottom: 2px; opacity: .8; }
.msg.mine .msg-name { color: rgba(255, 255, 255, .85); opacity: 1; }
.convo-head .mav { width: 44px; height: 44px; }
.convo-head > a { display: block; }
#vchart .state { padding: 30px 10px; }
.chart a { text-decoration: none; }

/* long values (e.g. "~4,500,000") must stay on one line inside the value cards */
.value-hero .val b { font-size: clamp(22px, 2.3vw, 32px); white-space: nowrap; }

/* ---- existing copies per variant (pet page) ---- */
.exist-break { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: -6px; }
.exist-break:empty { display: none; }
.eb { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .12s; }
.eb:hover, .eb.on { border-color: var(--accent); }
.eb span { font: 700 12px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eb b { font-size: 18px; }
.eb i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); border-radius: 0 3px 0 0; }
@media (max-width: 700px) { .exist-break { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

#owners .more, #hatchers .more { margin-top: 14px; }
td small.muted { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; }

/* ---- value cards (Values tab grid) ---- */
.vcard { gap: 8px; text-align: center; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.vgrid > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 5px 6px; min-width: 0; }
.vgrid small { display: block; font: 700 10px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vgrid b { font: 700 16px var(--display); white-space: nowrap; }
.vfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; font-size: 13px; font-weight: 700; padding: 0 2px; }
.dm { display: inline-flex; gap: 3px; }
.dm i { width: 9px; height: 6px; border-radius: 2px; background: var(--surface-3); }
.dm i.on { background: var(--accent); }
.dm i.half { background: linear-gradient(90deg, var(--accent) 50%, var(--surface-3) 50%); }

/* ---- [hidden] must win over any display rule (it did not for .btn.more, so "Show more" never went away) ---- */
[hidden] { display: none !important; }

/* ---- More menu: icons + open animation ---- */
.more-menu { display: block; animation: none; opacity: 0; visibility: hidden; pointer-events: none; transform-origin: top right; transform: translateY(-10px) scale(.94); transition: opacity .18s ease, transform .24s cubic-bezier(.2, .9, .3, 1.15), visibility 0s linear .24s; }
.more-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .18s ease, transform .24s cubic-bezier(.2, .9, .3, 1.15), visibility 0s; }
.more-menu a { display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateX(10px); transition: opacity .22s ease, transform .26s ease, background .12s; }
.more-menu.open a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 28ms + 40ms), calc(var(--i, 0) * 28ms + 40ms), 0s; }
.more-menu .mi { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--muted); transition: color .12s, border-color .12s, background .12s; }
.more-menu .mi svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.more-menu a:hover .mi { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
.more-menu a > div { min-width: 0; }
.more-btn svg:last-child { transition: transform .22s ease; }

/* ---- calculator: tiles with -, +, x at the top right; grid extends downward ---- */
div.slot { cursor: pointer; }
.slot .slot-ctl { position: absolute; top: 5px; right: 5px; display: flex; gap: 3px; z-index: 2; }
.slot .slot-ctl button { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 800 14px/1 var(--display); display: grid; place-items: center; cursor: pointer; transition: background .1s, color .1s, border-color .1s; }
.slot .slot-ctl button:hover:not([disabled]) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot .slot-ctl button[disabled] { opacity: .35; cursor: default; }
.slot .slot-ctl .x { background: color-mix(in srgb, var(--bad) 16%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--bad); }
.slot .slot-ctl .x:hover { background: var(--bad) !important; border-color: var(--bad) !important; color: #fff !important; }
.slot .qty { top: 6px; left: 6px; right: auto; }
.slot .slot-img { margin-top: 18px; }
.slot.empty.off { visibility: hidden; }
.side { min-height: 0; }

/* ---- inventory tiles: link + count + offer button ---- */
.inv-tile { gap: 8px; }
.inv-link { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; color: inherit; min-width: 0; }
.qty.big { font-size: 15px; padding: 1px 10px; background: var(--accent); color: var(--on-accent); border-color: var(--accent); top: 8px; right: 8px; }
.offer-btn { width: 100%; margin-top: 2px; }

/* ---- Offer Request cards (forwarded-message style embed) ---- */
.sys-note { align-self: center; max-width: 80%; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 4px 14px; }
.offer-card { width: min(380px, 100%); border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--shadow); }
.oc-fwd { display: flex; align-items: center; gap: 8px; padding: 9px 14px 0; font: 700 13px var(--display); letter-spacing: .02em; color: var(--muted); }
.oc-fwd svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.oc-fwd span { color: var(--text); }
.oc-status { margin-left: auto; font: 800 10px var(--display); letter-spacing: .08em; text-transform: uppercase; font-style: normal; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.oc-status.accepted { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.oc-status.declined { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.oc-status.pending { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.oc-embed { margin: 8px 12px 0; padding: 12px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--accent); }
.oc-pet { display: flex; gap: 12px; align-items: center; }
.oc-img { width: 64px; height: 64px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.oc-img img { width: 52px; height: 52px; object-fit: contain; }
.oc-pet b { font: 700 18px var(--display); display: block; line-height: 1.15; }
.oc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 4px 0; }
.oc-note { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.oc-foot { padding: 12px 14px 14px; }
.oc-actions { display: flex; gap: 8px; }
.oc-actions .btn { flex: 1; }
.oc-wait { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.oc-result { font: 800 14px var(--display); margin-bottom: 8px; } .oc-result.good { color: var(--good); } .oc-result.bad { color: var(--bad); margin: 0; }
.oc-server { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.oc-server b { display: block; font: 700 14px var(--display); } .oc-server span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; display: block; }
.msg-row .offer-card { max-width: 100%; }

/* ---- demand tag, rarity icons, verified tick ---- */
.dtag { position: absolute; right: 4px; bottom: 4px; font: 800 9px/1 var(--display); letter-spacing: .06em; padding: 3px 6px; border-radius: 999px; border: 1px solid transparent; }
.dtag.high { background: color-mix(in srgb, var(--good) 22%, var(--surface)); color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.dtag.med { background: color-mix(in srgb, var(--warn) 22%, var(--surface)); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.dtag.low { background: color-mix(in srgb, var(--bad) 20%, var(--surface)); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.dtag.na { background: var(--surface-3); color: var(--muted); border-color: var(--line); }
.tl { position: absolute; left: 4px; top: 4px; display: flex; flex-direction: column; gap: 2px; z-index: 1; pointer-events: none; }
.tl.bl { top: auto; bottom: 4px; flex-direction: row; align-items: flex-end; }
.tgi { height: 15px; width: auto; max-width: 42px; object-fit: contain; vertical-align: middle; }
.tab .tgi { height: 14px; margin-right: 4px; }
.tick { width: 15px; height: 15px; flex: none; vertical-align: -3px; }
.vtag { display: inline-flex; align-items: center; gap: 5px; font: 800 11px var(--display); letter-spacing: .03em; padding: 2px 9px 2px 5px; border-radius: 999px; white-space: nowrap; }
.vtag.ok { background: color-mix(in srgb, #1d9bf0 16%, transparent); color: #3aa8f5; }
.vtag.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); padding-left: 9px; }
.vmark { position: absolute; left: 4px; bottom: 4px; width: 17px; height: 17px; display: grid; place-items: center; }
.vmark.bad { background: var(--bad); color: #fff; border-radius: 50%; font: 800 11px/1 var(--display); }
.vmark .tick { width: 17px; height: 17px; vertical-align: 0; }
.vpill { font: 700 10px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tslot, .slot { position: relative; }
.tslot .vmark { left: 4px; } .tslot .tl { top: 4px; }
.slot .tl.bl { left: 4px; bottom: 4px; }
/* ad cards */
.tcol-top { flex-wrap: wrap; gap: 6px; }
.tcol-top b { margin-right: auto; }
.ad.closed .ad-trade { opacity: .78; }
/* profile buttons stay inside the card */
.pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pbtns .btn { min-width: 0; padding: 8px 10px; font-size: 14px; white-space: normal; line-height: 1.15; text-align: center; }
.pbtns .btn:only-child { grid-column: 1 / -1; }

/* ---- tile footer: rarity / XL icons on the left, demand on the right ---- */
.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; min-height: 22px; margin-top: 3px; padding: 0 2px; }
.tfoot .dtag { position: static; flex: none; }
.tgs { display: flex; align-items: center; gap: 2px; min-width: 0; }
.tgs .tgi { height: 22px; max-width: 46px; }
.vmark { left: 5px; top: 5px; bottom: auto; }
.tslot .vmark, .slot .vmark { top: 5px; left: 5px; bottom: auto; }
.slot .tfoot { margin-top: auto; }
.tslot { padding-bottom: 6px; }

/* bigger rarity / XL tags */
.tgs .tgi { height: 30px; max-width: 58px; }
.tfoot { min-height: 30px; flex-wrap: wrap; row-gap: 2px; }
.ctag { font: 800 10px/1 var(--display); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; color: var(--r-celestial); background: color-mix(in srgb, var(--r-celestial) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--r-celestial) 55%, transparent); }

.vfoot .dtag { position: static; flex: none; }
.val b.dl-high { color: var(--good); } .val b.dl-med { color: var(--warn); } .val b.dl-low { color: var(--bad); } .val b.dl-na { color: var(--muted); }
/* value cards: footer labels centred */
.vcard { display: flex; flex-direction: column; align-items: center; }
.vfoot { justify-content: center; gap: 12px; margin-top: auto; padding-top: 8px; }

.vfoot { flex-wrap: wrap; row-gap: 4px; }
.vf { font: 700 12px var(--body); white-space: nowrap; }
.vfoot .vf:last-child { flex-basis: 100%; text-align: center; }

.badge.hoard { background: color-mix(in srgb, var(--warn) 20%, var(--surface)); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent); }
.badge.oc { --c: var(--sky); }

/* ---------- Values page: toolbar, chips, grid / list views, filter drawer ---------- */
.vx .pagehead { margin: 26px 0 18px; }
.vx .pagehead h1 { margin: 0; }
.vx .pagehead p { margin-top: 4px; }
.vx-calc { padding: 7px 16px; font-size: 14px; }
.vx svg, .dialog.vx-drawer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vx-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.vx-search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; color: var(--muted); transition: border-color .12s, box-shadow .12s; }
.vx-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 15px var(--body); }
.vx-search input::placeholder { color: var(--muted); }
.vx-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; font: 700 14px var(--display); color: var(--text); transition: border-color .12s, background .12s; }
.vx-btn:hover, .vx-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.vx .vx-btn svg { width: 16px; height: 16px; }
.vx-icon { width: 42px; padding: 0; justify-content: center; color: var(--muted); }
.vx-icon:hover { color: var(--text); }
.vx-n { font: 800 11px/18px var(--body); font-style: normal; min-width: 18px; text-align: center; border-radius: 9px; background: var(--accent); color: var(--on-accent); }
.vx-n[hidden] { display: none; }
.vx-seg { display: inline-flex; height: 42px; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; }
.vx-seg button { width: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.vx-seg button:hover { color: var(--text); }
.vx-seg button.on { background: var(--accent-soft); color: var(--accent-text); }
.vx-pop { position: relative; }
.vx-pop[hidden] { display: none; }
.vx-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-hover); }
.vx-menu[hidden] { display: none; }
.vx-menu > button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 9px; font: 700 14px var(--display); color: var(--muted); }
.vx-menu > button:hover { background: var(--surface-2); color: var(--text); }
.vx-menu > button.on { color: var(--text); }
.vx-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.vx-gear { width: 300px; padding: 0; overflow: hidden; }
.vx-gear h4 { margin: 0; padding: 14px 16px; font: 800 14px var(--display); border-bottom: 1px solid var(--line); }
.vx-opt { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; }
.vx-opt:hover { background: var(--surface-2); }
.vx-oi { color: var(--muted); display: grid; }
.vx-ot { flex: 1; min-width: 0; display: grid; }
.vx-ot b { font: 700 14px var(--display); }
.vx-ot small { color: var(--muted); font-size: 12px; }
.vx-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vx-sw { position: relative; width: 40px; height: 22px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--line-2); flex: none; transition: background .15s, border-color .15s; }
.vx-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.vx-opt input:checked + .vx-sw { background: color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.vx-opt input:checked + .vx-sw::after { transform: translateX(18px); background: var(--accent-text); }
.vx-tabs { margin-bottom: 8px; align-items: center; }
.vx-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.vx-line { display: flex; border-bottom: 1px solid var(--line); margin: 6px 0 16px; padding-bottom: 8px; }

.vx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.vx-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .15s; content-visibility: auto; contain-intrinsic-size: 260px; }
a.vx-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.vx-img { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--orb, var(--accent)) 28%, transparent), transparent 70%); }
.vx-img img { width: 86%; height: 86%; object-fit: contain; transition: transform .2s; }
a.vx-card:hover .vx-img img { transform: scale(1.06); }
.vx-name { margin-top: 4px; font: 800 14px/1.15 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-var { font: 800 10px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.vx-mid { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vx-val { font: 800 24px/1.1 var(--display); letter-spacing: -.01em; }
.vx-val.none { color: var(--muted); }
.vx-dets { display: grid; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; }
.vx-dets div { display: flex; justify-content: space-between; gap: 8px; }
.vx-dets span { color: var(--muted); }
.vx-dets b { font-weight: 700; }
.vx-dem { font: 800 10px/1 var(--display); letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.vx-dem.d1 { background: color-mix(in srgb, #ef4444 20%, transparent); color: #ef4444; }
.vx-dem.d2 { background: color-mix(in srgb, #f59e0b 20%, transparent); color: #f59e0b; }
.vx-dem.d3 { background: color-mix(in srgb, #22c55e 20%, transparent); color: #22c55e; }
.vx-dem.d4 { background: color-mix(in srgb, #3b82f6 20%, transparent); color: #3b82f6; }
.vx-dem.d5 { background: color-mix(in srgb, #a855f7 20%, transparent); color: #a855f7; }
.vx-trend { font: 700 12px var(--display); color: var(--muted); }
.vx-trend.up { color: var(--good); } .vx-trend.down { color: var(--bad); } .vx-trend.warn { color: var(--warn); }

.vx-table td, .vx-table th { padding-left: 10px; padding-right: 10px; }
.vx-table th.r, .vx-table td.r { text-align: right; }
.vx-table td { padding-top: 8px; padding-bottom: 8px; }
.vx-who { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.vx-who img { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 9px; background: var(--surface-2); }
.vx-who b { display: block; font: 800 15px/1.2 var(--display); }
.vx-who small { color: var(--muted); font-size: 12px; font-weight: 700; }
.vx-who a:hover { color: var(--accent-text); }
.vx-tier { font: 800 12px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.vx-chg { font: 700 12px var(--display); }
.vx-rv { font: 800 18px var(--display); white-space: nowrap; }
.vx-rv.none { color: var(--muted); }
.vx-up { color: var(--muted); font-size: 12px; white-space: nowrap; }
.vx-trade { display: inline-block; padding: 5px 14px; border: 1px solid var(--line-2); border-radius: 9px; font: 700 13px var(--display); color: var(--muted); }
.vx-trade:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

.modal:has(> .dialog.vx-drawer) { place-items: stretch end; padding: 12px; }
.dialog.vx-drawer { width: min(440px, 100%); max-height: none; height: 100%; padding: 0; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
.vx-dhead { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; }
.vx-dhead h2 { margin: 0; font-size: 20px; }
.vx-x { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.vx-x:hover { color: var(--text); background: var(--surface-2); }
.vx-dbody { flex: 1; overflow-y: auto; padding: 0 22px; }
.vx-dbody section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.vx-dbody section:last-child { border-bottom: 0; }
.vx-dbody h5 { margin: 0 0 8px; font: 800 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vx-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.vx-dbody .vx-hint:last-child { margin: 10px 0 0; }
.vx-fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-fc { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; font: 700 14px var(--display); color: var(--muted); }
.vx-fc:hover { color: var(--text); border-color: var(--accent); }
.vx-fc.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--accent-text); }
.vx-bars { width: 20px !important; height: 14px !important; stroke: none !important; }
.vx-range { display: flex; align-items: center; gap: 10px; }
.vx-range .field { flex: 1; height: 44px; }
.vx-range span { color: var(--muted); font-weight: 700; }
.vx-dfoot { display: flex; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.vx-dfoot .btn { flex: 1; }
.vx-dfoot .btn:not(.alt) { flex: 2; }
@media (max-width: 640px) { .vx-btn span:not(#sortLabel) { display: none; } .vx-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Faint grid behind every page ---------- */
body { background-image: linear-gradient(color-mix(in srgb, var(--text) 4.5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 4.5%, transparent) 1px, transparent 1px); background-size: 44px 44px; background-position: -1px -1px; }

/* ---------- BGSI art banner, middle column only ---------- */
.pagehead.art-banner, .pv::before { --art: url('/bgsi/img/bgsi-art.png'); }
.pagehead.art-banner { position: relative; isolation: isolate; overflow: hidden; margin: 22px 0 16px; padding: 26px 26px 22px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.pagehead.art-banner::before { content: ""; position: absolute; inset: -14px; z-index: -2; background: var(--art) center 32% / cover; filter: blur(7px) saturate(.75) brightness(.5) hue-rotate(35deg); }
.pagehead.art-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 9, 30, .78), rgba(14, 9, 30, .3) 60%, rgba(14, 9, 30, .62)), linear-gradient(180deg, transparent 55%, var(--bg)); }
.pagehead.art-banner h1, .pagehead.art-banner p { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.pagehead.art-banner p { opacity: .8; }

/* ---------- Category buttons: dark, transparent purple ---------- */
.tabs { gap: 8px; }
.tab { padding: 5px 15px; font: 700 13px/1.3 var(--display); letter-spacing: .01em; color: color-mix(in srgb, var(--text) 62%, transparent); background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.tab:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tab.on { color: #fff; background: color-mix(in srgb, var(--accent) 24%, transparent); border-color: color-mix(in srgb, var(--accent) 80%, #fff 6%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 22%, transparent); }
:root[data-theme="light"] .tab.on { color: var(--accent-text); }
.tab .n { font: 600 12px var(--body); color: color-mix(in srgb, var(--text) 45%, transparent); padding: 0; }
.tab.on .n { color: color-mix(in srgb, #fff 70%, transparent); }
.tab .dot { width: 6px; height: 6px; }

/* ---------- More menu: compact list ---------- */
.more-menu { border-radius: 14px; padding: 6px; gap: 0; }
.more-menu a { padding: 9px 12px; gap: 12px; border-radius: 9px; }
.more-menu .mi { width: auto; height: auto; background: none; border: 0; border-radius: 0; color: color-mix(in srgb, var(--text) 55%, transparent); }
.more-menu a:hover .mi { background: none; border: 0; color: var(--accent-text); }
.more-menu b { font: 600 15px var(--display); color: color-mix(in srgb, var(--text) 80%, transparent); }
.more-menu a:hover b { color: var(--text); }

/* ---------- Demand levels ---------- */
.dtag.vlow { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }
.dtag.vhigh { background: color-mix(in srgb, #3b82f6 22%, var(--surface)); color: #60a5fa; border-color: color-mix(in srgb, #3b82f6 50%, transparent); }
.dtag.insane { background: color-mix(in srgb, #a855f7 22%, var(--surface)); color: #c084fc; border-color: color-mix(in srgb, #a855f7 50%, transparent); }
.vx-dem.dvl { background: #450a0a; color: #fca5a5; box-shadow: inset 0 0 0 1px #7f1d1d; }
.val b.dl-vlow { color: #b91c1c; } .val b.dl-vhigh { color: #60a5fa; } .val b.dl-insane { color: #c084fc; }

/* Values page card: image tile with a coloured glow, like the reference */
.vx-img { background: #0c0a14; border-radius: 14px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--orb, var(--accent)) 35%, transparent), 0 0 22px color-mix(in srgb, var(--orb, var(--accent)) 38%, transparent); margin: 4px 4px 6px; }
:root[data-theme="light"] .vx-img { background: var(--surface-2); }
.vx-card { padding: 8px 8px 12px; }
.vx-name, .vx-mid, .vx-val, .vx-dets, .vx-var { padding-inline: 4px; }
.vx-name { font-size: 13px; }

/* ---------- Chart look: thin line, hollow end dot, dashed guide ---------- */
.chart .line { stroke-width: 2.2; }
.chart .grid-line { stroke: color-mix(in srgb, var(--text) 8%, transparent); stroke-dasharray: none; }
.chart .cur-line { stroke: var(--accent-text); stroke-opacity: .55; stroke-dasharray: 4 4; }
.chart .end-dot { fill: var(--bg); stroke: var(--accent-text); stroke-width: 2; }
.chart-legend { display: flex; gap: 18px; margin-top: 8px; font: 600 12px var(--body); color: var(--muted); }
.chart-legend .lg { display: inline-block; width: 16px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--accent); }
.chart-legend .lg.est { background: repeating-linear-gradient(90deg, var(--sky) 0 5px, transparent 5px 8px); }

/* ---------- Pet page ---------- */
.pv { position: relative; isolation: isolate; padding-top: 6px; }
.pv::before { content: ""; position: absolute; left: 0; right: 0; top: -66px; height: 190px; z-index: -1; background: var(--art) center 30% / cover; filter: blur(6px) saturate(.7) brightness(.42) hue-rotate(35deg); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent); mask-image: linear-gradient(180deg, #000 20%, transparent); opacity: .85; }
.pv .crumbs { font-size: 12px; color: var(--muted); margin: 16px 0 12px; }
.pv .crumbs b { color: var(--text); }
.pv-navrow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.pv-nb, .pv-all { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 54px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.pv-nb.off { visibility: hidden; }
a.pv-nb:hover, .pv-all:hover { border-color: var(--accent); }
.pv-all { justify-content: center; font: 700 13px var(--display); color: color-mix(in srgb, var(--text) 80%, transparent); }
.pv-ni img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; display: block; }
.pv-nt { flex: 1; min-width: 0; display: grid; }
.pv-nt small { font: 700 10px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pv-nt b { font: 800 14px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-nv { font: 700 13px var(--display); color: color-mix(in srgb, var(--text) 80%, transparent); }
.pv-nb.next { flex-direction: row-reverse; }
.pv-nb.next .pv-nt { text-align: right; }

.pv-hero { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 28px; align-items: start; padding-bottom: 22px; }
.pv-art { padding: 14px; border-radius: 18px; background: #0c0a14; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 30%, transparent); position: relative; overflow: hidden; }
:root[data-theme="light"] .pv-art { background: var(--surface-2); }
.pv-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.pv-img { aspect-ratio: 1; display: grid; place-items: center; }
.pv-img img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c, #fff) 45%, transparent)); }
.pv-main { min-width: 0; }
.pv-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pv-kicker { display: flex; align-items: center; gap: 10px; font: 800 11px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.pv-st { color: var(--muted); font-weight: 700; }
.pv-st.up { color: var(--good); } .pv-st.down { color: var(--bad); }
.pv-vars { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-vbtn { padding: 5px 14px; border-radius: 999px; font: 700 13px var(--display); color: color-mix(in srgb, var(--text) 70%, transparent); background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); }
.pv-vbtn:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--text); }
.pv-vbtn.on { color: #fff; background: color-mix(in srgb, var(--accent) 24%, transparent); border-color: color-mix(in srgb, var(--accent) 80%, transparent); }
:root[data-theme="light"] .pv-vbtn.on { color: var(--accent-text); }
.pv-name { margin: 6px 0 4px; font: 800 28px/1.1 var(--display); }
.pv-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 6px 0 4px; }
.pv-value b { font: 800 clamp(34px, 5vw, 48px)/1 var(--display); letter-spacing: -.02em; }
.pv-chg { font: 800 14px var(--display); }
.pv-chg.up { color: var(--good); } .pv-chg.down { color: var(--bad); }
.pv-value small { color: var(--muted); font-size: 13px; }
.pv-note { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pv-actions .btn { padding: 9px 20px; font-size: 15px; }
.pv-stat { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 8px 14px; background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line); border-radius: 12px; }
.pv-stat img { grid-row: span 2; width: 26px; height: 26px; object-fit: contain; }
.pv-stat b { font: 800 16px/1 var(--display); }
.pv-stat span { font: 700 10px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.pv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pv-facts > div { display: grid; align-content: start; gap: 3px; padding: 14px 16px; border-left: 1px solid var(--line); }
.pv-facts > div:first-child { border-left: 0; padding-left: 0; }
.pv-facts small { font: 700 10px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pv-facts b { font: 800 20px/1.1 var(--display); }
.pv-facts span:not(.dtag) { font-size: 12px; color: var(--muted); }
.pv-facts .dtag { position: static; justify-self: start; font-size: 12px; padding: 4px 9px; border-radius: 6px; }

.pv-tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.pv-tabs a { font: 700 13px var(--display); color: color-mix(in srgb, var(--text) 65%, transparent); padding: 4px 0; border-bottom: 2px solid transparent; }
.pv-tabs a:hover { color: var(--text); border-color: var(--accent); }
.pv-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 34px; margin-bottom: 28px; }
.pv-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; font: 800 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pv-h::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 2; }
.pv-h small { order: 1; font: 600 12px var(--body); letter-spacing: 0; text-transform: none; }
.pv-block { margin-bottom: 30px; }
.pv-log { width: 100%; margin-top: 18px; font-size: 13px; }
.pv-log th { padding: 0 0 8px; font-size: 10px; }
.pv-log td { padding: 9px 0; }
.pv-log .r { text-align: right; }
.pv-own { display: grid; }
.pv-orow { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto 48px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-orow:hover b { color: var(--accent-text); }
.pv-orow .rk { color: var(--muted); font-size: 12px; text-align: center; }
.pv-orow img, .pv-orow .mav { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.pv-orow b { font: 700 14px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-orow .q { font-weight: 800; }
.pv-orow .sh { text-align: right; font-size: 12px; }
.pv-more { padding-top: 12px; font-size: 12px; color: var(--muted); }
.pv-more button { color: var(--accent-text); font-weight: 700; }
@media (max-width: 860px) {
  .pv-hero { grid-template-columns: 1fr; } .pv-art { max-width: 320px; }
  .pv-grid { grid-template-columns: 1fr; gap: 24px; }
  .pv-navrow { grid-template-columns: 1fr; } .pv-nb.off { display: none; }
  .pv-stats,   .pv-facts > div { border-left: 0; padding-left: 0; }
}

/* ---------- Cleaner top bar ---------- */
.dock { height: 58px; gap: 14px; }
.nav { gap: 2px; align-items: center; }
.nav a, .nav button { padding: 7px 12px; font: 600 14px var(--display); gap: 7px; border-radius: 10px; color: color-mix(in srgb, var(--text) 58%, transparent); }
.nav svg { width: 16px; height: 16px; }
.nav a:hover:not(.on), .nav button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav a.on { color: var(--text); background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: none; }
.nav .more-btn[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav .more-btn svg:last-child { width: 11px; height: 11px; }
.nav-sep { width: 1px; height: 18px; margin: 0 6px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.more-menu { background: color-mix(in srgb, var(--surface) 96%, #000); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: 12px; padding: 5px; }
.more-menu a { padding: 8px 11px; gap: 11px; border-radius: 8px; }
.more-menu .mi svg { width: 17px; height: 17px; stroke-width: 1.7; }
.more-menu b { font: 600 14px var(--display); }
.more-menu a:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }

/* ---------- Grid / list switch: no white outline ---------- */
.vx-seg { border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); background: color-mix(in srgb, var(--text) 4%, transparent); }
.vx-seg button, .vx-btn, .vx-search input { outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent; }
.vx-seg button { border: 0; background: transparent; }
.vx-seg button.on { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--accent-text); }
.vx-seg button:focus-visible, .vx-btn:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- XL Eggs page ---------- */
.xe-sec { margin-bottom: 34px; }
.xe-date { margin: -4px 0 14px; font: 600 13px var(--body); color: var(--muted); }
.xe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.xe-card, .xe-day { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.xe-egghead { display: flex; align-items: center; gap: 12px; }
a.xe-egghead:hover b { color: var(--accent-text); }
.xe-ei { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.xe-ei img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.xe-egghead b { font: 800 18px/1.15 var(--display); }
.xe-egghead.sm .xe-ei { width: 26px; height: 26px; border-radius: 7px; background: none; }
.xe-egghead.sm .xe-ei img { width: 24px; height: 24px; }
.xe-egghead.sm b { font: 800 14px var(--display); }
.xe-pets { display: grid; gap: 2px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.xe-egg .xe-pets { margin-top: 6px; padding: 0 0 0 4px; border: 0; }
.xe-pet { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 9px; min-width: 0; }
.xe-pet:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.xe-pi { position: relative; width: 32px; height: 32px; flex: none; }
.xe-pi img { width: 32px; height: 32px; object-fit: contain; }
.xe-pi i { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.xe-pet b { flex: 1; min-width: 0; font: 700 14px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xe-xl { display: inline-flex; align-items: center; gap: 4px; font: 800 11px var(--display); color: var(--accent-text); }
.xe-up { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.xe-dh { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 800 13px var(--display); }
.xe-egg + .xe-egg { margin-top: 12px; }

/* Trade calculator button: small, top right of the banner */
.pagehead.art-banner { flex-wrap: nowrap; align-items: flex-start; }
.pagehead.art-banner .vx-calc { flex: none; align-self: flex-start; padding: 5px 14px; font: 700 13px var(--display); line-height: 1.3; border-radius: 10px; color: #fff; background: rgba(12, 9, 24, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.pagehead.art-banner .vx-calc:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 28%, rgba(12, 9, 24, .55)); }

/* ---------- Pet page: smaller buttons, tidier Existing copies ---------- */
.pv-vars { gap: 6px; }
.pv-vbtn { padding: 3px 11px; font: 700 12px/1.4 var(--display); }
.pv-actions { gap: 8px; margin-top: 2px; }
.pv-actions .btn { padding: 5px 14px; font: 700 13px/1.4 var(--display); border-radius: 10px; }
.pv .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pv .fact { padding: 9px 13px; border-radius: 12px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.pv .fact small { font-size: 10px; letter-spacing: .1em; }
.pv .fact small[style] { font-size: 11px !important; margin-top: 1px; }
.pv .fact b { font: 800 18px/1.2 var(--display); }
.pv .exist-break { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.pv .eb { padding: 8px 12px 10px; border-radius: 10px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.pv .eb span { font-size: 10px; letter-spacing: .1em; }
.pv .eb b { font: 800 15px var(--display); }
.pv .eb i { height: 3px; }
.pv-block > .pills { margin-top: 10px; }

/* ---------- Pet page: stats under the pet, with a level picker ---------- */
.pv-left { display: grid; gap: 12px; min-width: 0; align-content: start; }
.pv-stats { display: grid; gap: 10px; padding: 14px; background: color-mix(in srgb, var(--text) 3.5%, transparent); border: 1px solid var(--line); border-radius: 14px; }
.pv-lvl { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pv-lvl > span { font: 800 10px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pv-step { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border: 1px solid var(--line-2); border-radius: 9px; }
.pv-step b { min-width: 62px; text-align: center; font: 800 13px var(--display); }
.pv-step button { width: 24px; height: 24px; border-radius: 7px; font: 800 15px/1 var(--display); color: var(--muted); }
.pv-step button:hover { background: var(--accent-soft); color: var(--accent-text); }
.pv-range { width: 100%; accent-color: var(--accent); }
.pv-lvq { display: flex; gap: 5px; flex-wrap: wrap; }
.pv-lvq button { padding: 2px 9px; border-radius: 999px; font: 700 11px var(--display); color: var(--muted); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.pv-lvq button:hover { color: var(--text); border-color: var(--accent); }
.pv-lvq button.on { color: #fff; background: color-mix(in srgb, var(--accent) 26%, transparent); border-color: var(--accent); }
.pv-sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.pv-stats .pv-stat { padding: 8px 10px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.pv-sn { margin: 0; font-size: 11px; color: var(--muted); }

/* ---------- Value by variant: simple bars ---------- */
.vb { display: grid; gap: 8px; }
.vb-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(110px, auto); gap: 14px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--text) 3%, transparent); transition: border-color .12s; }
.vb-row:hover, .vb-row.on { border-color: var(--accent); }
.vb-row.none { opacity: .55; }
.vb-l { font: 700 13px var(--display); }
.vb-row.on .vb-l { color: var(--accent-text); }
.vb-t { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.vb-t i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), var(--accent)); }
.vb-v { text-align: right; font: 800 15px var(--display); }
.vb-v small { margin-left: 8px; font: 700 11px var(--body); color: var(--muted); }
@media (max-width: 560px) { .vb-row { grid-template-columns: 84px minmax(0, 1fr); } .vb-v { grid-column: 1 / -1; text-align: left; } }

/* Trade calculator button: pinned small in the top-right corner of the banner */
.pagehead.art-banner .vx-calc { position: absolute; top: 14px; right: 16px; padding: 4px 12px; font-size: 12px; border-radius: 9px; }
.pagehead.art-banner { padding-right: 150px; }

/* ================= Final sizing pass (new class names, no .btn inheritance) ================= */
.vx-tc { position: absolute; top: 12px; right: 14px; display: inline-block; padding: 3px 10px; font: 600 12px/1.4 var(--display); color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); border-radius: 7px; backdrop-filter: blur(6px); white-space: nowrap; transition: background .12s, border-color .12s; }
.vx-tc:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.pagehead.art-banner { padding-right: 140px; }

.pv-chip { padding: 2px 10px; font: 600 11.5px/1.5 var(--display); color: color-mix(in srgb, var(--text) 65%, transparent); background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: 7px; }
.pv-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.pv-chip.on { color: #fff; background: color-mix(in srgb, var(--accent) 26%, transparent); border-color: color-mix(in srgb, var(--accent) 75%, transparent); }
:root[data-theme="light"] .pv-chip.on { color: var(--accent-text); }
.pv-vars { gap: 5px; }
.pv-actions { gap: 6px; }
.pv-act { display: inline-block; padding: 3px 11px; font: 600 12px/1.5 var(--display); color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-radius: 7px; transition: background .12s, border-color .12s; }
.pv-act:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pv-act.main { background: color-mix(in srgb, var(--accent) 28%, transparent); border-color: color-mix(in srgb, var(--accent) 70%, transparent); color: #fff; }
:root[data-theme="light"] .pv-act.main { color: var(--accent-text); }

/* Stats panel: fixed layout, so changing the level never resizes anything */
.pv-stats { gap: 8px; padding: 12px; }
.pv-lvl > span { font-size: 10px; }
.pv-step { padding: 1px; border-radius: 7px; }
.pv-step b { width: 68px; min-width: 0; font: 700 12px var(--display); font-variant-numeric: tabular-nums; }
.pv-step button { width: 22px; height: 22px; font-size: 14px; border-radius: 6px; }
.pv-sg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pv-stats .pv-stat { height: 52px; padding: 6px 8px; grid-template-columns: 20px minmax(0, 1fr); column-gap: 6px; border-radius: 9px; align-content: center; overflow: hidden; }
.pv-stats .pv-stat img { width: 20px; height: 20px; }
.pv-stats .pv-stat b { font: 800 13px/1.1 var(--display); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-stats .pv-stat span { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-sn { height: 14px; line-height: 14px; font-size: 10.5px; }

/* Value by variant: slimmer rows */
.vb { gap: 5px; }
.vb-row { grid-template-columns: 92px minmax(0, 1fr) minmax(96px, auto); gap: 12px; padding: 5px 10px; border-radius: 9px; }
.vb-l { font: 600 12px var(--display); }
.vb-t { height: 5px; }
.vb-v { font: 700 13px var(--display); }
.vb-v small { font-size: 10.5px; }

/* ---------- Level picker: clean header + slim slider ---------- */
.pv-lvl { align-items: baseline; }
.pv-lvl b { font: 700 12px var(--display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.pv-slide { display: grid; grid-template-columns: 18px minmax(0, 1fr) 18px; align-items: center; gap: 8px; margin-top: 2px; }
.pv-slide button { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font: 700 13px/1 var(--display); color: var(--muted); }
.pv-slide button:hover { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.pv-range { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 0; background: transparent; cursor: pointer; --p: 0%; outline: none; }
.pv-range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p), color-mix(in srgb, var(--text) 14%, transparent) var(--p)); }
.pv-range::-moz-range-track { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.pv-range::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--accent); }
.pv-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); transition: box-shadow .12s; }
.pv-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.pv-range:hover::-webkit-slider-thumb, .pv-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 45%, transparent); }
.pv-ends { display: flex; justify-content: space-between; margin: -4px 26px 0; font: 600 9.5px var(--body); color: var(--muted); }

/* Level panel: normal stacked layout */
.pv-stats { display: grid; align-items: stretch; margin: 0; }
.pv-slide { display: grid; }

/* ================= Pet page: our own look (stage card, tile facts, segmented tabs, card sections) ================= */
.pv::before { display: none; }
.pv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 14px; }
.pv-bar .crumbs { margin: 0; }
.pv-pn { display: flex; gap: 6px; }
.pv-pn .pv-nb { min-height: 0; padding: 4px 10px 4px 5px; gap: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.pv-pn .pv-nb.next { padding: 4px 5px 4px 10px; }
.pv-pn .pv-ni img { width: 24px; height: 24px; border-radius: 50%; }
.pv-pn .pv-nt small { font-size: 9px; letter-spacing: .08em; }
.pv-pn .pv-nt b { font-size: 12px; max-width: 130px; }
.pv-pn .pv-nv { font-size: 11px; color: var(--muted); }

/* the stage: one rounded card with a soft glow in the pet's rarity colour */
.pv-hero { position: relative; isolation: isolate; overflow: hidden; padding: 22px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 55%), radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), color-mix(in srgb, var(--surface) 90%, #000); gap: 26px; margin-bottom: 14px; }
.pv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.2px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(120deg, #000, transparent 65%); mask-image: linear-gradient(120deg, #000, transparent 65%); }
.pv-art { padding: 10px; background: color-mix(in srgb, var(--c) 10%, #0c0a14); border: 0; border-radius: 22px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 18px 50px color-mix(in srgb, var(--c) 28%, transparent); }
.pv-art::after { display: none; }
.pv-img img { width: 96%; height: 96%; }
.pv-stats { background: color-mix(in srgb, #000 32%, transparent); border-color: color-mix(in srgb, var(--text) 10%, transparent); border-radius: 18px; }
.pv-top { flex-direction: column; align-items: flex-start; gap: 8px; }
.pv-kicker { order: 0; }
.pv-name { order: 1; margin: 0; font: 800 clamp(30px, 4.4vw, 44px)/1.05 var(--display); letter-spacing: -.02em; }
.pv-vars { order: 2; padding: 3px; gap: 2px; background: color-mix(in srgb, #000 30%, transparent); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: 10px; }
.pv-chip { border: 0; background: transparent; border-radius: 7px; padding: 3px 11px; }
.pv-chip.on { background: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent); }
.pv-value { margin: 14px 0 2px; padding: 12px 16px; display: inline-flex; width: fit-content; max-width: 100%; border-radius: 16px; background: color-mix(in srgb, #000 30%, transparent); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.pv-value b { background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pv-note { margin-top: 10px; }

/* facts: separate tiles with a coloured top edge */
.pv-facts { border: 0; gap: 10px; margin-bottom: 18px; }
.pv-facts > div, .pv-facts > div:first-child { border: 1px solid var(--line); border-top: 2px solid color-mix(in srgb, var(--c, var(--accent)) 70%, var(--accent)); border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.pv-facts b { font-size: 18px; }

/* tabs: one segmented control */
.pv-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.pv-tabs a { padding: 5px 14px; border: 0; border-radius: 9px; font: 600 12.5px var(--display); }
.pv-tabs a:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }

/* sections: soft cards with a dot heading */
.pv-col, .pv-block { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.pv-grid { gap: 16px; }
.pv-h { text-transform: none; letter-spacing: 0; font: 800 15px var(--display); color: var(--text); gap: 10px; }
.pv-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; align-self: center; }
.pv-h::after { display: none; }
.pv-h small { order: 2; margin-left: auto; font-size: 11.5px; }
.pv-block { margin-bottom: 16px; }
@media (max-width: 860px) { .pv-hero { padding: 16px; } .pv-pn .pv-nt b { max-width: 90px; } }

/* Discord button: transparent, purple-white, next to the theme toggle */
.discord-btn { background: transparent; border-color: transparent; color: color-mix(in srgb, var(--accent-text) 70%, #fff); opacity: .85; transition: opacity .12s, color .12s, background .12s; }
.discord-btn svg { width: 21px; height: 21px; }
.discord-btn:hover { opacity: 1; color: #fff; background: color-mix(in srgb, var(--accent) 22%, transparent); }
:root[data-theme="light"] .discord-btn { color: var(--accent-text); }

/* ================= Pet page: clean pass (flat cards, same look as the rest of the site) ================= */
.pv-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 16px); box-shadow: var(--shadow); padding: 22px; gap: 26px; overflow: visible; }
.pv-hero::after { display: none; }
.pv-art { background: var(--surface-2); border: 1px solid var(--line); border-bottom: 4px solid var(--c); border-radius: 14px; box-shadow: none; padding: 12px; }
.pv-img img { filter: none; width: 90%; height: 90%; }
.pv-stats { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.pv-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.pv-vars { order: 0; margin-left: auto; padding: 0; background: none; border: 0; gap: 6px; }
.pv-tog { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px; font: 700 12.5px/1.2 var(--display); color: var(--muted); background: transparent; transition: border-color .12s, background .12s, color .12s; }
.pv-tog svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pv-tog:hover { color: var(--text); border-color: var(--accent); }
.pv-tog.on { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
.pv-name { margin: 8px 0 0; font: 800 30px/1.1 var(--display); letter-spacing: 0; }
.pv-value { margin: 6px 0 2px; padding: 0; background: none; border: 0; border-radius: 0; }
.pv-value b { background: none; color: var(--text); -webkit-text-fill-color: currentColor; font-size: clamp(34px, 5vw, 46px); }
.pv-facts > div, .pv-facts > div:first-child { background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 12px; }
.pv-tabs { display: flex; gap: 4px 24px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; margin-bottom: 18px; }
.pv-tabs a { padding: 8px 0; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); }
.pv-tabs a:hover { background: none; color: var(--text); border-bottom-color: var(--accent); }
.pv-col, .pv-block { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pv-h { font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pv-h::before { display: none; }
.pv-h small { margin-left: auto; }
.pv-pn .pv-nb { background: var(--surface); }

/* facts live inside the hero, under the buttons */
.pv-main .pv-facts { margin: 22px 0 0; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pv-main .pv-facts > div, .pv-main .pv-facts > div:first-child { padding: 10px 14px; background: var(--surface-2); }
.pv-slide button { background: transparent; border: 1px solid var(--line-2); width: 18px; height: 18px; padding: 0; }
.pv-slide button:hover { border-color: var(--accent); }
.pv-value b.none { font-size: 22px; color: var(--muted); -webkit-text-fill-color: currentColor; }

/* Who has one: footer with a proper Show all button */
.pv-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; font-size: 12px; color: var(--muted); }
.pv-showall { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 700 12.5px var(--display); color: var(--text); background: transparent; transition: border-color .12s, background .12s, color .12s; }
.pv-showall:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.pv-showall svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.pv-showall.open svg { transform: rotate(180deg); }

/* Discord logo: softer, mostly purple */
.discord-btn { color: color-mix(in srgb, var(--accent) 80%, var(--muted)); opacity: .7; }
.discord-btn:hover { opacity: 1; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
:root[data-theme="light"] .discord-btn { color: var(--accent); }

/* Discord logo: thin blue outline, not filled */
.discord-btn { color: #6d7df0; opacity: .85; }
.discord-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.discord-btn:hover { opacity: 1; color: #8b97ff; background: rgba(88, 101, 242, .14); }
:root[data-theme="light"] .discord-btn { color: #5865f2; }

/* Discord logo: the real Discord mark, solid but soft blue */
.discord-btn { color: #5865f2; opacity: .8; }
.discord-btn svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.discord-btn:hover { opacity: 1; color: #7983f5; background: rgba(88, 101, 242, .14); }
:root[data-theme="light"] .discord-btn { color: #5865f2; }

/* Discord button, same as demand.gg's: 36px ghost square, muted grey icon, brighter on hover */
.icon-btn.discord-btn { width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); opacity: 1; }
.icon-btn.discord-btn svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.icon-btn.discord-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
:root[data-theme="light"] .icon-btn.discord-btn { color: var(--muted); }

/* ================= Trading: clean pass (flat, fixed 4-wide tiles so a full 18-pet side stays tall, never wide) ================= */
.ads { display: flex; flex-direction: column; gap: 14px; }
.ad { grid-template-columns: minmax(0, 1fr) 250px; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; background: var(--surface); }
.ad-trade { padding: 16px 18px; gap: 12px; }
.ad-head { gap: 8px; font-size: 12.5px; color: var(--muted); }
.fair-chip { font: 700 11px var(--display); letter-spacing: .03em; padding: 2px 9px; border-radius: 6px; text-transform: none; }
.trade-cols { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 8px; }
.tcol { background: transparent; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.tcol-top { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); align-items: center; }
.tcol-top b { display: inline-flex; align-items: center; gap: 7px; font: 800 11px var(--display); letter-spacing: .12em; color: var(--muted); }
.tcol-top b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tcol-top .num { font: 800 14px var(--display); }
.vtag { font-size: 11px; }
.tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tslot { padding: 6px 3px 5px; gap: 1px; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 2px solid var(--c, var(--line-2)); border-radius: 9px; }
.tslot:hover { transform: none; border-color: var(--accent); }
.tslot .slot-img { width: 100%; max-width: 48px; }
.tslot .slot-name { font: 700 10.5px/1.15 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tslot .slot-val { font-size: 10.5px; color: var(--muted); }
.tslot .qty { top: 3px; right: 3px; font-size: 10px; padding: 0 4px; }
.tslot .tfoot { min-height: 16px; margin-top: 2px; }
.tslot .tgs .tgi { height: 15px; max-width: 32px; }
.tslot .tfoot .dtag { font-size: 8px; padding: 2px 5px; }
.tslot .vpill { font-size: 8.5px; padding: 0 5px; }
.swap { font-size: 16px; opacity: .6; }
.t-empty { padding: 18px 8px; border: 1px dashed var(--line-2); font-size: 13px; }
.ad-note { padding: 8px 12px; border-left: 2px solid var(--line-2); font-size: 13px; color: var(--muted); }
.ad-profile { padding: 16px; gap: 10px; background: color-mix(in srgb, var(--text) 2.5%, transparent); border-left: 1px solid var(--line); }
.ad-profile .pid img { width: 38px; height: 38px; }
.ad-profile .pstats > div { padding: 6px 9px; border-radius: 8px; }
.pbtns .btn { padding: 6px 10px; font-size: 13px; border-radius: 9px; }

/* composer: 3 x 6 slots per side, tidy */
.composer-sides { gap: 12px; }
.comp-side { border: 1px solid var(--line); border-top: 1px solid var(--line); background: transparent; border-radius: 12px; padding: 10px; }
.comp-side h4 { font: 800 11px var(--display); letter-spacing: .12em; margin-bottom: 8px; }
.comp-side .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.comp-side .slot { aspect-ratio: auto; min-height: 78px; border-radius: 9px; border-bottom-width: 2px; }
.comp-side .slot.empty { min-height: 54px; }
@media (max-width: 900px) { .ad { grid-template-columns: 1fr; } .ad-profile { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 620px) { .trade-cols { grid-template-columns: 1fr; } .swap { transform: rotate(90deg); } .tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ================= ValuzAI ================= */
:root { --pet-rarity-gradient-infinity: linear-gradient(100deg, #5d00ff 0%, #ff0004 50%, #5d00ff 100%); }
.ai { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; height: calc(100vh - 118px); min-height: 520px; margin-top: 18px; }
.ai svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ai-new { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); font: 700 13.5px var(--display); transition: background .12s; }
.ai-new:hover { background: color-mix(in srgb, var(--accent) 32%, transparent); }
.ai-new svg { width: 16px; height: 16px; }
.ai-list { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.ai-item { display: flex; align-items: center; border-radius: 9px; }
.ai-item:hover, .ai-item.on { background: color-mix(in srgb, var(--text) 7%, transparent); }
.ai-item.on { box-shadow: inset 2px 0 0 var(--accent); }
.ai-open { flex: 1; min-width: 0; padding: 8px 10px; text-align: left; font: 600 13px var(--display); color: color-mix(in srgb, var(--text) 80%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-del { width: 26px; height: 26px; margin-right: 4px; border-radius: 7px; color: var(--muted); font-size: 16px; opacity: 0; transition: opacity .12s; }
.ai-item:hover .ai-del { opacity: 1; }
.ai-del:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.ai-none { margin: 8px 6px; font-size: 12.5px; color: var(--muted); }

.ai-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ai-head b { display: block; font: 800 16px var(--display); }
.ai-head small { color: var(--muted); font-size: 12px; }
.ai-menu { display: none; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); font-size: 18px; }
.ai-logo { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.ai-logo svg { width: 18px; height: 18px; }
.ai-logo.big { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px; }
.ai-logo.big svg { width: 28px; height: 28px; }
.ai-scroll { flex: 1; overflow-y: auto; padding: 20px 18px; scroll-behavior: smooth; }
.ai-col { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.ai-empty { text-align: center; padding: 6vh 0 0; }
.ai-empty h2 { font: 800 24px var(--display); margin-bottom: 6px; }
.ai-sug { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.ai-sug button { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 13px var(--display); color: color-mix(in srgb, var(--text) 75%, transparent); transition: border-color .12s, background .12s; }
.ai-sug button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.ai-warn { margin-bottom: 14px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); font-size: 13px; font-weight: 700; }

.ai-msg { display: flex; gap: 12px; min-width: 0; }
.ai-msg.me { justify-content: flex-end; }
.ai-msg.me .ai-b { max-width: 82%; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--accent) 24%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ai-av { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
.ai-av svg { width: 16px; height: 16px; }
.ai-body { flex: 1; min-width: 0; }
.ai-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; font: 600 12.5px var(--body); color: var(--muted); }
.ai-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: aipulse 1s ease-in-out infinite; }
.ai-status[hidden] { display: none; }
@keyframes aipulse { 50% { opacity: .25; transform: scale(.7); } }
.ai-md { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.ai-md p + p, .ai-md p + ul, .ai-md ul + p, .ai-md p + ol, .ai-md ol + p { margin-top: 10px; }
.ai-md ul, .ai-md ol { padding-left: 20px; display: grid; gap: 3px; }
.ai-md ul { list-style: disc; } .ai-md ol { list-style: decimal; }
.ai-md code { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--text) 9%, transparent); font-size: 13px; }
.ai-md a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.inf { background: var(--pet-rarity-gradient-infinity); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.ai-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai-cards:empty { display: none; }
.ai-card { display: flex; align-items: center; gap: 10px; width: 250px; max-width: 100%; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: border-color .12s; }
.ai-card:hover { border-color: var(--accent); }
.ai-ci img { width: 42px; height: 42px; object-fit: contain; border-radius: 9px; background: color-mix(in srgb, var(--text) 5%, transparent); display: block; }
.ai-ci img.round { border-radius: 50%; object-fit: cover; }
.ai-cb { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ai-cb b { font: 800 13px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-cb i { font: 700 10px var(--display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.ai-cm { display: flex; align-items: center; gap: 6px; }
.ai-cm em { font: 600 10.5px var(--body); font-style: normal; color: var(--muted); }
.ai-cv { font: 800 15px var(--display); }
.ai-tag { padding: 1px 8px; border-radius: 6px; font: 800 9.5px/1.5 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.ai-tag.infinity { color: #fff; border: 0; background: var(--pet-rarity-gradient-infinity); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

.ai-composer { display: flex; align-items: flex-end; gap: 10px; max-width: 760px; width: calc(100% - 36px); margin: 0 auto; padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface-2); transition: border-color .12s, box-shadow .12s; }
.ai-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-composer textarea { flex: 1; min-width: 0; max-height: 160px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 14.5px/1.5 var(--body); padding: 7px 0; }
.ai-composer textarea::placeholder { color: var(--muted); }
.ai-send { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--on-accent); transition: transform .1s, background .12s; }
.ai-send:hover { background: var(--accent-d); }
.ai-send:active { transform: scale(.94); }
.ai-send svg { width: 18px; height: 18px; }
.ai-send.stop svg { fill: currentColor; }
.ai-foot { margin: 8px 0 12px; text-align: center; font-size: 11.5px; color: var(--muted); }
.ai-gate { padding-top: 12vh; }
@media (max-width: 820px) {
  .ai { grid-template-columns: 1fr; height: calc(100vh - 100px); position: relative; }
  .ai-side { position: absolute; z-index: 5; inset: 0 auto 0 0; width: 270px; transform: translateX(-110%); transition: transform .2s; box-shadow: var(--shadow-hover); }
  .ai-side.open { transform: none; }
  .ai-menu { display: grid; place-items: center; }
  .ai-head small { display: none; }
}
.ai-open, .ai-del, .ai-menu, .ai-sug button { background: transparent; border-color: transparent; }
.ai-sug button { border: 1px solid var(--line-2); }
.ai-open { border: 0; }

/* ValuzAI robot avatar */
.ai-logo, .ai-av { background: none; border: 0; padding: 0; overflow: hidden; }
.ai-logo img, .ai-av img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.ai-logo { border-radius: 11px; box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 35%, transparent); }
.ai-logo.big { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 40%, transparent); }
.ai-av { width: 32px; height: 32px; border-radius: 10px; }

/* Pet description line under the facts */
.pv-desc { margin: 16px 2px 0; font-size: 14.5px; line-height: 1.6; color: color-mix(in srgb, var(--text) 82%, transparent); }
.pv-desc .inf { font-weight: 800; letter-spacing: .02em; }
.pv-tier.inf { font-weight: 800; }

/* ValuzAI header: model name + version */
.ai-ver { margin-left: 6px; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); font: 700 10.5px var(--display); letter-spacing: .02em; color: var(--accent-text); vertical-align: 2px; }
.ai-ver[hidden] { display: none; }

/* ValuzAI sidebar: roomy, small chat names, never wider than the panel */
.ai-side { gap: 0; padding: 14px 10px 10px; overflow: hidden; min-width: 0; }
.ai-new { margin: 0 4px 18px; padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.ai-list { gap: 1px; padding: 0 2px 4px; min-width: 0; scrollbar-width: thin; }
.ai-grp { padding: 12px 10px 5px; font: 800 10px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ai-grp:first-child { padding-top: 0; }
.ai-item { min-width: 0; border-radius: 8px; }
.ai-open { padding: 6px 8px; font: 600 12.5px/1.3 var(--display); max-width: 100%; }
.ai-del { width: 22px; height: 22px; margin-right: 2px; font-size: 14px; flex: none; }
.ai-none { margin: 6px 10px; font-size: 12px; line-height: 1.5; }

/* ValuzAI: no scrollbars/sliders, chat menu (pin / rename / delete) */
.ai-scroll, .ai-list { scrollbar-width: none; overflow-x: hidden; }
.ai-scroll::-webkit-scrollbar, .ai-list::-webkit-scrollbar { display: none; }
.ai-col, .ai-md, .ai-md * { max-width: 100%; }
.ai-dots { width: 22px; height: 22px; margin-right: 2px; flex: none; border-radius: 6px; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; opacity: 0; transition: opacity .12s; }
.ai-item:hover .ai-dots, .ai-item.on .ai-dots { opacity: 1; }
.ai-dots:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.ai-rename { flex: 1; min-width: 0; margin: 2px 4px; padding: 4px 8px; border: 1px solid var(--accent); border-radius: 7px; background: var(--surface-2); color: var(--text); font: 600 12.5px var(--display); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-ctx { position: fixed; z-index: 90; min-width: 168px; padding: 5px; border: 1px solid var(--line-2); border-radius: 12px; background: color-mix(in srgb, var(--surface) 96%, #000); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); animation: aipop .12s ease; }
@keyframes aipop { from { opacity: 0; transform: scale(.96); } }
.ai-ctx button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; background: transparent; text-align: left; font: 600 13px var(--display); color: color-mix(in srgb, var(--text) 85%, transparent); }
.ai-ctx button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.ai-ctx button.danger { color: var(--bad); }
.ai-ctx button.danger:hover { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.ai-ctx svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.ai-ctx button, .ai-dots { border: 0; outline: 0; box-shadow: none; }

/* ================= Pet pickers (trading + calculator): fixed header, scrolling grid ================= */
.dialog.picker { display: flex; flex-direction: column; width: min(880px, 100%); height: min(82vh, 740px); max-height: none; padding: 20px 20px 0; overflow: hidden; border-radius: 18px; }
.dialog.picker .dialog-head { margin-bottom: 10px; }
.dialog.picker .dialog-head h2 { font-size: 20px; }
.dialog.picker .dialog-head p { margin: 4px 0 0; font-size: 13px; max-width: 62ch; }
.dialog.picker .controls { gap: 8px; margin-bottom: 8px; }
.dialog.picker .controls .field { height: 40px; border-radius: 10px; }
.dialog.picker .tabs { margin-bottom: 6px !important; }
.dialog.picker .picker-grid { flex: 1; min-height: 0; overflow-y: auto; margin: 6px -20px 0; padding: 12px 20px 20px; border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; align-content: start; scrollbar-width: thin; }
.dialog.picker .pick { min-height: 108px; justify-content: flex-start; gap: 5px; padding: 10px 6px 8px; border-radius: 11px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.dialog.picker .pick:hover { transform: none; background: var(--accent-soft); border-color: var(--accent); }
.dialog.picker .pick img { width: 52px; height: 52px; }
.dialog.picker .pick span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 12px/1.2 var(--display); }
.dialog.picker .pick small { font-size: 11px; font-weight: 700; color: var(--muted); }
.dialog.picker .tab .tgi { height: 14px; margin-right: 5px; }

/* Values page: Secret / Infinity / Celestial / XL tags on the right of the card, like in trades */
.vx-rt { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.vx-tg { display: inline-flex; align-items: center; gap: 3px; }
.vx-tg .tgi { height: 20px; max-width: 42px; }
.vx-tg .ctag { padding: 3px 7px; font-size: 9px; }
.vx-tg .tgi { height: 26px; max-width: 64px; width: auto; }
.vx-tg .ctag { font-size: 9.5px; }

/* ================= Rarity tags: on top of the pet picture; Celestial + Void gradient text ================= */
.vx-img { position: relative; }
.vx-imgtag { position: absolute; bottom: 7px; right: 7px; z-index: 2; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 4px; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55)); }
.vx-imgtag .tgi { height: 38px; max-width: 100px; width: auto; }
.vx-imgtag .tgi[alt="Secret"] { height: 46px; max-width: 120px; }   /* Secret 1.2x bigger */
.vx-imgtag:empty { display: none; }

.ctag, .vtag { display: inline-block; padding: 4px 9px; border-radius: 999px; font: 800 10px/1 var(--display); letter-spacing: .08em; background: rgba(8, 6, 16, .72); backdrop-filter: blur(4px); }
.ctag { border: 1px solid rgba(160, 200, 255, .45); }
.ctag { color: transparent; background-image: linear-gradient(90deg, #4df3ff 0%, #8fb4ff 45%, #e18bff 100%), linear-gradient(rgba(8, 6, 16, .72), rgba(8, 6, 16, .72)); -webkit-background-clip: text, padding-box; background-clip: text, padding-box; }
.vtag { color: transparent; border: 1px solid rgba(150, 90, 255, .55); background-image: linear-gradient(90deg, #8a3dff 0%, #3a1280 45%, #0b0516 100%), linear-gradient(rgba(14, 8, 26, .85), rgba(14, 8, 26, .85)); -webkit-background-clip: text, padding-box; background-clip: text, padding-box; -webkit-text-stroke: .5px rgba(176, 130, 255, .55); }
.vx-tg .ctag, .vx-tg .vtag { font-size: 9.5px; }

/* Hoarded / Manipulated / O/C flags on Values cards and rows */
.badge.manip { background: color-mix(in srgb, var(--bad) 18%, var(--surface)); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); }
.pv-st.manip { color: var(--bad); }
.vx-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.vx-flags:empty { display: none; }
.vx-flags .badge { font-size: 9px; padding: 1px 7px; }

/* My Hatches */
.hatch-scan{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:14px 18px}
.hatch-scan .bar{flex:1;height:8px;border-radius:99px;background:var(--line,rgba(127,127,127,.2));overflow:hidden}
.hatch-scan .bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--accent),var(--sky,var(--accent)));transition:width .4s ease}
.hatch-scan span{font-weight:700;font-size:13px;white-space:nowrap}
.hatch-tile .when{font-size:12px;font-weight:700;color:var(--muted);text-align:center;margin-top:2px}
.hatch-tile .when b{color:var(--text)}
.hatch-tile .kept{font-size:11px;font-weight:800;text-align:center;margin-top:4px;color:var(--good)}
.hatch-tile .kept.traded{color:var(--muted)}

/* Owner credit in the footer */
.foot-owner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-owner .fo-label { font: 800 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot-owner .fo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 700 12px/1.4 var(--body); text-decoration: none; }
.foot-owner a.fo-chip:hover { border-color: var(--accent); }
.foot-owner .fo-chip svg { width: 14px; height: 14px; color: #5865f2; }
.foot-owner .fo-av { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: inline-block; }
.foot-owner .fo-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Home page ---------- */
.hm-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 44px 0 28px; }
.hm-copy h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.05; }
.hm-copy p { font-size: 17px; max-width: 50ch; margin: 16px 0 22px; color: var(--muted); }
.hm-search { position: relative; max-width: 480px; margin-bottom: 16px; }
.hm-search > svg { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.hm-search input { width: 100%; height: 50px; padding: 0 16px 0 46px; border-radius: 12px; border: 1px solid var(--line-2, var(--line)); background: var(--surface); color: var(--text); font: 700 15px var(--body); outline: none; }
.hm-search input:focus { border-color: var(--accent); }
.hm-results { position: absolute; z-index: 30; left: 0; right: 0; top: 56px; background: var(--surface); border: 1px solid var(--line-2, var(--line)); border-radius: 12px; box-shadow: var(--shadow-hover); padding: 6px; }
.hm-r { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--text); }
.hm-r:hover, .hm-r.on { background: var(--surface-2); }
.hm-r img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.hm-r .n { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-r .k { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.hm-none { padding: 12px; }
.hm-orbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hm-orb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-bottom: 4px solid var(--c, var(--accent)); color: var(--text); transition: border-color .15s, transform .15s; }
.hm-orb:hover { border-color: var(--accent); border-bottom-color: var(--c, var(--accent)); transform: translateY(-2px); }
.hm-orb .im { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.hm-orb img { width: 80%; height: 80%; object-fit: contain; }
.hm-orb .nm { font: 700 13px var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-orb b { font: 800 15px var(--display); font-variant-numeric: tabular-nums; }
.hm-now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 26px; }
.hm-now .panel { display: flex; flex-direction: column; gap: 2px; }
.hm-more { margin-top: auto; padding-top: 10px; font: 800 13px var(--display); color: var(--accent-text); }
.hm-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-chg { font-weight: 800; }
.hm-chg.up { color: var(--good); }
.hm-chg.down { color: var(--bad, #ef4444); }
.hm-n { font-size: 12px; font-weight: 700; }
.hm-bwrap { display: flex; align-items: center; gap: 14px; padding: 6px 0; color: var(--text); }
.hm-bwrap .orb { width: 78px; height: 78px; flex: none; }
.hm-bwrap b { display: block; font: 800 18px var(--display); }
.hm-bwrap small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.hm-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.hm-tool { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); }
.hm-tool .ti { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--text); background: none; border: 0; }
.hm-tool .ti img { width: 78%; height: 78%; object-fit: contain; }
.hm-tool .ti img.round { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.hm-tool .ti svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hm-tool .tx { flex: 1; min-width: 0; }
.hm-tool b { display: block; font: 800 17px var(--display); }
.hm-tool small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.35; }
@media (max-width: 900px) {
  .hm-hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hm-now, .hm-tools { grid-template-columns: 1fr; }
}

/* Home: "Trade calculator" button, see-through purple */
.hm-copy .hero-btns .btn:not(.alt) { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--text); }
.hm-copy .hero-btns .btn:not(.alt):hover { background: color-mix(in srgb, var(--accent) 34%, transparent); border-color: var(--accent); }

/* Stat tiles: game icon at the end of the tile */
.tile { position: relative; }
.tile .tico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
.tile .tico img { width: 100%; height: 100%; object-fit: contain; }
.tile .tico img.round { border-radius: 50%; object-fit: cover; }

/* AA rarities share their base rarity's colour; AA-Secret gets a text tag like Celestial */
:root { --r-aa-common: var(--r-common); --r-aa-rare: var(--r-rare); --r-aa-epic: var(--r-epic); --r-aa-legendary: var(--r-legendary); --r-aa-secret: var(--r-secret); }
.aatag { font: 800 10px/1 var(--display); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; white-space: nowrap; color: var(--r-secret); background: color-mix(in srgb, var(--r-secret) 18%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--r-secret) 55%, transparent); }

/* Values: readable sort menu, light-red close button, Exclusive tag */
.vx-menu > button { background: transparent; border: 0; cursor: pointer; color: var(--text); }
.vx-menu > button:hover { background: var(--surface-2); color: var(--text); }
.vx-menu > button.on { background: var(--accent-soft); color: var(--accent-text); }
.vx-x { color: #ff8a8a; background: color-mix(in srgb, #ff6b6b 14%, transparent); cursor: pointer; border: 0; }
.vx-x:hover { color: #ffb3b3; background: color-mix(in srgb, #ff6b6b 26%, transparent); }
.extag { font: 800 10px/1 var(--display); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; white-space: nowrap; color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); }

/* Values filters drawer: panels, tiles and quick ranges */
.vx-dtitle { display: flex; align-items: center; gap: 12px; }
.vx-dic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); }
.vx-dtitle h2 { line-height: 1.1; }
.vx-dtitle small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; margin-top: 2px; }
.vx-dbody { display: flex; flex-direction: column; gap: 12px; padding: 8px 22px 16px; }
.vx-dbody section.vx-panel { padding: 14px 16px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.vx-dbody section.vx-panel:last-child { border: 1px solid var(--line); }
.vx-active { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-ach { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 999px; font: 700 13px var(--display); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); cursor: pointer; }
.vx-ach span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.vx-ach span svg { width: 11px; height: 11px; }
.vx-ach:hover span { background: color-mix(in srgb, #ff6b6b 35%, transparent); color: #ffb3b3; }
.vx-seg2 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; gap: 3px; border-radius: 12px; background: var(--surface-3, var(--surface)); border: 1px solid var(--line); }
.vx-seg2 button { padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; font: 700 14px var(--display); color: var(--muted); cursor: pointer; }
.vx-seg2 button:hover { color: var(--text); }
.vx-seg2 button.on { background: var(--accent); color: var(--on-accent); }
.vx-dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vx-tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vx-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 11px 4px 9px; min-height: 64px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font: 700 12.5px var(--display); color: var(--muted); cursor: pointer; text-align: center; }
.vx-tile:hover { color: var(--text); border-color: var(--accent); }
.vx-tile.on { color: var(--accent-text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.vx-tile .vx-bars { width: 26px; height: 18px; }
.vx-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vx-presets button { padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; font: 700 13px var(--display); color: var(--muted); cursor: pointer; }
.vx-presets button:hover { color: var(--text); border-color: var(--accent); }
.vx-presets button.on { border-style: solid; border-color: var(--accent); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.vx-dbody .vx-hint { margin: 10px 0 0; }

/* Exclusive tag on pet pictures: small, sits just above the rarity icon in the bottom-right corner */
.vx-imgtag .extag { font-size: 8px; padding: 3px 6px; letter-spacing: .05em; line-height: 1; order: 2; background: color-mix(in srgb, var(--warn) 22%, rgba(12, 10, 20, .85)); }
.vx-imgtag .tgi, .vx-imgtag .ctag, .vx-imgtag .vtag, .vx-imgtag .aatag { order: 1; }
.vx-imgtag .aatag, .vx-imgtag .ctag, .vx-imgtag .vtag { font-size: 8px; padding: 3px 6px; }

/* Filters drawer, plain version: flat sections, simple chips, see-through purple action button */
.vx-dic { display: none; }
.vx-dtitle small { margin-top: 1px; font-weight: 600; }
.vx-dbody { gap: 0; padding: 0 22px; }
.vx-dbody section.vx-panel, .vx-dbody section.vx-panel:last-child { padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.vx-dbody section.vx-panel:last-child { border-bottom: 0; }
.vx-active { padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.vx-ach { padding: 4px 6px 4px 10px; font-size: 12.5px; border-radius: 8px; }
.vx-ach span { border-radius: 5px; }
.vx-seg2 { padding: 0; gap: 0; border-radius: 9px; overflow: hidden; background: none; border: 1px solid var(--line-2); }
.vx-seg2 button { border-radius: 0; padding: 9px 6px; background: var(--surface-2); border-right: 1px solid var(--line-2); }
.vx-seg2 button:last-child { border-right: 0; }
.vx-seg2 button.on { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--text); }
.vx-dgrid, .vx-tgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-tile { flex-direction: row; gap: 8px; min-height: 0; padding: 8px 13px; border-radius: 9px; background: var(--surface-2); font-size: 14px; }
.vx-tile.on { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); }
.vx-tile .vx-bars { width: 22px; height: 15px; }
.vx-presets button { border-style: solid; border-color: var(--line-2); border-radius: 8px; background: var(--surface-2); }
.vx-presets button.on { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); }
.vx-dfoot { gap: 10px; padding: 14px 22px 18px; }
.vx-dfoot .btn { border-radius: 10px; height: 46px; padding: 0 16px; font-size: 15px; }
.vx-dfoot .btn.alt { background: transparent; border-color: var(--line-2); color: var(--muted); }
.vx-dfoot .btn.alt:hover { color: var(--text); border-color: var(--text); background: transparent; }
.vx-dfoot .btn:not(.alt) { background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent); color: var(--text); }
.vx-dfoot .btn:not(.alt):hover { background: color-mix(in srgb, var(--accent) 34%, transparent); border-color: var(--accent); }

/* Grid card tags: one stack in the bottom-right corner, every tag as wide as the widest one (rarity icon on the bottom) */
.vx-imgtag { align-items: stretch; width: max-content; gap: 3px; }
.vx-imgtag .tgi { align-self: flex-end; }
.vx-imgtag .extag, .vx-imgtag .aatag, .vx-imgtag .ctag, .vx-imgtag .vtag { display: block; text-align: center; font: 800 10px/1 var(--display); letter-spacing: .06em; padding: 5px 9px; border-radius: 7px; }
.vx-imgtag .extag { color: #ffd479; background: rgba(20, 14, 6, .88); border: 1px solid color-mix(in srgb, var(--warn) 70%, transparent); }

/* Grid card tags, final: every tag is one width (66px), rarity at the bottom, Exclusive on top */
.vx-imgtag { width: max-content; min-width: 66px; align-items: stretch; gap: 3px; }
.vx-imgtag .tgi[alt="Secret"] { width: 66px; height: 66px; max-width: none; margin: -23px 0; align-self: flex-end; }
.vx-imgtag .tgi[alt="Infinity"] { height: 40px; align-self: flex-end; }
.vx-imgtag .tgi[alt="XL"] { height: 30px; align-self: flex-end; }
.vx-imgtag .extag, .vx-imgtag .rtag, .vx-imgtag .aatag, .vx-imgtag .ctag, .vx-imgtag .vtag { display: block; box-sizing: border-box; min-width: 66px; text-align: center; font: 800 8.5px/1 var(--display); letter-spacing: .05em; padding: 5px 6px; border-radius: 6px; white-space: nowrap; }
.vx-imgtag .rtag { color: var(--c); background: rgba(12, 10, 20, .88); border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); }

/* Faded #1 hatcher avatar behind a heading or tile */
.av-bg { position: relative; overflow: hidden; }
.av-bg > *:not(.avbg) { position: relative; z-index: 1; }
.av-bg .avbg { position: absolute; z-index: 0; right: 0; top: 50%; transform: translateY(-50%); height: 220%; max-width: none; aspect-ratio: 1; object-fit: cover; opacity: .32; pointer-events: none; -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 85%); mask-image: linear-gradient(to left, #000 25%, transparent 85%); }
.tile.av-bg .avbg { height: 210%; opacity: .38; }

/* Tablets and phones: no sideways page scroll, a tighter top bar (Discord, Ko-fi, theme, account), tables scroll inside their box */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .dock { gap: 6px; }
  .dock-right { gap: 2px; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn.discord-btn { width: 32px; height: 32px; }
  .btn-roblox { padding-inline: 10px; }
  .ai-card { width: 100%; }
}
@media (max-width: 400px) {
  .icon-btn.discord-btn { width: 30px; height: 30px; }
  .dock-right .avatar-btn { width: 34px; height: 34px; }
}

/* Player viewer, Variants card: two columns, icon + label + count that never wraps */
.vfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vfact { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.vf-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--c, var(--accent-text)); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); }
.vf-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vf-t { min-width: 0; display: grid; }
.vf-t small { font: 700 10px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.vf-t b { font: 800 18px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vfact.normal { --c: #22d3ee; } .vfact.shiny { --c: #facc15; } .vfact.mythic { --c: #a855f7; } .vfact.shinymythic { --c: #d946ef; } .vfact.xl { --c: #14a870; } .vfact.super { --c: #ef7a22; }

/* Player viewer: Best teams */
.bt-ctl { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 14px; }
.bt-ctl label { display: grid; gap: 4px; font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 0; flex: 1 1 200px; }
.bt-ctl .chart-note { flex-basis: 100%; margin: 0; }
.bt-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bt-h img { width: 22px; height: 22px; object-fit: contain; }
.vf-ico .vf-img { width: 22px; height: 22px; object-fit: contain; }
.vf-ico:has(.vf-img) { background: transparent; }

/* Collection by rarity: clickable categories */
.rar-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; transition: opacity .12s, border-color .12s, background .12s; }
.rar-chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.rar-chip:hover { border-color: var(--c); }
.rar-chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.rar-chip.off { opacity: .45; }
.rar-clear { margin-left: auto; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 700 11px var(--display); cursor: pointer; }
.rar-clear:hover { color: var(--text); border-color: var(--accent); }
.panel h3:has(.rar-clear) { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* Player viewer, Leaderboard standings: fits the card, no slider */
.standings table { width: 100%; table-layout: fixed; }
.standings th, .standings td { padding-inline: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings th:first-child, .standings td:first-child { width: 34%; white-space: normal; }
.bt-sort { display: grid; gap: 4px; flex: 2 1 300px; min-width: 0; }
.bt-sort > span { font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bt-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.bt-seg button { flex: 1 1 auto; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 13px var(--display); cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.bt-seg button:hover { color: var(--text); }
.bt-seg button.on { background: var(--accent-soft); color: var(--accent-text); }
.bt-seg .dir { flex: none; margin-left: auto; border: 1px solid var(--line); color: var(--text); }
.bt-seg .dir:hover { border-color: var(--accent); }

/* Hatching Helper */
.hh-ctl { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 14px; }
.hh-ctl label { display: grid; gap: 4px; flex: 1 1 200px; min-width: 0; font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hh-ctl .chart-note { flex-basis: 100%; margin: 0; }
.hh-facts { margin-bottom: 14px; }
.hh-facts .fact b { white-space: nowrap; }

/* Footer status link */
.foot-status { display: inline-flex; align-items: center; gap: 6px; }
.foot-status .sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.foot-status[data-level="ok"] .sdot { background: #30a46c; box-shadow: 0 0 0 3px rgba(48, 164, 108, .22); }
.foot-status[data-level="warn"] .sdot { background: #f5a524; box-shadow: 0 0 0 3px rgba(245, 165, 36, .22); }
.foot-status[data-level="down"] .sdot { background: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .22); }

/* #1 hatcher avatar in the top bar */
.top-hatcher { position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; display: block; border: 2px solid var(--warn); }
.top-hatcher img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.top-hatcher .crown { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; color: var(--warn); filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.top-hatcher .crown svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
@media (max-width: 400px) { .top-hatcher { width: 30px; height: 30px; } }

/* Hatching Helper: currency icons stay text-sized */
.hh-cost { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.hh-cost img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.hh-facts .hh-cost img { width: 16px; height: 16px; }

/* Notifications: mark as read */
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notif-markall { border: 0; background: transparent; color: var(--accent-text); font: 700 12px var(--display); cursor: pointer; padding: 3px 6px; border-radius: 8px; }
.notif-markall:hover { background: var(--surface-3); }
.notif-row { display: flex; align-items: center; gap: 4px; }
.notif-row .notif { flex: 1; min-width: 0; }
.notif-read { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; display: grid; place-items: center; margin-right: 4px; }
.notif-read:hover { color: var(--good); border-color: var(--good); }
.notif-list { max-height: 340px; overflow-y: auto; }

/* Avatar menu icons + settings */
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 10px; }
.user-menu .mi-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.user-menu a:hover .mi-ico, .user-menu button:hover .mi-ico { color: var(--accent-text); }
.set-dialog { width: min(440px, 100%); }
.set-h { font: 800 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 4px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.set-row b { display: block; font: 700 15px var(--display); }
.set-row small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.set-sw { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .15s; }
.set-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.set-sw:checked { background: var(--accent); border-color: var(--accent); }
.set-sw:checked::after { transform: translateX(18px); background: #fff; }
.set-sw:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* Hatching Helper layout: settings on the left, results on the right */
.hh-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.hh-side { padding: 16px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; }
.hh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hh-head h2 { font: 800 18px var(--display); margin: 0; }
.hh-reset { border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 700 12px var(--display); padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.hh-reset:hover { color: var(--text); border-color: var(--accent); }
.hh-egg { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hh-egg label, .hh-row { display: grid; gap: 4px; font: 700 12px var(--display); letter-spacing: .04em; color: var(--muted); }
.hh-egg .field, .hh-row .field { height: 38px; font: 600 14px var(--body); color: var(--text); width: 100%; }
.hh-combo { position: relative; }
.hh-pick { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; color: var(--text); font: 700 14px var(--display); }
.hh-pick img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.hh-pick span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-pick svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.hh-drop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-hover); padding: 8px; }
.hh-list { max-height: 300px; overflow-y: auto; margin-top: 8px; display: grid; gap: 2px; }
.hh-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: 700 14px var(--display); }
.hh-opt:hover, .hh-opt.on { background: var(--surface-3); }
.hh-opt img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.hh-opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-opt small { color: var(--muted); font: 600 11px var(--body); flex: none; }
.hh-none { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.hh-sec { border-bottom: 1px solid var(--line); padding: 4px 0; }
.hh-sec summary { cursor: pointer; list-style: none; padding: 10px 0; font: 800 14px var(--display); display: flex; justify-content: space-between; align-items: center; }
.hh-sec summary::-webkit-details-marker { display: none; }
.hh-sec summary::after { content: "−"; color: var(--muted); font-size: 18px; line-height: 1; }
.hh-sec:not([open]) summary::after { content: "+"; }
.hh-rows { display: grid; gap: 10px; padding: 2px 0 12px; }
.hh-row { grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 10px; font: 600 13px var(--body); letter-spacing: 0; color: var(--text); }
.hh-row .hh-n { text-align: center; }
.hh-chk { grid-template-columns: minmax(0, 1fr) auto; }
.hh-sw { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .15s; }
.hh-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.hh-sw:checked { background: var(--accent); border-color: var(--accent); }
.hh-sw:checked::after { transform: translateX(16px); background: #fff; }
.hh-total { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.hh-stat { padding: 12px 16px; border-right: 1px solid var(--line); }
.hh-stat:last-child { border-right: 0; }
.hh-stat small { display: block; color: var(--muted); font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.hh-stat b { font: 800 22px var(--display); }
.hh-eggcard { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hh-eggcard > img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.hh-eggcard h3 { margin: 0 0 2px; font: 800 20px var(--display); }
@media (max-width: 900px) {
  .hh-grid { grid-template-columns: 1fr; }
  .hh-side { position: static; max-height: none; overflow: visible; }
}

/* Hatching Helper: icons on the rows and a tidier left panel scroll */
.hh-lab { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hh-lab .hh-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-lab img { width: 22px; height: 22px; object-fit: contain; flex: none; border-radius: 6px; }
.hh-tag { font: 800 10px var(--display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); padding: 1px 6px; border-radius: 999px; flex: none; }
.hh-side { padding-top: 0; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent; scroll-behavior: smooth; overscroll-behavior: contain; }
.hh-side::-webkit-scrollbar { width: 8px; }
.hh-side::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.hh-side::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.hh-side::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent) 75%, transparent); background-clip: content-box; }
.hh-head { position: sticky; top: 0; z-index: 5; margin: 0 -16px 12px; padding: 14px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hh-acts { display: flex; gap: 6px; }
.hh-side::after { content: ""; position: sticky; bottom: -1px; display: block; height: 34px; margin-top: -34px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.hh-head h2 { font-size: 16px; white-space: nowrap; }
.hh-head .hh-reset { padding: 3px 9px; font-size: 11px; white-space: nowrap; }
.hh-row:has(.hh-n) { grid-template-columns: minmax(0, 1fr) 76px; }
.hh-rows { gap: 8px; }

/* Hatching Helper: category chips and custom dropdowns */
.hh-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 6px; }
.hh-cat { border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 700 12px var(--display); padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.hh-cat:hover { color: var(--text); border-color: var(--accent); }
.hh-cat.on { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
.hh-sec[hidden] { display: none; }
.hh-dd { position: relative; }
.hh-ddb { width: 100%; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: 700 13px var(--display); cursor: pointer; text-align: left; transition: border-color .12s, box-shadow .12s; }
.hh-ddb:hover, .hh-ddb:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.hh-ddb > span:not(.hh-oi) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-car { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hh-ddl { position: absolute; z-index: 30; right: 0; top: calc(100% + 5px); min-width: 100%; width: max-content; max-width: 220px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 5px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); display: grid; gap: 2px; animation: dropin .12s ease; }
.hh-ddo { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: 700 13px var(--display); cursor: pointer; text-align: left; white-space: nowrap; }
.hh-ddo:hover { background: var(--surface-3); }
.hh-ddo.on { background: var(--accent-soft); color: var(--accent-text); }
.hh-oi { width: 20px; height: 20px; flex: none; display: grid; place-items: center; color: var(--accent-text); }
.hh-oi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hh-oi.dim { opacity: .4; }
.hh-ddb { justify-content: flex-start; text-align: left; }
.hh-ddb > span:not(.hh-oi) { text-align: left; }
.hh-ddb .hh-car { margin-left: auto; }

/* Hatching Helper: drawn row icons that a saved picture can replace */
.hh-ri { position: relative; width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.hh-ri svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hh-ri img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; opacity: 0; }
.hh-ri.has img { opacity: 1; }
.hh-ri.has svg { visibility: hidden; }

/* ValuzAI: plain chat look, no glow or sparkles */
.ai-logo, .ai-av { background: none; border: 0; padding: 0; box-shadow: none; }
.ai-logo img, .ai-av img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.ai-logo.big { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px; }
.ai-av { border-radius: 8px; }
.ai-head .ai-logo { border-radius: 9px; }
.ai-empty h2, .ai-gate h2 { font: 800 22px var(--display); }
.ai-logo.big, .ai-logo { box-shadow: none; }

/* ================================================================
   Rebrand layer. Single purple-on-black theme, flat and squared off.
   Loaded last on purpose; delete this block to get the old look back.
   ================================================================ */
:root, html[data-theme="dark"], html[data-theme="light"] {
  color-scheme: dark;
  --bg: #060509;
  --grid: transparent;
  --surface: #0e0b15;
  --surface-2: #151021;
  --surface-3: #1d1630;
  --line: #271d3e;
  --line-2: #3a2c5c;
  --text: #ece8f6;
  --muted: #9488b4;
  --accent: #7c4deb;
  --accent-d: #6538d1;
  --accent-text: #b9a2ff;
  --accent-soft: #1d1630;
  --on-accent: #ffffff;
  --sky: #a78bfa;
  --good: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --shadow: none;
  --shadow-hover: none;
  --radius: 14px;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --inf: linear-gradient(110deg, #6d3df0, #b08cff 50%, #6d3df0);
  --pet-rarity-gradient-infinity: linear-gradient(100deg, #6d3df0, #c4b0ff 50%, #6d3df0);
}

body { background-image: none; background-color: var(--bg); font-weight: 400; font-size: 15px; line-height: 1.55; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(30px, 4.4vw, 46px); }
b, strong { font-weight: 700; }
.num, .tile b, .hm-orb b, .gstats b, .hh-online b, .online-card b { font-family: var(--mono); font-weight: 500; letter-spacing: -.02em; }

/* the theme switch has nothing to switch between now */
#theme-btn { display: none !important; }

/* shapes: keep the rounded corners, drop glow and blur */
.dock-wrap { backdrop-filter: none; background: var(--bg); }
.pagehead.art-banner::before { filter: blur(0) saturate(0) brightness(.32); }
.pv::before { filter: saturate(0) brightness(.4); }
.card, .gcard, .hm-orb, .tile { box-shadow: none !important; }
.hoverable:hover, .gcard:hover, .hm-orb:hover, .card:hover { transform: none !important; }
.pop-in { animation: none; }

.brand { letter-spacing: -.02em; }

/* nav: text with an underline instead of pills */
.nav a, .nav button { border-radius: 10px; font: 600 14px var(--body); padding: 9px 14px; }
.nav a:hover, .nav button:hover { background: var(--surface-3); color: var(--text); }
.nav a.on { background: var(--accent); color: #fff; }


/* buttons */
.btn { border-radius: 999px; font: 600 14px var(--body); padding: 10px 18px; }
.btn:active { transform: none; }

/* labels: plain, no tracked-out uppercase "eyebrows" */
.sticker-tag { background: var(--accent-soft); padding: 3px 11px; color: var(--accent-text); font: 500 12px var(--mono); letter-spacing: 0; text-transform: none; margin-bottom: 8px; border-radius: 999px; }
.hh-kicker { font: 500 12px var(--mono); letter-spacing: 0; text-transform: none; color: var(--accent-text); }
.tile span, .gstats small, .online-card small, .foot-owner .fo-label { letter-spacing: 0; text-transform: none; font: 500 12px var(--mono); }


/* no gradient or glow text on numbers */
.pv-value b { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--text); }

/* flat bars */
.vb-t i, .hatch-scan .bar i { background: var(--accent); }

footer { background: var(--bg); }
.foot-brand { font-weight: 800; letter-spacing: -.02em; }

/* ================================================================
   Valuz "ledger" design system. One look for every page, helper included.
   Rules of the system:
   - rounded cards (16px), hairline borders, no shadows, no glow
   - labels are small mono text; numbers are mono and tabular
   - every panel title carries a purple square marker
   - section titles run a hairline to the right edge
   - controls are 10px rounded rectangles, never pills
   ================================================================ */
:root { --r-sm: 10px; --r-md: 16px; --r-lg: 20px; }

/* page header: mono tag, big title, hairline underneath */
.pagehead { margin: 34px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); align-items: flex-end; }
.pagehead h1 { letter-spacing: -.035em; }
.pagehead p { color: var(--muted); font-size: 15px; }
.sticker-tag { background: none; border: 1px solid var(--line-2); color: var(--accent-text); border-radius: 8px; padding: 2px 9px; font: 500 11.5px var(--mono); margin-bottom: 12px; }
.sticker-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: var(--accent); border-radius: 2px; vertical-align: 1px; }

/* panel + section titles */
.panel > h3, .card > h3 { font: 800 15px var(--display); letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.panel > h3::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; flex: none; }
.panel > h3 small { font: 500 11.5px var(--mono); margin-left: auto; color: var(--muted); }
.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: 20px; display: flex; align-items: center; gap: 14px; flex: 1; letter-spacing: -.025em; }
.section-head h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head a { font: 500 12px var(--mono); color: var(--accent-text); white-space: nowrap; }
.section { margin-top: 38px; }

/* cards */
.card { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.card.hoverable:hover, a.card:hover { border-color: var(--accent); background: var(--surface-2); }
.fact { border-radius: 12px; background: var(--surface); }
.fact small, .tile span, .val small, .hh-stat small { font: 500 11.5px var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.fact b, .tile b { font-family: var(--mono); font-weight: 500; letter-spacing: -.03em; }

/* controls */
.btn, .btn-roblox { border-radius: var(--r-sm); }
.field, .hm-search input, select.field { border-radius: var(--r-sm); background: var(--surface); }
.field:focus { box-shadow: none; border-color: var(--accent); }
.chip, .chip-btn, .tab { border-radius: 8px; font: 500 12.5px var(--mono); }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab.on .n { color: #fff; }
.icon-btn { border-radius: var(--r-sm); }
.nav a, .nav button { border-radius: var(--r-sm); }
.nav a.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r-sm) var(--r-sm) 4px 4px; }

/* tables */
th { font: 500 11.5px var(--mono); letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
td { font-variant-numeric: tabular-nums; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--surface-2); }

/* lists inside panels */
.row .rk { font: 500 13px var(--mono); color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); }

/* home: ranked list beside the search, joined tool and stat strips */
.hm-hero { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: start; padding: 54px 0 34px; }
.hm-copy h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.035em; line-height: 1.02; max-width: 15ch; }
.hm-copy p { color: var(--muted); font-size: 16px; }
.hm-search input { height: 54px; font-size: 16px; }
.hm-rank { padding: 6px; border-color: var(--line-2); border-radius: var(--r-lg); }
.hm-rank-h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 8px; }
.hm-rank-h b { font: 800 15px var(--display); }
.hm-rank-h a { font: 500 12px var(--mono); color: var(--accent-text); }
.hm-rk { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; color: var(--text); }
.hm-rk:hover { background: var(--surface-2); }
.hm-rk .i { font: 500 12px var(--mono); color: var(--muted); }
.hm-rk .im { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); display: grid; place-items: center; overflow: hidden; }
.hm-rk .im img { width: 88%; height: 88%; object-fit: contain; }
.hm-rk .nm { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-rk .nm small { display: block; font: 500 11px var(--mono); color: var(--c); }
.hm-rk b { font-size: 15px; }
.hm-tools { gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.hm-tool.card { border: 0; border-radius: 0; background: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-tool.card:hover { background: var(--surface-2); }
.hm-tool .ti { border-radius: 10px; }
.tiles { gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tiles .tile.card { border: 0; border-radius: 0; background: none; border-right: 1px solid var(--line); }
.tiles .tile.card:last-child { border-right: 0; }
.tile { border-left: 0; }
@media (max-width: 960px) { .hm-hero { grid-template-columns: 1fr; } }

/* pet / egg cards in grids */
.grid .card { border-radius: 14px; }
.panel > h3 { justify-content: flex-start; }
.hm-bounty > h3, .hm-now .panel > h3 { justify-content: flex-start; }

/* ================================================================
   "Slab" pet cards: compact, rarity bar on top, value in mono.
   Replaces the big glowing tiles on values, eggs, home and profiles.
   ================================================================ */
.vx-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.vx-card { padding: 0; gap: 0; overflow: hidden; border-radius: 14px; border-top: 3px solid var(--orb, var(--accent)); background: var(--surface); }
a.vx-card:hover { transform: none; border-color: var(--orb, var(--accent)); background: var(--surface-2); }
.vx-img { margin: 0; border-radius: 0; box-shadow: none; background: var(--surface-2); aspect-ratio: 1.12; }
.vx-img img { width: 74%; height: 74%; }
a.vx-card:hover .vx-img img { transform: none; }
.vx-name, .vx-var, .vx-flags, .vx-mid, .vx-val, .vx-dets { padding-inline: 10px; }
.vx-name { margin-top: 8px; font: 700 12.5px/1.2 var(--body); }
.vx-var { font: 500 10px var(--mono); letter-spacing: 0; text-transform: none; }
.vx-mid { margin-top: 5px; }
.vx-val { font: 500 15px/1.2 var(--mono); letter-spacing: -.03em; padding-bottom: 10px; margin-top: 3px; }
.vx-dem { font: 500 9.5px/1 var(--mono); letter-spacing: 0; border-radius: 5px; padding: 3px 6px; }
.vx-trend { font: 500 11px var(--mono); }
.vx-dets { padding-bottom: 8px; margin: 0; border-top: 1px solid var(--line); padding-top: 6px; font-size: 11px; }
.vx-imgtag .tgi { height: 24px; max-width: 70px; }
.vx-imgtag .tgi[alt="Secret"] { width: 44px; height: 44px; margin: -14px 0; }
.vx-imgtag { right: 5px; bottom: 5px; min-width: 0; }
.vx-imgtag .extag, .vx-imgtag .aatag, .vx-imgtag .ctag, .vx-imgtag .vtag { font: 500 8.5px/1 var(--mono); padding: 3px 6px; border-radius: 5px; letter-spacing: 0; }
.vx-who img { width: 34px; height: 34px; }

/* home, eggs and profile grids */
.grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.grid .card { border-radius: 14px; }
.grid .card img { max-width: 100%; }

/* pet and enchant detail hero: smaller picture, tighter block */
.pv-hero { padding: 16px; border-radius: 18px; }
.pv-value b { font-family: var(--mono); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.pv-art, .pv-img { max-width: 220px; }
.facts { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.fact { padding: 10px 12px; }
.fact b { font-size: 17px; }

/* eggs tab */
.slot { border-radius: 12px; }


/* ================================================================
   Top bar: brand with a section tag, navigation in a boxed rail,
   solid login button. Same bar on every page.
   ================================================================ */
.dock-wrap { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.dock { height: 64px; gap: 22px; }
.brand { gap: 9px; font-size: 22px; }
body:not([data-page="hub"]) .brand::after {
  content: "bgsi"; font: 500 11px var(--mono); letter-spacing: 0; color: var(--accent-text);
  border: 1px solid var(--line-2); border-radius: 7px; padding: 2px 7px; margin-left: 4px; align-self: center;
}
.nav { margin-inline: auto; padding: 4px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.nav a, .nav button { padding: 7px 13px; border-radius: 10px; font: 600 13.5px var(--body); color: var(--muted); box-shadow: none; }
.nav a:hover, .nav button:hover { background: var(--surface-3); color: var(--text); }
.nav a.on { background: var(--accent); color: #fff; box-shadow: none; border-radius: 10px; }
.nav a svg, .nav button svg { opacity: .85; }
.nav .more-btn[aria-expanded="true"] { background: var(--surface-3); color: var(--text); }
.dock-right { gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); }
.btn-roblox { height: 38px; border-radius: 11px; background: var(--accent); color: #fff; font: 600 14px var(--body); padding: 0 16px 0 12px; }
.btn-roblox:hover { background: var(--accent-d); color: #fff; }
.btn-roblox svg { fill: #fff; }
.user-menu { border-radius: 14px; }
@media (max-width: 1080px) { .nav a span, .nav button span:not(.dot) { } .dock { gap: 12px; } }

/* ================================================================
   Shelves: home-page egg and pet rows span the full width in equal
   columns; rarity tag sits on the picture. Plus phone and tablet layout.
   ================================================================ */
.hm .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.item { padding: 0; gap: 0; align-items: stretch; text-align: left; border-radius: 16px; content-visibility: visible; }
.item .orb { border-radius: 0; border-bottom: 0; border-top: 3px solid var(--orb, var(--accent)); aspect-ratio: 1.08; background: var(--surface-2); }
.item .orb img { width: 70%; height: 70%; }
a.item:hover .orb img { transform: none; }
.item .orb .vx-imgtag { position: absolute; left: 8px; top: 8px; right: auto; bottom: auto; align-items: flex-start; flex-direction: row; flex-wrap: wrap; width: auto; min-width: 0; gap: 4px; filter: none; }
.item .orb .vx-imgtag .rtag, .item .orb .vx-imgtag .extag, .item .orb .vx-imgtag .ctag, .item .orb .vx-imgtag .vtag, .item .orb .vx-imgtag .aatag { min-width: 0; padding: 3px 7px; font: 500 9.5px/1 var(--mono); letter-spacing: 0; border-radius: 6px; }
.item .orb .vx-imgtag .tgi { height: 26px; width: auto; max-width: 74px; margin: 0; align-self: auto; }
.item .orb .vx-imgtag .tgi[alt="Secret"] { height: 34px; width: auto; margin: -4px 0; }
.item .name { font: 700 13.5px/1.2 var(--body); padding: 10px 12px 0; }
.item .meta { justify-content: flex-start; padding: 4px 12px 12px; font: 500 12.5px var(--mono); gap: 10px; }
.item .meta .num { font: 500 15px var(--mono); letter-spacing: -.03em; }
.item .cost { font: 500 12.5px var(--mono); }

/* tablets */
@media (max-width: 1100px) {
  .hm .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-hero { gap: 28px; }
  .nav a, .nav button { padding: 7px 10px; }
}
@media (max-width: 900px) {
  .hm .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles .tile.card { border-bottom: 1px solid var(--line); }
  .two, .two-eq { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .showcase { position: static; }
}

/* phones */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .dock { height: 56px; gap: 10px; }
  .brand { font-size: 20px; }
  body:not([data-page="hub"]) .brand::after { display: none; }
  .btn-roblox { padding: 0 12px 0 10px; font-size: 13px; }
  .btn-roblox span:not(.rbx-ico) { }
  h1 { font-size: clamp(28px, 9vw, 38px); }
  .pagehead { margin: 22px 0 18px; padding-bottom: 16px; }
  .hm-hero { padding: 26px 0 20px; gap: 22px; }
  .hm-copy h1 { font-size: clamp(30px, 9.5vw, 42px); max-width: none; }
  .hm .grid, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hm-now, .hm-tools { grid-template-columns: 1fr; }
  .hm-tool.card { border-right: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile.card { border-right: 0; border-bottom: 1px solid var(--line); }
  .tile .tico { width: 34px; height: 34px; right: 12px; }
  .hm-rk { grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 10px; padding: 7px 8px; }
  .section { margin-top: 28px; }
  .section-head h2 { font-size: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .controls { flex-wrap: wrap; }
  .pv-hero { padding: 12px; }
  table { font-size: 13px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}


/* ---------- small screens: header on two rows, nothing wider than the screen ---------- */
.hm-hero > *, .hub-top > *, .pagehead > *, .detail > *, .bn-top > * { min-width: 0; }
@media (max-width: 960px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); }
  .hm-copy h1 { max-width: none; }
  .hm-rank { max-width: none; }
  .dock { flex-wrap: wrap; height: auto; padding: 10px 0 8px; row-gap: 8px; }
  .dock-right { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav button { flex: none; }
}
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .dock { padding: 8px 0 6px; }
  .nav a, .nav button { padding: 7px 11px; font-size: 13px; }
  .btn-roblox { height: 36px; border-radius: 10px; }
  .hm-search input { height: 50px; }
  .hero-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .hm-rk b { font-size: 14px; }
  .bn-head { flex-direction: column; align-items: flex-start; }
  .bn-stage { grid-template-columns: 1fr; }
  .bn-eggbtn { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 8px 12px; }
  .bn-eggimg { width: 48px; height: 48px; }
  .bn-dials { grid-template-columns: repeat(2, 1fr); }
  .bn-dial:nth-child(5n) { border-right: 1px solid var(--line); }
  .bn-dial:nth-child(n+6) { border-bottom: 1px solid var(--line); }
  .bn-dial:nth-child(2n) { border-right: 0 !important; }
  .bn-grid { grid-template-columns: 1fr; }
  .bn-tile .bn-sel, .bn-tile .bn-num { width: 120px; }
  .bn-q { width: 100%; }
  .gnums { flex-wrap: wrap; }
  .pagehead.art-banner { padding-right: 16px; }
  .vx-tools, .controls { gap: 8px; }
}


/* phone header fixes: full-width scrolling rail with labels, wordmark visible */
@media (max-width: 960px) {
  .nav { flex: 1 1 100% !important; }
  .nav a span, .nav .more-btn span { display: inline !important; }
  .brand span.brand-text { display: inline !important; }
}

/* tablet: two columns for the home panels; phones: shorter pet pictures */
@media (min-width: 641px) and (max-width: 900px) {
  .hm-now, .hm-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-now .panel:last-child { grid-column: 1 / -1; }
  .vx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .vx-img { aspect-ratio: 1.3; } .vx-img img { width: 64%; height: 64%; } }

/* home cards: rarity tag bottom-right of the picture */
.item .orb .vx-imgtag { left: auto; top: auto; right: 8px; bottom: 8px; flex-direction: column-reverse; align-items: flex-end; flex-wrap: nowrap; }
select, option { color-scheme: dark; }
option { background: var(--surface-2); color: var(--text); }

/* active top tab: translucent purple, readable text */
.nav a.on { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 10px; }
.nav a.on svg { opacity: 1; }

/* ===== sign-in: quiet outline, the logo sits in its own small tile ===== */
.btn-roblox { height: 36px; padding: 0 14px 0 5px; gap: 9px; border-radius: 10px; background: transparent; color: var(--text); border: 1px solid var(--line-2); font: 600 13px var(--body); letter-spacing: .01em; }
.btn-roblox svg { width: 26px; height: 26px; padding: 6px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 26%, transparent); fill: var(--accent-text); color: var(--accent-text); box-sizing: border-box; }
.btn-roblox:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--text); }
.btn-roblox:hover svg { fill: #fff; color: #fff; background: var(--accent); }

/* ===== calculator: two trays and a balance beam ===== */
.calc { grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); gap: 0; align-items: stretch; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); overflow: hidden; }
.calc .card { background: none; border: 0; box-shadow: none; border-radius: 0; }
.calc .side { padding: 0 0 18px; gap: 0; background-image: radial-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1.4px); background-size: 16px 16px; }
.calc .side-top { padding: 16px 20px 14px; margin-bottom: 16px; align-items: flex-end; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-bottom: 1px solid var(--line-2); }
.calc .side-top h3 { font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.calc .side-top small { font: 500 11.5px var(--mono); }
.calc .side-total { font: 500 30px var(--mono); letter-spacing: -.05em; }
.calc .slot-grid { padding: 0 18px; }
.calc .slot { border: 1px solid var(--line-2); border-left: 4px solid var(--c, var(--line-2)); border-radius: 4px 14px 4px 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.calc .slot:hover { transform: none; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.calc .slot.empty { border: 1px dashed var(--line-2); border-radius: 4px 14px 4px 14px; background: transparent; }
.calc .slot-name { font: 600 11.5px var(--body); }
.calc .slot-val { font: 500 11.5px var(--mono); color: var(--accent-text); }
.calc .verdict { position: static; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 14px; border-left: 1px dashed var(--line-2); border-right: 1px dashed var(--line-2); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.calc .verdict > small:first-child { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.calc .verdict .v-label { font: 600 22px var(--mono); letter-spacing: .12em; padding: 8px 16px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(-4deg); margin: 12px 0 8px; }
.calc .verdict .v-hint { font: 500 13px var(--mono); color: var(--muted); max-width: 14ch; margin: 10px 0; }
.calc .verdict .diff { font: 500 22px var(--mono); letter-spacing: -.04em; margin: 4px 0 0; }
.calc .verdict .diff.up { color: var(--good); } .calc .verdict .diff.down { color: var(--bad); }
.beam { position: relative; width: 100%; height: 6px; margin-top: 16px; border-radius: 3px; background: linear-gradient(90deg, var(--bad), var(--line-2) 50%, var(--good)); opacity: .85; }
.beam i { position: absolute; top: -6px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--text); transition: left .35s cubic-bezier(.3, 1.4, .5, 1); }
.beam-l { display: flex; justify-content: space-between; width: 100%; font: 500 9.5px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.calc .verdict .btns { width: 100%; margin-top: 12px; }
@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc .verdict { border: 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
}

/* ===== trade ads: a ticket with a perforated stub ===== */
.ads { gap: 16px; }
.ad { position: relative; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); grid-template-columns: minmax(0, 1fr) 244px; }
.ad::before, .ad::after { content: ""; position: absolute; right: 232px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); z-index: 2; }
.ad::before { top: -13px; clip-path: inset(50% 0 0 0); } .ad::after { bottom: -13px; clip-path: inset(0 0 50% 0); }
.ad-profile { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-left: 2px dashed var(--line-2); }
.ad-head { font: 500 11.5px var(--mono); letter-spacing: .02em; }
.trade-cols { grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 16px; }
.tcol { border: 0; background: none; padding: 0; border-radius: 0; }
.tcol-top { border-bottom: 1px solid var(--line-2); padding-bottom: 7px; }
.tcol-top b { font: 600 11px var(--mono); letter-spacing: .16em; color: var(--c); }
.tcol-top b::before { border-radius: 2px; transform: rotate(45deg); }
.tcol-top .num { font: 500 15px var(--mono); letter-spacing: -.04em; }
.tcol.offer { --c: var(--accent-text); } .tcol.request { --c: var(--sky); }
.swap { width: 1px; background: repeating-linear-gradient(var(--line-2) 0 5px, transparent 5px 9px); font-size: 0; opacity: 1; }
.tslot { border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line-2)); border-radius: 3px 11px 3px 11px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.tslot .slot-val { font: 500 10.5px var(--mono); }
.fair-chip { border-radius: 4px; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ad-note { border-left: 2px solid var(--accent); background: none; font-style: normal; }
.pstats > div { border-radius: 4px 10px 4px 10px; }
.pstats b { font: 500 15px var(--mono); letter-spacing: -.04em; }
.pstats small { font: 500 9.5px var(--mono); letter-spacing: .1em; }
@media (max-width: 860px) {
  .ad { grid-template-columns: minmax(0, 1fr); }
  .ad::before, .ad::after { display: none; }
  .ad-profile { border-left: 0; border-top: 2px dashed var(--line-2); }
  .trade-cols { grid-template-columns: minmax(0, 1fr); }
  .swap { width: 100%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 9px); }
}

/* ===== buttons: see-through with a purple edge ===== */
.btn, .pv-act, #post { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 10px; font: 600 13px var(--mono); letter-spacing: .02em; box-shadow: none; padding: 9px 16px; }
.btn:hover, .pv-act:hover, #post:hover { background: color-mix(in srgb, var(--accent) 28%, transparent); border-color: var(--accent); color: #fff; transform: none; }
.btn.alt, .pv-act:not(.main) { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.alt:hover, .pv-act:not(.main):hover { background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--accent); }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.tabs .tab.on, .tab.on { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: none; }

/* ===== player: a dossier header, a ledger strip of numbers, tidy tiles ===== */
.p-head { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 4px 24px 4px 24px; background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 60%); box-shadow: none; }
.p-head .av { width: 92px; height: 92px; border-radius: 4px 22px 4px 22px; border: 1px solid var(--accent); background: var(--surface-3); object-fit: cover; padding: 0; }
.p-head h1 { font: 700 30px var(--display); letter-spacing: -.035em; }
.p-head .tagline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 12.5px var(--mono); color: var(--muted); margin-top: 4px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 16px 0 22px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); }
.stat-grid .val { position: relative; padding: 14px 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; min-width: 0; }
.stat-grid .val:last-child { border-right: 0; }
.stat-grid .val::before { content: ""; position: absolute; left: 16px; top: 0; width: 22px; height: 3px; background: var(--c, var(--line-2)); border-radius: 0 0 3px 3px; }
.stat-grid .val small { display: block; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.stat-grid .val b { display: block; font: 500 24px var(--mono); letter-spacing: -.05em; margin: 4px 0 2px; white-space: nowrap; }
.stat-grid .val span { font: 500 11px var(--mono); color: var(--muted); }
.inv-tile { position: relative; border: 1px solid var(--line-2); border-radius: 4px 16px 4px 16px; background: var(--surface); overflow: hidden; }
.inv-tile .orb { border-top: 0; border-left: 4px solid var(--orb, var(--accent)); background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--orb, var(--accent)) 16%, transparent), transparent 70%), var(--surface-2); }
.inv-tile:hover { border-color: var(--accent); transform: none; }
.inv-tile .qty.big { left: auto; right: 8px; top: 8px; border-radius: 6px; font: 600 12px var(--mono); background: rgba(8, 5, 18, .78); color: #fff; padding: 2px 7px; }
.inv-tile .tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px; min-height: 0; }
.inv-tile .variant { border-radius: 4px; font: 500 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.inv-tile .offer-btn { margin: 0 12px 12px; }
@media (max-width: 900px) {
  .p-head { grid-template-columns: 72px minmax(0, 1fr); }
  .p-head .av { width: 72px; height: 72px; }
  .p-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid .val { border-bottom: 1px solid var(--line); }
}

/* ===== pet page: same ledger language ===== */
.pv-hero { border: 1px solid var(--line-2); border-radius: 4px 26px 4px 26px; background: linear-gradient(120deg, color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)), var(--surface) 55%); box-shadow: none; }
.pv-art { border-radius: 4px 22px 4px 22px; border: 1px solid var(--line-2); }
.pv-name { font-weight: 700; letter-spacing: -.04em; }
.pv-kicker { font-family: var(--mono); letter-spacing: .08em; }
.pv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.pv-facts > div { padding: 11px 14px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; min-width: 0; }
.pv-facts > div:last-child { border-right: 0; }
.pv-facts small { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pv-facts b { font: 500 16px var(--mono); letter-spacing: -.04em; }
.pv-tabs a { border-radius: 8px; font: 500 12.5px var(--mono); }
.pv-h { font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.pv-col, .pv-block { border: 1px solid var(--line-2); border-radius: 4px 18px 4px 18px; background: var(--surface); box-shadow: none; }

.inv-tile .offer-btn { width: calc(100% - 24px); box-sizing: border-box; }

/* original faint grid, back on every page */
body { background-image: linear-gradient(color-mix(in srgb, var(--text) 4.5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 4.5%, transparent) 1px, transparent 1px); background-size: 44px 44px; background-position: -1px -1px; }
.foot-status .sdot { flex: none; min-width: 8px; min-height: 8px; border: 1px solid rgba(255,255,255,.25); }


/* ===== calculator, plain version: two open sides and a swap button ===== */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 0; align-items: start; border: 0; border-radius: 0; background: none; overflow: visible; }
.calc .side { padding: 0; background: none; border: 0; }
.calc .side-top { padding: 0 2px 12px; margin: 0 0 14px; align-items: flex-end; background: none; border-bottom: 2px solid var(--line-2); }
.calc .side-top h3 { font: 800 22px var(--display); letter-spacing: -.03em; text-transform: none; color: var(--text); }
.calc .side-top small { font: 500 12.5px var(--body); color: var(--muted); }
.calc .side-total { font: 700 28px var(--display); letter-spacing: -.04em; color: var(--accent-text); }
.calc .linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.calc .slot-grid { padding: 0; max-width: none; gap: 10px; }
.calc-swap { align-self: start; margin: 4px auto 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent-text); font-size: 17px; line-height: 1; cursor: pointer; }
.calc-swap:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.calc .slot { aspect-ratio: auto; min-height: 168px; padding: 10px 8px 10px; gap: 4px; justify-content: flex-start; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.calc .slot:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: var(--accent); }
.calc .slot.inf { background: var(--surface); }
.calc .slot.empty { min-height: 168px; border: 1.5px dashed var(--line-2); background: transparent; }
.calc .slot .slot-img { position: relative; width: 78%; margin-top: 14px; }
.calc .slot-tags { position: absolute; right: -6px; bottom: -4px; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 3px; pointer-events: none; }
.calc .slot-tags .tgi { height: 22px; width: auto; max-width: 60px; margin: 0; }
.calc .slot-tags .dtag { position: static; font: 700 9px/1 var(--mono); padding: 3px 6px; border-radius: 6px; }
.calc .slot-name { font: 600 12.5px/1.2 var(--body); max-width: 100%; white-space: normal; text-align: center; margin-top: 6px; }
.calc .slot-val { font: 600 13px var(--mono); color: var(--text); letter-spacing: -.02em; }
.calc .slot .qty { top: 8px; left: 8px; right: auto; border-radius: 6px; }
.calc .slot-ctl { opacity: 0; transition: opacity .12s; }
.calc .slot:hover .slot-ctl, .calc .slot:focus-within .slot-ctl { opacity: 1; }
@media (max-width: 760px) {
  .calc { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .calc-swap { margin: 0 auto; transform: rotate(90deg); }
  .calc .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .calc .slot, .calc .slot.empty { min-height: 140px; }
}

.calc .slot-tags .tgi { height: 30px; max-width: 92px; }

/* ===== even corners on the player and pet views, no colour rails on pets ===== */
.p-head { border-radius: 22px; }
.p-head .av { border-radius: 50%; }
.inv-tile, .pv-col, .pv-block { border-radius: 18px; }
.pv-hero { border-radius: 22px; }
.pv-art { border-radius: 18px; }
.stat-grid { border-radius: 18px; }
.stat-grid .val::before { display: none; }
.inv-tile .orb { border-left: 0; border-top: 0; border-radius: 0; }
.inv-tile .name { text-align: center; padding: 10px 12px 0; }
.inv-tile .tags { justify-content: center; }
.inv-tile .meta { justify-content: center; align-items: baseline; text-align: center; gap: 6px; padding: 6px 12px 10px; width: 100%; box-sizing: border-box; }
.inv-tile .meta .num, .inv-tile .meta .muted { line-height: 1; }
.inv-tile .meta .muted { font: 500 11.5px var(--mono); }
.tslot, .calc .slot { border-left: 1px solid var(--line-2); border-radius: 12px; }
.bn-row::before { display: none; }
.bn-list { border-radius: 18px; }

/* ===== log in with Roblox: matches the site, rounded, purple ===== */
.dialog.rbx-dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(124, 77, 235, .12); overflow: hidden; width: min(440px, 100%); }
.rbx-dialog .rbx-head { padding: 22px 24px 16px; gap: 14px; }
.rbx-dialog .rbx-mark { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.rbx-dialog .rbx-mark .rbx { width: 22px; height: 22px; }
.rbx-dialog .rbx-title { font: 800 21px var(--display); letter-spacing: -.03em; color: var(--text); }
.rbx-dialog .rbx-sub { font: 500 12.5px var(--body); color: var(--muted); }
.rbx-dialog .rbx-x { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 22px; background: transparent; border: 1px solid var(--line); }
.rbx-dialog .rbx-x:hover { color: var(--text); border-color: var(--accent); }
.rbx-dialog .rbx-progress { padding: 0 24px; gap: 8px; }
.rbx-dialog .rbx-progress i { height: 3px; background: var(--line-2); }
.rbx-dialog .rbx-progress i.on { background: var(--accent); }
.rbx-dialog .rbx-body { padding: 22px 24px 8px; }
.rbx-dialog .rbx-h { font: 800 19px var(--display); letter-spacing: -.02em; color: var(--text); }
.rbx-dialog .rbx-text { color: var(--muted); font-size: 14px; }
.rbx-dialog .rbx-label { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rbx-dialog .rbx-field { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; }
.rbx-dialog .rbx-field span { color: var(--accent-text); font-family: var(--mono); }
.rbx-dialog .rbx-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.rbx-dialog .rbx-input { color: var(--text); background: transparent; }
.rbx-dialog .rbx-btn { height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 80%, #000); color: #fff; border: 1px solid var(--accent); font: 700 14.5px var(--body); }
.rbx-dialog .rbx-btn:hover { background: var(--accent); }
.rbx-dialog .rbx-btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.rbx-dialog .rbx-btn.ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rbx-dialog .rbx-user { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; }
.rbx-dialog .rbx-user span { color: var(--muted); }
.rbx-dialog .rbx-link, .rbx-dialog .rbx-steps a { color: var(--accent-text); }
.rbx-dialog .rbx-steps li > span { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); font: 600 12px var(--mono); }
.rbx-dialog .rbx-steps li { color: var(--text); }
.rbx-dialog .rbx-code { background: var(--bg); border: 1px dashed var(--line-2); border-radius: 14px; }
.rbx-dialog .rbx-code #phrase { font: 500 15px/1.4 var(--mono); color: var(--accent-text); }
.rbx-dialog .rbx-copy { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 9px; font-family: var(--mono); }
.rbx-dialog .rbx-copy:hover { background: var(--accent); color: #fff; }
.rbx-dialog .rbx-msg { color: var(--muted); }
.rbx-dialog .rbx-foot { border-top: 1px solid var(--line); color: var(--muted); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.rbx-dialog .rbx-spin { border-color: var(--line-2); border-top-color: var(--accent); }

/* slim sign-in strip shown under the top bar when nobody is logged in */
.login-nudge { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); font: 500 13px var(--body); color: var(--muted); }
.login-nudge b { color: var(--text); font-weight: 600; }
.login-nudge button { border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-text); border-radius: 10px; padding: 5px 14px; font: 600 12.5px var(--mono); cursor: pointer; }
.login-nudge button:hover { background: var(--accent); color: #fff; }
.login-nudge .nx { border: 0; background: none; color: var(--muted); padding: 2px 6px; font-size: 16px; }


/* login chooser: two ways in */
.rbx-ways { display: grid; gap: 10px; }
.rbx-way { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.rbx-way:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.rbx-wi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.rbx-wi svg { width: 22px; height: 22px; fill: currentColor; }
.rbx-wi svg[viewBox="0 0 24 24"]:not(.rbx) { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rbx-wt b { display: block; font: 700 15.5px var(--body); }
.rbx-wt small { display: block; margin-top: 2px; font: 500 12.5px/1.4 var(--body); color: var(--muted); }
.rbx-go { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; }
.rbx-way[data-off] { opacity: .65; }
.rbx-way[data-off] .rbx-go { color: var(--muted); }
.rbx-way.shake { animation: rbxshake .35s; }
@keyframes rbxshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.rbx-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.rbx-or::before, .rbx-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

/* ===== bounties: today as a two-stop route, the rest as a plain schedule ===== */
.bty-today { margin: 4px 0 18px; padding: 20px 22px 24px; border: 1px solid var(--line-2); border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%), var(--surface); }
.bty-lab { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font: 500 12.5px var(--mono); color: var(--muted); }
.bty-lab b { font: 800 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.bty-lab em { margin-left: auto; font-style: normal; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px; }
.bty-run { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 160px) minmax(0, 1fr); align-items: center; gap: 8px; }
.bty-pet, .bty-egg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px; border-radius: 20px; color: var(--text); text-decoration: none; }
.bty-egg:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.bty-art { width: min(190px, 100%); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c, var(--accent)) 24%, transparent), transparent 70%); border: 1px dashed var(--line-2); margin-bottom: 8px; }
.bty-art img { width: 74%; height: 74%; object-fit: contain; }
.bty-pet small, .bty-egg small { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bty-pet h2, .bty-egg h2 { font: 800 clamp(20px, 3vw, 28px) var(--display); letter-spacing: -.035em; margin: 0; }
.bty-pet p, .bty-egg p { margin: 0; font: 500 12.5px var(--mono); color: var(--muted); }
.bty-pet h2 { color: var(--c, var(--text)); }
.bty-way { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 11px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.bty-way i { position: relative; width: 100%; height: 0; border-top: 2px dashed var(--line-2); }
.bty-way i::after { content: ""; position: absolute; right: -2px; top: -6px; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-top: 2px solid var(--accent); transform: rotate(45deg); }
.bty-way b { font: 500 15px var(--mono); color: var(--accent-text); text-transform: none; letter-spacing: -.03em; }
.bty-next { margin: 0 2px 22px; color: var(--muted); font-size: 14px; }
.bty-next b { color: var(--text); }
.bty-none { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 18px; }
.bty-list { border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--surface); }
.bty-r { display: grid; grid-template-columns: 130px minmax(0, 1fr) 22px minmax(0, 1fr) 90px; gap: 14px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--line); }
.bty-r:first-child { border-top: 0; }
.bty-r:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.bty-d b { display: block; font: 600 13px var(--mono); }
.bty-d small { font: 500 11px var(--mono); color: var(--muted); }
.bty-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.bty-who > div { min-width: 0; line-height: 1.2; }
.bty-who b { display: block; font: 600 14px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bty-who small { font: 500 11px var(--mono); color: var(--c, var(--muted)); }
.bty-i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.bty-i img { width: 86%; height: 86%; object-fit: contain; }
.bty-arrow { color: var(--muted); text-align: center; }
.bty-odds { text-align: right; font: 500 13px var(--mono); color: var(--accent-text); letter-spacing: -.02em; }
@media (max-width: 760px) {
  .bty-run { grid-template-columns: 1fr; }
  .bty-way { flex-direction: row; justify-content: center; } .bty-way i { width: 40px; transform: rotate(90deg); }
  .bty-r { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px; }
  .bty-d { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  .bty-arrow { display: none; }
}

/* ===== XL eggs: egg sheets with their XL pets listed under each ===== */
.xe .pagehead.art-banner { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 20px; min-height: 0; }
.xe .pagehead.art-banner::before, .xe .pagehead.art-banner::after { display: none; }
.xe .pagehead.art-banner h1, .xe .pagehead.art-banner p { color: var(--text); text-shadow: none; }
.xe .pagehead.art-banner p { color: var(--muted); opacity: 1; }
.xe .vx-tc { align-self: center; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: 600 13px var(--mono); text-decoration: none; }
.xe .vx-tc:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.xe-sec { margin-top: 26px; }
.xe-date { font: 500 13px var(--mono); color: var(--muted); margin: -2px 0 14px; }
.xe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.xe-card, .xe-egg { border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); overflow: hidden; }
.xe-egghead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--line-2); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.xe-egghead b { font: 700 16px var(--display); letter-spacing: -.02em; }
.xe-egghead.sm { padding: 10px 14px; } .xe-egghead.sm b { font-size: 14px; }
.xe-ei { width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.xe-egghead.sm .xe-ei { width: 36px; height: 36px; }
.xe-ei img { width: 100%; height: 100%; object-fit: contain; }
.xe-pets { display: flex; flex-direction: column; }
.xe-pet { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.xe-pet:first-child { border-top: 0; }
.xe-pet:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.xe-pet b { flex: 1; min-width: 0; font: 600 14px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xe-pi { position: relative; width: 40px; height: 40px; flex: none; }
.xe-pi img { width: 100%; height: 100%; object-fit: contain; }
.xe-pi i { display: none; }
.xe-xl { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--mono); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 6px; padding: 2px 7px; }
.xe-up { display: grid; gap: 12px; }
.xe-day { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.xe-dh b { font: 600 13px var(--mono); color: var(--accent-text); }
.xe-day .xe-egg { grid-column: 2; margin-bottom: 8px; }
@media (max-width: 700px) { .xe-day { grid-template-columns: 1fr; } .xe-day .xe-egg { grid-column: 1; } }
.xe-card { padding: 0; }
.xe-day { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; grid-template-columns: 130px minmax(0, 1fr); }
.xe-dh { grid-column: 1; grid-row: 1 / span 12; margin: 0; padding: 4px 0 0; border: 0; }
.xe-up { grid-template-columns: minmax(0, 1fr); gap: 0; }
.xe-pets, .xe-egg .xe-pets { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border: 0; }
.xe-day .xe-egg { max-width: 520px; margin: 0 0 10px; }
.xe-egg + .xe-egg { margin-top: 0; }
.xe-pet { padding: 8px 16px; border-radius: 0; }
.xe-pet b { font: 600 14px var(--body); }

/* ===== smaller grids: calculator 4 across, trade tiles compact ===== */
.calc { max-width: 980px; margin-inline: auto; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
.calc .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.calc .slot, .calc .slot.empty { min-height: 0; aspect-ratio: 1 / 1.12; padding: 6px 4px 6px; gap: 2px; border-radius: 14px; }
.calc .slot .slot-img { width: 66%; margin-top: 6px; }
.calc .slot-tags { right: -8px; bottom: -4px; }
.calc .slot-tags .tgi { height: 20px; max-width: 54px; }
.calc .slot-tags .dtag { font-size: 8px; padding: 2px 4px; }
.calc .slot-name { font: 600 11px/1.15 var(--body); margin-top: 3px; }
.calc .slot-val { font: 600 11.5px var(--mono); }
.calc .slot-ctl button { width: 19px; height: 19px; font-size: 12px; }
.calc .side-top h3 { font-size: 18px; }
.calc .side-total { font-size: 22px; }
@media (max-width: 760px) { .calc .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .calc .slot, .calc .slot.empty { aspect-ratio: 1 / 1.2; } }

.tgrid { grid-template-columns: repeat(auto-fill, minmax(70px, 76px)); gap: 8px; }
.tslot { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; padding: 0; gap: 3px; background: none; border: 0; border-radius: 0; }
.tslot .slot-img { grid-area: 1 / 1; width: 100%; max-width: none; aspect-ratio: 1; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; }
.tslot .slot-img img { width: 82%; height: 82%; }
.tslot .slot-val { grid-area: 1 / 1; align-self: end; justify-self: end; margin: 0 4px 4px 0; z-index: 1; padding: 1px 5px; border-radius: 6px; background: rgba(8, 5, 18, .82); color: #fff; font: 600 10.5px var(--mono); }
.tslot .qty { grid-area: 1 / 1; align-self: start; justify-self: start; position: static; margin: 4px 0 0 4px; z-index: 1; font-size: 10px; border-radius: 6px; }
.tslot .vmark { top: 4px; right: 4px; left: auto; }
.tslot .slot-name { grid-row: 2; font: 600 11px/1.2 var(--body); max-width: 100%; text-align: center; }
.tslot .vpill { grid-row: 3; font-size: 8.5px; }
.tslot .tfoot { display: none; }

/* ===== bounties, simpler: round pictures, no ornament ===== */
.bty-today { background: var(--surface); border-radius: 22px; padding: 22px 24px 26px; }
.bty-lab { margin-bottom: 8px; }
.bty-lab b { letter-spacing: .1em; }
.bty-run { grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) minmax(0, 1fr); }
.bty-pet, .bty-egg { padding: 10px; }
.bty-art { width: 150px; height: 150px; aspect-ratio: auto; border-radius: 50%; overflow: hidden; border: 3px solid var(--c, var(--line-2)); background: var(--surface-2); margin-bottom: 10px; }
.bty-egg .bty-art { border-color: var(--line-2); }
.bty-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bty-egg .bty-art img { width: 78%; height: 78%; object-fit: contain; border-radius: 0; }
.bty-pet small, .bty-egg small { letter-spacing: .1em; }
.bty-pet h2, .bty-egg h2 { font-size: clamp(19px, 2.6vw, 25px); }
.bty-way { font-size: 10.5px; }
.bty-way i { border-top-style: solid; border-top-width: 1px; }
.bty-way b { font-size: 14px; }
.bty-i { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 2px solid var(--c, var(--line-2)); }
.bty-i img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bty-who:not([style]) .bty-i { border-color: var(--line-2); }
.bty-who:not([style]) .bty-i img { width: 78%; height: 78%; object-fit: contain; border-radius: 0; }
.bty-list { border-radius: 18px; }
.bty-r { padding: 9px 18px; }
@media (max-width: 760px) { .bty-art { width: 120px; height: 120px; } }

/* ===== XL eggs, simpler: round pictures, plain sheets ===== */
.xe-card, .xe-egg { border-radius: 18px; background: var(--surface); }
.xe-egghead, .xe-egghead.sm { background: none; border-bottom: 1px solid var(--line); padding: 12px 14px; gap: 10px; }
.xe-ei, .xe-egghead.sm .xe-ei { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); padding: 5px; box-sizing: border-box; }
.xe-egghead.sm .xe-ei { width: 34px; height: 34px; padding: 4px; }
.xe-egghead b, .xe-egghead.sm b { font: 700 15px var(--display); }
.xe-pet { padding: 7px 14px; gap: 10px; }
.xe-pi { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 2px solid var(--line-2); flex: none; }
.xe-pi img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.xe-xl { border: 0; background: none; padding: 0; color: var(--accent-text); font: 600 11px var(--mono); }
.xe-xl img { height: 12px; }
.xe-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.xe-day { grid-template-columns: 110px repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.xe-dh { grid-row: 1 / span 8; }
.xe-day .xe-egg { grid-column: auto; max-width: none; margin: 0; }
@media (max-width: 900px) { .xe-day { grid-template-columns: 90px repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .xe-day { grid-template-columns: minmax(0, 1fr); } .xe-dh { grid-row: auto; } }

.xe-dh { grid-row: 1; }
.xe-day { row-gap: 12px; }

/* ===== Infinity: the game's real rainbow, on a flat tag (no glow, no shimmer) ===== */
:root, :root[data-theme="dark"] {
  --inf: linear-gradient(100deg, #ff5fa8 0%, #ffb23e 24%, #3fe0bd 48%, #5aa2ff 72%, #b06bff 100%);
  --pet-rarity-gradient-infinity: linear-gradient(100deg, #ff5fa8, #ffb23e 25%, #3fe0bd 50%, #5aa2ff 75%, #b06bff);
}
.badge.infinity, .badge.Infinity { background: var(--inf); background-size: 100% 100%; animation: none; color: #170b24; border: 0; border-radius: 6px; padding: 2px 9px; box-shadow: none; font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pv-tier.inf, .inf { background: var(--pet-rarity-gradient-infinity); -webkit-background-clip: text; background-clip: text; color: transparent; }

.login-nudge { display: none !important; }

/* ===== every card rounded on all four corners ===== */
.item { border-radius: 18px; overflow: hidden; }
.item .orb { border-top: 0; border-radius: 0; box-shadow: inset 0 3px 0 var(--orb, var(--accent)); }
.card, .inv-tile, .tslot, .calc .slot, .pstats > div, .pv-col, .pv-block, .pv-hero, .pv-art, .xe-card, .xe-egg { border-radius: 16px; }
.p-head .av { border-radius: 50%; }
.slot { border-radius: 14px; }
.slot.inf, .orb.infinity { border-radius: 14px; }

/* ===== XL eggs layout, final ===== */
.xe-up { display: block !important; columns: auto !important; }
.xe-day { display: grid !important; grid-template-columns: 96px minmax(0, 1fr) !important; gap: 16px !important; align-items: start; padding: 18px 0 !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; }
.xe-dh { grid-column: 1 !important; grid-row: auto !important; padding: 2px 0 0 !important; margin: 0 !important; border: 0 !important; display: flex; flex-direction: column; gap: 2px; }
.xe-dh b { font: 700 15px var(--display) !important; color: var(--text) !important; }
.xe-dh small { font: 500 12px var(--mono); color: var(--muted); }
.xe-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; min-width: 0; }
.xe-day .xe-egg { margin: 0 !important; max-width: none !important; width: auto; }
.xe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.xe-sec { margin-top: 30px; }
@media (max-width: 640px) { .xe-day { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; } .xe-dh { flex-direction: row; align-items: baseline; gap: 8px; } }

/* ===== XL eggs: one line per egg, egg then its XL pets ===== */
.xl .pagehead { align-items: flex-end; }
.xl-link { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: 600 13px var(--mono); text-decoration: none; }
.xl-link:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.xl h2 { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.xl-now { padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); }
.xl-now-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; font: 500 13px var(--mono); color: var(--muted); }
.xl-now-h em { margin-left: auto; font-style: normal; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 11px; }
.xl-rows { display: flex; flex-direction: column; min-width: 0; }
.xl-line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.xl-rows > .xl-line:first-child { border-top: 0; }
.xl-egg { flex: none; display: flex; align-items: center; gap: 10px; width: 210px; color: var(--text); text-decoration: none; }
.xl-egg b { font: 700 15px var(--display); letter-spacing: -.02em; }
.xl-egg:hover b { color: var(--accent-text); }
.xl-ei { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.xl-ei img { width: 74%; height: 74%; object-fit: contain; }
.xl-to { color: var(--muted); flex: none; }
.xl-pets { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.xl-pet { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font: 600 13px var(--body); }
.xl-pet:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.xl-pi { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface); }
.xl-pi img { width: 100%; height: 100%; object-fit: cover; }
.xl-next { margin-top: 30px; }
.xl-next h2 { margin-bottom: 8px; }
.xl-day { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.xl-date b { display: block; font: 700 16px var(--display); }
.xl-date small { font: 500 12px var(--mono); color: var(--muted); }
.xl-day .xl-line { padding: 8px 0; border: 0; }
@media (max-width: 760px) {
  .xl-line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .xl-egg { width: auto; } .xl-to { display: none; }
  .xl-day { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .xl-date { display: flex; gap: 8px; align-items: baseline; }
}

/* ===== XL eggs: one timeline, today at the top, XL badge on every pet ===== */
.xl-tl { position: relative; margin-left: 8px; padding-left: 30px; border-left: 2px solid var(--line-2); }
.xl-stop { position: relative; padding: 4px 0 26px; }
.xl-stop::before { content: ""; position: absolute; left: -40px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line-2); box-sizing: border-box; }
.xl-stop.now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.xl-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.xl-when b { font: 800 20px var(--display); letter-spacing: -.03em; }
.xl-stop.now .xl-when b { color: var(--accent-text); }
.xl-when small { font: 500 12.5px var(--mono); color: var(--muted); }
.xl-when em { font: 500 11.5px var(--mono); font-style: normal; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; }
.xl-rows { display: flex; flex-direction: column; gap: 10px; }
.xl-line { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); min-width: 0; }
.xl-stop.now .xl-line { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.xl-egg { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); text-decoration: none; }
.xl-egg b { font: 700 13px/1.2 var(--display); }
.xl-ei { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.xl-ei img { width: 74%; height: 74%; object-fit: contain; }
.xl-pets { display: flex; flex-wrap: wrap; gap: 14px; padding-left: 18px; border-left: 1px dashed var(--line-2); min-width: 0; }
.xl-pet { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); text-decoration: none; }
.xl-pi { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); }
.xl-pi > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.xl-b { position: absolute; right: -8px; bottom: -4px; height: 22px; padding: 2px 5px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; }
.xl-b img { height: 14px; width: auto; display: block; }
.xl-pn { font: 600 11.5px/1.2 var(--body); }
.xl-pet:hover .xl-pi { border-color: var(--accent); }
.xl-pet:hover .xl-pn { color: var(--accent-text); }
@media (max-width: 700px) {
  .xl-tl { padding-left: 22px; }
  .xl-stop::before { left: -32px; }
  .xl-line { flex-direction: column; align-items: flex-start; gap: 12px; }
  .xl-egg { flex-direction: row; width: auto; } .xl-egg b { text-align: left; }
  .xl-pets { padding-left: 0; border-left: 0; }
}
.xl-pet { padding: 0; border: 0; border-radius: 0; background: none; }
.xl-pet:hover { background: none; }
.xl-pi { overflow: visible; flex: none; }
.xl-b { right: -6px; bottom: -2px; width: 26px; height: 22px; padding: 0; background: var(--accent); border-color: var(--bg); border-width: 2px; border-radius: 8px; }
.xl-b img { height: 12px; filter: brightness(0) invert(1); }

/* ===== calculator swap sits mid-way; post-an-ad grid keeps one size; picker tag is a corner logo ===== */
.calc-swap { align-self: center; margin: 0 auto; }
@media (max-width: 760px) { .calc-swap { margin: 0 auto; } }
.comp-side .slot, .comp-side .slot.empty { aspect-ratio: auto; height: 112px; min-height: 0; overflow: hidden; box-sizing: border-box; }
.comp-side .slot.empty { display: grid; place-items: center; }
.comp-side .slot:not(.empty) { justify-content: flex-start; }
.comp-side .slot .slot-img { max-height: 56px; }
.comp-side .slot .slot-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-img { position: relative; display: inline-block; width: 54px; height: 54px; }
.pick-img > img { width: 100%; height: 100%; object-fit: contain; }
.pick-img .slot-tags { position: absolute; right: -8px; bottom: -4px; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 2px; pointer-events: none; }
.pick-img .slot-tags .tgi { height: 18px; width: auto; max-width: 44px; margin: 0; }
.pick-img .slot-tags .ctag, .pick-img .slot-tags .aatag, .pick-img .slot-tags .vtag { font-size: 7px; padding: 1px 4px; }
.pick small:empty { display: none; }

/* ===== home tile text clears the icon; XL icon is the game art; Infinity tags stay rainbow ===== */
.tile { padding-right: 76px; }
.tile span { display: block; line-height: 1.3; }
@media (max-width: 700px) { .tile { padding-right: 56px; } }
.xl-b { background: color-mix(in srgb, var(--bg) 85%, #000); width: auto; min-width: 34px; height: 24px; padding: 0 4px; border: 2px solid var(--bg); }
.xl-b img { height: 16px; filter: none; }
.xl-h { height: .82em; width: auto; vertical-align: -.04em; }
:root { --r-infinity: #b46bff; }
.rtag[title="Infinity"], .rtag[style*="infinity"], .vx-imgtag .rtag[title="Infinity"] { background: rgba(12, 10, 20, .88); border-color: #b46bff; color: transparent; background-image: linear-gradient(100deg, #ff5fa8, #ffb23e 25%, #3fe0bd 50%, #5aa2ff 75%, #b06bff); -webkit-background-clip: text; background-clip: text; }
.badge.infinity, .badge.Infinity { background: var(--inf) !important; color: #170b24 !important; }
.ai-tag.infinity { background: var(--inf); color: #170b24; }
.pagehead h1 .xl-h { display: inline-block; height: .8em; margin-right: .12em; }
.hm-n .xl-h { height: 16px; width: auto; vertical-align: middle; margin: 0; }
.xl-b { background: transparent; border: 0; box-shadow: none; padding: 0; width: auto; min-width: 0; height: auto; right: -10px; bottom: -4px; }
.xl-b img { height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }

/* ===== trading divider with logo; tags sit on the pet; calculator 3x3 with demand under the value ===== */
.trade-cols, .composer-sides { grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 10px; }
.swap { position: relative; width: 34px; background: none; font-size: 0; display: flex; justify-content: center; align-self: stretch; }
.swap::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line-2); border-radius: 2px; }
.swap i { position: relative; align-self: center; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); color: var(--accent-text); }
@media (max-width: 860px) {
  .trade-cols, .composer-sides { grid-template-columns: minmax(0, 1fr); }
  .swap { width: 100%; height: 34px; transform: none; }
  .swap::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; margin: -1px 0 0; }
  .swap i { transform: rotate(90deg); }
}
.tslot .slot-img, .comp-side .slot .slot-img { position: relative; }
.tslot .slot-tags, .comp-side .slot .slot-tags { position: absolute; right: 2px; bottom: 2px; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 2px; pointer-events: none; z-index: 2; }
.tslot .slot-tags .tgi, .comp-side .slot .slot-tags .tgi { height: 20px; width: auto; max-width: 48px; margin: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.tslot .slot-tags .ctag, .tslot .slot-tags .aatag, .tslot .slot-tags .vtag, .comp-side .slot .slot-tags .ctag, .comp-side .slot .slot-tags .aatag, .comp-side .slot .slot-tags .vtag { font-size: 7px; padding: 1px 4px; }
.tslot .vmark { z-index: 3; }
.tslot .slot-val { z-index: 1; }
/* tags on value / home cards overlap the pet itself */
.vx-img .vx-imgtag { right: 9%; bottom: 9%; }
.item .orb .vx-imgtag { right: 12%; bottom: 10%; }
/* calculator: 3x3, plus centred, demand under the value */
.calc .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc .slot, .calc .slot.empty { aspect-ratio: 1 / 1.1; }
.calc .slot.empty { display: grid; place-items: center; padding: 0; }
.calc .slot.empty span { display: block; line-height: 1; font-size: 26px; margin: 0; }
.calc .slot .dtag { position: static; align-self: center; margin-top: 3px; font: 700 9px/1 var(--mono); padding: 3px 7px; border-radius: 6px; }
@media (max-width: 760px) { .calc .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }

/* player search inside the pet pickers */
.picker-list { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; margin-bottom: 8px; background: var(--surface-2); }
.pres-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; color: var(--text); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.pres-row:first-child { border-top: 0; }
.pres-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pres-row img { width: 30px; height: 30px; border-radius: 50%; }
.pres-row small { display: block; font: 500 11px var(--mono); color: var(--muted); }
/* calculator: filled tile has room for name, value and demand; plus is centred */
.calc .slot:not(.empty) { aspect-ratio: auto; min-height: 168px; justify-content: flex-start; }
.calc .slot.empty { min-height: 150px; }
.calc .slot.empty > span { position: static; margin: 0; }
.calc .slot.empty { text-align: center; }
/* trade tiles: tags bottom-left so they never cover the value */
.tslot .slot-tags { right: auto; left: 3px; align-items: flex-start; }
.calc .slot.empty, .comp-side .slot.empty { grid-template-columns: minmax(0, 1fr); justify-content: center; align-content: center; justify-items: center; }
.panel h3 { display: flex; align-items: center; gap: 9px; }
.panel h3 .hico { width: 24px; height: 24px; object-fit: contain; flex: none; }
.panel h3 small { margin-left: 2px; }
.panel h3:has(.hico)::before { display: none; }
/* calculator: a bigger remove button */
.calc .slot-ctl { gap: 4px; align-items: center; }
.calc .slot-ctl .x { width: 30px; height: 30px; font-size: 20px; border-width: 2px; }
.calc .slot-ctl button:not(.x) { width: 22px; height: 22px; font-size: 14px; }
.pres-h { padding: 8px 12px 4px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.picker-list { max-height: 300px; overflow-y: auto; }
.picker-grid > p { grid-column: 1 / -1; }
.picker-list { max-height: 230px; }

/* calculator verdict: plain coloured word, no box */
.calc-verdict { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 4px 0 18px; background: none; border: 0; min-height: 34px; }
.calc-verdict b { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.calc-verdict small { font: 500 14px var(--mono); color: var(--muted); }
.calc-verdict.win b { color: var(--good); }
.calc-verdict.fair b { color: var(--sky, #5aa2ff); }
.calc-verdict.lose b { color: var(--bad); }
/* More menu: Wiki placeholder */
.more-menu .more-soon { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 8px; opacity: 0; transform: translateX(10px); cursor: default; transition: opacity .22s ease, transform .26s ease; }
.more-menu.open .more-soon { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 28ms + 40ms); }
.more-menu .more-soon .mi { margin: 0; }
.more-menu .more-soon b { color: color-mix(in srgb, var(--text) 60%, transparent); }
.more-menu .more-soon em { margin-left: auto; font: 500 10.5px var(--mono); font-style: normal; color: var(--accent-text); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; }
