/* page-explore.css — Explore, a set's page (Cards / Set Analytics) and Set
 * Rankings. Measurements are the app's (docs/web-parity/audit/03-explore-set-card.md
 * §5.2–5.4) at phone width; wide screens keep the hierarchy and use the room.
 * Tokens only. */

/* The shell already pads the column; the page adds none of its own (16px a side on a phone, as the app). */
.main-content > .ex-page, .public-main-content > .ex-page { padding-left: 0; padding-right: 0; padding-top: 0; }

/* ── Explore header and toolbar ─────────────────────────────────────────── */
.ex-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(var(--tb-primary-rgb), 0.10); }
.ex-head__row { display: flex; align-items: center; gap: 8px; color: var(--tb-primary-light); }
.ex-head__title { margin: 0 0 4px; font-size: 24px; line-height: 30px; font-weight: 700; color: var(--tb-text); letter-spacing: -0.01em; }
.ex-head__sub { margin: 0; font-size: 18px; line-height: 24px; color: var(--tb-text2); }
@media (min-width: 1024px) {
    .ex-head__title { font-size: var(--tb-fs-title); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
    .ex-head__sub { font-size: 16px; }
}

.ex-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.ex-search { flex: 1; min-width: 0; position: relative; }
.ex-search input::-webkit-search-cancel-button { cursor: pointer; }
.ex-filter-btn {
    flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--tb-surface-strong); background: var(--tb-surface); color: var(--tb-text2);
    cursor: pointer; transition: background 150ms ease-out, border-color 150ms ease-out;
}
.ex-filter-btn:hover { color: var(--tb-text); }
.ex-filter-btn.is-on { background: rgba(var(--tb-primary-rgb), 0.12); border-color: var(--tb-primary-light); color: var(--tb-text); }

.ex-filters { display: flex; flex-direction: column; gap: 12px; margin: -6px 0 18px; }
.ex-filters[hidden] { display: none; }
@media (min-width: 768px) { .ex-filters { flex-direction: row; flex-wrap: wrap; align-items: center; } .ex-filters .ex-select { min-width: 220px; } }
.ex-select { position: relative; display: flex; align-items: center; min-height: 38px; border: 2px solid rgba(var(--tb-primary-rgb), 0.30); border-radius: 8px; background: var(--tb-card); }
.ex-select select {
    appearance: none; -webkit-appearance: none; width: 100%; min-height: 34px; padding: 0 36px 0 14px; border: 0; background: transparent;
    color: var(--tb-text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.ex-select select:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 2px; border-radius: 6px; }
.ex-select select option { background: var(--tb-card); color: var(--tb-text); }
.ex-select .tb-icon { position: absolute; right: 12px; pointer-events: none; color: var(--tb-text2); }
.ex-select--narrow { align-self: flex-end; min-width: 92px; }
@media (min-width: 768px) { .ex-filters .ex-select--narrow { min-width: 92px; align-self: auto; } }
.ex-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tb-text2); cursor: pointer; }
.ex-check input { accent-color: var(--tb-primary); width: 16px; height: 16px; }

/* Language toggle: four equal segments, solid primary when on. */
.ex-lang { display: flex; width: 100%; margin-bottom: 24px; border: 1px solid rgba(var(--tb-primary-rgb), 0.20); background: transparent; }
.ex-lang .tb-seg__item { flex: 1; padding: 0 6px; color: var(--tb-text2); }
.ex-lang .tb-seg__item.is-active { color: var(--tb-on-primary); }
@media (min-width: 1024px) { .ex-lang { max-width: 560px; } }

.ex-spin { position: absolute; right: 38px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid rgba(var(--tb-primary-light-rgb), 0.25); border-top-color: var(--tb-primary-light); animation: ex-spin 0.8s linear infinite; }
.ex-spin[hidden] { display: none; }
.ex-spin--lg { position: static; display: inline-block; width: 22px; height: 22px; margin: 0; }
@keyframes ex-spin { to { transform: rotate(360deg); } }
.ex-wait, .ex-an-wait { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 0; color: var(--tb-muted); font-size: 13px; }
.ex-wait p, .ex-an-wait p { margin: 0; }

