@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap'); /*body: 'Inter'; nagłówki: 'Fredoka'*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Mobile */
img { max-width: 100%; }
html, body { max-width: 100%; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(228, 59, 107, 0.6) transparent; }

:root {
  /* ──────────────────────────────────────────────────────────
     Paleta VTuberki (źródło motywu):
       #B2444A  Hair Base       → brick / ostrzeżenia
       #FF9F92  Bangs           → koral / status "online" + sukces
       #E43B6B  Soft Pink Eyes  → GŁÓWNY akcent (brand)
       #F7AAA9  Outfit          → jasny róż / pastelowe tła kart
       #E3526D  Outfit (Bow)    → drugi akcent (hover / gradienty)
     Nazwy zmiennych zostawiamy bez zmian (używa ich CSS i JS) —
     zmieniamy tylko wartości.
     ────────────────────────────────────────────────────────── */
  --main-font: 'Inter', sans-serif;
  --display-font: 'Fredoka', 'Inter', sans-serif;   /* zaokrąglony, "cute" font na nagłówki */
  --main-color: #E43B6B;            /* brand (był #39BEFF) */
  --main-color-2: #E3526D;          /* drugi akcent – do gradientów/hover */
  --background-color: #231A1D;      /* ciepła ciemna baza (była #24272B) */
  --white-color: #FFFFFF;
  --black-color: #000000;
  --description-color: #D9CDD0;     /* ciepła jasna szarość tekstu */
  --link-color: #F06A8E;            /* jaśniejszy róż dla linków w tekście (kontrast WCAG AA) */

  /* Status "online" / sukces — koral z palety zamiast zieleni */
  --green-color: #FF9F92;
  --ip-copied-background: rgba(255, 159, 146, 0.17);
  --ip-copied-icon-background: rgba(255, 159, 146, 0.5);

  --copy-ip-button-background: linear-gradient(135deg, var(--main-color), var(--main-color-2));   /* spójny gradient przycisków */
  --how-to-join-button-background: rgba(217, 205, 208, 0.15);
  --stats-background: rgba(247, 170, 169, 0.06);          /* jasny róż @ 6% */
  --stat-icon-background-2: rgba(228, 59, 107, 0.5);      /* main @ 50% */

  --scroll-bar: rgba(228, 59, 107, 0.45);
  --scroll-bar-hover: #E43B6B;

  /* Ostrzeżenia / błędy — brick z palety */
  --red-color: #B2444A;
  --warning-background: rgba(178, 68, 74, 0.18);
  --warning-icon-background: rgba(178, 68, 74, 0.5);
  --warning-color: #F7AAA9;

  /*Admin-Team rank colors*/
  --default-rank-color: rgba(217, 205, 208, 0.25);
}

body {
  background: var(--background-color);
  font-family: var(--main-font);
  zoom: 1.06;
}

/*Navbar*/
.navbar {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 14px 150px;   /* niższy margines pionowy — pasek nie rośnie przez większe logo */
  background: var(--background-color);
  transition: 0.3s ease-in-out;
}

.navbar a {
  text-decoration: none;
}

.navbar .menu-mobile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.navbar .menu-mobile .logo {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 10px;
}

.navbar .menu-mobile .logo img {
  max-width: 112px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}
.navbar .menu-mobile .logo:hover img {
  transform: scale(1.06);
}

.navbar .menu-mobile .logo h3 {
  color: var(--white-color);
  font-weight: 900;
  font-size: 20px;
}

.navbar .links {
  display: flex;
  flex-direction: row;
  gap: 30px;
  transition: 0.3s ease-in-out;
}

.navbar .links .link {
  color: var(--description-color);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: 0.2s;
}

.navbar .links .link.active {
  color: var(--white-color);
}

.navbar .links .link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 5px;
  background: var(--main-color);
}

.navbar .links .link:not(.active):hover {
  color: var(--white-color);
}

.navbar .links .link:not(.active)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 5px;
  background: var(--main-color);
  transition: width 0.25s ease;
}

.navbar .links .link:not(.active):hover::after {
  width: 40px;
}

