/* =========================================================
   Deadlockownia - rangi i stan gry (/statystyki/)
   ========================================================= */

.dl-r-drabinka,
.dl-r-kafle,
.dl-r-krzywa,
.dl-r-wynik,
.dl-r-stopka,
.dl-r-blad {
	--z: #eebb60;
	--z2: #c4963b;
	--dobry: #6fe0a3;
	--slaby: #ff7b7b;
	--txt: #f0f0f5;
	--muted: #9c9ca8;
	--linia: rgba(255, 255, 255, .08);
	font-family: 'Rajdhani', system-ui, sans-serif;
	color: var(--txt);
	box-sizing: border-box;
}
.dl-r-drabinka *, .dl-r-kafle *, .dl-r-krzywa * { box-sizing: border-box; }
.dl-r-blad { color: var(--slaby); text-align: center; padding: 36px 0; }
/* atrybut hidden przegrywa z wlasnym display, wiec wymuszamy - ale tylko u siebie */
.dl-r-wynik[hidden], .dl-r-drabinka [hidden], .dl-r-krzywa [hidden] { display: none !important; }

/* ---------------------------------------------------------
   DRABINKA
   --------------------------------------------------------- */
.dl-r-drabinka { display: grid; gap: 5px; }

.dl-r-stopien {
	appearance: none;
	display: grid;
	grid-template-columns: 58px minmax(120px, 190px) 1fr 66px 92px;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 7px 14px 7px 8px;
	text-align: left;
	background: rgba(255, 255, 255, .022) !important;
	border: 1px solid var(--linia) !important;
	border-radius: 0 !important;
	color: var(--txt) !important;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	box-shadow: none !important;
	text-shadow: none !important;
	font-family: inherit;
}
.dl-r-stopien:hover { background: rgba(238, 187, 96, .07) !important; border-color: rgba(238, 187, 96, .32) !important; }
.dl-r-stopien[aria-pressed="true"] {
	background: rgba(238, 187, 96, .12) !important;
	border-color: var(--z) !important;
}

.dl-r-ikona { display: flex; align-items: center; justify-content: center; }
.dl-r-ikona img { width: 54px; height: 54px; object-fit: contain; display: block; }

.dl-r-opis { min-width: 0; }
.dl-r-opis b {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .8px;
}
.dl-r-opis i {
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.1px;
	color: var(--muted);
}

