/* Evolix redesign — nawigacja, hero strony głównej, siatka systemów, sidebar.
   Reszta strony (tabele, formularze) na razie zostaje na starym CSS atomio
   (style.css/new.css/resp.css) — modernizacja innych podstron w kolejnym kroku. */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* atomio (style.css/new.css) nigdzie nie ustawia box-sizing, wiec domyslnie
   jest "content-box" — padding/border DOLICZAJA sie do zadanej szerokosci.
   Plugin gildii ma inline style="width:100%", a nasze .ui.card/.evx-panel
   dokladaja padding+border przez !important -> realna szerokosc wychodzila
   szersza niz 100% kontenera i karta "wjezdzala" na sidebar. Wymuszamy
   border-box na wszystkim co nasze, zeby padding/border NIE powiekszal
   deklarowanej szerokosci. */
.evx-panel, .evx-panel *, .ui.card, .ui.card *,
.evx-hero, .evx-hero *, .evx-hs-row, .evx-hs-row * {
  box-sizing: border-box;
}
/* style.css (stary atomio, sprzed redesignu) ma regule "a:hover, button:hover,
   input[type=submit]:hover { background: rgb(14 13 13); }" — niemal czarne tlo
   na KAZDYM linku na calej stronie po najechaniu. Na granatowym navbarze bylo
   niezauwazalne (podobny odcien), ale na jasniejszych kartach (np. nick w
   Top 5) wygladalo jak brzydki czarny prostokat zaslaniajacy tekst (zgloszone
   przez usera 2026-10-18, zdiagnozowane przez CSS.getComputedStyleForNode w
   realnym stanie :hover). Zerujemy to globalnie — miejsca ktore CELOWO chca
   tla na hover (np. pozycje menu nav) maja wlasne, bardziej specyficzne
   regoly ponizej w tym pliku i nadal wygrywaja. */
a:hover { background-color: transparent; }
/* Ten sam bug co wyzej, ale na stronach z DataTables (np. ?creatures) —
   jquery.dataTables.min.css (ladowany PO evolix.css, bo link do niego jest
   wewnatrz tresci strony, nie w <head>) ma wlasna regule
   "table.dataTable, th, td { box-sizing: content-box }" o tej samej
   specyficznosci co nasza .leftPane table — przy remisie wygrywa kolejnosc
   w dokumencie, a on laduje sie PO nas, wiec bez !important by wygral i tak.
   Efekt bez fixu: tabela z wieloma kolumnami (Health/Exp/Mana/Race...)
   fizycznie szersza niz .leftPane, "wjezdzajaca" na sidebar po prawej —
   dokladnie to zglosil user na stronie Creatures. */
.leftPane table, .leftPane table *, .rightPane table, .rightPane table * {
  box-sizing: border-box !important;
}

/* Stary atomio maluje .feedContainer/.leftPane/.rightPane na plaski,
   ciemnoszary/brazowawy kolor sprzed redesignu (var(--primary)/var(--secondary)
   z style.css) — widac go w przerwach miedzy naszymi granatowymi kartami
   (np. nad "Latest News", miedzy Login/Top 5/Search). Podmieniamy na
   ciemny granat z nowej palety + bardzo delikatna poswiata (fiolet/zloto,
   ta sama stylistyka co w hero), zeby caly obszar tresci byl spojny i mial
   troche "zycia" zamiast plaskiego koloru. background-attachment:fixed
   sprawia ze poswiata jest przypieta do ekranu (nie do elementu), wiec
   leftPane i rightPane wygladaja jakby swiecilo jedno wspolne zrodlo. */
.feedContainer, .leftPane, .rightPane {
  background:
    radial-gradient(ellipse 900px 500px at 8% 0%, rgba(164,131,245,0.055), transparent 55%),
    radial-gradient(ellipse 900px 600px at 100% 100%, rgba(227,173,85,0.045), transparent 55%),
    var(--evx-bg) !important;
  background-attachment: fixed, fixed, scroll;
}
/* Sidebar (rightPane) bywa dluga i pusta pod kartami (News zwykle jest
   dluzszy niz Login/Top5/Search razem) — plaski kolor tam rzuca sie w oczy
   jako "martwa" czarna dziura. Dokladamy wlasna, mocniejsza poswiate
   przypieta do dolu kolumny, zeby ten obszar tez mial troche zycia. */
/* UWAGA: margin-top ponizej byl kiedys ustawiony globalnie na calym
   .rightPane, co wyrownywalo Login z "Most Powerful Guilds" NA STRONIE
   GLOWNEJ — ale ta sama regula psula wyrownanie na KAZDEJ innej podstronie
   (np. ?highscores), bo tam .leftPane NIE MA naglowka "Latest/News" nad
   pierwsza karta, wiec Login byl niepotrzebnie zepchniety w dol. Fix:
   margines tylko gdy .rightPane ma klase .evx-rightpane-homepage (dodawana
   w index.php warunkiem PAGE === 'news', czyli wylacznie na stronie glownej). */
.evx-rightpane-homepage {
  /* leftPane ma nad pierwsza karta naglowek "Latest / News" (evx-feat-head),
     rightPane zaczyna karte od razu — bez tego pierwsza karta po prawej
     (Login) byla wyzej niz pierwsza karta po lewej (Most Powerful Guilds).
     60px zmierzone pikselowo jako dokladna wysokosc tego naglowka. */
  margin-top: 60px;
}
.rightPane {
  background:
    radial-gradient(ellipse 480px 360px at 50% 100%, rgba(164,131,245,0.1), transparent 70%),
    radial-gradient(ellipse 900px 500px at 8% 0%, rgba(164,131,245,0.055), transparent 55%),
    radial-gradient(ellipse 900px 600px at 100% 100%, rgba(227,173,85,0.045), transparent 55%),
    var(--evx-bg) !important;
  background-attachment: scroll, fixed, fixed, scroll;
}

