@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Lexend+Deca:wght@400;700&family=Geologica:wght@700;800;900&display=swap");

:root {
  --bg-dark: #161619;
  --bg-medium: #1d1d20;
  --bg-light: #2a2a2e;
  --border-color: #38383f;
  --text-primary: #e4e4e7;
  --text-secondary: #a0a0a9;
  --accent-primary: #9a03aa;
  --accent-secondary: #70027a;
  --purple: #70027a;
  --purple-light: #9a03aa;
  --light-gray: #a8a8a8;
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Lexend Deca', sans-serif;
  --font-headings: 'Geologica', sans-serif;
  --transition-speed: 0.4s;
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;

  /* Zabezpieczenie przed kopiowaniem */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* --- EKRAN ŁADOWANIA --- */
.loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    visibility: visible;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 120px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.loading-text-wrapper {
    margin-top: 25px;
    font-family: var(--font-headings);
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--light-gray);
    text-align: center;
    min-height: 2em;
    text-transform: uppercase;
}

#loading-message {
    display: inline-block;
    opacity: 1;
}

#loading-message::after {
    content: '_';
    animation: blink-cursor 0.7s infinite;
    margin-left: 2px;
    color: var(--purple-light);
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* TŁO WIDEO */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: #0b0c10;
}

/* Zastepcze tlo gdy wideo nie jest ladowane (telefon / oszczedzanie danych) */
.video-background.no-video {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(154, 3, 170, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 80%, rgba(112, 2, 122, 0.22) 0%, transparent 55%),
        #0b0c10;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(22, 22, 25, 0.6) 0%, rgba(22, 22, 25, 0.95) 100%);
}

/* NAWIGACJA */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1000;
    transition: all var(--transition-speed) ease-in-out;
    background: transparent;
    box-shadow: none;
}

.navbar.scrolled {
    background: rgba(13, 13, 15, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.85rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    flex: 1;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.nav-link {
    color: #e7e7e7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 999px;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link:hover, .nav-link.active {
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: none;
    background: linear-gradient(135deg, rgba(112, 2, 122, 0.15), rgba(112, 2, 122, 0.08));
}


.nav-toggle { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer;
    color: white;
}

/* LICZNIKI GRACZY */
.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-right { margin-left: auto; }

.player-count-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 140px;
    height: 56px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.22s ease;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    flex-wrap: nowrap;
}

.player-count-container:hover {
    transform: translateY(-3px);
    box-shadow: none;
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(112, 2, 122, 0.15), rgba(112, 2, 122, 0.08));
}

.player-count-container[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
}

.player-count-icon {
    font-size: 1.05rem;
    color: var(--purple-light);
    text-shadow: 0 0 4px rgba(112, 2, 122, 0.35);
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    transition: background-color 0.5s;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

.player-count-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    line-height: 1.1;
    gap: 2px;
}

#player-count-label, #player-count-label-soon {
    font-size: 0.68rem;
    color: #dcdcdc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-count-numbers {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    color: white;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.count-separator { margin: 0 1px; }

#player-count {
    font-size: 1.32rem;
    line-height: 1;
}

.count-separator, #max-players {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-gray);
    line-height: 1;
}

.trend-arrow {
    font-size: 1rem;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(5px);
}