.dl-r-pasek { display: block; height: 9px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dl-r-pasek i { display: block; height: 100%; background: var(--z); }

.dl-r-proc { font-size: 17px; font-weight: 800; color: var(--txt); text-align: right; }
.dl-r-ilu { font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: right; }

.dl-r-wynik {
	margin: 14px 0 0;
	padding: 13px 18px;
	font-size: 16px;
	line-height: 1.55;
	background: rgba(238, 187, 96, .08);
	border-left: 2px solid var(--z);
}
.dl-r-wynik b { color: var(--z); }
.dl-r-stopka { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------
   KAFLE Z LICZBAMI
   --------------------------------------------------------- */
.dl-r-kafle {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
	gap: 12px;
}
.dl-r-kafel {
	padding: 20px 16px;
	text-align: center;
	background: linear-gradient(180deg, #16161c, #101014);
	border: 1px solid var(--linia);
	clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}
.dl-r-kafel b {
	display: block;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--z);
	margin-bottom: 5px;
	white-space: nowrap;
}
.dl-r-kafel span {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: var(--muted);
}

/* ---------------------------------------------------------
   KRZYWA: JAK ZMIENIA SIE GRA
   --------------------------------------------------------- */
.dl-r-miary { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.dl-r-m {
	appearance: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 7px 14px;
	background: rgba(255, 255, 255, .04) !important;
	border: 1px solid var(--linia) !important;
	border-radius: 0 !important;
	color: var(--muted) !important;
	cursor: pointer;
	transition: all .16s;
	box-shadow: none !important;
	text-shadow: none !important;
}
.dl-r-m:hover { color: var(--txt) !important; border-color: rgba(238, 187, 96, .4) !important; }
.dl-r-m[aria-pressed="true"] { background: var(--z) !important; border-color: var(--z) !important; color: #14141a !important; }

.dl-r-miara-opis {
	margin: 0 0 20px;
	padding-left: 16px;
	border-left: 2px solid var(--z2);
	font-size: 15.5px;
	line-height: 1.55;
	color: #b8b8c4;
}

.dl-r-slupki {
	display: grid;
	grid-auto-flow: column;
	/* minmax(0,1fr) zamiast 1fr: bez tego kolumna nie zejdzie ponizej szerokosci
	   swojej tresci (etykiety maja nowrap) i caly wykres wypycha strone */
	grid-auto-columns: minmax(0, 1fr);
	gap: 6px;
	align-items: end;
	height: 300px;
	padding: 0 2px;
}
.dl-r-slupek { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }

.dl-r-wartosc {
	font-size: 13.5px;
	font-weight: 800;
	text-align: center;
	color: var(--txt);
	margin-bottom: 5px;
	white-space: nowrap;
}
.dl-r-kolumna {
	display: block;
	width: 100%;
	background: var(--z);
	border-top: 2px solid rgba(255, 255, 255, .28);
	transition: height .35s cubic-bezier(.4, 0, .2, 1);
	min-height: 4px;
}
.dl-r-stopka-slupka {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding-top: 7px;
	min-width: 0;
}
.dl-r-stopka-slupka img { width: 30px; height: 30px; object-fit: contain; }
.dl-r-stopka-slupka i {
	font-style: normal;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: var(--muted);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------------------------------------------------------
   MALE EKRANY
   --------------------------------------------------------- */
/* Na waskich ekranach 11 slupkow nie zmiesci sie czytelnie, wiec wykres
   dostaje wlasne przewijanie w poziomie zamiast sciskac sie do zera. */
@media (max-width: 780px) {
	.dl-r-krzywa .dl-r-slupki { min-width: 620px; }
	.dl-r-krzywa { overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
	.dl-r-krzywa .dl-r-miary,
	.dl-r-krzywa .dl-r-miara-opis { position: sticky; left: 0; }
}

@media (max-width: 860px) {
	.dl-r-stopien { grid-template-columns: 44px minmax(0, 1fr) 60px; gap: 11px; row-gap: 6px; }
	.dl-r-ikona img { width: 44px; height: 44px; }
	.dl-r-opis b { font-size: 16px; }
	.dl-r-pasek { grid-column: 1 / -1; }
	.dl-r-ilu { display: none; }
	.dl-r-slupki { height: 250px; gap: 4px; }
	.dl-r-wartosc { font-size: 11px; }
	.dl-r-stopka-slupka img { width: 22px; height: 22px; }
	.dl-r-stopka-slupka i { font-size: 8.5px; letter-spacing: 0; }
}
@media (max-width: 560px) {
	.dl-r-kafel b { font-size: 21px; }
	.dl-r-slupki { height: 210px; }
	.dl-r-wartosc { font-size: 11px; }
}

/* ---------------------------------------------------------
   SZKIELET STRONY
   Motyw nadrzedny przycina .site-main (500/600/800/1140 px),
   a drabinka i slupki potrzebuja miejsca - wychodzimy poza kontener.
   --------------------------------------------------------- */
.dl-r-strona {
	font-family: 'Rajdhani', system-ui, sans-serif;
	color: #f0f0f5;
	box-sizing: border-box;
	padding: 0 0 60px;
	width: min(1180px, calc(100vw - 44px));
	margin-left: calc(50% - min(590px, 50vw - 22px));
	margin-right: 0;
}
.dl-r-strona * { box-sizing: border-box; }

.dl-r-sekcja { margin-bottom: 56px; }
.dl-r-sekcja:last-child { margin-bottom: 0; }

.dl-r-strona h2 {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 8px;
	font-size: clamp(20px, 3vw, 27px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
}
.dl-r-strona h2::before {
	content: "";
	width: 9px; height: 9px;
	background: #eebb60;
	transform: rotate(45deg);
	flex: 0 0 auto;
	box-shadow: 0 0 10px rgba(238, 187, 96, .6);
}
.dl-r-strona .dl-r-wstep {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.6;
	color: #b8b8c4;
	max-width: 820px;
}
.dl-r-strona .dl-r-wstep a { color: #eebb60; font-weight: 700; }

.dl-r-odsylacz {
	display: block;
	padding: 18px 22px;
	background: linear-gradient(90deg, rgba(238, 187, 96, .1), rgba(238, 187, 96, .02));
	border: 1px solid rgba(238, 187, 96, .28);
	border-left: 2px solid #eebb60;
	text-decoration: none !important;
	transition: background .16s, border-color .16s;
}
.dl-r-odsylacz:hover { background: rgba(238, 187, 96, .16); border-color: #eebb60; }
.dl-r-odsylacz b {
	display: block;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.3px;
	color: #eebb60;
	margin-bottom: 3px;
}
.dl-r-odsylacz span { font-size: 15px; line-height: 1.5; color: #b8b8c4; }

@media (max-width: 720px) {
	.dl-r-strona {
		padding: 0 0 44px;
		width: min(1180px, calc(100vw - 32px));
		margin-left: calc(50% - min(590px, 50vw - 16px));
	}
	.dl-r-sekcja { margin-bottom: 42px; }
}

/* ---------------------------------------------------------
   MECZE NA ZYWO
   --------------------------------------------------------- */
.dl-z-lista { display: grid; gap: 10px; font-family: 'Rajdhani', system-ui, sans-serif; }
.dl-z-lista * { box-sizing: border-box; }

.dl-z-mecz {
	padding: 14px 18px;
	background: rgba(255, 255, 255, .022);
	border: 1px solid rgba(255, 255, 255, .08);
	border-left: 2px solid #c4963b;
}

.dl-z-glowka {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 11px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #9c9ca8;
}
.dl-z-region { color: #eebb60; }
.dl-z-widzow::before { content: "•"; margin-right: 8px; opacity: .4; }
.dl-z-czas::before { content: "•"; margin-right: 8px; opacity: .4; }
.dl-z-id { margin-left: auto; font-weight: 600; letter-spacing: .6px; color: #6c6c78; }

.dl-z-starcie { display: flex; align-items: center; gap: 14px; }
.dl-z-druzyna {
	display: flex;
	gap: 5px;
	flex: 1;
	flex-wrap: wrap;
	padding: 5px;
	border: 1px solid transparent;
}
.dl-z-druzyna:last-child { justify-content: flex-end; }
.dl-z-druzyna.prowadzi { border-color: rgba(111, 224, 163, .35); background: rgba(111, 224, 163, .06); }
.dl-z-boh img {
	display: block;
	width: 34px;
	height: 34px;
	object-fit: cover;
	object-position: top center;
	background: #0d0d11;
	border: 1px solid rgba(255, 255, 255, .08);
}

.dl-z-srodek {
	display: flex;
	align-items: baseline;
	gap: 5px;
	flex: 0 0 auto;
	font-size: 17px;
	font-weight: 800;
	color: #f0f0f5;
	white-space: nowrap;
}
.dl-z-srodek i { font-style: normal; color: #6c6c78; }

.dl-z-stan { margin: 10px 0 0; font-size: 13.5px; color: #9c9ca8; }

/* ---------------------------------------------------------
   GODZINY
   --------------------------------------------------------- */
.dl-g-wykres {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 4px;
	align-items: end;
	height: 170px;
	font-family: 'Rajdhani', system-ui, sans-serif;
}
.dl-g-slupek { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.dl-g-kolumna {
	display: block;
	width: 100%;
	background: linear-gradient(180deg, #c4963b, rgba(196, 150, 59, .25));
	min-height: 3px;
}
.dl-g-slupek.szczyt .dl-g-kolumna { background: linear-gradient(180deg, #6fe0a3, rgba(111, 224, 163, .25)); }
.dl-g-slupek.dolek .dl-g-kolumna { background: linear-gradient(180deg, #4a4a55, rgba(74, 74, 85, .25)); }
.dl-g-slupek i {
	font-style: normal;
	font-size: 10.5px;
	font-weight: 700;
	text-align: center;
	color: #9c9ca8;
	padding-top: 6px;
}
.dl-g-slupek.szczyt i { color: #6fe0a3; }

@media (max-width: 720px) {
	.dl-z-starcie { flex-wrap: wrap; }
	.dl-z-druzyna, .dl-z-druzyna:last-child { flex: 1 1 100%; justify-content: flex-start; }
	.dl-z-srodek { order: -1; width: 100%; justify-content: center; }
	.dl-g-wykres { height: 140px; gap: 2px; }
	.dl-g-slupek i { font-size: 8.5px; }
}