:root {
  color-scheme: dark;
  --evx-bg: #0a0c13;
  --evx-bg-soft: #0e111c;
  --evx-surface: #141928;
  --evx-surface-2: #1a2033;
  --evx-border: #262d42;
  --evx-border-soft: #1c2236;
  --evx-text: #ece7db;
  --evx-text-dim: #99a1b7;
  --evx-text-faint: #5c6479;
  --evx-gold: #e3ad55;
  --evx-gold-soft: #f0c98a;
  --evx-gold-dim: #a87c33;
  --evx-violet: #a483f5;
  --evx-violet-dim: #6d51ab;
  --evx-red: #c2453f;
  --evx-font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --evx-font-body: 'Sora', -apple-system, 'Segoe UI', sans-serif;
  --evx-font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ===================== Reszta podstron (Highscores/Online/Guilds/Houses/
   Characters/Rules/Spells/Serverinfo/Account/...) =====================
   Te strony korzystaja z bazowych szablonow MyAAC (system/templates/*.twig),
   ktorych atomio NIGDY nie stylowalo — renderuja sie surowymi tabelami
   kolorowanymi starymi inline bgcolor="{{ config.darkborder }}" z Twiga
   (bardzo niska specyficznosc CSS, latwo nadpisac) albo w ogole bez stylu
   (np. .TableContainer/.CaptionContainer z houses.html.twig — martwe klasy,
   atomio nie ma dla nich zadnego CSS). WAZNE: ten blok musi byc PRZED
   sekcjami .evx-panel/.ui.card nizej w tym pliku — przy takiej samej
   specyficznosci wygrywa kolejnosc w pliku, a karty na stronie glownej
   (Top5/News/Guilds) maja bardziej dopracowane, wlasne regoly ktore musza
   wygrac nad tymi ogolnymi. Zero zmian w PHP/Twig — czysto kosmetyczne
   nadpisanie CSS, wiec zero ryzyka zepsucia dzialania stron. */

.leftPane, .rightPane { color: var(--evx-text-dim); font-family: var(--evx-font-body); }
.leftPane a, .rightPane a { color: var(--evx-violet); }
.leftPane a:hover, .rightPane a:hover { color: var(--evx-gold-soft); }
.leftPane h1, .leftPane h2, .leftPane h3, .leftPane h4, .leftPane h5,
.rightPane h1, .rightPane h2, .rightPane h3, .rightPane h4, .rightPane h5 {
  font-family: var(--evx-font-display);
  color: var(--evx-gold-soft);
}

/* Stare tabele — praktycznie kazda podstrona (highscores/online/houses/
   characters/lastkills/spells/rules/serverinfo/wars/bans/team...) */
.leftPane table, .rightPane table {
  width: 100% !important;
  /* table-layout NIE ustawiany tutaj globalnie (zostaje domyslne "auto") —
     wczesniej bylo tu "fixed !important" na WSZYSTKICH tabelach, co
     naprawialo overflow Creatures/Spells (patrz regula .dataTable nizej),
     ale psulo kazda strone uzywajaca tabeli jako LAYOUTU (nie danych) —
     np. highscores.php ma <td><img width=10 height=1></td> (celowo
     mikroskopijny "spacer" bez zadnej szerokosci procentowej) obok kolumny
     tresci — pod fixed silnik dzieli brakujace szerokosci PO ROWNO, wiec
     ten 10-pikselowy spacer dostawal ~40% karty, a realna tresc (ranking +
     nick gracza) byla scisniete w drugie 40%, reszta obcinana przez
     overflow:hidden. auto liczy szerokosc kolumn z tresci, wiec spacer
     zostaje maly a tresc dostaje realne miejsce. */
  border-collapse: separate;
  border-spacing: 0;
  background: var(--evx-surface);
  border: 1px solid rgba(227,173,85,0.3);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  font-family: var(--evx-font-body);
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* Tylko prawdziwe tabele DANYCH inicjalizowane przez jQuery DataTables
   (Creatures ?creatures, Spells ?spells) dostaja klase "dataTable" z JS
   po $(...).DataTable() — TYLKO im potrzebne table-layout:fixed (duzo
   kolumn + dlugie tresci realnie rozpychaly tabele pod sidebar). Scopowanie
   do tej klasy (zamiast kazdej tabeli) omija strony-jako-layout (highscores)
   i zagniezdzone tabele (Skills/Equipment na stronie postaci). */
.leftPane table.dataTable, .rightPane table.dataTable {
  table-layout: fixed !important;
}
.leftPane table.dataTable td, .rightPane table.dataTable td,
.leftPane table.dataTable th, .rightPane table.dataTable th {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Ranking table na ?highscores (evx-hs-ranktable) — TO jest prawdziwa
   tabela danych (#/Rank/Outfit/Name/skill/Points), ma sens jej dac
   table-layout:fixed jak .dataTable (kolumny maja jawne, dopasowane do
   siebie szerokosci procentowe ustawione w highscores.php) — inaczej na
   waskim mobile (bez sasiada-sidebaru, ale nadal ciasno) kolumna Points
   wychodzila poza ekran zamiast sie zmiescic/zawinac. */
.leftPane table.evx-hs-ranktable, .rightPane table.evx-hs-ranktable {
  table-layout: fixed !important;
}
.leftPane table.evx-hs-ranktable td, .rightPane table.evx-hs-ranktable td,
.leftPane table.evx-hs-ranktable th, .rightPane table.evx-hs-ranktable th {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Naglowki (#/Rank/Outfit/Points...) lamaly sie litera-po-literze gdy
   kolumna byla wezsza niz samo slowo (brak white-space:nowrap - przegladarka
   zawijala na kazdym znaku zamiast obcinac z "..."). Dotyczy tylko
   PIERWSZEGO wiersza (naglowkowego) tej tabeli. */
.evx-hs-ranktable tr:first-child td {
  white-space: nowrap;
  /* td.white domyslnie ma font-size:14px w szerokiej, ozdobnej czcionce
     Cinzel (display) + padding 8px 10px - przy waskich procentowych
     kolumnach tej tabeli (4-18%) sama zmiana paddingu/rozmiaru nie
     wystarczala (nadal obcinalo "Rank"->"RA..." nawet na 1024-1280px, zwykla
     szerokosc laptopa, nie tylko telefon) - Cinzel jest fundamentalnie za
     szeroka na tak krotkie etykiety w tak waskich kolumnach. Zamiast dalej
     zgadywac procenty, naglowki TEJ tabeli dostaja zwykla, wezsza czcionke
     strony (Sora) - reszta strony (inne tabele/panele z klasa .white)
     zostaje przy Cinzel bez zmian. */
  font-family: var(--evx-font-body) !important;
  padding: 6px 4px !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}
.evx-hs-outfit-img { max-width: 100%; }
@media (max-width: 900px) {
  /* Na telefonie 6 kolumn na raz (flaga/rank/outfit/name/skill/points) nie
     miesci sie sensownie - chowamy najmniej istotna (flage kraju), zeby
     zrobic miejsce na czytelny outfit i nick. */
  .evx-hs-ranktable .evx-hs-col-flag { display: none; }
  /* evx-hs-col-flag zostaje w DOM jako 1. dziecko (tylko display:none), wiec
     licza sie od (2) - Rank, Outfit, Name, Skill, Points. */
  .evx-hs-ranktable tr > td:nth-child(2) { width: 14% !important; }
  .evx-hs-ranktable tr > td:nth-child(3) { width: 18% !important; }
  .evx-hs-ranktable tr > td:nth-child(4) { width: 33% !important; }
  .evx-hs-ranktable tr > td:nth-child(5) { width: 17% !important; }
  .evx-hs-ranktable tr > td:nth-child(6) { width: 18% !important; }
  .evx-hs-outfit-img { width: 30px; height: 30px; }
}
.leftPane table:hover, .rightPane table:hover {
  border-color: var(--evx-gold-soft);
  box-shadow: 0 14px 32px -16px rgba(0,0,0,0.5), 0 0 20px -6px rgba(227,173,85,0.3);
}
/* Zagniezdzone tabele (np. siatka ekwipunku na stronie postaci) maja stare
   inline style="background:#808080" / "#292929" (szare/czarne) do budowania
   ramek slotow — inline bije zwykle klasy CSS, wiec trzeba !important.
   Zamiast dawac KAZDEJ zagniezdzonej tabeli wlasna karte (brzydko, ramka w
   ramce), resetujemy je do przezroczystych — tylko NAJBARDZIEJ zewnetrzna
   tabela w .leftPane/.rightPane wyglada jak karta. */
.leftPane table table, .rightPane table table {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  /* Zagniezdzone tabele (np. Skills/Equipment obok siebie na stronie
     postaci) sa waskie (np. td width:30% leftPane) — odziedziczone z gory
     table-layout:fixed dzielilo kolumny po rowno i obcinalo etykiety typu
     "crafting level" do "c..." (ten sam mechanizm co scieralo nazwy w
     Character Info, ale TUTAJ wystepowalo takze na desktopie, nie tylko
     mobile — bo waskosc bierze sie z zagniezdzenia w kolumnie, nie z
     szerokosci ekranu). auto pozwala kolumnom dopasowac sie do tresci. */
  table-layout: auto !important;
}
.leftPane table table td, .rightPane table table td,
.leftPane table table tr, .rightPane table table tr {
  background: transparent !important;
}
.leftPane table table td, .rightPane table table td,
.leftPane table table th, .rightPane table table th {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.leftPane table tr, .rightPane table tr,
.leftPane table td, .rightPane table td,
.leftPane table th, .rightPane table th {
  background: transparent;
  color: var(--evx-text-dim);
  border-color: var(--evx-border-soft);
}
.leftPane table td, .rightPane table td,
.leftPane table th, .rightPane table th {
  padding: 8px 10px;
  font-size: 12.5px;
  /* EVOLIX: dlugi, niezlamliwy tekst (np. e-mail bez spacji) zmuszal cala
     tabele do rozciagniecia sie poza ekran na mobile, obcinajac np. przycisk
     "Change" obok wartosci w tabeli konta (?account/manage). Bez wplywu na
     krotkie wartosci - tylko pozwala przegladarce w razie potrzeby zlamac
     dlugi ciag. */
  /* tylko overflow-wrap (nie word-break: break-word razem z anywhere) -
     lamie DLUGIE NIEPRZERWANE ciagi (np. e-mail) tylko gdy naprawde sie nie
     miesczy, ale krotkie etykiety ("Account Name:") nadal zawijaja sie na
     spacjach jak normalnie, zamiast litera-po-literze w waskiej kolumnie. */
  overflow-wrap: break-word;
}
.leftPane table tr:nth-child(even) td, .rightPane table tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}
/* stary wzorzec sekcji: <tr bgcolor="..."><td class="white"><b>Tytul</b></td></tr> */
.leftPane table td.white, .rightPane table td.white,
.leftPane table th.white, .rightPane table th.white {
  font-family: var(--evx-font-display);
  color: var(--evx-gold-soft);
  font-size: 14px;
  background: rgba(227,173,85,0.05);
  border-bottom: 1px solid var(--evx-border-soft);
}

/* EVOLIX: tabele danych z duzo kolumn (np. Character List na koncie:
   Name/Level/Vocation/Town/Last login/Status/Hide/Edit) na mobile nie
   mieszcza sie nawet z overflow-wrap - 8 kolumn krotkich etykiet + dlugie
   daty. Bez tego CALA strona (razem z navbarem) robila sie szersza niz
   ekran i telefon zmniejszal caly widok zamiast pozwolic przewinac samo
   trudne miejsce. display:block na <table> pozwala jej przewijac sie w
   poziomie W SOBIE, reszta strony (w tym navbar) zostaje normalnej
   szerokosci. Pomija dataTable/evx-hs-ranktable (te juz maja wlasne
   table-layout:fixed i sie mieszcza). */
@media screen and (max-width: 900px) {
  .leftPane table:not(.dataTable):not(.evx-hs-ranktable),
  .rightPane table:not(.dataTable):not(.evx-hs-ranktable) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .leftPane table:not(.dataTable):not(.evx-hs-ranktable) > tbody,
  .rightPane table:not(.dataTable):not(.evx-hs-ranktable) > tbody {
    display: table;
    width: 100%;
  }
}

/* EVOLIX: strona ?account/manage (system/templates/account.management.html.twig)
   ma wlasny, wbudowany <style> z "#account-manage { width: 170%; }" i
   dwukolumnowym ukladem float (div#one 150px / div#two margin-left:150px) -
   stary fragment ze stockowego MyAAC, zupelnie osobny od naszego
   leftPane/rightPane, wiec wczesniejsza poprawka mobilna go nie obejmowala.
   Na mobile 170% szerokosci kontenera = polowa strony wychodzi poza ekran
   (dokladnie to co user zglosil: trzeba bylo przesuwac/scrollowac). */
#account-manage {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media screen and (max-width: 900px) {
  #account-manage div#one {
    float: none !important;
    width: 100% !important;
    margin-bottom: 14px;
  }
  #account-manage div#two {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

/* Tabela Monsters/Creatures (?creatures) — ikonka potwora przed nazwa,
   zeby bylo go widac juz na liscie, nie dopiero po kliknieciu */
.creature_row_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.creature_row_icon {
  flex: none;
  width: 32px; height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  background: var(--evx-bg-soft);
  border: 1px solid var(--evx-border-soft);
  border-radius: 6px;
  padding: 2px;
}

/* houses.html.twig i kilka innych: dekoracyjne, niestylowane przez atomio
   "ramki" z GIF-ow (box-frame-*) — ukrywamy ozdobniki, stylujemy caly box
   jako naszą karte */
.CaptionEdgeLeftTop, .CaptionEdgeRightTop, .CaptionBorderTop,
.CaptionVerticalLeft, .CaptionVerticalRight { display: none; }
.CaptionContainer {
  background: var(--evx-surface);
  border: 1px solid rgba(227,173,85,0.3);
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
  position: relative;
}
.CaptionContainer .Text {
  font-family: var(--evx-font-display);
  color: var(--evx-gold-soft);
  font-size: 15px;
}
.TableContainer table.Table1 {
  border-radius: 0 0 12px 12px;
  border-top: none;
  margin-top: -14px;
}

/* Formularze (wyszukiwanie domow, lost account, edycja postaci...). Niektore
   stare formularze (np. online.form.html.twig) maja <input> BEZ atrybutu
   type= w ogole (przegladarka i tak traktuje to jak text, ale selektor
   [type=text] tego nie zlapie) — stad dodatkowy input:not([type=...]). */
.leftPane input[type=text], .leftPane input[type=password], .leftPane input[type=email],
.leftPane input[type=number], .leftPane select, .leftPane textarea,
.rightPane input[type=text], .rightPane input[type=password], .rightPane input[type=email],
.rightPane input[type=number], .rightPane select, .rightPane textarea,
.leftPane input:not([type]), .rightPane input:not([type]) {
  /* box-sizing:border-box — bez tego np. <textarea style="width:100%">
     (strona Rules) robila sie szersza niz kontener (padding+border sie
     doliczaly), fizycznie wchodzac na sidebar. */
  box-sizing: border-box !important;
  background: var(--evx-bg-soft) !important;
  border: 1px solid var(--evx-border-soft) !important;
  border-radius: 6px !important;
  color: var(--evx-text) !important;
  font-family: var(--evx-font-body) !important;
  padding: 7px 10px !important;
  width: auto;
}
.leftPane button, .rightPane button,
.leftPane input[type=submit], .rightPane input[type=submit] {
  background: linear-gradient(180deg, var(--evx-gold-soft), var(--evx-gold-dim)) !important;
  color: #241705 !important;
  border: none !important;
  border-radius: 7px !important;
  font-family: var(--evx-font-body) !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.leftPane button:hover, .rightPane button:hover,
.leftPane input[type=submit]:hover, .rightPane input[type=submit]:hover {
  box-shadow: 0 10px 24px -8px rgba(227,173,85,0.6);
  transform: translateY(-1px);
}

/* Stronicowanie (highscores strony, forum...) */
.leftPane .pagination a, .rightPane .pagination a,
.leftPane .pages a, .rightPane .pages a {
  color: var(--evx-text-dim);
  border: 1px solid var(--evx-border-soft);
  border-radius: 6px;
  padding: 4px 10px;
  text-decoration: none;
  display: inline-block;
}
.leftPane .pagination a:hover, .rightPane .pagination a:hover,
.leftPane .pages a:hover, .rightPane .pages a:hover {
  border-color: var(--evx-gold-dim);
  color: var(--evx-gold-soft);
}

/* Komunikaty bledow/sukcesu (formularze kont, lost account itp.) */
.leftPane .error, .rightPane .error {
  color: #ff9d9d; background: rgba(194,69,63,0.1);
  border: 1px solid rgba(194,69,63,0.4); border-radius: 8px; padding: 10px 14px;
}
.leftPane .success, .rightPane .success {
  color: #8fe8ad; background: rgba(110,214,126,0.08);
  border: 1px solid rgba(110,214,126,0.35); border-radius: 8px; padding: 10px 14px;
}

/* ===================== Top navigation ===================== */
.main > nav {
  background: rgba(10,12,19,0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--evx-border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 !important;
}
.main > nav .container {
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  /* stary CSS (style.css) ma "nav .container { overflow: hidden }" do
     czyszczenia floatów — przycinało to rozwijane dropdowny menu, muszą
     wystawać poza kontener */
  overflow: visible !important;
  padding: 13px 22px;
  flex-wrap: wrap;
}
.evx-brand {
  font-family: var(--evx-font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--evx-gold-soft) !important;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.evx-brand .evx-mark-img {
  width: 62px; height: 62px;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(139,92,246,0.35));
}
/* Napis z domena obok logo (tylko desktop) — zloty "blysk" przesuwajacy sie
   po tekscie co kilka sekund, ".pl" fioletowe z poswiata. */
.evx-domain {
  flex: none;
  margin-left: 2px;
  margin-right: auto;               /* wolne miejsce zostaje PO napisie, nie miedzy logo a napisem */
  font-family: var(--evx-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-decoration: none !important;
  /* Zwykly, pelny kolor tekstu (bez triku background-clip:text + transparent) —
     ta kombinacja w niektorych wersjach Chrome renderuje sie jako czarny
     prostokat zamiast przezroczystego tla (zweryfikowane 2026-10-18: odtworzone
     w czystym headless Chrome bez rozszerzen, wiec to byl realny bug silnika,
     nie ustawien usera). Poswiata animowana przez text-shadow zamiast ruchomego
     gradientu, zeby zachowac podobny "zywy" efekt bez ryzyka. */
  color: var(--evx-gold-soft);
  animation: evxDomainPulse 3s ease-in-out infinite;
  transition: filter .2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.evx-domain:focus-visible { outline: 1px solid rgba(240,201,138,0.5); outline-offset: 3px; }
.evx-domain span {
  color: var(--evx-violet);
  text-shadow: 0 0 18px rgba(164,131,245,0.6);
  letter-spacing: 0.04em;
}
.evx-domain:hover { filter: brightness(1.15); }
@keyframes evxDomainPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(227,173,85,0.35); }
  50% { text-shadow: 0 0 18px rgba(240,201,138,0.75); }
}
@media (prefers-reduced-motion: reduce) { .evx-domain { animation: none; } }
/* pasek nawigacji ma max 1240px — na wezszych oknach nie miesci sie juz jeszcze jeden element w jednym wierszu */
@media screen and (max-width: 900px) {
  .evx-domain { font-size: 14px; letter-spacing: 0.05em; margin-left: 0; }
}
@media screen and (max-width: 380px) {
  .evx-domain { font-size: 12px; letter-spacing: 0.03em; }
}

/* Maly "boss ticker" w navbarze, miedzy logo a menu — crossfade jak reszta,
   stala szerokosc zeby menu obok nie skakalo przy zmianie dlugosci nazwy.
   Etykieta "Bosses" (link do pelnej listy ?bosses) + zloty gradient/glow
   na tekscie, zeby bylo jasne co ten ticker w ogole pokazuje. */
.evx-navboss-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline: 6px 2px;
  padding-left: 14px;
  border-left: 1px solid var(--evx-border-soft);
}
.evx-navboss-label {
  flex: none;
  font-family: var(--evx-font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(180deg, var(--evx-gold-soft), var(--evx-gold-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(227,173,85,0.35);
  transition: text-shadow .2s ease, filter .2s ease;
}
.evx-navboss-label:hover { text-shadow: 0 0 20px rgba(227,173,85,0.6); filter: brightness(1.15); }
.evx-navboss {
  position: relative;
  width: 168px; height: 30px;
  flex: none;
}
.evx-navboss-item {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 7px;
  text-decoration: none;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.evx-navboss-item.is-active { opacity: 1; pointer-events: auto; }
.evx-navboss-item img {
  flex: none; width: 26px; height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
  background: var(--evx-bg-soft);
  border: 1px solid var(--evx-border-soft);
  border-radius: 6px;
}
.evx-navboss-dot {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
}
.evx-navboss-dot.is-alive { background: #6ed67e; box-shadow: 0 0 6px #6ed67e; animation: evxPulse 2.4s ease-in-out infinite; }
.evx-navboss-dot.is-dead { background: #e5837e; box-shadow: 0 0 6px #e5837e; }
.evx-navboss-name {
  font-family: var(--evx-font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--evx-text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evx-navboss-item:hover .evx-navboss-name { color: var(--evx-gold-soft); }
@media screen and (max-width: 900px) {
  /* EVOLIX: used to just be hidden on mobile entirely ("navbar already
     tight") -- user asked for it back, compact, sitting between the logo
     and the hamburger button. Drops the "BOSSES" label + separator +
     shrinks the rotating icon/name so the whole thing fits in the
     leftover space on one row instead of forcing a wrap. */
  .evx-navboss-wrap {
    display: flex;
    margin: 0;
    padding-left: 0;
    border-left: none;
    gap: 0;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .evx-navboss-label { display: block; font-size: 11px; letter-spacing: 0.06em; margin-right: 7px; }
  .evx-navboss { width: 92px; height: 24px; }
  .evx-navboss-item { gap: 5px; }
  .evx-navboss-item img { width: 20px; height: 20px; }
  .evx-navboss-name { font-size: 10px; }
  .main > nav .container { gap: 10px; }
}
@media screen and (max-width: 380px) {
  .evx-navboss { width: 70px; }
  .evx-navboss-label { display: none; }
  .main > nav .container { gap: 6px; }
}
/* Mobile hamburger toggle button -- hidden entirely on desktop (>900px),
   the @media block further down turns it on and does the actual collapsing.
   Classic 3-bar icon that animates into an X via rotate/fade when .open. */
.evx-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--evx-border);
  border-radius: 8px;
  background: var(--evx-surface);
  cursor: pointer;
  margin-left: auto;
}
.evx-nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--evx-gold-soft);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.evx-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.evx-nav-toggle.open span:nth-child(2) { opacity: 0; }
.evx-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile-only "Search, Bestiary & More" collapse toggle sitting above the
   rightPane sidebar widgets -- see index.php. Hidden entirely on desktop,
   where the sidebar just renders beside the content like always. */
.evx-sidebar-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin-bottom: 14px;
  background: var(--evx-surface);
  border: 1px solid var(--evx-border);
  border-radius: 10px;
  color: var(--evx-gold-soft);
  font-family: var(--evx-font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.evx-sidebar-chevron { transition: transform .2s ease; }
.evx-sidebar-toggle.open .evx-sidebar-chevron { transform: rotate(180deg); }
/* Desktop: .evx-nav-collapse is just a transparent wrapper around
   .pull-left/.pull-right added for the mobile toggle (see JS in
   index.php) -- needs its own flex row so those two keep sitting on
   opposite ends of the remaining space, exactly like before the wrapper
   existed. The @media block further down replaces this with a stacked,
   hidden-by-default panel on mobile. */
.evx-nav-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 20px;
  min-width: 0;
}
.main > nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0 !important;
  padding: 0 !important;
}
.main > nav .pull-right ul { gap: 12px; }
.main > nav ul li { list-style: none; }
.main > nav ul li > a {
  font-family: var(--evx-font-body) !important;
  font-size: 14.5px !important;
  font-weight: 600;
  color: #d3d8ea !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s, background-color .15s, box-shadow .15s;
}
.main > nav ul li > a i,
.main > nav ul li > a .icon {
  color: var(--evx-gold-dim);
  transition: color .15s;
}
.main > nav ul li > a:hover {
  color: var(--evx-gold-soft) !important;
  background-color: rgba(227,173,85,0.1);
  box-shadow: inset 0 0 0 1px rgba(227,173,85,0.25);
}
.main > nav ul li > a:hover i,
.main > nav ul li > a:hover .icon { color: var(--evx-gold-soft); }
.main > nav ul li:hover > ul { display: block; }
.main > nav ul li { position: relative; }
.main > nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  gap: 0;
  background: var(--evx-surface);
  border: 1px solid rgba(227,173,85,0.3);
  border-radius: 10px;
  padding: 10px 8px 8px !important;
  margin-top: 0 !important;
  /* pasek-most bez przerwy w hoverze: cień w gorę zamiast marginesu,
     zeby kursor idacy od linku do menu nigdy nie "wypadl" z obszaru li */
  box-shadow: 0 -10px 0 -4px transparent, 0 20px 40px -15px rgba(0,0,0,0.6);
  min-width: 190px;
}
.main > nav ul li ul::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.main > nav ul li ul li a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px !important;
}
.main > nav ul li ul li a:hover { background: var(--evx-surface-2); }

.evx-btn {
  font-family: var(--evx-font-body) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 7px !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.evx-btn-ghost { color: var(--evx-text) !important; border: 1px solid rgba(227,173,85,0.35) !important; }
.evx-btn-gold {
  background: linear-gradient(180deg, var(--evx-gold-soft), var(--evx-gold-dim)) !important;
  color: #241705 !important;
  box-shadow: 0 6px 18px -6px rgba(227,173,85,0.5);
}
/* Bug: "Register" w navbarze byl ledwo widoczny — regula
   ".main > nav ul li > a { color: var(--evx-text-dim) !important }" ma
   WYZSZA specyficznosc (4 selektory typu + 1 klasa) niz sama ".evx-btn-gold"
   (1 klasa), wiec mimo !important w obu wygrywala jasnoszara barwa navbaru
   zamiast ciemnego, kontrastowego tekstu na zlotym tle. Podbijamy
   specyficznosc tak zeby .evx-btn-gold zawsze mial ciemny tekst. */
.main > nav ul li > a.evx-btn-gold,
.main > nav ul li > a.evx-btn-gold:hover { color: #241705 !important; }

/* Discord button (navbar, next to Login/Register row) — blue brand color,
   same specificity-boost trick as evx-btn-gold above (the generic nav link
   color rule otherwise wins over the plain class). */
.evx-btn-discord {
  background: #5865F2 !important;
  color: #fff !important;
  box-shadow: 0 6px 18px -6px rgba(88,101,242,0.55);
}
.main > nav ul li > a.evx-btn-discord,
.main > nav ul li > a.evx-btn-discord:hover { color: #fff !important; background: #6874f5 !important; }
.main > nav ul li > a.evx-btn-discord i,
.main > nav ul li > a.evx-btn-discord:hover i { color: #fff !important; }
.evx-nav-social { margin-left: auto; }

/* Small "Tibia 8.6" subtitle under the EVOLIX brand mark */
.evx-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-decoration: none !important;
}
.evx-brand-sub {
  font-family: var(--evx-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--evx-text-dim);
  padding-left: 0;
  text-align: center; width: 100%;
}

/* ===================== Hero (homepage only) — kompaktowe, mało scrolla ===================== */
.evx-hero {
  position: relative;
  overflow: hidden;
  padding-block: 12px 8px;
  background:
    radial-gradient(ellipse 900px 400px at 18% -10%, rgba(164,131,245,0.2), transparent 60%),
    radial-gradient(ellipse 900px 400px at 85% 120%, rgba(227,173,85,0.14), transparent 60%),
    linear-gradient(180deg, #0a0c13 0%, #0d0f1a 60%, #0a0c13 100%);
  border-bottom: 1px solid var(--evx-border-soft);
  text-align: center;
}
/* Osobne tło TYLKO paska hero (nie calej strony) — wrzuć plik
   templates/atomio/images/hero-bg.(jpg|jpeg|png|webp) i automatycznie
   podmieni płaski kolor na zdjęcie z ciemną nakładką (tekst zostaje
   czytelny). Bez pliku: wraca do zwykłego koloru jak wyżej. */
.evx-hero.evx-hero-has-bg {
  /* Delikatniej — tlo ma przeswitywac. Zamiast plaskiej ciemnej naklad ki na
     cala sekcje, gradient idzie po przekatnej: ciemniej tylko za tekstem
     (lewa strona), a po prawej (gdzie jest slider/zdjecie) tlo jest niemal
     odslon iete. Czytelnosc tekstu ratuje dodatkowo cien pod h1/tagline
     (patrz nizej), nie sama naklad ka. */
  background:
    radial-gradient(ellipse 900px 400px at 18% -10%, rgba(164,131,245,0.12), transparent 60%),
    radial-gradient(ellipse 900px 400px at 85% 120%, rgba(227,173,85,0.08), transparent 60%),
    linear-gradient(100deg, rgba(8,9,15,0.72) 0%, rgba(8,9,15,0.42) 32%, rgba(8,9,15,0.14) 55%, rgba(8,9,15,0.22) 100%),
    var(--evx-hero-bg-img);
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}
.evx-hero.evx-hero-has-bg h1 { text-shadow: 0 0 60px rgba(227,173,85,0.3), 0 2px 10px rgba(0,0,0,0.7); }
.evx-hero.evx-hero-has-bg .evx-tagline { text-shadow: 0 1px 6px rgba(0,0,0,0.65); }
.evx-hero.evx-hero-has-bg .evx-stat .evx-v { text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.evx-hero .evx-container { max-width: 760px; margin-inline: auto; padding-inline: 20px; }

/* Dwie kolumny: tekst lewo, slider prawo (obrazek nie piętrzy się już pod
   tekstem, więc może być większy bez zwiększania wysokości hero) */
.evx-hero-grid { display: flex; align-items: center; gap: 28px; text-align: left; }
.evx-hero-text { flex: 1 1 auto; min-width: 0; }
.evx-hero-media { flex: 0 0 min(46%, 520px); width: min(46%, 520px); min-width: 0; }
@media (max-width: 720px) {
  .evx-hero-grid { flex-direction: column; text-align: center; }
  .evx-hero-media { order: 1; flex: none; width: 100%; }
}

.evx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--evx-font-mono);
  font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--evx-violet);
  border: 1px solid var(--evx-violet-dim);
  background: rgba(164,131,245,0.08);
  padding: 4px 11px; border-radius: 100px;
  margin-bottom: 8px;
}
.evx-eyebrow .evx-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ed67e; box-shadow: 0 0 8px #6ed67e; }
.evx-hero h1 {
  font-family: var(--evx-font-display);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  margin: 0 0 6px;
  color: var(--evx-gold-soft);
  text-shadow: 0 0 60px rgba(227,173,85,0.25);
}
.evx-hero .evx-tagline {
  font-family: var(--evx-font-body);
  font-size: 12.5px;
  color: var(--evx-text-dim);
  max-width: 46ch;
  margin: 0 0 10px;
}

/* Rotator: jedna pozycja na raz, crossfade w tym samym miejscu */
.evx-rotator {
  position: relative;
  height: 18px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.evx-rot-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--evx-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--evx-gold-soft);
  opacity: 0;
  transition: opacity .5s ease;
  white-space: nowrap;
}
.evx-rot-item.is-active { opacity: 1; }
.evx-rot-item .evx-ic {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(164,131,245,0.14);
  border: 1px solid var(--evx-violet-dim);
  display: flex; align-items: center; justify-content: center;
}
.evx-rot-item .evx-ic svg { width: 9px; height: 9px; stroke: var(--evx-gold-soft); fill: none; stroke-width: 1.6; }

.evx-hero-ctas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.evx-hero-ctas .evx-btn { font-size: 12px !important; padding: 7px 15px !important; }

/* EVOLIX: maly podpis z data aktualizacji klienta pod "Download Client" */
.evx-btn-dl { align-items: center; }
.evx-dl-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.evx-dl-date { font-size: 9.5px; font-weight: 500; letter-spacing: .02em; opacity: .72; }

/* EVOLIX: zamiast migoczacej liczby online w hero - sama pulsujaca zielona
   kropka (liczba potrafila czasem pokazac stara/cache'owana wartosc przy
   chwilowym zacieciu zapytania do serwera gry, kropka omija ten problem
   calkowicie - nic nie pokazuje liczbowo, wiec nic nie moze "zle" pokazac) */
.evx-v-dot { display: flex; align-items: center; justify-content: center; height: 14px; }
.evx-stat-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #6ed67e;
  animation: evxPulse 2.4s ease-in-out infinite;
}
.evx-stat .evx-l-dot { margin-top: 8px; }

.evx-hero-shot, .evx-slider {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(227,173,85,0.3);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7);
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.evx-hero-shot:hover, .evx-slider:hover {
  border-color: var(--evx-gold-soft);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7), 0 0 26px -4px rgba(227,173,85,0.4);
}
.evx-hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evx-hero-shot .evx-shot-placeholder {
  height: 100%;
  background: var(--evx-bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--evx-text-faint);
  font-family: var(--evx-font-mono);
  font-size: 10px;
  text-align: center;
  padding: 10px;
  line-height: 1.35;
}
.evx-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.evx-slide.is-active { opacity: 1; }

.evx-stat-row {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--evx-border-soft);
  padding-top: 8px;
  max-width: 380px;
}
@media (max-width: 720px) { .evx-stat-row { margin-inline: auto; justify-content: center; } }
/* 4 statystyki (Online/Uptime/Protocol/Restart) musza sie zmiescic w jednym rzedzie na telefonie */
@media (max-width: 480px) {
  .evx-stat { padding-inline: 8px; }
  .evx-hide-xs { display: none; }
}
.evx-stat { padding-inline: 14px; text-align: center; border-right: 1px solid var(--evx-border-soft); }
.evx-stat:first-child { padding-left: 0; }
.evx-stat:last-child { border-right: none; }
.evx-stat .evx-v {
  font-family: var(--evx-font-mono); font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 600; color: var(--evx-gold-soft);
}
.evx-stat .evx-l { font-size: 8.5px; color: var(--evx-text-faint); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0; }

/* ===================== Chip strip: male "co ma serwer", ikona + napis ===================== */
.evx-chip-head {
  font-family: var(--evx-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--evx-text-faint);
  margin: 0 0 10px;
}
.evx-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.evx-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--evx-surface);
  border: 1px solid var(--evx-border-soft);
  border-radius: 100px;
  padding: 6px 12px 6px 8px;
  font-family: var(--evx-font-body);
  font-size: 12px;
  color: var(--evx-text-dim);
  transition: border-color .15s, color .15s;
}
.evx-chip:hover { border-color: var(--evx-gold-dim); color: var(--evx-text); }
.evx-chip .evx-ic {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(164,131,245,0.14);
  border: 1px solid var(--evx-violet-dim);
  display: flex; align-items: center; justify-content: center;
}
.evx-chip .evx-ic svg { width: 12px; height: 12px; stroke: var(--evx-gold-soft); fill: none; stroke-width: 1.6; }

.evx-feat-head { text-align: left; margin: 0 0 12px; }
.evx-feat-head .evx-eyebrow2 { font-family: var(--evx-font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--evx-violet); margin: 0 0 6px; display:block; }
.evx-feat-head h2 { font-family: var(--evx-font-display); font-size: 21px; color: var(--evx-gold-soft); margin: 0; }

/* ===================== Sidebar panels (widgets) ===================== */
.evx-panel {
  background: var(--evx-surface);
  border: 1px solid rgba(227,173,85,0.3);
  border-radius: 12px;
  padding: 16px 16px 10px;
  margin-bottom: 14px;
  font-family: var(--evx-font-body);
}
.evx-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.evx-panel-head h3 { font-family: var(--evx-font-display); font-size: 15px; color: var(--evx-gold-soft); margin: 0; }

/* Tresc newsow (z bazy, stary edytor) miala mnostwo wlasnych, zaszytych na
   sztywno kolorow/pogrubien (dlatego wygladalo brazowo/pomaranczowo) —
   wymuszamy spojna kolorystyke niezaleznie od inline style w tresci. */
.evx-news-body,
.evx-news-body * {
  color: var(--evx-text-dim) !important;
  background: transparent !important;
  border-color: var(--evx-border-soft) !important;
}
.evx-news-body strong, .evx-news-body b { color: var(--evx-text) !important; }
.evx-news-body h1, .evx-news-body h2, .evx-news-body h3,
.evx-news-body h4, .evx-news-body h5, .evx-news-body h6 {
  color: var(--evx-gold-soft) !important;
  font-family: var(--evx-font-display);
}
.evx-news-body a { color: var(--evx-violet) !important; }
.evx-news-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* Plugin "Most Powerful Guilds" — uzywa klas Semantic UI ktorych atomio
   nie stylizuje wcale (stad surowy, nieforemny wyglad). Podpinamy pod
   ten sam jezyk co reszta kart. */
.ui.card {
  background: var(--evx-surface) !important;
  border: 1px solid rgba(227,173,85,0.3) !important;
  border-radius: 12px !important;
  padding: 16px 16px 10px !important;
  margin-bottom: 14px !important;
  color: var(--evx-text-dim) !important;
}
/* plugin owija tresc w <div class="ui top attached message"> (header) i
   <div class="ui bottom attached segment"> (body) — u nas Semantic UI nie
   jest zaladowane wcale, wiec te divy nie maja zadnego stylu z frameworka,
   ale i tak trzeba je jawnie wyzerowac (margin/border/shadow), bo inaczej
   robia sie 2 nachodzace na siebie, krzywe "ramki" w srodku karty */
.ui.card .ui.top.attached.message,
.ui.card .ui.bottom.attached.segment {
  background: var(--evx-surface) !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ui.card .ui.header, .ui.card .ui.header .content {
  color: var(--evx-gold-soft) !important;
  font-family: var(--evx-font-display) !important;
  font-size: 15px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.ui.card .ui.header {
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid var(--evx-border-soft) !important;
}
.ui.card table { width: 100%; border-collapse: collapse; margin: 0 !important; background: var(--evx-surface) !important; }
.ui.card table td { color: var(--evx-text-dim) !important; font-size: 12.5px; padding: 6px 4px; border: none !important; background: var(--evx-surface) !important; }
.ui.card { padding: 10px 12px 6px !important; }
.ui.card img { max-height: 44px !important; width: auto !important; height: auto !important; }
.ui.card .ui.header { padding-bottom: 6px !important; margin-bottom: 6px !important; }
.ui.card table td { padding: 2px 4px !important; }
/* Znaleziona prawdziwa przyczyna "rozjezdzajacych sie ramek": globalna
   regula w style.css (tr:nth-child(2n+1) { background: var(--secondary); })
   robi zebra-stripe na KAZDEJ nieparzystej linii tabeli na calej stronie —
   w tej karcie jedyny <tr> jest nieparzysty, wiec dostawal stare szare tlo
   zamiast granatu karty, co wygladalo jak osobna, zle dopasowana ramka.
   Nadpisujemy na sztywno kolorem karty (nie "transparent") na tr I td,
   zeby wygrac niezaleznie od tego ktory dokladnie element dostaje stare tlo. */
.ui.card table tr,
.ui.card table tr:nth-child(2n+1) {
  background: var(--evx-surface) !important;
}
.evx-panel-head a { font-size: 10.5px; color: var(--evx-violet); font-family: var(--evx-font-mono); text-decoration: none; }
.evx-panel table { width: 100%; border-collapse: collapse; }
.evx-panel table td { padding: 7px 4px; font-size: 12.5px; border-top: 1px solid var(--evx-border-soft); color: var(--evx-text); }
.evx-panel table tr:first-child td { border-top: none; }

/* Top 5: wiersze flex zamiast tabeli — outfit duzy, tekst normalny,
   wszystko ladnie wysrodkowane niezaleznie od wysokosci obrazka */
.evx-hs-list { display: flex; flex-direction: column; }
.evx-hs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  border-top: 1px solid var(--evx-border-soft);
}
.evx-hs-list .evx-hs-row:first-child { border-top: none; }
.evx-hs-rank { font-family: var(--evx-font-mono); font-size: 12.5px; width: 16px; flex: none; color: var(--evx-text-faint); }
.evx-hs-rank.g1 { color: var(--evx-gold-soft); font-weight: 700; }
.evx-hs-rank.g2 { color: #cdd3e0; font-weight: 700; }
.evx-hs-rank.g3 { color: #c88a4e; font-weight: 700; }
.evx-hs-outfit { flex: none; width: 52px; height: 52px; overflow: hidden; }
.evx-hs-outfit img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }

/* Highscores (?highscores) i Who's Online (?online) — stare surowe tabele
   MyAAC robily outfit "position:absolute" z ujemnym marginesem, zeby
   nachodzil na sasiednia komorke (hack tunowany pod bardzo waski, stary
   wiersz tabeli). Po naszym restylingu (wyzsze wiersze, padding 8px) ten
   hack zaczal nachodzic na nick/wokacje w wierszu obok — teraz zwykly,
   wysrodkowany obrazek w normalnym przeplywie, bez position:absolute. */
.evx-hs-outfit-img {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}

/* Strona postaci (?characters/Nick) — duzy portret outfitu w rogu karty
   "Character Information". Byl "position:absolute; margin-left:552px"
   (dobrany recznie pod stara, sztywna szerokosc 1220px calej strony) —
   przy nowym, plynnym ukladzie karty wyjezdzal daleko poza prawa krawedz
   (albo znikal, w zaleznosci od szerokosci ekranu). Teraz zwykly float w
   normalnym przeplywie dokumentu, zawsze w prawym gornym rogu karty
   niezaleznie od jej faktycznej szerokosci. */
.evx-char-outfit {
  float: right;
  display: inline-block;
  /* Bez width/height/overflow:hidden na kontenerze — poprzednia wersja
     tnela dolna czesc sprite'a (stopy) na wiekszych outfitach (128x128),
     bo wymuszala sztywny box 64x64. Ramka teraz dopasowuje sie do
     naturalnego rozmiaru obrazka (64 albo 128px, patrz warunek w twigu),
     zeby cala postac zawsze byla w calosci widoczna. */
  padding: 0;
  margin: 0 0 10px 14px;
  background: transparent;
}
.evx-char-outfit img { display: block; image-rendering: pixelated; }
@media screen and (max-width: 900px) {
  .evx-char-outfit { float: none; margin: 0 0 14px; }
}
.evx-hs-name { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--evx-text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evx-hs-lvl { flex: none; font-size: 12.5px; font-family: var(--evx-font-mono); font-variant-numeric: tabular-nums; color: var(--evx-text-dim); }

/* ===================== World Bosses (gora strony glownej) =====================
   Ten sam wzorzec crossfade co Bestiary nizej, ale wieksza/bardziej
   wyeksponowana karta na pelna szerokosc lewej kolumny (nie sidebar) —
   pierwsza rzecz pod hero. 61 bossow z bossbar.lua, grafiki wyciagniete
   z Tibia.spr/Tibia.dat (patrz znane-problemy-i-todo.md). Bez sledzenia
   zyje/nie zyje — to osobny temat, wymagalby danych z serwera gry. */
.evx-bossshowcase .evx-panel-head .evx-boss-count {
  font-family: var(--evx-font-mono);
  font-size: 10.5px;
  color: var(--evx-text-faint);
}
.evx-boss-stage { position: relative; height: 110px; }
.evx-boss-item {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 18px;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.evx-boss-item.is-active { opacity: 1; pointer-events: auto; }
.evx-boss-img {
  flex: none; width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(227,173,85,0.1), transparent 70%),
    var(--evx-bg-soft);
  border: 1px solid rgba(227,173,85,0.3);
  border-radius: 12px;
  overflow: hidden;
}
.evx-boss-img img { max-width: 82%; max-height: 82%; image-rendering: pixelated; }
.evx-boss-info { min-width: 0; }
.evx-boss-name {
  font-family: var(--evx-font-display);
  font-size: 21px;
  color: var(--evx-gold-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 6px;
}
.evx-boss-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--evx-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.evx-boss-status.is-alive { color: #6ed67e; }
.evx-boss-status.is-dead { color: #e5837e; }
.evx-boss-dotstatus {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.evx-boss-status.is-alive .evx-boss-dotstatus { animation: evxPulse 2.4s ease-in-out infinite; }
.evx-boss-stats {
  display: flex; gap: 16px;
  font-family: var(--evx-font-mono);
  font-size: 12px;
  color: var(--evx-text-dim);
}
.evx-boss-dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; max-height: 18px; overflow: hidden; }
.evx-boss-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--evx-border);
  transition: background .3s ease, transform .3s ease;
}
.evx-boss-dot.is-active { background: var(--evx-gold); transform: scale(1.5); }
@media screen and (max-width: 900px) {
  .evx-boss-stage { height: auto; min-height: 140px; }
  .evx-boss-item { position: relative; inset: auto; display: none; }
  .evx-boss-item.is-active { display: flex; }
}
.evx-boss-status-unknown { color: var(--evx-text-faint); }
.evx-boss-status-unknown .evx-boss-dotstatus { background: var(--evx-border); box-shadow: none; }

/* Pelna lista bossow (?bosses) — siatka statycznych kart, nie rotator */
.evx-bosslist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.evx-bosslist-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--evx-surface);
  border: 1px solid rgba(227,173,85,0.3);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.evx-bosslist-card:hover {
  border-color: var(--evx-gold-soft);
  box-shadow: 0 14px 28px -14px rgba(0,0,0,0.6), 0 0 20px -6px rgba(227,173,85,0.3);
  transform: translateY(-2px);
}
.evx-bosslist-img {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--evx-bg-soft);
  border: 1px solid var(--evx-border-soft);
  border-radius: 10px;
}
.evx-bosslist-img img { max-width: 80%; max-height: 80%; image-rendering: pixelated; }
.evx-bosslist-name {
  font-family: var(--evx-font-display);
  font-size: 13px;
  color: var(--evx-gold-soft);
  line-height: 1.25;
}
.evx-bosslist-stats {
  font-family: var(--evx-font-mono);
  font-size: 10.5px;
  color: var(--evx-text-faint);
}

/* Server Info page */
.evx-sinfo-title { text-align: center; margin-bottom: 22px; }
.evx-sinfo-title h1 { font-family: var(--evx-font-display); color: var(--evx-gold-soft); font-size: 30px; margin: 0 0 6px; }
.evx-sinfo-title p { color: var(--evx-text-faint); font-size: 13px; margin: 0; }
.evx-sinfo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.evx-sinfo-wide { grid-column: 1 / -1; }
.evx-sinfo-rows { display: flex; flex-direction: column; }
.evx-sinfo-rows-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.evx-sinfo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 2px;
  border-top: 1px solid var(--evx-border-soft);
  font-size: 13px;
}
.evx-sinfo-rows > .evx-sinfo-row:first-child,
.evx-sinfo-rows-2col > .evx-sinfo-row:nth-child(-n+2) { border-top: none; }
.evx-sinfo-row span { color: var(--evx-text-faint); }
.evx-sinfo-row b { color: var(--evx-text); font-weight: 600; text-align: right; }
.evx-sinfo-row b i { color: var(--evx-text-faint); font-style: normal; font-size: 11.5px; }
.evx-sinfo-note { margin: 14px 2px 0; font-size: 11.5px; color: var(--evx-text-faint); font-style: italic; }
@media screen and (max-width: 720px) {
  .evx-sinfo-grid { grid-template-columns: 1fr; }
  .evx-sinfo-rows-2col { grid-template-columns: 1fr; }
  .evx-sinfo-rows-2col > .evx-sinfo-row:nth-child(-n+2) { border-top: 1px solid var(--evx-border-soft); }
  .evx-sinfo-rows-2col > .evx-sinfo-row:first-child { border-top: none; }
}

/* Server Info page - collapsible panel (e.g. Stamina) */
.evx-sinfo-panel.evx-acc { padding: 0; }
.evx-sinfo-panel.evx-acc > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.evx-sinfo-panel.evx-acc > summary::-webkit-details-marker { display: none; }
.evx-sinfo-panel.evx-acc > summary .evx-panel-head { margin: 0; flex: 1; }
.evx-sinfo-panel.evx-acc > summary::after { content: "\25BE"; color: var(--evx-gold-soft); font-size: 16px; transition: transform .2s; margin-left: 10px; }
.evx-sinfo-panel.evx-acc:not([open]) > summary::after { transform: rotate(-90deg); }
.evx-sinfo-panel.evx-acc[open] > summary { border-bottom: 1px solid var(--evx-border-soft); margin-bottom: 4px; }
.evx-sinfo-panel.evx-acc > .evx-acc-body { padding: 4px 20px 18px; }
.evx-sinfo-panel.evx-acc table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 12.5px; }
.evx-sinfo-panel.evx-acc th, .evx-sinfo-panel.evx-acc td { border-bottom: 1px solid var(--evx-border-soft); padding: 6px 8px; text-align: left; color: var(--evx-text); }
.evx-sinfo-panel.evx-acc th { color: var(--evx-gold-soft); font-weight: 600; }
.evx-sinfo-panel.evx-acc ul { margin: 6px 0 4px 18px; padding: 0; }
.evx-sinfo-panel.evx-acc li { line-height: 1.5; font-size: 13px; margin-bottom: 4px; }
.evx-sinfo-panel.evx-acc p { font-size: 13px; line-height: 1.5; margin: 0 0 8px; }

/* ===================== Bestiary spotlight (sidebar) =====================
   Prawdziwe grafiki potworow (images/monsters/*.gif, wbudowane w MyAAC,
   uzywane tez przez strone Monsters/Creatures) — crossfade jak slider w
   hero, losowa pula 8 potworow za kazdym odswiezeniem strony. */
.evx-best-stage { position: relative; height: 72px; }
.evx-best-item {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  transition: opacity .6s ease;
  text-decoration: none;
  pointer-events: none;
}
.evx-best-item.is-active { opacity: 1; pointer-events: auto; }
.evx-best-img {
  flex: none; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--evx-bg-soft);
  border: 1px solid rgba(227,173,85,0.3);
  border-radius: 10px;
  overflow: hidden;
}
.evx-best-img img { max-width: 90%; max-height: 90%; image-rendering: pixelated; }
.evx-best-info { min-width: 0; }
.evx-best-name {
  font-family: var(--evx-font-display);
  font-size: 14px;
  color: var(--evx-gold-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evx-best-stats {
  display: flex; gap: 10px; margin-top: 4px;
  font-family: var(--evx-font-mono);
  font-size: 10.5px;
  color: var(--evx-text-faint);
}
.evx-best-dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.evx-best-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--evx-border);
  transition: background .3s ease, transform .3s ease;
}
.evx-best-dot.is-active { background: var(--evx-gold); transform: scale(1.5); }

/* ===================== Live feed (pasek nad newsem) ===================== */
.evx-feed {
  display: flex; align-items: center; gap: 0;
  width: calc(100% - 20px); max-width: 1200px; margin: 14px auto 0; box-sizing: border-box;
  height: 40px; overflow: hidden;
  background: var(--evx-surface);
  border: 1px solid rgba(227,173,85,0.3); border-radius: 12px;
  font-family: var(--evx-font-body); font-size: 12.5px; color: var(--evx-text-dim);
}
.evx-feed-live {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px; height: 100%;
  padding: 0 14px; font-family: var(--evx-font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--evx-red);
  background: rgba(194,69,63,0.08); border-right: 1px solid var(--evx-border);
}
.evx-feed-live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--evx-red);
  box-shadow: 0 0 0 0 rgba(194,69,63,0.6); animation: evxFeedPulse 1.8s infinite;
}
.evx-feed-pin {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0; height: 100%;
  padding: 0 14px; white-space: nowrap; border-right: 1px solid var(--evx-border);
  background: rgba(227,173,85,0.06);
}
.evx-feed-pin:empty { display: none; }
.evx-feed-pin a, .evx-feed-item a { color: var(--evx-gold-soft); font-weight: 600; text-decoration: none; margin-left: 7px; }
.evx-feed-pin a:hover, .evx-feed-item a:hover { color: var(--evx-gold); text-decoration: underline; }
.evx-feed-vp { flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; position: relative; }
.evx-feed-vp::before, .evx-feed-vp::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 26px; z-index: 2; pointer-events: none;
}
.evx-feed-vp::before { left: 0; background: linear-gradient(90deg, var(--evx-surface), transparent); }
.evx-feed-vp::after { right: 0; background: linear-gradient(270deg, var(--evx-surface), transparent); }
.evx-feed-track { display: flex; width: max-content; height: 100%; align-items: center; will-change: transform; }
.evx-feed-vp:hover .evx-feed-track { animation-play-state: paused !important; }
.evx-feed-group { display: flex; flex: 0 0 auto; align-items: center; }
.evx-feed-item { display: inline-flex; align-items: center; white-space: nowrap; padding: 0 22px 0 0; position: relative; }
.evx-feed-item::after { content: '\25C6'; position: absolute; right: 7px; font-size: 7px; color: var(--evx-gold-dim); }
.evx-feed-group .evx-feed-item:first-child { padding-left: 22px; }
.evx-feed-text { color: var(--evx-text-dim); margin-left: 6px; }
.evx-feed-empty { padding: 0 20px; color: var(--evx-text-faint); font-style: italic; white-space: nowrap; }
.evx-feed-tag {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  font-family: var(--evx-font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: #0a0c13; background: var(--evx-gold);
}
.evx-feed-tag.k-death   { background: var(--evx-red); color: #fff; }
.evx-feed-tag.k-level   { background: var(--evx-gold); }
.evx-feed-tag.k-craft   { background: var(--evx-violet); }
.evx-feed-tag.k-upgrade { background: #e08a3c; }
.evx-feed-tag.k-skill   { background: #5fb3c9; }
.evx-feed-tag.k-top     { background: var(--evx-gold-soft); }
.evx-feed-tag.k-boss    { background: #8b2fc9; color: #fff; }
.evx-feed-tag.k-dungeon { background: #4caf78; }
.evx-feed-tag.k-newchar { background: #e9e4d6; }
@keyframes evxFeedScroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--evx-shift, 0px))); } }
@keyframes evxFeedPulse {
  0% { box-shadow: 0 0 0 0 rgba(194,69,63,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(194,69,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,69,63,0); }
}
@media (prefers-reduced-motion: reduce) {
  .evx-feed-track { animation: none !important; }
  .evx-feed-vp { overflow-x: auto; }
}
@media screen and (max-width: 900px) {
  .evx-feed { height: 38px; font-size: 12px; }
  .evx-feed-live { padding: 0 10px; }
  .evx-feed-live { font-size: 0; gap: 0; }   /* na telefonie sama pulsujaca kropka, bez napisu */
  .evx-feed-live i { width: 9px; height: 9px; }
  .evx-feed-pin { padding: 0 10px; font-size: 11.5px; }
}

/* ===================== Pasek odliczania do startu (sama gora strony) ===================== */
.evx-launchbar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px;
  width: 100%; min-height: 36px; padding: 6px 14px; box-sizing: border-box;
  background: linear-gradient(90deg, #170f2b 0%, #0e111c 35%, #0e111c 65%, #24190a 100%);
  border-bottom: 1px solid rgba(227,173,85,0.4);
  font-family: var(--evx-font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--evx-text-dim);
}
.evx-lb-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--evx-gold);
  box-shadow: 0 0 0 0 rgba(227,173,85,0.6); animation: evxLaunchPulse 2s infinite;
}
.evx-lb-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--evx-violet); }
.evx-lb-sep { color: var(--evx-gold-dim); }
.evx-lb-short { display: none; }
.evx-lb-time {
  font-weight: 700; color: var(--evx-gold-soft); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(227,173,85,0.35);
}
.evx-launchbar.is-started { border-bottom-color: rgba(111,220,140,0.4); }
.evx-launchbar.is-started .evx-lb-dot { background: #6fdc8c; animation-name: evxLaunchPulseGreen; }
.evx-launchbar.is-started .evx-lb-label { color: #6fdc8c; }
.evx-launchbar.is-started .evx-lb-time { color: #b8f0c6; text-shadow: 0 0 14px rgba(111,220,140,0.35); }
@keyframes evxLaunchPulse {
  0% { box-shadow: 0 0 0 0 rgba(227,173,85,0.55); } 70% { box-shadow: 0 0 0 8px rgba(227,173,85,0); } 100% { box-shadow: 0 0 0 0 rgba(227,173,85,0); }
}
@keyframes evxLaunchPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(111,220,140,0.55); } 70% { box-shadow: 0 0 0 8px rgba(111,220,140,0); } 100% { box-shadow: 0 0 0 0 rgba(111,220,140,0); }
}
@media screen and (max-width: 900px) {
  .evx-launchbar { font-size: 11px; gap: 3px 7px; padding: 6px 10px; letter-spacing: 0.03em; }
  .evx-lb-long { display: none; }
  .evx-lb-short { display: inline; }
  .evx-lb-label { letter-spacing: 0.08em; }
}
@media screen and (max-width: 380px) {
  .evx-launchbar { font-size: 10.5px; gap: 3px 6px; }
  .evx-lb-date, .evx-lb-date + .evx-lb-sep { display: none; }
}

/* ===================== Footer ===================== */
.main > footer.well {
  background: var(--evx-bg-soft) !important;
  border-top: 1px solid var(--evx-border-soft);
  color: var(--evx-text-faint) !important;
  font-family: var(--evx-font-body);
  font-size: 12px;
}
.main > footer.well a { color: var(--evx-text-dim) !important; }

/* ===================== Polish: hover, poswiaty, mikro-animacje =====================
   Celowo powsciagliwe — jeden akcent (zloto) na hover, bez tecz i neonow.
   Cel: strona ma "oddychac" (subtelny puls/hover), nie migotac. */

/* Karty (Login/Top5/Search/News/Guilds): przy hover delikatnie sie unosza,
   obwodka rozswietla sie na zloto, na gorze "zapala sie" cienka linia. */
.evx-panel, .ui.card {
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.evx-panel:hover, .ui.card:hover {
  border-color: var(--evx-gold-soft) !important;
  box-shadow: 0 16px 36px -14px rgba(0,0,0,0.65), 0 0 26px -4px rgba(227,173,85,0.4), 0 0 0 1px rgba(227,173,85,0.18);
  transform: translateY(-2px);
}
/* Cienka zlota linia na gorze karty — widoczna caly czas na malej sile,
   przy hover "zapala sie" pelnym blaskiem */
.evx-panel::before, .ui.card::before {
  content: '';
  position: absolute;
  top: -1px; left: 12px; right: 12px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--evx-gold), transparent);
  border-radius: 2px;
  opacity: .35;
  transition: opacity .3s ease;
  pointer-events: none;
}
.evx-panel:hover::before, .ui.card:hover::before { opacity: 1; }

/* Wiersz #1 w Top 5 — leciutka zlota poswiata wokol numeru */
.evx-hs-rank.g1 { text-shadow: 0 0 10px rgba(227,173,85,0.55); }
.evx-hs-row { transition: background .2s ease; border-radius: 6px; }
.evx-hs-row:hover { background: rgba(227,173,85,0.05); }

/* Przyciski — wczesniej nie mialy zadnego stanu hover poza kolorem tla */
.evx-btn { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease; }
.evx-btn-gold:hover { box-shadow: 0 12px 28px -8px rgba(227,173,85,0.65); transform: translateY(-1px); }
.evx-btn-ghost:hover { border-color: var(--evx-gold-dim) !important; color: var(--evx-gold-soft) !important; transform: translateY(-1px); }

/* Kropka "ONLINE" w hero — powolny puls zamiast statycznego swiecenia */
@keyframes evxPulse {
  0%, 100% { box-shadow: 0 0 8px #6ed67e; opacity: 1; }
  50% { box-shadow: 0 0 18px 4px #6ed67e; opacity: .7; }
}
.evx-eyebrow .evx-dot { animation: evxPulse 2.4s ease-in-out infinite; }

/* Logo w navbarze — leciutka zlota poswiata na hover */
.evx-brand, .evx-mark-img { transition: text-shadow .2s ease, border-color .2s ease, color .2s ease; }
.evx-brand:hover { text-shadow: 0 0 18px rgba(240,201,138,0.45); }
.evx-brand:hover .evx-mark-img { border-color: var(--evx-gold-soft); color: var(--evx-gold-soft); }

/* Wlasny, cienki scrollbar w tonacji strony zamiast domyslnego systemowego */
html { scrollbar-color: var(--evx-border) var(--evx-bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--evx-bg); }
::-webkit-scrollbar-thumb { background: var(--evx-border); border-radius: 6px; border: 2px solid var(--evx-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--evx-gold-dim); }

@media (prefers-reduced-motion: reduce) {
  .evx-eyebrow .evx-dot { animation: none; }
  .evx-panel, .ui.card, .evx-btn, .evx-brand, .evx-mark-img, .evx-hs-row { transition: none; }
}

/* ===================== Mobile (telefon) =====================
   Caly stary atomio (`.main { width: 1220px }` w style.css, z resp.css
   schodzacym najwyzej do 900px) NIGDY nie mial prawdziwej responsywnosci
   telefonowej — ponizej ~900px strona po prostu przewijala sie w bok,
   .leftPane/.rightPane (70%/29%, oba floatowane) nigdy sie nie ukladaly
   jedna pod druga. User zglosil ucinana tresc na telefonie (np. strona
   postaci) — to byl ten sam, systemowy brak, nie cos co zepsulismy w
   redesignie. Fix: ponizej 900px .main przechodzi na plynna szerokosc
   100% z wlasnym marginesem, a leftPane/rightPane ukladaja sie w jedna
   kolumne. */
@media screen and (max-width: 900px) {
  .main {
    width: 100% !important;
    max-width: 100%;
    margin: 0 auto;
    padding-inline: 14px;
    box-sizing: border-box;
  }
  .pull-left.leftPane, .pull-right.rightPane {
    float: none !important;
    width: 100% !important;
  }
  .evx-rightpane-homepage, .rightPane {
    margin-top: 20px !important;
  }
  .evx-sidebar-toggle { display: flex; }
  .rightPane#evxSidebarPanel { display: none; }
  .rightPane#evxSidebarPanel.open { display: block; }
  .main > nav .container {
    padding: 12px 14px;
  }
  .evx-brand { font-size: 17px; }
  /* Ikonka loga (.evx-mark-img) na wąskim ekranie musi być mniejsza,
     inaczej cały wiersz "[ikonka] EVOLIX" + podpis "TIBIA 8.6" pod spodem
     robi się szerszy niż ekran i tekst ucina się na prawej krawędzi. */
  .evx-brand .evx-mark-img { width: 46px; height: 46px; }
  .evx-brand-sub { display: none; }
  .evx-brand-wrap { max-width: 100%; overflow: hidden; }
  /* Hamburger menu -- on desktop the nav links + Login/Register render
     inline in the top bar (fine, plenty of width); below 900px that same
     row used to just flex-wrap onto 2-3 extra stacked rows, making the
     navbar itself ~600px tall before any page content. Below this width
     the toggle button appears and the links/buttons collapse into a
     hidden panel (JS in index.php just toggles the .open class), same
     idea as every other site's mobile menu. */
  .evx-nav-toggle { display: flex; }
  .evx-nav-collapse {
    display: none;
    order: 10;
    flex-basis: 100%;
    width: 100%;
    border-top: 1px solid var(--evx-border-soft);
    margin-top: 12px;
    padding-top: 12px;
  }
  .evx-nav-collapse.open { display: block; }
  .main > nav .evx-nav-collapse .pull-left,
  .main > nav .evx-nav-collapse .pull-right {
    float: none !important;
    width: 100%;
  }
  .main > nav .evx-nav-collapse ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px !important;
  }
  .main > nav .evx-nav-collapse .pull-left ul li > a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--evx-border-soft);
  }
  .main > nav .evx-nav-collapse .pull-right {
    margin-top: 12px;
  }
  .main > nav .evx-nav-collapse .pull-right ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .main > nav .evx-nav-collapse .pull-right .evx-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  /* Submenus (e.g. Community/Library dropdowns) open on hover on desktop,
     which doesn't exist on touch. Accordion instead: collapsed by default,
     tapping the category label (Main/Community/...) toggles it open via
     .evx-submenu-open (JS at the bottom of index.php) -- avoids one huge
     always-expanded list (Community alone has 10 sub-links) that's a pain
     to scroll past to reach anything below it. */
  .main > nav .evx-nav-collapse ul li ul {
    display: none;
    position: static !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 16px !important;
    margin: 0 !important;
  }
  .main > nav .evx-nav-collapse ul li ul::before { display: none; }
  .main > nav .evx-nav-collapse .pull-left > ul > li.evx-submenu-open > ul {
    display: block;
  }
  /* Chevron on category labels, rotates 180deg when open */
  .main > nav .evx-nav-collapse .pull-left > ul > li > a::after {
    content: "\f107"; /* fa-chevron-down */
    font-family: "FontAwesome";
    margin-left: auto;
    padding-left: 10px;
    font-size: 13px;
    color: var(--evx-text-faint);
    transition: transform .2s ease;
  }
  .main > nav .evx-nav-collapse .pull-left > ul > li.evx-submenu-open > a::after {
    transform: rotate(180deg);
  }
  .main > nav .evx-nav-collapse .pull-left > ul > li > a {
    display: flex;
    align-items: center;
  }
  .main > nav ul { gap: 14px; }
  .main > nav .pull-right ul { gap: 8px; }
  .evx-btn { font-size: 11.5px !important; padding: 7px 11px !important; }
  /* table-layout:fixed jest teraz scopowany tylko do .dataTable (patrz
     .leftPane table.dataTable wyzej) — zwykle tabele (Character Info,
     highscores-jako-layout) juz maja auto wszedzie, nie tylko na mobile,
     wiec ten override nie jest juz potrzebny. */
  .evx-hs-outfit { width: 40px; height: 40px; }
  /* Highscores (?highscores) uzywa STAREJ tabeli jako ukladu strony (nie
     jako danych): kolumna z rankingiem obok kolumny "Choose a Skill/
     Vocation", oboj obok siebie w jednym wierszu <tr>. Na mobile te dwie
     kolumny nigdy sie nie ukladaly jedna pod druga — razem byly szersze niz
     ekran, wiec cala karta (wliczajac tytul "Ranking for...") przycinala
     sie na prawej krawedzi ekranu. Klasa evx-hs-layout (dodana w
     highscores.php) pozwala scelowac WYLACZNIE ta jedna tabele-layout, bez
     ruszania zwyklych tabel danych (Character Info itd. maja zostac jako
     zwykle 2-kolumnowe wiersze, nie stackowac sie po jednej komorce). */
  .evx-hs-layout, .evx-hs-layout > tbody, .evx-hs-layout > tr {
    display: block !important;
    width: 100% !important;
  }
  .evx-hs-layout > tbody > tr, .evx-hs-layout > tr {
    display: block !important;
  }
  .evx-hs-layout > tbody > tr > td, .evx-hs-layout > tr > td {
    display: block !important;
    width: 100% !important;
  }
}

