/* ==========================================================================
   Typer - grafit jak Pulpit (MR-20261116-TYPERGRAFIT). Prośba właściciela z 16.11.2026: „Karty zostaw, Typera też zrób
   na grafit”. Ta sama paleta co Pulpit i podstrony portalu (content/themes/xngine/css/mr-pulpit.css, mr-grafit.css):
   tło #1c1c1e, karty #2a2a2d, elementy na karcie #3a3a3e, linie rgba(255, 255, 255, .08). Akcent Typera (czerwień
   i złoto) bez zmian. Warstwa na świeży wygląd (typer-fresh.css, html.tp-fresh - domyślny), wczytywana po nim;
   wygląd „klasyczny” (granatowy motyw „Skład”) bez zmian. Tylko ciemny motyw.
   ========================================================================== */

html.tp-fresh:not([data-mr-theme="light"]) {
  --f-bg: #1c1c1e;
  --f-s1: #2a2a2d;
  --f-s2: #2f2f32;
  --f-s3: #3a3a3e;
  --f-line: rgba(255, 255, 255, .08);
  --f-line2: rgba(255, 255, 255, .14);
  --f-mut: #a1a1a6;
  --bg2: #232325;
  --tp-scroll-track: #1c1c1e; --tp-scroll-thumb: #48484c; --tp-scroll-thumb-hover: #5a5a5f;
  background: #1c1c1e;
}
/* tło strony bez czerwonej poświaty - jednolity grafit jak okno i Pulpit */
html.tp-fresh:not([data-mr-theme="light"]) body,
html.tp-fresh:not([data-mr-theme="light"]) body.tp-ux-v4 { background: #1c1c1e fixed; }
html.tp-fresh:not([data-mr-theme="light"]) ::-webkit-scrollbar-thumb { background: #48484c; border-color: #1c1c1e; }

/* menu po lewej (komputer) i dolna belka (telefon) */
@media (min-width: 800px) {
  html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .game-sidebar { background: rgba(42, 42, 45, .94); }
}
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .tabs-wrap { background: rgba(42, 42, 45, .97) !important; }

/* nagłówek, karty meczów, karta typowania */
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .screen-head { background: linear-gradient(180deg, rgba(47, 47, 50, .96), rgba(42, 42, 45, .96)); }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .bm { background: linear-gradient(180deg, #2f2f32, #2a2a2d); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .bm:hover { background: linear-gradient(180deg, #353538, #2e2e31); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .match.mcard { background: linear-gradient(180deg, #2f2f32, #2a2a2d); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .statbox input { background: #3a3a3e; }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .tp-save-area { background: linear-gradient(180deg, rgba(42, 42, 45, 0) 0, #2a2a2d 18px) !important; }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) :is(.bonusbox, .red-risk, .bankerbtn) { background-color: #3a3a3e !important; }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .bonusbox { background-image: linear-gradient(135deg, rgba(245, 196, 81, .16), rgba(245, 196, 81, .04) 60%) !important; }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .red-risk { background-image: linear-gradient(135deg, rgba(229, 32, 45, .2), rgba(229, 32, 45, .05) 60%) !important; }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .bankerbtn { background-image: linear-gradient(135deg, rgba(245, 196, 81, .14), rgba(255, 255, 255, .02) 60%) !important; }
html.tp-fresh.tp-fresh.tp-fresh.tp-fresh:not([data-mr-theme="light"]) .bankerbtn.on { background: linear-gradient(135deg, rgba(245, 196, 81, .34), rgba(245, 196, 81, .10) 60%), #3a3628 !important; }

/* Sezon i misje, rankingi, karta gracza */
html.tp-fresh:not([data-mr-theme="light"]) .tp-pass-level.unlocked { background: linear-gradient(180deg, rgba(229, 32, 45, .08), rgba(0, 0, 0, 0)), #2a2a2d !important; }
html.tp-fresh:not([data-mr-theme="light"]) :is(#view-ranking, #view-arena):is(#view-ranking, #view-arena) :is(.rank-grid-head, .mrc-rank-head, .ar-rank-head) { background: #3a3a3e !important; }
html.tp-fresh:not([data-mr-theme="light"]) .tp-pc2-top { background: radial-gradient(120% 110% at 0% 0%, color-mix(in srgb, var(--league-color) 18%, transparent), transparent 62%), linear-gradient(180deg, #333336, #2a2a2d) !important; }
html.tp-fresh:not([data-mr-theme="light"]) .tp-eng-dialog:has(.tp-pc2) { background: #2a2a2d; }
html.tp-fresh:not([data-mr-theme="light"]) .tp-pc2 :is(.tp-profile-section, .tp-profile-metrics-group) { background: #333336 !important; }

/* przyciski i ramki z typer-ux.css / engagement.css (#0b0b0b, #060e1a, #0a0a0a) */
html.tp-fresh:not([data-mr-theme="light"]) .tp-button { background: #3a3a3e; border-color: rgba(255, 255, 255, .1); }
html.tp-fresh:not([data-mr-theme="light"]) .tp-first-visit { background: #2a2a2d; border-color: rgba(255, 255, 255, .08); }
html.tp-fresh:not([data-mr-theme="light"]) .tp-eng-close { background: #3a3a3e; border-color: rgba(255, 255, 255, .1); }

/* okna (dialogi) i pola z motywu „Skład” (typer-mr-theme.css: granat #0b1530, pola #0a1226) */
html.tp-fresh:not([data-mr-theme="light"]) :is(.tp-eng-dialog, .ar-dialog) { background: #2a2a2d; border-color: rgba(255, 255, 255, .1); }
html.tp-fresh:not([data-mr-theme="light"]) .game-shell :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { background: #3a3a3e; border-color: rgba(255, 255, 255, .1); }
html.tp-fresh:not([data-mr-theme="light"]) .game-shell select option { background: #3a3a3e; }
html.tp-fresh:not([data-mr-theme="light"]) .mrgn :is(input[type="search"], select) { background: #3a3a3e; }

/* zakładki: Ranking, Arena, Kupon (typer-ux.css, arena.css, coins.css: #080808 / #141006) */
html.tp-fresh:not([data-mr-theme="light"]) .rank-filter-toggle { background-color: #3a3a3e; }
html.tp-fresh:not([data-mr-theme="light"]) .ar-league-scale span { background: #3a3a3e; }
html.tp-fresh:not([data-mr-theme="light"]) .tp-coupon-dock { background: #2a2a2d; border-color: rgba(245, 196, 81, .32); }
html.tp-fresh:not([data-mr-theme="light"]) .tp-coupon-toggle { background: linear-gradient(rgba(245, 196, 81, .1), rgba(245, 196, 81, .1)), #2a2a2d; }

/* Sezon i misje (engagement.css: ikonki #071526 / #111a25, poziomy #111, archiwum #080808) */
html.tp-fresh:not([data-mr-theme="light"]) :is(.tp-eng-kpis i, .tp-eng-kpis > div.dust i, .tp-record > i, .tp-pass-level > em, .tp-sprint-archive span) { background: #3a3a3e; }

/* Odznaki (arena.css, coins.css: #070707 / #090a0c) */
html.tp-fresh:not([data-mr-theme="light"]) .badge-overview > div { background: #2a2a2d; }
html.tp-fresh:not([data-mr-theme="light"]) #view-badges .badge-group-head > span { background: #3a3a3e; }
html.tp-fresh:not([data-mr-theme="light"]) #view-badges .badge-inventory-item { background: linear-gradient(180deg, #2f2f32, #2a2a2d) !important; border-color: rgba(255, 255, 255, .08) !important; }
html.tp-fresh:not([data-mr-theme="light"]) #view-badges .badge-inventory-item.earned { border-color: color-mix(in srgb, var(--badge-color) 58%, #3a3a3e) !important; }
html.tp-fresh:not([data-mr-theme="light"]) #view-badges .badge-item-preview { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--badge-color) 14%, rgba(255, 255, 255, .07)), #333336 72%); }
html.tp-fresh:not([data-mr-theme="light"]) #view-badges .badge-item-tier { background: #3a3a3e; }

/* Losuj skrzynkę (typer-ux.css, coins.css: #060606 / #070707 / #080b0f) */
html.tp-fresh:not([data-mr-theme="light"]) .tp-crate-summary { background: #2a2a2d; border-color: rgba(255, 255, 255, .08); }
html.tp-fresh:not([data-mr-theme="light"]) .mrc-crate-tier-big { background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--crate-color) 8%, transparent), transparent 55%), #2a2a2d; border-color: rgba(255, 255, 255, .08); }
html.tp-fresh:not([data-mr-theme="light"]) .mrc-crate-tier-big.ready { background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--crate-color) 16%, transparent), transparent 58%), #2a2a2d; border-color: color-mix(in srgb, var(--crate-color) 76%, #3a3a3e); }
html.tp-fresh:not([data-mr-theme="light"]) :is(.mrc-crate-big-badge, .mrc-crate-big-icon, .mrc-crate-big-status, .mrc-crate-focus-icon) { background: #3a3a3e; }
html.tp-fresh:not([data-mr-theme="light"]) .mrc-crate-tier-big.ready .mrc-crate-big-badge { background: color-mix(in srgb, var(--crate-color) 11%, #3a3a3e); }
html.tp-fresh:not([data-mr-theme="light"]) .mrc-crate-tier-big.ready .mrc-crate-big-status { background: color-mix(in srgb, var(--crate-color) 12%, #3a3a3e); }
html.tp-fresh:not([data-mr-theme="light"]) .mrc-crate-card-rarity { background: rgba(58, 58, 62, .92); border-color: rgba(255, 255, 255, .1); }
html.tp-fresh:not([data-mr-theme="light"]) .mrc-crate-focus { background: #2a2a2d; border-color: rgba(255, 255, 255, .08); }
html.tp-fresh:not([data-mr-theme="light"]) .mrc-crate-focus.ready { background: linear-gradient(110deg, color-mix(in srgb, var(--crate-color) 8%, #2a2a2d), #2a2a2d 54%); border-color: color-mix(in srgb, var(--crate-color) 65%, #3a3a3e); }
html.tp-fresh:not([data-mr-theme="light"]) .mrc-crate-action { background: #333336; }
html.tp-fresh:not([data-mr-theme="light"]) :is(.mrc-crate-history.compact, .mrc-limited-compact) { background: #2a2a2d; border-color: rgba(255, 255, 255, .08); }

/* Ekwipunek (typer-ux.css: #060606, założony przedmiot #07101d) */
html.tp-fresh:not([data-mr-theme="light"]) .tp-segments { background: #2a2a2d; border-color: rgba(255, 255, 255, .08); }
html.tp-fresh:not([data-mr-theme="light"]) .tp-segments > button.on { background: #3a3a3e; border-color: rgba(255, 255, 255, .16); }
html.tp-fresh:not([data-mr-theme="light"]) .tp-preview-row:not(.mrc-row-skin) { background: #333336; }
html.tp-fresh:not([data-mr-theme="light"]) .tp-item { background: #2a2a2d; border-color: rgba(255, 255, 255, .08); }
html.tp-fresh:not([data-mr-theme="light"]) .tp-item.equipped { background: linear-gradient(rgba(10, 132, 255, .08), rgba(10, 132, 255, .08)), #2a2a2d; border-color: #0a84ff; }
html.tp-fresh:not([data-mr-theme="light"]) .tp-dust-rules > i { background: #3a3a3e; }
/* podgląd „Twój wygląd” z ramką wiersza (coins.css: podkład #060708 pod kolorem ramki) */
html.tp-fresh:not([data-mr-theme="light"]) :is(#view-inventory, #view-ranking, body) .rank-sync-ui.rank-sync-ui .tp-preview-row.mrc-row-skin { background-color: #333336 !important; }


/* karta gracza (engagement.css: #050505, ikonka ligi #0a0a0a, nagłówki sekcji #0d1117) */
html.tp-fresh:not([data-mr-theme="light"]) .tp-profile-card { background: #2a2a2d; }
html.tp-fresh:not([data-mr-theme="light"]) .tp-profile-league-icon { background: #3a3a3e; }
html.tp-fresh:not([data-mr-theme="light"]) .tp-profile-metrics-group .tp-profile-section-head > span { background: #3a3a3e; }

/* telefon: Kupon w dolnej belce jak inne pozycje (coins.css: #060606 i niebieska ikonka), awatar w nagłówku */
@media (max-width: 799px) {
  html.tp-fresh:not([data-mr-theme="light"]) .game-sidebar .tab[data-tab="coins"],
  html.tp-fresh:not([data-mr-theme="light"]) .game-sidebar .tab[data-tab="coins"].active { background: transparent !important; }
  html.tp-fresh:not([data-mr-theme="light"]) .game-sidebar .tab[data-tab="coins"].active .tab-icon { color: #ff4b55 !important; }
  html.tp-fresh:not([data-mr-theme="light"]) .screen-user { background: #3a3a3e; border-color: rgba(255, 255, 255, .1); }
}
