/* ===== RESET & BASE ===== */
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #0f1220, #05050a 70%);
  color: #e6e6eb;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== ATMOSPHERE GLOW ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(220px);
  opacity: 0.35;
  z-index: -1;
}

body::before {
  background: #1a3cff;
  top: 10%;
  left: -10%;
}

body::after {
  background: #7a0cff;
  bottom: 5%;
  right: -10%;
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 70px;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90, 90, 140, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #4b63ff;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(75, 99, 255, 0.5);
}

header nav a {
  text-decoration: none;
  padding: 10px 22px;
  margin-left: 10px;
  background: linear-gradient(135deg, #1e2aff, #4b63ff);
  color: #05050a;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(75, 99, 255, 0.35);
}

header nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(75, 99, 255, 0.6);
}

/* ===== TOC / MENU ===== */
.regulamin-toc {
  padding: 2.5rem 1.5rem;
  margin: 3rem auto;
  max-width: 1200px;
  background: rgba(10, 10, 25, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(90, 90, 140, 0.25);
  text-align: center;
}

.regulamin-toc h2 {
  font-size: 26px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9aa6ff;
  margin-bottom: 1.5rem;
}

.toc-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.toc-btn {
  background: rgba(30, 40, 120, 0.9);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(120, 130, 255, 0.4);
  transition: all 0.3s ease;
}

.toc-btn:hover {
  background: #4b63ff;
  color: #05050a;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(75, 99, 255, 0.6);
}

/* ===== HEADINGS ===== */
h1 {
  text-align: center;
  margin: 3rem 0 2rem;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(75, 99, 255, 0.6),
    0 0 30px rgba(122, 12, 255, 0.4);
}

h2 {
  margin: 3rem auto 1.2rem;
  font-size: 24px;
  max-width: 1000px;
  padding: 14px 22px;
  background: linear-gradient(
    90deg,
    rgba(75, 99, 255, 0.25),
    rgba(10, 10, 25, 0.4)
  );
  border-left: 5px solid #4b63ff;
  border-radius: 10px;
  color: #f0f0ff;
}

/* ===== CONTENT ===== */
ul {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(5, 5, 15, 0.55);
  border-radius: 14px;
  border: 1px solid rgba(90, 90, 140, 0.25);
}

ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 18px;
}

ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #4b63ff;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(to top, #05050a, #0c0c1a);
  margin-top: 60px;
  border-top: 1px solid rgba(90, 90, 140, 0.25);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding: 35px 20px;
  color: #9aa6ff;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(75, 99, 255, 0.4);
}


#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #314ad8, #1a1f5e);
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(49, 74, 216, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 9999;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 30px rgba(120, 140, 255, 0.9);
}