/* bardzo waskie telefony (<=340px): kompaktowy navbar, zeby hamburger nie spadal do 2. wiersza */
@media screen and (max-width: 340px) {
  .evx-brand .evx-mark-img { width: 38px; height: 38px; }
  .evx-domain { font-size: 11px; letter-spacing: 0.02em; }
  .evx-navboss-wrap { display: none !important; }  /* ticker bossow nie miesci sie obok logo+domeny+hamburgera */
  .main > nav .container { padding-inline: 10px; gap: 4px; }
}

/* Desktop: ciasniejszy odstep miedzy pozycjami menu, zeby duzy napis evolix.pl obok logo
   miescil sie w jednym wierszu z menu (na wezszych oknach navbar i tak zawija do 2 wierszy). */
@media screen and (min-width: 901px) {
  .main > nav .pull-left > ul { gap: 10px; }
  .evx-nav-collapse { gap: 12px; }
}

/* EVOLIX: baner — wskaźnik online, slider wtopiony w tło */
.evx-online-dot { display: inline-flex; align-items: center; gap: 7px; font-family: var(--evx-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--evx-text-dim); margin-bottom: 8px; }
.evx-online-dot .evx-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: evxPulseDot 1.8s ease-out infinite; }
@keyframes evxPulseDot { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.7); } 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.evx-hero-media .evx-slider { border-radius: 14px; border: 1px solid rgba(227,173,85,.35); box-shadow: 0 0 0 1px rgba(201,167,255,.08), 0 24px 60px -18px rgba(0,0,0,.85), 0 0 60px -10px rgba(201,167,255,.25); -webkit-mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, #000 62%, transparent 100%); }
.evx-hero-media .evx-slide { transform: scale(1.04); transition: opacity 1.2s ease, transform 6s ease; }
.evx-hero-media .evx-slide.is-active { transform: scale(1); }

/* EVOLIX: slider — stonowane zdjęcia z gry, żeby pasowały do ciemnej strony */
.evx-hero-media .evx-slide { filter: saturate(.8) brightness(.92) contrast(.98); }
.evx-hero-media .evx-slider::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,12,19,.12) 0%, rgba(10,12,19,.3) 100%),
              radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(10,12,19,.35) 100%);
}