.trend-arrow.visible { opacity: 1; transform: translateY(0); }
.trend-arrow.up { color: #2ecc71; text-shadow: 0 0 8px #2ecc71; }
.trend-arrow.down { color: #e74c3c; text-shadow: 0 0 8px #e74c3c; }

/* Status SOON */
.player-count-container.soon-status .live-indicator {
    background-color: #e74c3c;
    animation: soonDot 1.6s ease-in-out infinite;
}

.player-count-container.soon-status #player-count-label-soon {
    color: #e74c3c;
}

.player-count-container.soon-status {
    cursor: default;
    flex: 0 0 auto;
    min-width: 140px;
}

.player-count-container.soon-status .player-count-icon {
    color: var(--light-gray);
}

.player-count-container.soon-status:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.player-count-container.soon-status .player-count-numbers span {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

@keyframes soonDot {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* PRZYCISK ADMINA */
.admin-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(29, 29, 32, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-decoration: none;
}

.admin-button:hover {
    transform: scale(1.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(154, 3, 170, 0.5);
}

/* RESPONSIVE NAV */
@media (max-width: 992px) {
    .nav-toggle { display: block; z-index: 1001; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 1000;
    }
    .nav-menu.active { right: 0; }
    .player-count-container { display: none; }
    .status-left, .status-right { display: none; }
}


/* --- Reszta stylów bez zmian --- */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-medium); }
::-webkit-scrollbar-thumb { background: var(--accent-secondary); border-radius: 10px; }

#rules-page {
    position: relative;
    z-index: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 80px; /* Przestrzeń na navbar */
}

.rules-landing { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: calc(100vh - 80px); padding: 5vw 2vw; text-align: center; position: relative; }

.landing-copyright {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    letter-spacing: 0.5px;
}
.rules-hero-text { margin-bottom: 4vw; }
.rules-hero-text h1 { font-family: var(--font-heading); font-size: clamp(1.4rem, 3.2vw, 3rem); margin-bottom: 1rem; text-shadow: 0 0 20px rgba(0, 0, 0, 0.5); min-height: 1.2em; display: flex; justify-content: center; align-items: center; gap: 5px; white-space: nowrap; }
.rules-hero-text p { font-size: clamp(0.9rem, 1.1vw, 1.2rem); color: var(--text-primary); }

.rules-hero-text .cursor {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* === KAFELKI KATEGORII (STYL JAK W PODANIACH) === */
.category-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1400px;
}

.rule-category-card {
  background: rgba(29, 29, 32, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 56, 63, 0.9);
  border-radius: 15px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  min-height: 210px;
}

.rule-category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 25%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rule-category-card:hover {
  transform: translateY(-10px);
  border-color: rgba(154, 3, 170, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rule-category-card:hover::after {
  opacity: 1;
}

.card-shine {
  display: none;
}

/* Ikona kategorii */
.rule-category-card .category-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.rule-category-card:hover .category-icon {
  transform: translateY(-2px);
}

/* Domyślny styl ikony (fioletowy) */
.rule-category-card .category-icon {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.18);
}

.rule-category-card .category-icon i {
  font-size: 2.1rem;
  color: #8b5cf6;
}

/* Różne kolory dla różnych kategorii */
.rule-category-card.blue-card .category-icon {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
}

.rule-category-card.blue-card .category-icon i {
  color: #3b82f6;
}

.rule-category-card.yellow-card .category-icon {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.18);
}

.rule-category-card.yellow-card .category-icon i {
  color: #fbbf24;
}

.rule-category-card.red-card .category-icon {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.22);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.18);
}

.rule-category-card.red-card .category-icon i {
  color: #ef4444;
}

.rule-category-card.green-card .category-icon {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.18);
}

.rule-category-card.green-card .category-icon i {
  color: #10b981;
}

/* Fallback dla starych ikon bez .category-icon wrapper */
.rule-category-card > i {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 2.1rem;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.18);
  transition: all 0.2s ease;
}

.rule-category-card:hover > i {
  transform: translateY(-2px);
}

/* Tytuł kategorii */
.rule-category-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin: 0 0 10px 0;
  transition: color 0.3s ease;
  border: none;
  padding: 0;
  text-align: center;
}

.rule-category-card:hover h2 {
  color: var(--accent-primary);
}

/* Opis kategorii */
.rule-category-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.rules-detailed-view { display: grid; grid-template-columns: 280px 1fr; grid-template-rows: 60px 1fr; height: 100vh; position: fixed; top: 0; left: 0; width: 100%; background: rgba(22, 22, 25, 0.95); backdrop-filter: blur(20px); z-index: 500; }
.home-link-gitbook { grid-column: 1 / 2; grid-row: 1 / 2; display: flex; align-items: center; padding: 0 20px; background: rgba(22, 22, 25, 0.8); border-bottom: 1px solid var(--border-color); border-right: 1px solid var(--border-color); text-decoration: none; color: var(--text-primary); font-family: var(--font-heading); font-size: 1.1rem; gap: 10px; transition: color 0.2s; }
.home-link-gitbook:hover { color: var(--accent-primary); }
.home-link-gitbook img { height: 30px; }

.rules-sidebar { grid-column: 1 / 2; grid-row: 2 / 3; background: transparent; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-header { padding: 15px; border-bottom: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 10px; }
.sidebar-header input { width: 100%; padding: 10px; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-primary); font-size: 0.9rem; }
.sidebar-header input:focus { border-color: var(--accent-primary); outline: none; }
.back-to-landing-sidebar { background: var(--bg-light); border: 1px solid var(--border-color); color: var(--text-primary); padding: 10px; border-radius: 5px; width: 100%; cursor: pointer; font-size: 0.9rem; text-align: center; transition: all 0.2s ease; }
.back-to-landing-sidebar:hover { background: var(--bg-dark); border-color: var(--accent-primary); color: var(--accent-primary); }
.back-to-landing-sidebar i { margin-right: 8px; }

.sidebar-nav { padding: 15px; overflow-y: auto; flex-grow: 1; }
.sidebar-nav a { display: block; text-decoration: none; padding: 8px 12px; margin-bottom: 4px; border-radius: 5px; font-size: 0.9rem; color: var(--text-secondary); transition: all 0.2s ease; border-left: 3px solid transparent; }
.sidebar-nav a:hover { color: var(--text-primary); background: var(--bg-light); }
.sidebar-nav a.active { color: var(--accent-primary); background: rgba(154, 3, 170, 0.1); border-left-color: var(--accent-primary); font-weight: 500; }
.sidebar-nav a.nav-sub { padding-left: 28px; font-size: 0.85rem; }

