/* Shared stat blocks (2026-11-07) — profile (player/v2 istatistik + genel) and dashboard widgets render the same markup
   from helpers/tw_stat_blocks_helper.php; these rules moved verbatim from the two profile views so both surfaces read one file.
   Tokens (--v2-*, --pv2s-*) come from the surrounding scope (.pv2 / .pv2s on the profile, dash-widgets.css on the dashboard). */

/* ── Statistics strip (was player/v2/istatistik.php <style>) ── */
/* Bölünmüş oran çubuğu (sicil kartı): yeşil = galibiyet payı, kalan kırmızı */
/* r7 Genel performans: tek panel — üst şerit 6 metrik, alt satır K/D/A + son maçlar */
.pv2s-sb { border-radius: 12px; background: var(--v2-sunk); border: 1px solid var(--v2-line); overflow: hidden; }
.pv2s-sb-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); }
.pv2s-sb-c { --tc: #e8e9f0; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border-inline-start: 1px solid var(--v2-line); }
.pv2s-sb-c:first-child { border-inline-start: 0; }
.pv2s-sb-c.is-g, .pv2s-sb-c.is-e { --tc: var(--v2-ok); } .pv2s-sb-c.is-w { --tc: #ff8a94; }
.pv2s-sb-l { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px !important; font-weight: 600 !important; color: #c9cdda; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv2s-sb-l i { flex: none; width: 18px; font-size: 13px !important; color: var(--tc); opacity: .85; text-align: center; }
.pv2s-sb-l abbr { text-decoration: none; border: 0; cursor: help; }
.pv2s-sb-v { font-size: 30px !important; font-weight: 800 !important; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; text-align: start; }
.pv2s-sb-f { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-height: 18px; }
.pv2s-sb-d { font-size: 13px !important; font-weight: 800 !important; color: #c9cdda; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv2s-sb-d.is-g { color: var(--v2-ok); } .pv2s-sb-d.is-w { color: #ff8a94; }
/* Seviye işareti (27.10): 4 kademe; dolu kademe sayısı seviyeyi söyler (zayıf 1 · dengeli 2 · etkili 3 · elit 4), renk ikinci kanal.
   Renk: zayıf kırmızımsı, dengeli nötr, etkili ve elit yeşil (mevcut renkler). Parlama yok; giriş yalnız scaleY + opacity */
.pv2s-sb-c.is-m { --tc: var(--pv2s-mid); }   /* elit rengi bilerek değişmedi (yeşil, Valorant görünümü aynı kalsın); elit 4. kademeden okunur */
.pv2s-sb-t { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 12px !important; font-weight: 700 !important; line-height: 1.3; color: var(--tc); white-space: nowrap; }
.pv2s-lv { display: inline-grid; grid-template-columns: repeat(4, 12px); gap: 3px; flex: none; }
.pv2s-lv i { display: block; height: 6px; border-radius: 2px; background: rgba(255,255,255,.14); }
.pv2s-lv i.on { background: var(--tc); transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .pv2s-lv i.on { animation: pv2sLvIn .28s cubic-bezier(.4,0,.2,1) both; animation-delay: calc(140ms + var(--n, 0) * 50ms); } }
@keyframes pv2sLvIn { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
.pv2s-sb-c.is-wr { --tc: #ffd166; }
.pv2s-sb-wl { font-size: 13px !important; font-weight: 600 !important; color: #c9cdda; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv2s-sb-wl b { font-size: 14px !important; font-weight: 800 !important; margin-inline-end: 1px; } .pv2s-sb-wl .is-g { color: var(--v2-ok); } .pv2s-sb-wl .is-w { color: #ff8a94; }
.pv2s-sb-bot { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-top: 1px solid var(--v2-line); background: rgba(255,255,255,.025); }
.pv2s-sb-kda { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; min-width: 0; padding: 14px 0; }
.pv2s-sb-kda > div { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 0 18px; border-inline-start: 1px solid var(--v2-line); }
.pv2s-sb-kda > div:first-child { border-inline-start: 0; }
.pv2s-sb-kda dt { display: flex; align-items: center; gap: 7px; font-size: 12px !important; font-weight: 600 !important; color: #c9cdda; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv2s-sb-kda dt i { flex: none; font-size: 12px !important; opacity: .85; }
.pv2s-sb-kda .is-k dt i { color: var(--v2-ok); } .pv2s-sb-kda .is-d dt i { color: #ff8a94; } .pv2s-sb-kda .is-a dt i { color: #9db4d6; }
.pv2s-sb-kda dd { margin: 0; font-size: 22px !important; font-weight: 800 !important; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv2s-sb-kda dd.pm { font-size: 12px !important; font-weight: 400 !important; color: var(--pv2s-dim); line-height: 1.3; }
.pv2s-sb-form { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-areas: "fl fo" "sp sp"; align-items: center; gap: 10px 14px; min-width: 0; padding: 14px 18px; border-inline-start: 1px solid var(--v2-line); }
.pv2s-sb-fl { grid-area: fl; font-size: 12px !important; font-weight: 600 !important; color: #c9cdda; white-space: nowrap; }
.pv2s-sb-fo { grid-area: fo; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.pv2s-sb-fo li { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; font-size: 12px !important; font-weight: 800 !important; background: rgba(255,255,255,.08); color: #c9cdda; }
.pv2s-sb-fo .is-w { background: rgba(52,211,153,.2); color: #6ee7b7; } .pv2s-sb-fo .is-l { background: rgba(255,107,120,.2); color: #ff9aa4; }
.pv2s-sb-form .pv2s-split { grid-area: sp; height: 6px; border-radius: 3px; }
/* Son maç kareleri sırayla belirir (tek seferlik, 40ms kademe); hareket kapalıysa yok */
@media (prefers-reduced-motion: no-preference) { .pv2s-sb-fo li { animation: pv2sFoIn .32s cubic-bezier(.4,0,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); } }
@keyframes pv2sFoIn { from { opacity: 0; transform: translateY(4px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 1099px) { .pv2s-sb-top { grid-template-columns: repeat(3, minmax(0,1fr)); } .pv2s-sb-c:nth-child(4) { border-inline-start: 0; } .pv2s-sb-c:nth-child(n+4) { border-top: 1px solid var(--v2-line); }
    .pv2s-sb-bot { grid-template-columns: minmax(0,1fr); } .pv2s-sb-form { border-inline-start: 0; border-top: 1px solid var(--v2-line); } }
@media (max-width: 599px) { .pv2s-sb-top { grid-template-columns: repeat(2, minmax(0,1fr)); } .pv2s-sb-c { padding: 12px 14px; border-top: 1px solid var(--v2-line); border-inline-start: 1px solid var(--v2-line); } .pv2s-sb-c:nth-child(-n+2) { border-top: 0; }
    .pv2s-sb-c:nth-child(odd) { border-inline-start: 0; } .pv2s-sb-v { font-size: 24px !important; }
    .pv2s-sb-kda > div { padding: 0 12px; } .pv2s-sb-kda dd { font-size: 18px !important; } .pv2s-sb-form { padding: 12px 14px; grid-template-columns: minmax(0,1fr); grid-template-areas: "fl" "fo" "sp"; } .pv2s-sb-fo { justify-content: flex-start; } }
.pv2s-split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--v2-bad); }
.pv2s-split i { display: block; height: 100%; background: var(--v2-ok); }

/* ── K/D form chart (was player/v2/genel.php <style>) ── */
.pv2-form abbr[title] { text-decoration: underline dotted rgba(255,255,255,.4); text-underline-offset: 3px; cursor: help; border: 0; }
.pv2-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--v2-line); }
.pv2-form-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; min-width: 0; }
.pv2-form-h h3 { font-size: 14px !important; }
.pv2-form-avg { font-size: 12px !important; color: var(--v2-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv2-form-avg b { color: #fff; font-size: 14px !important; margin-inline-end: 3px; }
/* Form çizgi grafiği: sabit yükseklik; --pt üst (değer etiketi) / --ph çizim / --pb alt ("Son maç") payı. Nokta rengi = maç sonucu,
   çizgi + dolgu nötr (C2b: renk yalnız sonuçta, galibiyet/mağlubiyet noktası öne çıksın); 1,00 kesikli referans, etiketi sol eksende. RTL'de nokta mantıksal kenarla, SVG aynayla döner. */
.pv2-fc { --pt: 30px; --ph: 148px; --pb: 22px; display: grid; grid-template-columns: 34px minmax(0,1fr); height: calc(var(--pt) + var(--ph) + var(--pb)); min-width: 0; }
.pv2-fc-ax, .pv2-fc-plot { position: relative; min-width: 0; }
.pv2-fc-ax span { position: absolute; inset-inline-end: 8px; bottom: calc(var(--pb) + var(--ph) * var(--f)); transform: translateY(50%); font-size: 12px !important; line-height: 1; color: #a3a9bd; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv2-fc-ax span.is-ref { color: #e8e9f0; font-weight: 700 !important; }
.pv2-fc-grid { position: absolute; inset-inline: 0; height: 0; bottom: calc(var(--pb) + var(--ph) * var(--f)); border-top: 1px solid rgba(255,255,255,.07); }
.pv2-fc-grid.is-base { border-top-color: rgba(255,255,255,.18); }
.pv2-fc-grid.is-ref { border-top: 1px dashed rgba(255,255,255,.5); }
.pv2-fc svg { position: absolute; inset-inline: 0; bottom: var(--pb); width: 100%; height: var(--ph); overflow: visible; }
[dir="rtl"] .pv2-fc svg { transform: scaleX(-1); }
.pv2-fc-area { fill: url(#pv2FcFill); }
.pv2-fc-line { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; }
.pv2-fc-pt { position: absolute; inset-inline-start: var(--x); bottom: calc(var(--pb) + var(--ph) * var(--f)); width: 12px; height: 12px; margin-inline-start: -6px; margin-bottom: -6px; border-radius: 50%;
    background: #c3c8d8; box-shadow: 0 0 0 2px #121a3d; }
.pv2-fc-pt.is-w { background: var(--v2-ok); } .pv2-fc-pt.is-l { background: var(--v2-bad); }
.pv2-fc-pt.is-last { width: 16px; height: 16px; margin-inline-start: -8px; margin-bottom: -8px; box-shadow: 0 0 0 2px #121a3d, 0 0 0 4px #fff; }
.pv2-fc-v { position: absolute; inset-inline-start: var(--x); bottom: calc(var(--pb) + var(--ph) * var(--f) + 10px); transform: translateX(-50%); font-size: 13px !important; font-weight: 800 !important; line-height: 1;
    color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 3px rgba(9,13,34,.95), 0 0 2px rgba(9,13,34,.95); pointer-events: none; }
[dir="rtl"] .pv2-fc-v { transform: translateX(50%); }
.pv2-fc-v.is-last { bottom: calc(var(--pb) + var(--ph) * var(--f) + 12px); font-size: 14px !important; }
.pv2-fc-last { position: absolute; bottom: 0; inset-inline-end: 0; font-size: 12px !important; font-weight: 700 !important; line-height: 16px; color: #fff; white-space: nowrap; }
.pv2-fc-key { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 8px 0 0; padding: 0; padding-inline-start: 34px; font-size: 12px !important; color: #c3c8d8; }
.pv2-fc-key li { display: inline-flex; align-items: center; gap: 6px; }
.pv2-fc-key i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pv2-fc-key .is-w i { background: var(--v2-ok); } .pv2-fc-key .is-l i { background: var(--v2-bad); }
.pv2-fc-key .is-ref i { width: 16px; height: 0; border-radius: 0; border-top: 1px dashed rgba(255,255,255,.6); }
@media (max-width: 599px) { .pv2-fc { --pt: 26px; --ph: 124px; --pb: 20px; grid-template-columns: 30px minmax(0,1fr); } .pv2-fc-v, .pv2-fc-v.is-last { font-size: 12px !important; } .pv2-fc-key { padding-inline-start: 30px; } }