.navbar .menu-mobile .hamburger {
  color: var(--white-color);
  font-size: 20px;
  cursor: pointer;
  transition: 0.5s;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.navbar .menu-mobile .hamburger:hover {
  opacity: 0.8;
}

.navbar.active {
  max-height: 1000px;
}

.navbar.active .links {
  opacity: 1;
  z-index: 2;
}

/*Footer*/
#footer {
  padding: 20px 150px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#footer p {
  color: var(--description-color);
  font-size: 17px;
}

#footer p span {
  color: var(--white-color);
}

#footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

#footer .social-links .link {
  color: var(--description-color);
  text-decoration: none;
  font-size: 20px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

#footer .social-links .link:hover {
  color: var(--main-color);
  transform: translateY(-2px);
}

#footer .footer-links {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}

#footer .footer-links a {
  color: var(--description-color);
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}

#footer .footer-links a:hover {
  color: var(--main-color);
}

/*Scrollbar*/
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--stats-background);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-bar);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-bar-hover);
}

/*Other*/
section:not(#header) .content {
  padding: 64px 150px;
  width: 100%;
}

/*Responsive*/
@media screen and (max-width: 1625px) {
  .navbar {
    padding: 14px 90px;
  }
}

@media screen and (max-width: 819px) {
  .navbar {
    padding: 20px 30px;
  }
}

/* iOS/dotyk: background-attachment:fixed psuje hero (przybliżone, skacze przy scrollu) — przewijaj z treścią */
@media (hover: none) and (pointer: coarse) {
  body, #header, #discord { background-attachment: scroll !important; }
}

/* pasek: węższy margines na średnich ekranach, by logo i linki się mieściły */
@media screen and (min-width: 1101px) and (max-width: 1400px) {
  .navbar {
    padding: 14px 50px;
  }
}

@media screen and (max-width: 1100px) {
  .navbar {
    flex-direction: column;
    gap: 30px;
    max-height: 90px;
    padding: 18px 22px;   /* (90 - 54) / 2 — logo dokładnie na środku paska */
  }

  /* logo dopasowane do wysokości paska (było 87px przy limicie 90px) */
  .navbar .menu-mobile .logo-img {
    max-height: 54px;
    width: auto;
  }

  .navbar .menu-mobile {
    width: 100%;
  }

  .navbar .menu-mobile .hamburger {
    display: flex;
  }

  .navbar .links {
    flex-direction: column;
    order: 2;
    width: 100%;
    opacity: 0;
    z-index: -1;
  }
}

@media screen and (max-width: 1625px) {
  section:not(#header) .content {
    padding: 64px 90px;
  }

  #footer {
    padding: 20px 90px;
  }
}

@media screen and (max-width: 819px) {
  section:not(#header) .content {
    padding: 50px 30px;
  }

  #footer {
    padding: 20px 30px;
  }
}

@media screen and (max-width: 564px) {
  #footer {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* ============================================================
   ROZSZERZENIA MOTYWU (dodane: fonty, tło, animacje, badge LIVE,
   preloader, overlay hero, polish). Wszystko bazuje na palecie z :root.
   ============================================================ */

/* --- Nagłówki w zaokrąglonym foncie display --- */
h1, h2, h3,
.section-title, .title,
.rules-title, .rank-title,
.navbar .menu-mobile .logo h3 {
  font-family: var(--display-font);
  letter-spacing: 0.2px;
}

/* --- Animowane różowe tło (gradient-mesh + powolny blob) --- */
body {
  background-color: var(--background-color);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(228, 59, 107, 0.12), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 159, 146, 0.09), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(227, 82, 109, 0.10), transparent 55%);
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: -20vmax;
  left: -20vmax;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 59, 107, 0.10), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: bgFloat 26s ease-in-out infinite;
}

