/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: system-ui, sans-serif;
  background: #000;
  color: #fff;
}

/* Usuwamy focus */
*:focus,
*:active,
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* ===================== */
/* TOP BANNER + NAV FIX */
/* ===================== */

/* Jeżeli masz wrapper .site-fixed-top w HTML, niech nie psuje layoutu */
.site-fixed-top {
  position: static;
  overflow: visible;
}

/* ŻÓŁTY BANER */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background: #ffeb00;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 54px 0 16px;
  text-align: center;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  z-index: 10000;
}

.top-banner-text {
  width: 100%;
  text-align: center;
  color: #000;
}

.top-banner span {
  color: #000;
}

.top-banner strong {
  color: #000;
  font-weight: 900;
}

/* przycisk zamykania — obsługuje obie klasy */
.top-banner-close,
.banner-close,
.close-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 22px;
  line-height: 22px;
  cursor: pointer;
  z-index: 10001;
}

/* NAV */
.nav {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 9000;
  background: transparent;
  pointer-events: none;
}

.nav .brand,
.nav .brand img,
.nav .hamburger {
  pointer-events: auto;
}

.brand img {
  height: 150px;
  transform: translateY(30px);
}

/* PO ZAMKNIĘCIU BANERA */
body.banner-hidden .top-banner {
  display: none;
}

body.banner-hidden .nav {
  top: 0;
}

body.banner-hidden .mobile-panel {
  top: 132px;
}

/* HAMBURGER */
.hamburger {
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 14px;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: white;
  transition: 0.2s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MENU PANEL */
.mobile-panel {
  position: fixed;
  top: 176px;
  right: 40px;
  width: 220px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 9500;
}

.mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel a {
  display: block;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 9501;
}

/* SEKCJE – bazowy szkielet */
.section {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 130px 40px 100px;
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  overflow: visible;
  position: relative;
}

/* Przyciemnienie zdjęcia */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.20),
    rgba(0,0,0,0.55)
  );
  pointer-events: none;
}

/* Wszystko w sekcji nad overlay */
.section > * {
  position: relative;
  z-index: 1;
}

/* CZARNA PRZERWA Z BLUR */
.gap-blur {
  height: 10px;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* FOOTER */
.footer {
  padding: 40px;
  text-align: center;
  background: #000;
}

/* ===================== */
/* HERO */
/* ===================== */

.hero {
  place-items: stretch;
  padding-top: 180px;
}

.hero-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 44px;
}

.hero-top {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  align-items: start;
}

.hero-hash {
  writing-mode: vertical-rl;
  transform: rotate(180deg) translateX(-35px) translateY(-12px);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 22px;
  opacity: 0.9;
  color: #ff9a2a;
  user-select: none;
}

.hero-title h1 {
  font-weight: 1000;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.02em;
  font-size: clamp(44px, 6vw, 92px);
  margin-bottom: 22px;
}

.hero-ctaRow {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
}

.hero-lead {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  opacity: 0.95;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 22px 18px;
  border-radius: 22px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.feature-body h3 {
  font-size: 34px;
  line-height: 0.98;
  margin-bottom: 10px;
  font-weight: 950;
}

.hash-orange {
  color: #ff9a2a;
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 900;
  display: inline-block;
  margin-bottom: 6px;
}

.feature-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===================== */
/* TURNAMENT */
/* ===================== */

.section-tournament {
  place-items: center;
}

.tournament-row {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
}

.tournament-left {
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tournament-h2 {
  font-weight: 1000;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.02em;
  font-size: clamp(48px, 6vw, 90px);
  margin: 0 0 18px;
}

.tournament-lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 26px;
}

/* PRZYCISK */
.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 28px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #000;
  background: #ffb26b;
  box-shadow: 0 10px 30px rgba(255,178,107,0.3);
  transition: 0.2s ease;
}

.btn-orange:hover {
  background: #ffa247;
  transform: translateY(-2px);
}