/* ── Set grid: 3 columns on a phone, as the app; 4–6 when there is room ── */
.ex-page .ex-set-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .ex-page .ex-set-grid { gap: 14px 8px; } }
@media (min-width: 768px) { .ex-page .ex-set-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ex-page .ex-set-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .ex-page .ex-set-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ex-page .tb-set-tile { border-radius: 12px; }
.ex-page .tb-set-tile__media { height: 100px; padding: 14px; overflow: hidden; }
.ex-page .ex-scrim { background: var(--tb-on-image); opacity: 0.62; }
.ex-page .tb-set-tile__art { height: 100%; }
.ex-page .tb-set-tile__body { gap: 0; padding: 12px; }
.ex-page .tb-set-tile__name { font-size: 15px; font-weight: 600; line-height: 19px; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.ex-page .tb-set-tile__meta { margin: 3px 0 8px; gap: 5px; }
.ex-lang-chip { font-size: 9px; font-weight: 800; letter-spacing: 0.02em; padding: 1.5px 5px; border-radius: 5px; border: 1px solid var(--tb-border); background: var(--tb-bg3); color: var(--tb-muted); text-transform: none; flex: 0 0 auto; }
@media (max-width: 400px) {
    .ex-page .tb-set-tile__media { height: 84px; padding: 10px; }
    .ex-page .tb-set-tile__body { padding: 10px 8px; }
    .ex-page .tb-set-tile__name { font-size: 13px; line-height: 17px; min-height: 34px; }
    .ex-page .tb-set-tile__series { font-size: 11px; }
    .ex-page .tb-set-tile__letter { width: 48px; height: 48px; }
}

/* ── Card tiles ──────────────────────────────────────────────────────────── */
.ex-page .ex-tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
@media (min-width: 768px) { .ex-page .ex-tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1100px) { .ex-page .ex-tile-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .ex-page .ex-tile-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ex-tile { border-radius: 12px; }
.ex-tile .tb-tile__art { background: linear-gradient(180deg, var(--tb-bg3), var(--tb-card2)); }
.ex-tile .tb-tile__body { padding: 6px 8px 8px; }
.ex-tile .tb-tile__name { font-weight: 600; }
.ex-tile--sealed .ex-tile__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 28px; }
.ex-tile .tb-tile__meta, .ex-tile .tb-tile__set { color: var(--tb-muted); }
.ex-tile .tb-tile__meta { min-height: 14px; }
.ex-tile__change { min-height: 13px; font-size: 9px; font-weight: 800; line-height: 13px; }
.ex-tile__chg.tb-up { color: var(--tb-success); }
.ex-tile__chg.tb-down { color: var(--tb-error); }
.ex-sealed { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--tb-primary); color: var(--tb-on-primary); font-size: 8px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; z-index: 2; }
@media (min-width: 1024px) {
    .ex-tile .tb-tile__name { font-size: 12.5px; line-height: 16px; }
    .ex-tile .tb-tile__meta, .ex-tile .tb-tile__set { font-size: 10.5px; line-height: 14px; }
    .ex-tile .tb-tile__price { font-size: 13px; }
    .ex-tile__change { font-size: 10.5px; line-height: 14px; }
}

/* Quick actions: heart / + / −, on the art (TileQuickActions). */
.ex-rail { top: 3px; right: 3px; gap: 3px; }
.ex-rail button {
    width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(var(--tb-text-rgb), 0.30); background: var(--tb-on-image); color: var(--tb-on-image-text);
    box-shadow: 0 2px 6px rgba(var(--tb-bg-rgb), 0.45); cursor: pointer; padding: 0;
}
.ex-rail button.is-on { color: var(--tb-error); border-color: rgba(var(--tb-error-rgb), 0.67); }
.ex-rail .ex-rail__add { color: var(--tb-primary-light); border-color: rgba(var(--tb-primary-light-rgb), 0.67); }
.ex-rail button:active { transform: scale(1.18); opacity: 0.82; }
.ex-rail button.is-spent, .ex-rail button:disabled { opacity: 0.35; cursor: default; }
.ex-owned {
    position: absolute; right: 5px; bottom: 5px; z-index: 2; display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 5px; border-radius: 999px; border: 1px solid rgba(var(--tb-success-rgb), 0.40); background: var(--tb-on-image); color: var(--tb-success);
    font-size: 9px; font-weight: 800; line-height: 12px;
}
.ex-owned b { font-weight: 800; }
.ex-fly { position: absolute; left: 0; right: 0; top: 42%; text-align: center; font-size: 26px; font-weight: 900; letter-spacing: -0.5px; z-index: 4; pointer-events: none; text-shadow: 0 2px 8px rgba(var(--tb-bg-rgb), 0.75); animation: ex-fly 620ms cubic-bezier(0.33, 1, 0.68, 1) forwards; }
.ex-fly--add { color: var(--tb-success); }
.ex-fly--remove { color: var(--tb-error); }
@keyframes ex-fly { 0% { opacity: 0; transform: translateY(0) scale(0.7); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(-52px) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .ex-fly { animation-duration: 1ms; } .ex-spin { animation-duration: 3s; } }

/* ── Set page ────────────────────────────────────────────────────────────── */
.ex-set__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.ex-back { align-self: flex-start; min-height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--tb-text2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ex-back:hover { color: var(--tb-text); }
.ex-set__info { display: flex; align-items: center; gap: 14px; min-height: 50px; }
.ex-set__logo { width: 116px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.ex-set__text { min-width: 0; }
.ex-set__title { margin: 0; font-size: 24px; font-weight: 800; color: var(--tb-text); letter-spacing: -0.01em; line-height: 1.2; }
.ex-set__meta { margin: 4px 0 0; font-size: 13px; color: var(--tb-muted); }
@media (min-width: 1024px) {
    .ex-set__logo { width: 160px; height: 64px; }
    .ex-set__title { font-size: var(--tb-fs-title); letter-spacing: -0.03em; }
}

/* Cards / Analytics pill. */
.ex-pill { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 999px; border: 1px solid rgba(var(--tb-primary-rgb), 0.18); background: var(--tb-surface); }
@media (min-width: 1024px) { .ex-pill { max-width: 420px; } }
.ex-pill__item {
    flex: 1; min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    border: 0; border-radius: 999px; background: transparent; color: var(--tb-text2); font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; cursor: pointer;
}
.ex-pill__item:hover { color: var(--tb-text); }
.ex-pill__item.is-active { background: linear-gradient(135deg, var(--tb-primary), var(--tb-accent)); color: var(--tb-text); }
.ex-pro { padding: 1px 5px; border-radius: 999px; background: var(--tb-accent); color: var(--tb-bg); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; line-height: 13px; }

/* ── Set Analytics ───────────────────────────────────────────────────────── */
.ex-an-grid { display: flex; flex-direction: column; gap: 14px; }
.ex-an-grid > .tb-card { margin: 0; border-radius: 18px; padding: 16px; background: var(--tb-bg2); overflow: hidden; }
@media (min-width: 1024px) {
    .ex-an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
    .ex-an-grid > * { order: var(--ex-o, 0); }
    .ex-an-grid > [data-span="2"] { grid-column: span 2; }
    .ex-an-grid > .tb-card { padding: 20px; }
}
.ex-an-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ex-an-head .tb-section-head { margin-bottom: 12px; flex: 1; min-width: 0; }
.ex-an-trail { font-size: 13px; font-weight: 800; white-space: nowrap; }
.ex-page .tb-up { color: var(--tb-success); }
.ex-page .tb-down { color: var(--tb-error); }
.ex-page .tb-muted { color: var(--tb-muted); }

.ex-an-hero { position: relative; padding-bottom: 14px !important; }
.ex-an-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(var(--tb-primary-rgb), 0.19), var(--ex-hero-trend, transparent)); }
.ex-an-hero--up { --ex-hero-trend: rgba(var(--tb-success-rgb), 0.12); }
.ex-an-hero--down { --ex-hero-trend: rgba(var(--tb-error-rgb), 0.12); }
.ex-an-hero--flat { --ex-hero-trend: rgba(var(--tb-muted-rgb), 0.12); }
.ex-an-hero > * { position: relative; }
.ex-an-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ex-an-hero__value { margin: 4px 0 0; font-size: 30px; font-weight: 900; letter-spacing: -0.5px; color: var(--tb-text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ex-an-hero__cap { margin: 1px 0 0; font-size: 12px; color: var(--tb-text2); }
@media (min-width: 1024px) { .ex-an-hero__value { font-size: var(--tb-fs-hero); } }

.ex-chips { display: flex; gap: 8px; margin-top: 14px; }
.ex-chip { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--tb-border); background: var(--tb-card); }
.ex-chip__label { font-size: 9px; font-weight: 800; letter-spacing: 0.8px; color: var(--tb-muted); }
.ex-chip__val { margin-top: 2px; font-size: 14px; font-weight: 800; color: var(--tb-text); font-variant-numeric: tabular-nums; min-height: 18px; }

.ex-an-pop { position: relative; display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; transition: opacity 150ms ease-out, border-color 150ms ease-out; }
.ex-an-pop::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(var(--tb-accent-rgb), 0.12), rgba(var(--tb-primary-rgb), 0.08)); }
.ex-an-pop > * { position: relative; }
.ex-an-pop:hover { border-color: var(--tb-border-strong); }
.ex-an-pop .tb-section-head { margin-bottom: 0; }
.ex-an-pop__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.ex-an-pop__rank { display: flex; align-items: baseline; gap: 6px; }
.ex-an-pop__rank b { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: var(--tb-text); line-height: 1; }
.ex-an-pop__rank span { font-size: 13px; font-weight: 700; color: var(--tb-text2); }
.ex-an-pop__vol { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-weight: 700; }
.ex-an-pop__vol b { font-size: 16px; font-weight: 800; color: var(--tb-text); }
.ex-an-pop__vol small { font-size: 12px; font-weight: 600; color: var(--tb-muted); }
.ex-an-pop__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--tb-border); color: var(--tb-primary-light); font-size: 12.5px; font-weight: 800; }