@keyframes bgFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60vw, 20vh) scale(1.25); }
  66%  { transform: translate(20vw, 60vh) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* --- Linki w treści (FAQ itp.) — czytelny róż o wyższym kontraście --- */
.accordion-item-body-content a {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
}
.accordion-item-body-content a:hover { text-decoration: underline; }

/* --- Zaznaczanie tekstu i focus w kolorze brandu --- */
::selection { background: rgba(228, 59, 107, 0.35); color: var(--white-color); }
:focus-visible { outline: 2px solid var(--main-color); outline-offset: 3px; border-radius: 3px; }

/* --- Plakietka LIVE w navbarze (wstrzykiwana przez JS) --- */
.navbar .menu-mobile { gap: 16px; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(228, 59, 107, 0.15);
  border: 1px solid rgba(228, 59, 107, 0.5);
  color: var(--white-color);
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s ease-in-out;
}
.live-badge:hover { transform: translateY(-1px); }
.live-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--main-color);
}
.live-badge.is-live .dot { animation: livePulse 1.4s infinite; }
.live-badge.is-offline {
  opacity: 0.65;
  background: rgba(217, 205, 208, 0.07);
  border-color: rgba(217, 205, 208, 0.25);
}
.live-badge.is-offline .dot { background: #8a7e82; }

/* na mobile badge siedzi w górnym pasku, między logo a hamburgerem */
.navbar .menu-mobile .live-badge {
  margin-left: auto;
  margin-right: 14px;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(228, 59, 107, 0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(228, 59, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 59, 107, 0); }
}

/* --- Preloader (ekran ładowania z logo) --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-color);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  /* Failsafe: gdyby JS padł, preloader i tak zniknie po 5s */
  animation: preloaderFailsafe 0.01s linear 5s forwards;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
#preloader .preloader-logo {
  width: 84px; height: auto;
  filter: drop-shadow(0 0 24px rgba(228, 59, 107, 0.55));
  animation: preloaderFloat 1.5s ease-in-out infinite;
}
@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-14px) scale(1.05); }
}
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  #preloader .preloader-logo { animation: none; }
  body::before { animation: none; }
}

/* --- Przycisk "do góry" (wstrzykiwany przez JS) --- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 900;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--main-color);
  color: var(--white-color);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(228, 59, 107, 0.4);
  transition: 0.25s ease-in-out;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--main-color-2); transform: translateY(-3px); }

/* --- Hero: różowy overlay + warstwy (dotyczy #header na każdej stronie) --- */
#header { position: relative; overflow: hidden; }
#header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg,
    rgba(20, 12, 15, 0.78),
    rgba(28, 18, 22, 0.66) 55%,
    rgba(228, 59, 107, 0.30));
}
#header > .content { position: relative; z-index: 3; }
#header .particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* --- Scroll-reveal (klasy sterowane przez IntersectionObserver) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- Polish hover na kartach --- */
#vote .content .links .link,
#contacts .content .columns .link,
#faq .content .accordion .accordion-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#vote .content .links .url:hover .link,
#contacts .content .columns .url:hover .link {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
#faq .content .accordion .accordion-item:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* --- Animowane menu mobilne (stagger wejścia linków) --- */
@media screen and (max-width: 1100px) {
  .navbar .links {
    transform: translateY(-12px);
    visibility: hidden; /* zamknięte menu: niewidoczne też dla fokusa i czytników */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }
  .navbar.active .links { transform: translateY(0); visibility: visible; }
  .navbar .links .link {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
  }
  .navbar.active .links .link { opacity: 1; transform: translateY(0); }
  .navbar.active .links .link:nth-child(1) { transition-delay: 0.05s; }
  .navbar.active .links .link:nth-child(2) { transition-delay: 0.10s; }
  .navbar.active .links .link:nth-child(3) { transition-delay: 0.15s; }
  .navbar.active .links .link:nth-child(4) { transition-delay: 0.20s; }
  .navbar.active .links .link:nth-child(5) { transition-delay: 0.25s; }
}
/* Safari: canvas WebGL ignoruje backface-visibility — chowamy render przodu po odwróceniu karty */
#voice .card-front .skin-view,
#admin-team .card-front .skin-view {
  transition: opacity 0s linear 0.25s; /* skok w połowie obrotu (0.5s/2) — skin widoczny do krawędzi, potem znika bez zanikania */
}
#voice .user.flipped .card-front .skin-view,
#admin-team .user.flipped .card-front .skin-view {
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  #voice .user:hover .card-front .skin-view,
  #admin-team .user:hover .card-front .skin-view {
    opacity: 0;
  }
}

/* Domyślny jasny kolor tytułów/opisów sekcji (fallback dla sekcji bez własnej reguły — np. Giełda) */
.section-title { color: var(--white-color); }
.section-title span { color: var(--main-color); }
.section-description { color: var(--description-color); }