/* ===================== */
/* RELACJA / KONTAKT */
/* ===================== */

.section-bg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* HEADER */
.tiles-header {
  width: 100%;
  text-align: center;
  margin-bottom: 50px;
}

.tiles-main-title {
  font-size: clamp(42px, 6vw, 90px);
  font-weight: 1000;
  letter-spacing: 0.05em;
  margin: 0;
}

/* WRAP */
.tiles-wrap {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* KARTA */
.tile-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.tile-top-title {
  font-size: 18px;
  color: #ffb26b;
  letter-spacing: 0.08em;
}

.tile-title-big {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
}

.tile-text {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.tile-btn {
  margin-top: 18px;
  align-self: center;
}

/* 3 kolumny */
.tiles-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===================== */
/* SCROLL TO TOP */
/* ===================== */

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: #ffb26b;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255,178,107,0.4);
  transition: 0.2s ease;
  z-index: 3000;
}

.scroll-top:hover {
  transform: translateY(-4px);
  background: #ffa247;
}

/* ====== Rejestracja: stabilny układ pól zawodników ====== */
.player {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.playerRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.playerFile {
  margin-top: 8px;
}

.playerFile input[type="file"] {
  width: 100%;
  max-width: 100%;
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.player input[type="text"],
.player input[type="url"],
.player input[type="file"] {
  width: 100%;
}

/* PRELOADER */
.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-preloader__inner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* FOOTER */
.footer {
  background:#000;
  padding:40px 20px;
}

.footer-wrap {
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  flex-wrap:wrap;
}

.footer-media h3 {
  color:#fff;
  margin-bottom:10px;
  font-size:16px;
  font-weight:700;
}

.media-logos {
  display:flex;
  gap:20px;
  align-items:center;
}

.media-logos img {
  height:55px;
  width:auto;
  opacity:.9;
  transition:.2s;
}

.media-logos img:hover {
  opacity:1;
  transform:scale(1.05);
}

.footer-copy {
  color:#aaa;
  font-size:14px;
}

/* ===================== */
/* RWD */
/* ===================== */

@media (max-width: 1100px) {
  .tiles-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-ctaRow {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .tiles-wrap {
    grid-template-columns: 1fr;
  }

  .nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.92) !important;
  }

  .mobile-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.92) !important;
  }

  .tile-card,
  .feature,
  .teams-list,
  .team-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.78) !important;
  }

  .gap-blur {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.98) !important;
  }

  .section {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .formGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tiles-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .top-banner {
    height: 56px;
    min-height: 56px;
    padding: 8px 44px 8px 12px;
    font-size: 14px;
    line-height: 1.2;
  }

  .top-banner-close,
  .banner-close,
  .close-btn {
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 20px;
  }

  .nav {
    top: 56px;
    height: 80px;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  .brand img {
    height: 70px;
    transform: translateY(0);
  }

  .nav .brand,
  .nav .brand img,
  .nav .hamburger {
    pointer-events: auto;
  }

  .mobile-panel {
    top: 148px;
    right: 20px;
    z-index: 9500;
  }

  body.banner-hidden .nav {
    top: 0;
  }

  body.banner-hidden .mobile-panel {
    top: 92px;
  }

  .section {
    padding: 110px 16px 80px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .hero {
    text-align: center;
    padding-top: 150px;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .hero-hash {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 12px;
    font-size: 16px;
  }

  .hero-title h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .scroll-top {
    display: flex;
  }
}

/* Średnie ekrany */
@media (min-width: 601px) and (max-width: 1100px) {
  .brand img {
    height: 90px;
    transform: translateY(0);
  }

  .nav {
    top: 44px;
    height: 100px;
  }

  .hero {
    padding-top: 150px;
  }

  .mobile-panel {
    top: 156px;
  }

  body.banner-hidden .nav {
    top: 0;
  }

  body.banner-hidden .mobile-panel {
    top: 112px;
  }
}