/* EVOLIX: napis tajemniczy na sliderze */
.evx-slide-caption { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; text-align: center; pointer-events: none; padding: 0 14px; }
.evx-cap-line { display: inline-block; font-family: var(--evx-font-display); font-size: 15px; letter-spacing: .04em; color: #fff3d6; text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 18px rgba(201,167,255,.45); animation: evxCapFade .6s ease; }
@keyframes evxCapFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.evx-ch { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(6px) scale(1.15); animation: evxCharIn .55s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes evxCharIn { to { opacity: 1; filter: blur(0); transform: none; } }
.evx-cursor { display: inline-block; margin-left: 2px; color: rgba(255,243,214,.55); font-weight: 400; text-shadow: 0 1px 6px rgba(0,0,0,.9); animation: evxCursorBlink 1s steps(2, start) infinite; }
@keyframes evxCursorBlink { to { visibility: hidden; } }

/* EVOLIX: przyciski — Download złoty z pulsem, Create obrys, Wiki/Discord w menu */
.evx-btn-dl { box-shadow: 0 0 0 0 rgba(227,173,85,.5); animation: evxDlPulse 2.6s ease-out infinite; }
.evx-btn-dl:hover { animation: none; box-shadow: 0 0 22px rgba(227,173,85,.55); }
@keyframes evxDlPulse { 0% { box-shadow: 0 0 0 0 rgba(227,173,85,.5); } 70% { box-shadow: 0 0 0 10px rgba(227,173,85,0); } 100% { box-shadow: 0 0 0 0 rgba(227,173,85,0); } }
.evx-btn-ca { border-color: rgba(227,173,85,.6) !important; }
.evx-nav-wiki, .evx-nav-discord { padding: 6px 12px !important; font-size: 12px !important; }
.evx-nav-discord { background: rgba(88,101,242,.18) !important; border: 1px solid rgba(139,147,255,.45) !important; color: #c9ccff !important; }
.evx-nav-extra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .evx-nav-extra { flex-direction: row; margin: 10px 0 6px; }
  .evx-nav-extra .evx-btn { flex: 1 1 auto; justify-content: center; padding: 10px 12px !important; }
}
.evx-hero-ctas { margin-top: 14px; }
@media (max-width: 720px) { .evx-hero-ctas { margin-top: 16px; } }

/* EVOLIX: Wiki + Discord w jednym rzędzie na desktopie */
@media (min-width: 901px) {
  .evx-nav-extra { flex-direction: row !important; flex-wrap: nowrap !important; gap: 6px; align-items: center; }
  .evx-nav-extra .evx-btn { white-space: nowrap; padding: 6px 10px !important; font-size: 12px !important; }
}

/* EVOLIX: regulamin sklepu/HotPay pod zasadami (strona Rules, atomio) */
.evx-terms { margin: 22px 0 6px; display: grid; gap: 18px; color: #e9dcff; }
.evx-terms-block { background: linear-gradient(160deg, rgba(38,28,58,.85), rgba(22,16,34,.94)); border: 1px solid rgba(168,85,247,.25); border-top: 3px solid #f0b429; border-radius: 14px; padding: 22px 22px 16px; box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.evx-terms-head h2 { margin: 0; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; color: #fff; text-shadow: 0 0 18px rgba(168,85,247,.6); }
.evx-terms-head p { margin: 6px 0 0; color: #a99bc4; font-size: 14px; }
.evx-hp { color: #f0b429; font-weight: 800; letter-spacing: .5px; text-shadow: 0 0 10px rgba(240,180,41,.45); }
.evx-terms-seller { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.evx-terms-seller > div { background: rgba(0,0,0,.28); border: 1px solid rgba(240,180,41,.22); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #fff; }
.evx-lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #a99bc4; margin-bottom: 4px; }
.evx-terms-list { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: evxterm; display: grid; gap: 12px; }
.evx-terms-list li { counter-increment: evxterm; position: relative; padding: 12px 14px 12px 56px; background: rgba(30,21,48,.7); border: 1px solid rgba(168,85,247,.18); border-radius: 10px; }
.evx-terms-list li::before { content: counter(evxterm); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f0b429, #b8780f); color: #221705; font-weight: 800; text-align: center; line-height: 28px; font-size: 13px; }
.evx-terms-list h3 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.evx-terms-list p { margin: 0; font-size: 14px; line-height: 1.6; color: #e9dcff; }
.evx-terms-en { border-top-color: #a855f7; }
@media (max-width: 640px) { .evx-terms-block { padding: 16px 14px 12px; } .evx-terms-list li { padding-left: 50px; } }

/* EVOLIX: rozwijane sekcje na stronie Rules (zasady + regulamin sklepu) */
.evx-acc { background: linear-gradient(160deg, rgba(38,28,58,.85), rgba(22,16,34,.94)); border: 1px solid rgba(168,85,247,.25); border-top: 3px solid #f0b429; border-radius: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.4); overflow: hidden; }
.evx-acc > summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.evx-acc > summary::-webkit-details-marker { display: none; }
.evx-acc > summary::after { content: "\25BE"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #f0b429; font-size: 18px; transition: transform .2s ease; }
.evx-acc[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.evx-acc > summary:hover { background: rgba(240,180,41,.05); }
.evx-acc-title { font-family: "Cinzel", serif; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; color: #fff; text-shadow: 0 0 18px rgba(168,85,247,.6); }
.evx-acc-sub { font-size: 13px; color: #a99bc4; }
.evx-acc-body { padding: 4px 20px 20px; }
.evx-rules-acc .evx-acc-body > b:first-child, .evx-rules-acc .evx-acc-body > br:first-child { display: none; }
.evx-rules-acc textarea { width: 100% !important; box-sizing: border-box; min-height: 420px; background: rgba(0,0,0,.35) !important; color: #e9dcff !important; border: 1px solid rgba(168,85,247,.3) !important; border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.7; resize: vertical; }
.evx-rules-acc textarea:focus { outline: none; border-color: #f0b429 !important; }
.evx-terms-en > summary { border-top: none; }
.evx-terms-en { border-top-color: #a855f7; }
.evx-terms-block > summary .evx-hp { font-size: inherit; }
