/* Polska Droga Premium – strona główna („launcher gry”) */

body.pd-launcher, body.pd-launcher .site-content { background: var(--pd-void); }

.pd-home {
	overflow-x: clip;
	background: var(--pd-void);
	color: var(--pd-text);
	font-family: var(--pd-body);
}
.pd-home .pd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.pd-home h2, .pd-home h3 { color: #fff; font-family: var(--pd-display); }
.pd-home a:focus-visible, .pd-home button:focus-visible, .pd-home summary:focus-visible { outline: 2px solid var(--pd-lime); outline-offset: 3px; }
.pd-ico { width: 1em; height: 1em; flex: none; }

/* Kształt „ściętego rogu” – wspólny dla przycisków, kart i paneli */
.pd-btn, .pd-mode, .pd-opt__box, .pd-cmd button, .pd-lead__img, .pd-save a, .pd-board__tag {
	--c: 10px;
	clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

/* ---------- System nagłówków: klawisz + etykieta HUD ---------- */
.pd-sec { position: relative; padding: clamp(64px, 9vw, 128px) 0; }
.pd-h { max-width: 760px; margin-bottom: clamp(30px, 4vw, 52px); }
.pd-h__key { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.pd-h__key kbd {
	display: inline-grid; place-items: center; width: 34px; height: 34px;
	font-family: var(--pd-display); font-weight: 700; font-size: 1rem; color: var(--pd-lime);
	background: linear-gradient(180deg, var(--pd-panel-2), var(--pd-panel));
	border: 1px solid #3a4180; border-radius: 6px;
	box-shadow: 0 3px 0 #23285a, 0 0 22px -6px rgba(198, 255, 61, 0.45);
}
.pd-h__key span {
	font-family: var(--pd-display); font-weight: 600; font-size: 0.82rem;
	letter-spacing: 0.24em; text-transform: uppercase; color: var(--pd-cyan);
}
.pd-h__key span::after { content: " //"; color: var(--pd-line); }
.pd-h h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; text-wrap: balance; }
.pd-h__lead { margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--pd-soft); max-width: 62ch; }

/* Przyciski */
.pd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 22px; border: 0; cursor: pointer; text-decoration: none;
	font-family: var(--pd-display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.1em; text-transform: uppercase;
	background: var(--pd-lime); color: var(--pd-void);
	transition: background 0.2s, transform 0.2s;
}
.pd-btn:hover { background: #dbff85; transform: translateY(-2px); }
.pd-btn--ghost { background: var(--pd-panel-2); color: var(--pd-text); }
.pd-btn--ghost:hover { background: #2a3066; color: #fff; }
.pd-btn .pd-ico { font-size: 1.1em; }

/* Listy linków do wpisów */
.pd-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-links a {
	display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline;
	color: var(--pd-text); text-decoration: none; line-height: 1.4; font-size: 0.96rem; font-weight: 500;
	transition: color 0.2s;
}
.pd-links a::before { content: "▸"; color: var(--pd-lime); font-size: 0.9em; transition: transform 0.2s; }
.pd-links a:hover { color: var(--pd-lime); }
.pd-links a:hover::before { transform: translateX(3px); }

.pd-cat {
	font-family: var(--pd-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--pd-cyan); text-decoration: none;
}
.pd-cat:hover { color: var(--pd-lime); }

/* ---------- HERO: ekran menu gry ---------- */
.pd-hero {
	position: relative; isolation: isolate;
	min-height: min(980px, 100svh);
	display: flex;
	background: radial-gradient(120% 70% at 50% 0%, #1b1f4a 0%, var(--pd-void) 62%);
}
.pd-hero__world { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; z-index: -2; }
.pd-hero__grid line { stroke: rgba(139, 108, 255, 0.32); stroke-width: 1; }
.pd-hero__road { fill: rgba(10, 12, 30, 0.75); }
.pd-hero__edge { fill: none; stroke: var(--pd-cyan); stroke-width: 1.5; opacity: 0.7; }
.pd-hero__dash { fill: none; stroke: var(--pd-lime); stroke-width: 3; stroke-dasharray: 16 22; animation: pd-drive 1.4s linear infinite; }
.pd-hero__horizon { stroke: var(--pd-violet); stroke-width: 1.5; opacity: 0.9; }
@keyframes pd-drive { to { stroke-dashoffset: -38; } }

.pd-hero__scan {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		repeating-linear-gradient(180deg, transparent 0 2px, rgba(255, 255, 255, 0.022) 2px 3px),
		radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55));
}

.pd-hero__in {
	position: relative; width: 100%;
	display: flex; flex-direction: column; gap: clamp(28px, 4.5vw, 52px);
	padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(28px, 4vw, 44px);
}

/* Pasek HUD z doświadczeniem */
.pd-hud {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	padding-bottom: 16px; border-bottom: 1px solid rgba(139, 108, 255, 0.22);
	font-family: var(--pd-display); font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pd-soft);
}
.pd-hud__player { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-hud__tag { padding: 2px 8px; background: var(--pd-lime); color: var(--pd-void); font-weight: 700; }
.pd-hud__lvl b { color: #fff; font-size: 1.1rem; }
.pd-xp {
	position: relative; display: block; width: clamp(110px, 18vw, 200px); height: 8px;
	background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	transform: skewX(-20deg);
}
.pd-xp__fill {
	position: absolute; inset: 0 auto 0 0; width: var(--xp, 0%);
	background: linear-gradient(90deg, var(--pd-cyan), var(--pd-lime));
	box-shadow: 0 0 14px rgba(198, 255, 61, 0.55);
	animation: pd-xp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}
@keyframes pd-xp { from { width: 0; } }
.pd-hud__xp { color: var(--pd-lime); }
.pd-hud__stat { margin: 0; }
.pd-hud__stat b { color: #fff; font-size: 1.05rem; }

/* Tytuł */
.pd-hero__title { text-align: center; max-width: 980px; margin: 0 auto; }
.pd-hero__kicker {
	display: inline-flex; gap: 12px; align-items: center; margin: 0 0 20px;
	font-family: var(--pd-display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pd-cyan);
}
.pd-hero__kicker::before, .pd-hero__kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.pd-hero h1 { margin: 0 0 22px; color: #fff; font-weight: 700; line-height: 0.92; letter-spacing: -0.02em; }
.pd-glitch {
	display: block; font-size: clamp(2.3rem, 7.6vw, 6.2rem); text-transform: uppercase; text-wrap: balance;
	text-shadow: 0 0 40px rgba(139, 108, 255, 0.45);
	animation: pd-glitch 0.7s steps(2, end) 0.9s 2 both;
}
.pd-hero h1:hover .pd-glitch { animation: pd-glitch 0.5s steps(2, end) 1; }
@keyframes pd-glitch {
	0%   { text-shadow: 3px 0 var(--pd-cyan), -3px 0 var(--pd-violet); transform: translateX(0); }
	25%  { text-shadow: -4px 0 var(--pd-cyan), 4px 0 var(--pd-violet); transform: translateX(2px); clip-path: inset(10% 0 40% 0); }
	50%  { text-shadow: 2px 0 var(--pd-lime), -2px 0 var(--pd-violet); transform: translateX(-2px); clip-path: inset(50% 0 5% 0); }
	75%  { text-shadow: -2px 0 var(--pd-cyan), 2px 0 var(--pd-lime); transform: translateX(1px); clip-path: inset(0 0 0 0); }
	100% { text-shadow: 0 0 40px rgba(139, 108, 255, 0.45); transform: none; clip-path: none; }
}
.pd-hero h1 small {
	display: block; margin-top: 18px;
	font-size: clamp(0.95rem, 1.7vw, 1.3rem); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pd-lime);
}
.pd-hero__lead { margin: 0 auto; max-width: 60ch; font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.7; color: var(--pd-soft); }

/* Wybór trybu */
.pd-modes__label {
	margin: 0 0 14px; text-align: center;
	font-family: var(--pd-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--pd-mute);
}
.pd-modes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pd-mode {
	--c: 18px;
	position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%;
	min-height: 220px; padding: 20px 20px 18px; text-decoration: none; color: var(--pd-text);
	background: linear-gradient(160deg, rgba(139, 108, 255, 0.55), rgba(61, 224, 255, 0.18) 60%, rgba(139, 108, 255, 0.35));
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}
.pd-mode::before {
	content: ""; position: absolute; inset: 1px; z-index: 0; clip-path: inherit;
	background: linear-gradient(180deg, rgba(22, 26, 56, 0.94), rgba(10, 12, 30, 0.96));
	transition: background 0.3s;
}
.pd-mode::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(198, 255, 61, 0.14) 50%, transparent 65%);
	transform: translateX(-110%); transition: transform 0.7s ease;
}
.pd-mode > * { position: relative; z-index: 1; }
.pd-mode:hover, .pd-mode:focus-visible { transform: translateY(-6px); background: linear-gradient(160deg, var(--pd-lime), var(--pd-cyan) 70%); outline: none; }
.pd-mode:hover::after, .pd-mode:focus-visible::after { transform: translateX(110%); }
.pd-mode__ico {
	display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; font-size: 24px;
	color: var(--pd-violet); background: rgba(139, 108, 255, 0.12); border: 1px solid rgba(139, 108, 255, 0.35);
	transition: color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.pd-mode:hover .pd-mode__ico, .pd-mode:focus-visible .pd-mode__ico { color: var(--pd-lime); border-color: var(--pd-lime); box-shadow: 0 0 24px rgba(198, 255, 61, 0.35); }
.pd-mode__mode { font-family: var(--pd-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pd-cyan); }
.pd-mode__name { font-family: var(--pd-display); font-weight: 700; font-size: 1.6rem; line-height: 1.05; color: #fff; }
.pd-mode__hint { font-size: 0.86rem; color: var(--pd-mute); line-height: 1.4; }
.pd-mode__count {
	position: absolute !important; top: 20px; right: 20px;
	font-family: var(--pd-display); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pd-soft); text-align: right; line-height: 1.1;
}
.pd-mode__count b { display: block; font-size: 1.7rem; color: var(--pd-lime); letter-spacing: 0; }
.pd-mode__go {
	display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px;
	font-family: var(--pd-display); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pd-mute);
	transition: color 0.3s, gap 0.3s;
}
.pd-mode:hover .pd-mode__go, .pd-mode:focus-visible .pd-mode__go { color: var(--pd-lime); gap: 14px; }

/* Dolny pasek: wyszukiwarka + skróty */
.pd-hero__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.pd-cmd {
	flex: 1 1 360px; max-width: 520px; display: flex; align-items: center; gap: 10px;
	padding: 6px 6px 6px 14px; background: rgba(16, 19, 43, 0.85); border: 1px solid var(--pd-line);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.pd-cmd:focus-within { border-color: var(--pd-lime); box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.15); }
.pd-cmd label { font-family: var(--pd-display); font-weight: 700; color: var(--pd-lime); font-size: 1.1rem; }
.pd-cmd input {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff;
	padding: 10px 4px; font: inherit; font-size: 1rem;
}
.pd-cmd input::placeholder { color: var(--pd-mute); }
.pd-cmd button {
	--c: 8px;
	display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 11px 16px;
	background: var(--pd-lime); color: var(--pd-void);
	font-family: var(--pd-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.88rem;
}
.pd-cmd button:hover { background: #dbff85; }
.pd-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pd-keys a {
	display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--pd-soft);
	font-family: var(--pd-display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.pd-keys kbd {
	display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
	font-family: var(--pd-display); font-size: 0.8rem; color: #fff;
	border: 1px solid #3a4180; border-radius: 5px; background: var(--pd-panel); box-shadow: 0 2px 0 #23285a;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}
.pd-keys a:hover { color: #fff; }
.pd-keys a:hover kbd { background: var(--pd-lime); color: var(--pd-void); transform: translateY(1px); box-shadow: 0 1px 0 #23285a; }

/* ---------- QUIZ ---------- */
.pd-quizsec {
	background:
		linear-gradient(rgba(139, 108, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(139, 108, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
		var(--pd-night);
	border-top: 1px solid var(--pd-line);
}
.pd-quizsec__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pd-quizsec__side { position: sticky; top: 96px; }
.pd-loadout { padding: 20px 22px; background: rgba(10, 12, 30, 0.6); border-left: 2px solid var(--pd-violet); }
.pd-loadout__h { margin: 0 0 12px; font-family: var(--pd-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pd-mute); }
.pd-loadout ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pd-loadout li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(44, 50, 99, 0.7); font-size: 0.88rem; }
.pd-loadout li span { color: var(--pd-mute); }
.pd-loadout li b { font-family: var(--pd-display); font-weight: 600; color: var(--pd-line); text-align: right; transition: color 0.3s; }
.pd-loadout li.is-set b { color: var(--pd-lime); }

.pd-quiz {
	position: relative; padding: clamp(22px, 3.4vw, 38px);
	background: linear-gradient(180deg, var(--pd-panel), rgba(16, 19, 43, 0.96));
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
/* Narożniki celownika */
.pd-quiz::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	--b: 2px; --l: 22px;
	background:
		linear-gradient(var(--pd-lime), var(--pd-lime)) 0 0 / var(--l) var(--b),
		linear-gradient(var(--pd-lime), var(--pd-lime)) 0 0 / var(--b) var(--l),
		linear-gradient(var(--pd-lime), var(--pd-lime)) 100% 0 / var(--l) var(--b),
		linear-gradient(var(--pd-lime), var(--pd-lime)) 100% 0 / var(--b) var(--l),
		linear-gradient(var(--pd-lime), var(--pd-lime)) 0 100% / var(--l) var(--b),
		linear-gradient(var(--pd-lime), var(--pd-lime)) 0 100% / var(--b) var(--l),
		linear-gradient(var(--pd-lime), var(--pd-lime)) 100% 100% / var(--l) var(--b),
		linear-gradient(var(--pd-lime), var(--pd-lime)) 100% 100% / var(--b) var(--l);
	background-repeat: no-repeat;
}
.pd-quiz__top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.pd-quiz__step { margin: 0; flex: none; font-family: var(--pd-display); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pd-cyan); }
.pd-quiz__bar { flex: 1; height: 4px; background: var(--pd-line); }
.pd-quiz__bar span { display: block; height: 100%; width: 20%; background: var(--pd-lime); box-shadow: 0 0 10px rgba(198, 255, 61, 0.6); transition: width 0.4s ease; }

.pd-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.pd-q + .pd-q { margin-top: 30px; }
.pd-quiz.is-js .pd-q + .pd-q { margin-top: 0; }
.pd-quiz.is-js .pd-q:not(.is-active) { display: none; }
.pd-quiz.is-js .pd-q.is-active { animation: pd-in 0.35s ease; }
@keyframes pd-in { from { opacity: 0; transform: translateX(14px); } }
.pd-q legend { padding: 0; margin-bottom: 18px; font-family: var(--pd-display); font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.15; color: #fff; }
.pd-q__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pd-opt { position: relative; display: block; cursor: pointer; }
.pd-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-opt__box {
	position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
	padding: 16px 40px 16px 18px; background: var(--pd-panel-2);
	box-shadow: inset 0 0 0 1px #343b75;
	transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.pd-opt__box b { font-family: var(--pd-display); font-weight: 600; font-size: 1.08rem; color: #fff; line-height: 1.2; }
.pd-opt__box small { color: var(--pd-mute); font-size: 0.84rem; line-height: 1.35; }
.pd-opt__box::after {
	content: ""; position: absolute; top: 16px; right: 14px; width: 14px; height: 14px;
	border: 2px solid #4a5296; transform: rotate(45deg); transition: background 0.2s, border-color 0.2s;
}
.pd-opt:hover .pd-opt__box { box-shadow: inset 0 0 0 1px var(--pd-violet); }
.pd-opt input:checked + .pd-opt__box { background: rgba(198, 255, 61, 0.1); box-shadow: inset 0 0 0 2px var(--pd-lime); }
.pd-opt input:checked + .pd-opt__box::after { background: var(--pd-lime); border-color: var(--pd-lime); box-shadow: 0 0 12px rgba(198, 255, 61, 0.7); }
.pd-opt input:checked + .pd-opt__box small { color: var(--pd-soft); }
.pd-opt input:active + .pd-opt__box { transform: scale(0.98); }
.pd-opt input:focus-visible + .pd-opt__box { outline: 2px solid var(--pd-cyan); outline-offset: 3px; }

.pd-quiz__err { min-height: 1.4em; margin: 14px 0 0; color: #ff9d8a; font-size: 0.92rem; }
.pd-quiz__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.pd-quiz:not(.is-js) [data-pd-prev], .pd-quiz:not(.is-js) [data-pd-next] { display: none; }
.pd-quiz__nav [hidden] { display: none; }
.pd-quiz__note { margin: 22px 0 0; font-size: 0.84rem; line-height: 1.55; color: var(--pd-mute); }

.pd-result { outline: none; animation: pd-drop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pd-drop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.pd-result__drop { margin: 0 0 6px; font-family: var(--pd-display); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pd-cyan); }
.pd-genre h3 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--pd-lime); text-shadow: 0 0 34px rgba(198, 255, 61, 0.35); }
.pd-genre__tag { margin: 8px 0 18px; font-family: var(--pd-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.pd-genre > p { line-height: 1.65; color: var(--pd-soft); }
.pd-genre__tip { padding: 12px 16px; background: rgba(61, 224, 255, 0.07); border-left: 2px solid var(--pd-cyan); }
.pd-genre__tip b { color: #fff; }
.pd-genre__read { margin: 22px 0 12px !important; font-family: var(--pd-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pd-mute) !important; }
.pd-links--loot a { padding: 12px 14px; background: var(--pd-panel-2); box-shadow: inset 0 0 0 1px #343b75; transition: box-shadow 0.2s, color 0.2s; }
.pd-links--loot a:hover { box-shadow: inset 0 0 0 1px var(--pd-lime); }
.pd-score { margin: 26px 0 22px; padding-top: 18px; border-top: 1px solid var(--pd-line); }
.pd-score__h { margin: 0 0 12px; font-family: var(--pd-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pd-mute); }
.pd-score ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-score li { display: grid; grid-template-columns: minmax(0, 11em) 1fr 3.4em; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--pd-soft); }
.pd-score li i { display: block; height: 6px; background: var(--pd-line); position: relative; }
.pd-score li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--pd-violet); transition: width 0.6s ease; }
.pd-score li.is-top { color: #fff; }
.pd-score li.is-top i::after { background: var(--pd-lime); }
.pd-score li b { font-family: var(--pd-display); text-align: right; color: #fff; }

/* ---------- OSTATNIO DODANE ---------- */
.pd-feed__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vw, 52px); }
.pd-feed__head .pd-h { margin-bottom: 0; }
.pd-feed__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pd-lead { display: flex; flex-direction: column; }
.pd-lead__img {
	--c: 22px;
	display: block; aspect-ratio: 16 / 9; overflow: hidden;
	background: linear-gradient(135deg, var(--pd-panel-2), var(--pd-violet-deep));
}
.pd-lead__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease, filter 0.6s ease; filter: saturate(0.9); }
.pd-lead:hover .pd-lead__img img { transform: scale(1.04); filter: saturate(1.1); }
.pd-lead__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 0 0; }
.pd-lead h3 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; }
.pd-lead h3 a, .pd-log h3 a { color: #fff; text-decoration: none; background: linear-gradient(var(--pd-lime), var(--pd-lime)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s ease; }
.pd-lead h3 a:hover, .pd-log h3 a:hover { background-size: 100% 2px; }
.pd-lead p { margin: 0; color: var(--pd-soft); line-height: 1.65; }
.pd-lead time { font-family: var(--pd-display); font-size: 0.86rem; letter-spacing: 0.1em; color: var(--pd-mute); }
.pd-log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pd-line); }
.pd-log li {
	position: relative; display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 18px;
	padding: 18px 0 18px 14px; border-bottom: 1px solid var(--pd-line); transition: background 0.25s;
}
.pd-log li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--pd-line); transition: background 0.25s; }
.pd-log li:hover { background: linear-gradient(90deg, rgba(139, 108, 255, 0.1), transparent 70%); }
.pd-log li:hover::before { background: var(--pd-lime); }
.pd-log time { font-family: var(--pd-display); font-size: 0.86rem; letter-spacing: 0.06em; color: var(--pd-mute); padding-top: 2px; }
.pd-log h3 { margin: 4px 0 0; font-size: 1.14rem; line-height: 1.3; font-weight: 600; }

/* ---------- TABLICA RANKINGÓW ---------- */
.pd-rank { background: linear-gradient(180deg, var(--pd-void), var(--pd-night)); }
.pd-board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pd-line); }
.pd-board li {
	position: relative; display: grid; grid-template-columns: 4.2em 10em minmax(0, 1fr) auto; align-items: center; gap: 22px;
	padding: 20px 16px; border-bottom: 1px solid var(--pd-line); transition: background 0.3s;
}
.pd-board li::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pd-lime);
	transform: scaleY(0); transition: transform 0.3s ease;
}
.pd-board li:hover { background: linear-gradient(90deg, rgba(198, 255, 61, 0.07), transparent 60%); }
.pd-board li:hover::before { transform: scaleY(1); }
.pd-board__slot {
	font-family: var(--pd-display); font-weight: 700; font-size: 2.4rem; line-height: 1;
	color: transparent; -webkit-text-stroke: 1px #5a62a8; transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.pd-board li:hover .pd-board__slot { color: var(--pd-lime); -webkit-text-stroke-color: var(--pd-lime); }
.pd-board__tag {
	--c: 7px;
	justify-self: start; padding: 5px 10px; background: rgba(139, 108, 255, 0.16);
	font-family: var(--pd-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #cbbcff;
}
.pd-board h3 { margin: 0 0 4px; font-size: 1.24rem; line-height: 1.25; font-weight: 600; }
.pd-board h3 a { color: #fff; text-decoration: none; }
.pd-board h3 a::after { content: ""; position: absolute; inset: 0; }
.pd-board p { margin: 0; color: var(--pd-mute); font-size: 0.93rem; line-height: 1.5; }
.pd-board__go { font-size: 1.3rem; color: var(--pd-mute); transition: color 0.3s, transform 0.3s; }
.pd-board li:hover .pd-board__go { color: var(--pd-lime); transform: translateX(4px); }

/* ---------- OŚ PREMIER ---------- */
.pd-axis__track { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; }
.pd-axis__track::before {
	content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px;
	background: linear-gradient(90deg, var(--pd-violet), var(--pd-cyan) 55%, var(--pd-lime));
}
.pd-stage { position: relative; padding-top: 44px; }
.pd-stage__node {
	position: absolute; top: 2px; left: 0; width: 18px; height: 18px; transform: rotate(45deg);
	background: var(--pd-void); border: 2px solid var(--pd-cyan); transition: background 0.3s, box-shadow 0.3s;
}
.pd-stage:last-child .pd-stage__node { border-color: var(--pd-lime); }
.pd-stage:hover .pd-stage__node { background: var(--pd-lime); border-color: var(--pd-lime); box-shadow: 0 0 18px rgba(198, 255, 61, 0.6); }
.pd-stage__n { margin: 0 0 6px; font-family: var(--pd-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pd-cyan); }
.pd-stage h3 { margin: 0 0 10px; font-size: 1.4rem; line-height: 1.15; }
.pd-stage > p:not(.pd-stage__n) { margin: 0 0 16px; color: var(--pd-soft); font-size: 0.93rem; line-height: 1.6; }
.pd-stage .pd-links { padding-top: 14px; border-top: 1px solid var(--pd-line); }
.pd-stage .pd-links a { font-size: 0.9rem; }

/* ---------- MAPA TRYBÓW ---------- */
.pd-map { background: var(--pd-night); border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.pd-map__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pd-zone {
	--z: var(--pd-violet);
	position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 34px);
	background: linear-gradient(150deg, rgba(30, 35, 72, 0.9), rgba(16, 19, 43, 0.9));
	box-shadow: inset 0 0 0 1px var(--pd-line);
	transition: box-shadow 0.3s;
}
.pd-zone--trophy { --z: var(--pd-lime); }
.pd-zone--clock { --z: var(--pd-cyan); }
.pd-zone--globe { --z: #ff8ad8; }
.pd-zone::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(var(--z), var(--z)) 0 0 / 30px 2px,
		linear-gradient(var(--z), var(--z)) 0 0 / 2px 30px,
		linear-gradient(var(--z), var(--z)) 100% 100% / 30px 2px,
		linear-gradient(var(--z), var(--z)) 100% 100% / 2px 30px;
	background-repeat: no-repeat;
	transition: background-size 0.4s ease;
}
.pd-zone:hover { box-shadow: inset 0 0 0 1px #3d4485; }
.pd-zone:hover::before { background-size: 60px 2px, 2px 60px, 60px 2px, 2px 60px; }
.pd-zone__top { display: flex; align-items: center; gap: 14px; }
.pd-zone__ico { display: grid; place-items: center; width: 44px; height: 44px; font-size: 22px; color: var(--z); background: rgba(10, 12, 30, 0.6); box-shadow: inset 0 0 0 1px var(--pd-line); }
.pd-zone__mode { margin: 0; font-family: var(--pd-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--z); }
.pd-zone__count { margin: 0 0 0 auto; font-size: 0.86rem; color: var(--pd-mute); }
.pd-zone__count b { font-family: var(--pd-display); font-size: 1.6rem; color: #fff; margin-right: 4px; }
.pd-zone h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; }
.pd-zone h3 a { color: #fff; text-decoration: none; }
.pd-zone h3 a:hover { color: var(--z); }
.pd-zone__desc { margin: 0; color: var(--pd-soft); line-height: 1.6; }
.pd-zone .pd-links { padding: 14px 0 4px; border-top: 1px solid var(--pd-line); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 6px; }
.pd-chips a {
	padding: 5px 11px; font-size: 0.8rem; color: var(--pd-soft); text-decoration: none;
	background: rgba(10, 12, 30, 0.6); box-shadow: inset 0 0 0 1px var(--pd-line);
	transition: color 0.2s, box-shadow 0.2s;
}
.pd-chips a:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--z); }

/* ---------- ZAPISANE STANY ---------- */
.pd-saves__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pd-save a {
	--c: 14px;
	position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
	padding: 0 18px 20px; text-decoration: none; color: var(--pd-text);
	background: var(--pd-panel);
	transition: transform 0.3s ease, background 0.3s;
}
.pd-save a::before {
	content: ""; display: block; height: 72px; margin: 0 -18px 6px;
	background:
		repeating-linear-gradient(90deg, rgba(10, 12, 30, 0.35) 0 1px, transparent 1px 8px),
		repeating-linear-gradient(0deg, rgba(10, 12, 30, 0.35) 0 1px, transparent 1px 8px),
		linear-gradient(135deg, var(--s1, #5235c9), var(--s2, #3de0ff));
	opacity: 0.75; transition: opacity 0.3s;
}
.pd-save:nth-child(2) a { --s1: #3b2a9e; --s2: #8b6cff; }
.pd-save:nth-child(3) a { --s1: #1c6f8a; --s2: #c6ff3d; }
.pd-save:nth-child(4) a { --s1: #6b2a8a; --s2: #ff8ad8; }
.pd-save:nth-child(5) a { --s1: #14173a; --s2: #3de0ff; }
.pd-save a:hover, .pd-save a:focus-visible { transform: translateY(-5px); background: var(--pd-panel-2); }
.pd-save a:hover::before { opacity: 1; }
.pd-save__slot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pd-display); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pd-mute); }
.pd-save__era { font-family: var(--pd-display); font-weight: 700; font-size: 1.36rem; line-height: 1.1; color: #fff; }
.pd-save__desc { font-size: 0.9rem; line-height: 1.55; color: var(--pd-soft); }
.pd-save__post { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--pd-line); font-size: 0.86rem; line-height: 1.4; color: var(--pd-lime); }

/* ---------- KODEKS (SŁOWNIK) ---------- */
.pd-codex { background: var(--pd-night); }
.pd-codex__grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0;
	background: var(--pd-line); box-shadow: 0 0 0 1px var(--pd-line);
}
.pd-codex__grid > div { padding: 24px 24px 26px; background: var(--pd-night); transition: background 0.25s; }
.pd-codex__grid > div:hover { background: var(--pd-panel); }
.pd-codex__grid dt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--pd-display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.pd-codex__grid dt::before { content: ""; width: 8px; height: 8px; background: var(--pd-lime); transform: rotate(45deg); flex: none; transition: box-shadow 0.25s; }
.pd-codex__grid > div:hover dt::before { box-shadow: 0 0 10px var(--pd-lime); }
.pd-codex__grid dd { margin: 0; color: var(--pd-soft); font-size: 0.93rem; line-height: 1.62; }

/* ---------- O SERWISIE ---------- */
.pd-about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pd-about__txt .pd-h { margin-bottom: 26px; }
.pd-about__big { margin: 0 0 20px; font-family: var(--pd-display); font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.35; color: #fff; }
.pd-about__txt > p:not(.pd-about__big) { margin: 0; color: var(--pd-soft); line-height: 1.75; }
.pd-settings { list-style: none; margin: 0; padding: 6px 0; background: var(--pd-panel); box-shadow: inset 0 0 0 1px var(--pd-line); }
.pd-settings li { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.pd-settings li + li { border-top: 1px solid var(--pd-line); }
.pd-settings h3 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 600; }
.pd-settings p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--pd-mute); }
.pd-toggle {
	flex: none; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
	font-family: var(--pd-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pd-lime);
}
.pd-toggle i { position: relative; width: 40px; height: 22px; border-radius: 11px; background: rgba(198, 255, 61, 0.25); box-shadow: inset 0 0 0 1px var(--pd-lime); }
.pd-toggle i::after { content: ""; position: absolute; top: 3px; left: 21px; width: 16px; height: 16px; border-radius: 50%; background: var(--pd-lime); transition: left 0.3s; }
.pd-toggle--off { color: var(--pd-mute); }
.pd-toggle--off i { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px #4a5296; }
.pd-toggle--off i::after { left: 3px; background: #6a71a8; }
.pd-settings__off { background: rgba(255, 120, 120, 0.04); }

/* ---------- FAQ ---------- */
.pd-faq { background: linear-gradient(180deg, var(--pd-void), var(--pd-night)); border-top: 1px solid var(--pd-line); }
.pd-faq__wrap { max-width: 980px; }
.pd-faq__list { border-top: 1px solid var(--pd-line); }
.pd-faq__list details { border-bottom: 1px solid var(--pd-line); }
.pd-faq__list summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
	padding: 22px 4px; font-family: var(--pd-display); font-weight: 600; font-size: clamp(1.1rem, 1.9vw, 1.32rem); line-height: 1.3; color: #fff;
	transition: color 0.2s;
}
.pd-faq__list summary::-webkit-details-marker { display: none; }
.pd-faq__list summary::before {
	content: "▸"; flex: none; display: grid; place-items: center; width: 30px; height: 30px;
	color: var(--pd-lime); background: var(--pd-panel); box-shadow: inset 0 0 0 1px var(--pd-line);
	transition: transform 0.25s, background 0.2s, color 0.2s;
}
.pd-faq__list details[open] summary::before { transform: rotate(90deg); background: var(--pd-lime); color: var(--pd-void); }
.pd-faq__list summary:hover { color: var(--pd-lime); }
.pd-faq__list details p { margin: 0; padding: 0 4px 24px 50px; color: var(--pd-soft); line-height: 1.72; max-width: 72ch; }

/* ---------- RWD ---------- */
@media (max-width: 1100px) {
	.pd-saves__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pd-board li { grid-template-columns: 3.4em 8.5em minmax(0, 1fr) auto; gap: 16px; }
}
@media (max-width: 980px) {
	.pd-modes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd-mode { min-height: 190px; }
	.pd-quizsec__grid, .pd-feed__grid, .pd-about__grid { grid-template-columns: 1fr; }
	.pd-quizsec__side { position: static; }
	.pd-loadout { display: none; }
	.pd-codex__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd-axis__track { grid-template-columns: 1fr; gap: 30px; padding-left: 34px; }
	.pd-axis__track::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--pd-violet), var(--pd-cyan) 55%, var(--pd-lime)); }
	.pd-stage { padding-top: 0; }
	.pd-stage__node { left: -34px; top: 2px; }
}
@media (max-width: 700px) {
	.pd-hero { min-height: 0; }
	.pd-hud { font-size: 0.76rem; }
	.pd-hud__stat { width: 100%; }
	.pd-map__grid, .pd-codex__grid { grid-template-columns: 1fr; }
	.pd-saves__list { grid-template-columns: 1fr 1fr; }
	.pd-board li { grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; padding: 18px 8px; }
	.pd-board__slot { grid-row: span 2; font-size: 1.9rem; }
	.pd-board__go { display: none; }
	.pd-log li { grid-template-columns: 1fr; gap: 4px; }
	.pd-hero__bar { flex-direction: column; align-items: stretch; }
	.pd-cmd { max-width: none; flex-basis: auto; }
	.pd-score li { grid-template-columns: minmax(0, 8em) 1fr 3em; }
	.pd-faq__list details p { padding-left: 4px; }
}
@media (max-width: 480px) {
	.pd-modes__list { grid-template-columns: 1fr; gap: 10px; }
	.pd-mode { min-height: 0; padding: 16px; }
	.pd-mode__ico { width: 38px; height: 38px; margin-bottom: 6px; font-size: 20px; }
	.pd-mode__count { top: 16px; right: 16px; }
	.pd-saves__list { grid-template-columns: 1fr; }
	.pd-cmd button span { display: none; }
	.pd-quiz__nav .pd-btn { flex: 1; }
	.pd-settings li { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.pd-hero__dash, .pd-glitch, .pd-hero h1:hover .pd-glitch, .pd-xp__fill, .pd-result, .pd-quiz.is-js .pd-q.is-active { animation: none; }
	.pd-mode, .pd-mode::after, .pd-save a, .pd-lead__img img, .pd-board li::before, .pd-quiz__bar span, .pd-score li i::after { transition: none; }
}
