/* Wspolne elementy dolaczania: index i instrukcja. Bez zewnetrznych bibliotek. */
.start-serwera { max-width: 920px; margin-inline: auto; text-align: center; }
.hero.hero-dolacz { min-height: 0; padding: 22px 0 20px; }
.hero-dolacz h1 { max-width: none; margin: 0 0 10px; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; }
.hero-dolacz .wstep { max-width: 680px; margin: 0 auto 14px; font-size: .96rem; line-height:1.4; }
.hero-dolacz #adresy-serwerow { max-width:780px; margin-inline:auto; }
.hero-dolacz .adres-glowny { min-height:84px; padding:10px 16px; gap:3px; border-radius:14px; }
.hero-dolacz .adres-glowny .adres-pelny { font-size:clamp(1.15rem,3vw,2rem); line-height:1.2; }
.hero-dolacz .adres-glowny .adres-akcja { font-size:.95rem; }
.hero-dolacz .pomoc-dolacz { min-height:44px; margin-top:10px; padding:8px 16px; font-size:.9rem; }
.hero-dolacz + #serwery { padding-top:24px; }
.hero-dolacz + #serwery h2 { font-size:clamp(1.55rem,3vw,2.35rem); }
.hero-dolacz + #serwery .opis-sekcji { max-width:1000px; margin-bottom:24px; }
.etykieta-serwera { margin: 0 0 12px; color: #bbc2bd; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.adres-glowny { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 154px; padding: 26px 18px; border: 2px solid #ff5661; border-radius: 18px; background: linear-gradient(120deg, #a50813, #df1525); color: #fff; box-shadow: 0 12px 48px #e5091430; cursor: pointer; font: inherit; text-align: center; transition: background .15s, box-shadow .15s; }
.adres-glowny:hover { background: #b00b19; box-shadow: 0 12px 48px #e5091455; }
.adres-glowny:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.adres-glowny:disabled { cursor: wait; opacity: .8; }
.adres-glowny .adres-pelny { font-family: ui-monospace, Consolas, monospace; font-size: clamp(1.15rem, 4.6vw, 2.8rem); font-weight: 900; letter-spacing: -.05em; white-space: nowrap; }
.adres-glowny .adres-akcja { font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 900; letter-spacing: .06em; }
.adres-glowny { position: relative; isolation: isolate; overflow: hidden; }
.adres-glowny::before { content: ""; position: absolute; z-index: 0; pointer-events: none; inset: -30% auto -30% 0; width: 45%; background: linear-gradient(90deg, transparent, #ffffff66, transparent); transform: translateX(calc(-100% - 48px)) skewX(-24deg); animation: polysk-adresu 5.04s linear infinite; }
.adres-glowny > span { position: relative; z-index: 1; }
/* Jedna os czasu 5,04 s: polysk 1,44 s, od razu dwa pulsy 0,576 s,
   nastepnie kazde haslo 0,72 s (kolejne przyspieszenie dwukrotne).
   Wszystkie animacje startuja razem, bez niezaleznych petli i opoznien. */
@keyframes polysk-adresu { 0% { transform: translateX(calc(-100% - 48px)) skewX(-24deg); } 28.5714%, 100% { transform: translateX(calc(222.2222% + 48px)) skewX(-24deg); } }
.pomoc-dolacz { position:relative; isolation:isolate; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 14px; padding: 12px 18px; border: 1px solid #9c3842; border-radius: 12px; background: #351317; color: #fff; font-weight: 800; text-decoration: none; }
.pomoc-dolacz::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; border-radius:inherit; background:#b5293a; box-shadow:0 4px 28px 4px #e83d5066; opacity:0; animation:puls-pomocy 5.04s ease-out infinite; }
@keyframes puls-pomocy {
  0%, 28.5714%, 34.2857%, 40%, 100% { opacity:0; }
  31.4286%, 37.1429% { opacity:1; }
}
.pomoc-dolacz:hover { border-color: #ff8f99; }
.pomoc-dolacz svg { flex: 0 0 22px; }
.hero-dolacz .fakty { display: grid; grid-template-columns:repeat(4,minmax(0,max-content)); justify-content: center; margin: 14px 0 0; gap: 8px 20px; }
.hero-dolacz .fakty > span { color: #b7b7b2; animation-duration: 5.04s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.hero-dolacz .fakty > span:nth-child(1) { animation-name: haslo-eac; }
.hero-dolacz .fakty > span:nth-child(2) { animation-name: haslo-mody; }
.hero-dolacz .fakty > span:nth-child(3) { animation-name: haslo-spolecznosc; }
.hero-dolacz .fakty > span:nth-child(4) { animation-name: haslo-pve; }
@keyframes haslo-eac { 0%, 40%, 54.2857%, 100% { color:#b7b7b2; text-shadow:none; } 47.1429% { color:#fff; text-shadow:0 0 12px #ffffffb3; } }
@keyframes haslo-mody { 0%, 54.2857%, 68.5714%, 100% { color:#b7b7b2; text-shadow:none; } 61.4286% { color:#fff; text-shadow:0 0 12px #ffffffb3; } }
@keyframes haslo-spolecznosc { 0%, 68.5714%, 82.8571%, 100% { color:#b7b7b2; text-shadow:none; } 75.7143% { color:#fff; text-shadow:0 0 12px #ffffffb3; } }
@keyframes haslo-pve { 0%, 82.8571%, 97.1429%, 100% { color:#b7b7b2; text-shadow:none; } 90% { color:#fff; text-shadow:0 0 12px #ffffffb3; } }
.akcja-progresji { text-align:center; }
.zasady-serwera { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; list-style:none; padding:0; margin:28px 0 0; counter-reset:zasada; }
.zasady-serwera > li { counter-increment:zasada; display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; gap:18px; padding:22px 24px; border:1px solid #393e45; border-radius:14px; background:#15171b; }
.zasady-serwera > li::before { content:counter(zasada,decimal-leading-zero); display:grid; place-items:center; width:42px; height:42px; border:1px solid #93323f; border-radius:10px; background:#45151e; color:#ff909c; font:800 1rem ui-monospace,Consolas,monospace; }
.zasady-serwera p { margin:0; color:#e5e7eb; font-size:1rem; line-height:1.65; }
.zasady-serwera strong { color:#fff; font-weight:800; }
.progresja-skrot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.progresja-skrot article { padding: 24px; border: 1px solid #34373c; border-radius: 16px; background: #15171a; }
.progresja-skrot small { color: #c1c5cb; letter-spacing: .08em; font-weight: 700; }
.progresja-skrot h3 { margin: 10px 0 6px; font-size: 1.25rem; }
.progresja-skrot p { margin: 0; color: #bdc1c8; }
.informacje-serwera-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid #d04a56; border-radius: 10px; background: #681520; color: #fff; box-shadow: 0 6px 20px #7b122b33; font-size: .9rem; font-weight: 800; text-decoration: none; }
.informacje-serwera-link:hover { border-color: #ff8b96; background: #8d1c2a; }
.okno-dolacz { box-sizing: border-box; width: min(660px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 26px; border: 1px solid #59615d; border-radius: 18px; background: #111416; color: #f4f4f2; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 28px 110px #000b; font: 16px/1.55 system-ui, sans-serif; }
.okno-dolacz::backdrop { background: #000c; backdrop-filter: blur(4px); }
.okno-dolacz[data-animacja="otwieranie"] { animation: otworz-okno .2s cubic-bezier(.2,.8,.25,1) both; }
.okno-dolacz[data-animacja="zamykanie"] { animation: zamknij-okno .18s ease-in both; pointer-events: none; }
.okno-dolacz[data-animacja="otwieranie"]::backdrop { animation: pokaz-tlo .2s ease-out both; }
.okno-dolacz[data-animacja="zamykanie"]::backdrop { animation: pokaz-tlo .18s ease-in reverse both; }
@keyframes otworz-okno { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes zamknij-okno { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes pokaz-tlo { from { opacity: 0; } to { opacity: 1; } }
.okno-dolacz[open] #dolacz-tytul-okna { animation: pokaz-potwierdzenie .65s ease-out .2s both; }
@keyframes pokaz-potwierdzenie { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
body:has(.okno-dolacz[open]) { overflow: hidden; }
.okno-dolacz h2 { margin: 0 40px 12px 0; font-size: clamp(1.35rem, 5vw, 1.8rem); line-height: 1.2; }
.okno-dolacz p { margin: 12px 0; }
.zamknij-dolacz { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 1px solid #4b5055; border-radius: 10px; background: #23262b; color: #fff; font-size: 24px; cursor: pointer; }
.okno-dolacz .dane-polaczenia { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.okno-dolacz .dane-polaczenia div { flex: 1 1 auto; padding: 12px 16px; border-radius: 10px; background: #24282b; }
.okno-dolacz .dane-polaczenia dt { color: #bfc5c9; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.okno-dolacz .dane-polaczenia dd { margin: 2px 0 0; font: 800 1.25rem/1.5 ui-monospace, Consolas, monospace; color: #fff; }
.okno-dolacz .dane-polaczenia .port-wazny { background: #24282b; }
.kroki-okna { padding-left: 26px; margin: 18px 0; }
.kroki-okna li { padding: 3px 0 3px 6px; }
.kroki-okna li::marker { color: #ff8590; font-weight: 800; }
.port-puls { display:inline-block; margin-inline:.2em; transform-origin:center; }
.okno-dolacz[open] .port-puls { animation:puls-portu 1.8s ease-in-out infinite; }
@keyframes puls-portu { 0%, 100% { transform:scale(1); color:#f4f4f2; } 50% { transform:scale(1.22); color:#ff354a; } }
.pomoc-okna { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; padding-top: 16px; border-top: 1px solid #454b52; }
.pomoc-okna aside { display: flex; flex-direction: column; min-width: 0; }
.pomoc-okna p { margin: 0 0 8px; color: #c5cbd2; font-size: .8rem; }
.okno-dolacz .pomoc-okna a { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 48px; padding: 10px; border: 1px solid #ab4a55; border-radius: 9px; background: #5b1721; color: #fff; text-align: center; font-size: .8rem; line-height: 1.45; font-weight: 800; text-decoration: none; }
.okno-dolacz .pomoc-discord a { border-color: #8790ff; background: #4853bd; }
.okno-dolacz .pomoc-okna a:hover { filter: brightness(1.2); }
.pomoc-okna a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.link-instrukcja { position:relative; isolation:isolate; overflow:hidden; }
.link-instrukcja > span { position:relative; z-index:1; }
.okno-dolacz[open] .link-instrukcja::before { content:""; position:absolute; pointer-events:none; z-index:0; inset:-30% auto -30% 0; width:45%; background:linear-gradient(90deg,transparent,#ffffff66,transparent); transform:translateX(-220%) skewX(-24deg); animation:polysk-instrukcji 5s ease-in-out 1s infinite; }
@keyframes polysk-instrukcji { 0% { transform:translateX(-220%) skewX(-24deg); } 22%, 100% { transform:translateX(380%) skewX(-24deg); } }
.steam-dolacz { display: block; padding: 16px; border: 1px solid #ff6975; border-radius: 12px; background: #aa0c19; color: white; text-align: center; font-weight: 850; text-decoration: none; }
.steam-dolacz:hover { background: #ca1424; }
.reczny-adres { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #868d96; border-radius: 8px; background: #23262b; color: #fff; font: 700 1rem ui-monospace, Consolas, monospace; }
.tylko-czytnik-dolacz { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.strona-instrukcji { margin: 0; background: #0c0e10; color: #f2f3f5; font: 16px/1.65 system-ui, -apple-system, sans-serif; }
.strona-instrukcji * { box-sizing: border-box; }
.strona-instrukcji a { color: inherit; }
.strona-instrukcji :focus-visible { outline: 3px solid #ff7884; outline-offset: 4px; }
.instrukcja-kontener { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.instrukcja-wstep { padding: 40px 0 32px; background: radial-gradient(ellipse at top right, #6c111e55, transparent 70%); }
.powrot-start { color: #bec5cd; font-size: .9rem; text-underline-offset: 4px; }
.strona-instrukcji h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.04em; margin: 24px 0 16px; }
.instrukcja-wstep p { max-width: 780px; color: #bdc4cc; }
.instrukcja-wstep .adres-glowny { max-width: 660px; min-height: 106px; padding: 15px; margin-top: 24px; }
.instrukcja-wstep .adres-pelny { font-size: clamp(1.15rem, 4.6vw, 2rem); }
.instrukcja-wstep .adres-akcja { font-size: .95rem; }
.wybor-metody { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 0; }
.wybor-metody a { display: block; padding: 18px 22px; border: 1px solid #a9424e; border-radius: 12px; background: #47131b; text-decoration: none; box-shadow: 0 5px 18px #72142733; }
.wybor-metody a:hover { background: #641a25; border-color: #f15d6c; }
.wybor-metody a:first-child { border-color: #f15d6c; }
.wybor-metody strong, .wybor-metody span { display: block; }
.wybor-metody span { color: #b9c1ca; font-size: .9rem; }
.metoda { padding: 36px 0; border-top: 1px solid #30343a; scroll-margin-top: 24px; }
.wskazowka-alt-tab { max-width:1040px; margin:0 auto 32px; color:#bdc4cc; font-size:1rem; font-weight:400; line-height:1.65; text-align:center; }
.metoda h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; margin: 8px 0 16px; }
.lista-krokow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; list-style: none; padding: 0; counter-reset: krok; }
.lista-krokow > li { min-width: 0; padding: 22px; background: #171a1e; border: 1px solid #353a42; border-radius: 16px; counter-increment: krok; }
.lista-krokow h3 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; font-size: 1.07rem; line-height: 1.4; }
.lista-krokow h3::before { content: counter(krok); flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #ae1728; color: #fff; font-size: .9rem; }
.lista-krokow p { margin: 0 0 16px; color: #c3cad2; font-size: .94rem; }
.lista-krokow figure { margin: 0; }
.zrzut-kadr { position: relative; overflow: hidden; margin-top: 10px; border: 1px solid #666b70; border-radius: 8px; background: #030505; }
.zrzut-kadr svg { display: block; width: 100%; height: auto; }
.lista-krokow figure { max-width: 860px; margin-inline: auto; }
.zrzut-kadr .znacznik { fill: none; stroke: #ffe35a; stroke-width: 4; vector-effect: non-scaling-stroke; }
.zrzut-kadr .strzalka { fill: #ffe35a; stroke: #101214; stroke-width: 2; vector-effect: non-scaling-stroke; }
.lista-krokow figcaption { margin-top: 8px; font-size: .78rem; color: #b4bdc8; }
.kolejny-raz { padding: 28px; margin: 12px 0 40px; border: 1px solid #567860; border-radius: 16px; background: #122219; }
.kolejny-raz h2 { margin-top: 0; }
.kolejny-raz p { margin-bottom: 0; }
.pomoc-polaczenie { padding: 24px; border: 1px solid #4b5158; border-radius: 14px; margin-bottom: 44px; }
.pomoc-polaczenie h2 { margin-top: 0; }
.pomoc-polaczenie li { margin: 10px 0; }
kbd { padding: 1px 5px; border: 1px solid #777; border-radius: 4px; font: inherit; }
@media(max-width:650px) {
  .hero.hero-dolacz { padding: 14px 0 16px; }
  .hero-dolacz h1 { font-size:clamp(2.2rem,8vw,2.9rem); }
  .hero-dolacz .wstep { font-size: .88rem; line-height: 1.4; margin-bottom: 12px; }
  .etykieta-serwera { margin-bottom: 9px; font-size: .7rem; }
  .adres-glowny { min-height: 118px; padding: 18px 12px; gap: 10px; border-radius: 14px; }
  .pomoc-dolacz { min-height: 48px; font-size: .85rem; padding: 10px; }
  .hero-dolacz .fakty { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top: 16px; gap: 8px 12px; font-size: .73rem; text-align:left; }
  .hero-dolacz .fakty span { align-items:flex-start; }
  .zasady-serwera > li { grid-template-columns:32px minmax(0,1fr); gap:12px; padding:16px; }
  .zasady-serwera > li::before { width:32px; height:32px; font-size:.85rem; }
  .zasady-serwera p { font-size:.9rem; }
  .progresja-skrot, .wybor-metody, .lista-krokow { grid-template-columns: 1fr; }
  .instrukcja-kontener { width: calc(100% - 24px); }
  .instrukcja-wstep { padding-top: 24px; }
  .okno-dolacz { padding: 20px 16px; font-size: 14px; }
  .okno-dolacz h2 { font-size: 1.35rem; }
  .okno-dolacz .dane-polaczenia div { padding: 9px 12px; }
  .okno-dolacz .dane-polaczenia dd { font-size: 1.1rem; }
  .pomoc-okna { gap: 10px; }
  .okno-dolacz .pomoc-okna a { padding: 9px 6px; font-size: .75rem; }
  .lista-krokow > li { padding: 17px; }
}
/* Sekwencja zachowuje tempo, lecz nie pracuje poza ekranem i w ukrytej karcie. */
[data-ruch-poza-ekranem] .adres-glowny::before,
.adres-glowny[data-ruch-poza-ekranem]::before,
[data-ruch-poza-ekranem] .pomoc-dolacz::before,
.pomoc-dolacz[data-ruch-poza-ekranem]::before,
[data-ruch-poza-ekranem] .fakty > span,
[data-ruch-wstrzymany] .adres-glowny::before,
[data-ruch-wstrzymany] .pomoc-dolacz::before,
[data-ruch-wstrzymany] .hero-dolacz .fakty > span,
[data-ruch-wstrzymany] .okno-dolacz .port-puls,
[data-ruch-wstrzymany] .okno-dolacz .link-instrukcja::before { animation-play-state:paused; }
@media(prefers-reduced-motion:reduce) {
  .adres-glowny, .adres-glowny::before, .pomoc-dolacz, .pomoc-dolacz::before,
  .hero-dolacz .fakty > span, .okno-dolacz, .okno-dolacz::backdrop,
  .okno-dolacz[open] #dolacz-tytul-okna, .okno-dolacz[open] .port-puls,
  .okno-dolacz[open] .link-instrukcja::before { animation:none!important; transition:none!important; }
  .adres-glowny::before, .pomoc-dolacz::before, .okno-dolacz .link-instrukcja::before { display:none; }
}
/* Na najmniejszych ekranach pierwszenstwo ma adres, nie dodatkowy opis. */
@media(max-width:350px) {
  .hero.hero-dolacz { padding-top: 16px; }
  .hero-dolacz h1 { font-size: 2.2rem; margin-bottom: 10px; }
  .hero-dolacz .wstep { display: none; }
  .hero-dolacz .kontener { width: calc(100% - 24px); }
  .hero-dolacz .etykieta-serwera { font-size: .63rem; letter-spacing: .08em; }
}
@media(max-width:650px) and (max-height:800px) {
  /* Na nizszym telefonie pierwszenstwo maja H1, oba przyciski i pelny opis trudnosci. */
  .hero-dolacz .wstep { display:none; }
  .hero.hero-dolacz { padding-top:10px; padding-bottom:12px; }
  .hero-dolacz + #serwery { padding-top:18px; }
  .hero-dolacz + #serwery .nadtytul { font-size:.65rem; letter-spacing:.08em; margin-bottom:6px; }
  .hero-dolacz + #serwery h2 { font-size:1.4rem; }
  .hero-dolacz + #serwery .opis-sekcji { font-size:.9rem; line-height:1.5; }
}