.ex-delta { display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--tb-border); background: var(--tb-card); color: var(--tb-muted); font-size: 12.5px; font-weight: 800; white-space: nowrap; line-height: 1.2; }
.ex-delta--sm { padding: 2px 6px; font-size: 11px; }
.ex-delta--new { color: var(--tb-accent); background: rgba(var(--tb-accent-rgb), 0.13); border-color: rgba(var(--tb-accent-rgb), 0.40); font-weight: 900; }
.ex-delta--up { color: var(--tb-success); background: rgba(var(--tb-success-rgb), 0.13); border-color: rgba(var(--tb-success-rgb), 0.33); font-weight: 900; }
.ex-delta--down { color: var(--tb-error); background: rgba(var(--tb-error-rgb), 0.13); border-color: rgba(var(--tb-error-rgb), 0.33); font-weight: 900; }

.ex-an-index { display: flex; flex-direction: column; }
.ex-an-chart { min-height: 210px; }
.ex-an-chart .tb-chart__foot { margin-top: 8px; }

.ex-an-grade { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; padding-bottom: 6px; }
.ex-an-grade__big { font-size: 38px; font-weight: 900; letter-spacing: -1px; color: var(--tb-success); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.ex-an-grade p { margin: 0; font-size: 13px; color: var(--tb-text2); }
.ex-an-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--tb-border); }
.ex-thumb { width: 34px; height: 47px; border-radius: 4px; object-fit: cover; background: var(--tb-surface); flex: 0 0 auto; display: block; }
.ex-an-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-an-row__name { font-size: 13px; font-weight: 700; color: var(--tb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-an-row__sub { font-size: 11.5px; color: var(--tb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-pillv { flex: 0 0 auto; padding: 4px 9px; border-radius: 8px; border: 1px solid; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-pillv--up { color: var(--tb-success); background: rgba(var(--tb-success-rgb), 0.13); border-color: rgba(var(--tb-success-rgb), 0.33); }
.ex-pillv--down { color: var(--tb-error); background: rgba(var(--tb-error-rgb), 0.13); border-color: rgba(var(--tb-error-rgb), 0.33); }

.ex-an-cap { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -0.5px; color: var(--tb-text); font-variant-numeric: tabular-nums; }

.ex-band { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.ex-band__label { width: 64px; flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--tb-text2); }
.ex-band__track { flex: 1; height: 8px; border-radius: 999px; background: var(--tb-surface); overflow: hidden; }
.ex-band__track span { display: block; height: 100%; border-radius: 999px; background: var(--tb-primary); }
.ex-band__count { width: 30px; text-align: right; font-size: 12.5px; font-weight: 800; color: var(--tb-text); font-variant-numeric: tabular-nums; }
.ex-band__foot { margin: 8px 0 0; font-size: 10.5px; color: var(--tb-muted); }

/* ── Rankings ────────────────────────────────────────────────────────────── */
.ex-rank-bg { position: absolute; left: 0; right: 0; top: 0; height: 360px; pointer-events: none; background: linear-gradient(180deg, rgba(var(--tb-primary-rgb), 0.15), transparent); }
.main-content, .public-main-content { position: relative; }
/* Signed out the page is a centred 1200px column, so the glow's sides would be hard edges: fade them. */
.public-main-content > .ex-rank-bg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.ex-rank { position: relative; max-width: 820px; }
.ex-rank__head { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; }
.ex-round-back { width: 34px; height: 34px; border-radius: 17px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--tb-surface); color: var(--tb-text2); cursor: pointer; }
.ex-round-back:hover { color: var(--tb-text); }
.ex-rank__head .tb-eyebrow { margin: 0; font-size: 10px; letter-spacing: 1.2px; }
.ex-rank__title { margin: 1px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -0.5px; color: var(--tb-text); }
@media (min-width: 1024px) { .ex-rank__title { font-size: var(--tb-fs-title); } }
.ex-rank__intro { padding-bottom: 14px; }
.ex-rank__intro p { margin: 0; font-size: 13px; line-height: 18px; color: var(--tb-text2); }
.ex-rank__intro .ex-rank__meta { margin-top: 6px; font-size: 11.5px; line-height: 16px; color: var(--tb-muted); }
.ex-rank__list { display: flex; flex-direction: column; gap: 8px; }
.ex-rank-row {
    display: flex; align-items: center; gap: 11px; height: 64px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--tb-border);
    background: var(--tb-bg2); color: inherit; text-decoration: none; transition: opacity 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}
.ex-rank-row:hover { border-color: var(--tb-border-strong); transform: translateY(-1px); }
.ex-rank-row.is-current { border-color: var(--tb-primary); background: rgba(var(--tb-primary-rgb), 0.10); }
.ex-rank-row__rank { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: var(--tb-text2); font-variant-numeric: tabular-nums; }
.ex-rank-row__rank[data-medal="1"] { color: var(--tb-medal-1); background: rgba(var(--tb-medal-1-rgb), 0.13); border-color: rgba(var(--tb-medal-1-rgb), 0.47); }
.ex-rank-row__rank[data-medal="2"] { color: var(--tb-medal-2); background: rgba(var(--tb-medal-2-rgb), 0.13); border-color: rgba(var(--tb-medal-2-rgb), 0.47); }
.ex-rank-row__rank[data-medal="3"] { color: var(--tb-medal-3); background: rgba(var(--tb-medal-3-rgb), 0.13); border-color: rgba(var(--tb-medal-3-rgb), 0.47); }
.ex-rank-row__logo { width: 40px; height: 30px; flex: 0 0 auto; object-fit: contain; }
.ex-rank-row__logo--none { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--tb-card); color: var(--tb-muted); }
.ex-rank-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-rank-row__name { font-size: 14px; font-weight: 700; color: var(--tb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-rank-row__sub { font-size: 11.5px; color: var(--tb-muted); white-space: pre; }
.ex-rank-row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.ex-rank-row__pct { font-size: 11px; font-weight: 700; }