.rules-main-content { grid-column: 2 / 3; grid-row: 1 / 3; display: flex; flex-direction: column; overflow: hidden; }
.content-header { height: 60px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--border-color); background: transparent; }
.mobile-sidebar-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.2rem; cursor: pointer; }
.content-scroll-area { overflow-y: auto; padding: 2.5rem 4rem; flex-grow: 1; }

section { scroll-margin-top: 20px; transition: background-color 0.5s ease; border-radius: 8px; }
hr { border: none; height: 1px; background-color: var(--border-color); margin: 3rem 0; }
h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--text-primary); padding-bottom: 0.8rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; scroll-margin-top: 80px; }
h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-primary); margin: 2.5rem 0 1.2rem 0; scroll-margin-top: 80px; }
.rule { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.8rem; line-height: 1.7; }
.rule span { font-weight: 500; color: var(--text-secondary); min-width: 40px; text-align: right; }
.rule p { margin: 0; color: var(--text-primary); }

.hint-block { padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 8px; border-left: 4px solid; display: flex; align-items: flex-start; gap: 1rem; background: rgba(255, 255, 255, 0.05); }
.hint-block.info { border-color: #3B82F6; }
.hint-block i { color: #3B82F6; margin-top: 4px; }
.hint-block p { margin: 0; color: var(--text-primary); font-size: 0.9rem; line-height: 1.6; }

.content-footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.footer-nav { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.footer-nav a { text-decoration: none; color: var(--text-secondary); background: var(--bg-light); border: 1px solid var(--border-color); padding: 0.8rem 1.2rem; border-radius: 8px; transition: all 0.2s ease; }
.footer-nav a:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.last-updated, .copyright-text { text-align: center; color: var(--text-secondary); font-size: 0.8rem; }


@keyframes highlight-fade {
  0% { background-color: rgba(154, 3, 170, 0.15); }
  100% { background-color: rgba(154, 3, 170, 0); }
}
section.highlight-animation { animation: highlight-fade 2s ease-out forwards; }

@media (max-width: 1024px) {
    .rules-detailed-view { grid-template-columns: 1fr; grid-template-rows: 60px 1fr; }
    .home-link-gitbook { display: none; }
    .rules-sidebar { position: fixed; top: 0; left: -100%; width: 300px; height: 100%; z-index: 2000; transition: left 0.3s ease; box-shadow: 5px 0 15px rgba(0,0,0,0.2); background: rgba(22, 22, 25, 0.95); backdrop-filter: blur(20px); }
    .rules-sidebar.open { left: 0; }
    .rules-main-content { grid-column: 1 / -1; }
    .mobile-sidebar-toggle { display: block; }
    .content-scroll-area { padding: 2rem; }
}
@media (max-width: 768px) {
    .category-cards-container { 
      grid-template-columns: 1fr; 
      gap: 20px;
    }
    
    .rule-category-card {
      padding: 40px 25px;
    }
    
    .rule-category-card .category-icon,
    .rule-category-card > i {
      width: 80px;
      height: 80px;
      margin-bottom: 20px;
    }
    
    .rule-category-card .category-icon i,
    .rule-category-card > i {
      font-size: 2.5rem;
    }
    
    .rule-category-card h2 {
      font-size: 1.5rem;
    }
    
    h2:not(.rule-category-card h2) { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    .footer-content { flex-direction: column; gap: 0.5rem; }
    .admin-button { width: 45px; height: 45px; }
}

/* --- POPUP KONTAKTOWY (STYL JAK W PODANIACH) --- */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-popup.active {
    opacity: 1;
    visibility: visible;
}

.contact-container {
    width: 90%;
    max-width: 550px;
    background: var(--bg-light, #1d1d20);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.contact-popup.active .contact-container {
    transform: scale(1);
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.contact-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
}

.contact-header h2 i {
    color: var(--accent-primary);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
}

.close-btn:hover {
    color: white;
    transform: rotate(90deg);
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contact-icon.ticket {
    background: #5865F2;
    color: white;
}

.contact-info h3 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-link:hover {
    transform: scale(1.05);
    background: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(154, 3, 170, 0.5);
}

.contact-link i {
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: translateX(3px);
}

/* Stopka popupu */
.contact-footer {
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    .contact-container {
        padding: 30px 20px;
    }
    .contact-header h2 {
        font-size: 1.5rem;
    }
}

/* Styl dla wyróżnionych ramek ostrzeżeń w regulaminie */
.rule-note {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-left: 4px solid #e63946;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 15px 0;
  color: #ffb4b4;
  font-size: 0.95rem;
}
.rule-note i {
  color: #e63946;
  margin-right: 8px;
}