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

html, body {
    min-height: 100%;
}
/* ================= MATCH TABLE ================= */

.groups-table{
width:100%;
border-collapse:collapse;
background:#111;
color:#eee;
font-size:14px;
border-radius:8px;
overflow:hidden;
box-shadow:0 0 20px rgba(0,0,0,0.6);
}

/* HEADER */

.groups-table thead{
background:linear-gradient(180deg,#6b5a33,#3a2f18);
}

.groups-table th{
text-transform:uppercase;
font-size:14px;
letter-spacing:1px;
padding:14px;
color:#d7b766;
}

/* CELLS */

.groups-table td{
padding:14px;
text-align:center;
}

/* GOLD LINES */

.groups-table tbody tr + tr td{
border-top:1px solid rgba(201,162,74,0.55);
box-shadow:0 -1px 0 rgba(255,215,120,0.15);
}

/* HOVER */

.groups-table tbody tr:hover{
background:rgba(201,162,74,0.06);
}

/* MATCH COLUMN */

.groups-table td:nth-child(2),
.groups-table th:nth-child(2){
text-align:left;
padding-left:30px;
}

/* DATE COLUMN */

.groups-table td:first-child{
text-align:left;
font-weight:600;
}

/* TIME STYLE */

.format{
background:#222;
padding:4px 10px;
border-radius:6px;
font-size:13px;
color:#4cff5a;
font-weight:700;
}

/* VS */

.vs{
color:#ff3b3b;
margin:0 6px;
font-weight:700;
}

/* STATUS */

.countdown{
font-weight:700;
color:#00d0ff;
}

/* MATCH TEXT */

.match{
font-weight:600;
font-size:15px;
}
/* ================= TOURNAMENT GROUPS ================= */

.tournament-groups{
min-width:420px;
border-collapse:collapse;
background:rgba(0,0,0,0.65);
color:#fff;
font-size:14px;
box-shadow:0 0 18px rgba(0,0,0,0.6);
}

.tournament-groups th,
.tournament-groups td{
padding:10px 12px;
border:1px solid rgba(255,255,255,0.15);
text-align:center;
}

.tournament-groups td:first-child{
text-align:left;
font-weight:600;
}

/* GROUP TITLE */

.tournament-groups .group-title td{
background:linear-gradient(90deg,#7ea6c6,#a7c3da);
color:#000;
font-weight:700;
font-size:15px;
text-align:left;
padding-left:14px;
}

/* HEADER */

.tournament-groups .header th{
background:rgba(255,255,255,0.08);
font-weight:600;
}

/* HOVER */

.tournament-groups tr:hover{
background:rgba(255,255,255,0.04);
}
.groups-container{
display:flex;
flex-wrap:wrap;
gap:30px;
justify-content:center;
align-items:flex-start;
}
/* ================= TAKTYKI ================= */

.tactics-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
    justify-content: center;
}

.tactic-card {
    position: relative;
    width: 320px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0,0,0,0.6);
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.tactic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.tactic-card:hover img {
    transform: scale(1.08);
}

.tactic-title {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: rgba(198, 166, 75, 0.95);
    background: rgba(0,0,0,0.8);
    font-size: 14px;
}
/* ================= LIGHTBOX ================= */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: rgba(198, 166, 75, 0.95);
}
.panel h4 {
    color: #7fd4ff;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    margin-top: 30px;
    margin-bottom: 12px;
    font-style: italic;
}
@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
/* ===== TACTICS DIAGRAM ===== */

.tactics-diagram {
    margin-top: 40px;
    text-align: center;
}

.tactics-diagram img {
    max-width: 100%;
    width: 1100px; /* kontrola maksymalnej szerokości */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
}
.diagram-download {
    margin-top: 20px;
    text-align: center;
}

.download-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    color: #c6a64b;
    border: 1px solid #c6a64b;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.download-btn:hover {
    background: #c6a64b;
    color: #111;
    box-shadow: 0 0 15px rgba(198,166,75,0.4);
}
/* ===== RANKING TABLE ===== */

.ranking-table {
    overflow-x: auto;
    margin-top: 20px;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ranking-table th {
    background: rgba(198,166,75,0.15);
    color: #c6a64b;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ranking-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ranking-table tr:hover {
    background: rgba(198,166,75,0.08);
}
.ranking-table tbody tr:nth-child(1) td {
    color: #f04545;
    font-weight: 700;
}

.ranking-table tbody tr:nth-child(2) td {
    color: #f55c5c;
}

.ranking-table tbody tr:nth-child(3) td {
    color: #eb7e7e;
}

.ranking-table tbody tr:nth-child(4) td {
    color: #f0baba;
}
/* ===== MATCH SCHEDULE ===== */

.schedule-table {
    overflow-x: auto;
    margin-top: 20px;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.schedule-table th {
    background: rgba(198,166,75,0.15);
    color: #c6a64b;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.schedule-table tr:hover {
    background: rgba(198,166,75,0.08);
}
.status-completed {
    color: #fc3535;
    font-weight: 600;
}

.status-upcoming {
    color: #7fd4ff;
    font-weight: 600;
}
/* ===== TOURNAMENT NAV ===== */

.tournament-nav {
    text-align: center;
    margin: 15px 0 25px 0; /* 👈 mniej u góry */
}

.tournament-nav a {
    display: inline-block;
    margin: 0 18px;
    padding: 6px 24px;
    color: #c6a64b;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(198,166,75,0.6);
    background: rgba(38, 38, 38, 0.45); /* 👈 KLUCZ */
    backdrop-filter: blur(4px);     /* 👈 nowoczesny efekt */
    transition: all 0.3s ease;
}

.tournament-nav a:hover {
    background: rgba(198,166,75,0.2);
    box-shadow: 0 0 15px rgba(198,166,75,0.5);
}
/* ================= FONTS ================= */
@font-face {
    font-family: "Orbitron";
    src: url("/fonts/Orbitron-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Orbitron";
    src: url("/fonts/Orbitron-Bold.ttf") format("truetype");
    font-weight: 700;
}

/* ================= BODY ================= */
body {
    font-family: "Orbitron", Arial, sans-serif;
    color: #e8f0ff;
    line-height: 1.8;

/*
    background:
        linear-gradient(
            rgba(15, 30, 55, 0.45),
            rgba(15, 30, 55, 0.65)),
        url("img/turn.webp") center / cover no-repeat fixed;
*/
}

/* ================= TOP BAR ================= */
/*
.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,#2b5f9a,#1c365a);
    border-bottom: 1px solid rgba(140, 190, 255, 0.35);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}
/* --- WIDEO W TLE --- */
#background-video {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -2;
}
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* 👈 stopień przyciemnienia */
    z-index: -1;
}

/* ================= FLOATING HOME ================= */
.home-float {
    position: fixed;
    top: 18px;
    left: 24px;
    z-index: 200;
}

.home-float svg {
    width: 26px;
    height: 26px;
    fill: #c6a64b; /* złoty */
    transition: transform .2s ease, fill .2s ease;
    filter: drop-shadow(0 0 6px rgba(198,166,75,0.4));
}
.home-float:hover svg {
    fill: #ffffff;
    transform: scale(1.15);
}
.title-box {
    text-align: center;
    margin-top: 10px;
}

.title-box h1 {
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    letter-spacing: 1.5px;

    background: linear-gradient(90deg,#e8d27a,#b8932e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        2px 2px 0 rgba(0,0,0,0.8),      /* mocny czarny cień */
        0 0 12px rgba(198,166,75,0.4);  /* złoty glow */

    z-index: 1;
}
.title-box h1::after {
    content: "";
    position: absolute;
    left: -120px;     /* zwiększona szerokość */
    right: -120px;
    bottom: -2px;    /* podniesiony wyżej */
    height: 55px;    /* trochę większy */
    background: url("img/tur_1.png") center / cover no-repeat;

    z-index: -1;
    opacity: 0.95;
}
.title-box span {
    display: block;
    margin-top: 0px;
    font-size: 1.15rem;
    color: #d0e2ff;
}
.panel ul li::marker {
    color: #ffb249;
}
/* ================= HOME ================= */
.home-btn {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.home-btn svg {
    width: 26px;
    height: 26px;
    fill: #b7d3ff;
    transition: transform .2s ease, fill .2s ease;
}

.home-btn:hover svg {
    fill: #ffffff;
    transform: scale(1.15);
}

/* ================= HEADER TEXT ================= */
.header-content {
    text-align: center;
}

.header-content h1 {
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(120, 180, 255, 0.45);
}

.header-content p {
    margin-top: 6px;
    font-size: 1.15rem;
    color: #d0e2ff;
}

/* ================= MAIN COLUMN ================= */
.content {
    max-width: 980px;
    margin: 20px auto 90px; /* było 70px */
    padding: 0 20px;
}
.lang-switch {
    position: fixed;
    top: 18px;
    right: 24px;

    padding: 6px 12px;
    font-size: 0.9rem;
    text-decoration: none;

    color: #c6a64b;
    border: 1px solid rgba(198,166,75,0.5);
    border-radius: 4px;

    background: rgba(25,20,14,0.8);
    transition: 0.3s;
}

.lang-switch:hover {
    background: rgba(198,166,75,0.2);
    box-shadow: 0 0 12px rgba(198,166,75,0.4);
}
/* ================= PANELS ================= */
.panel {
    background: rgba(25, 20, 14, 0.88); /* cieplejsze tło */
    border: 1px solid rgba(198,166,75,0.35);

    padding: 28px 32px;
    margin-bottom: 36px;
    box-shadow:
        0 0 0 1px rgba(198,166,75,0.12),
        0 0 25px rgba(198,166,75,0.08),
        0 14px 32px rgba(0, 0, 0, 0.75);
}
/* ================= TEXT ================= */
.panel p {
    font-size: 1.18rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #eef4ff;
    margin-bottom: 20px;
}

/* ================= HEADERS ================= */
.panel h2 {
    font-size: 1.55rem;
    margin-bottom: 18px;
    letter-spacing: 1px;
    color: #c6a64b; /* ciemne złoto */
    text-shadow: 0 0 10px rgba(198,166,75,0.35);
    text-align: center;
    position: relative;
}

.panel h2::before,
.panel h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    width: 230px; /* połowa 460px */
    height: 2px;
}

.panel h2::before {
    right: 50%;
    background: linear-gradient(270deg, #c6a64b, transparent);
}

.panel h2::after {
    left: 50%;
    background: linear-gradient(90deg, #c6a64b, transparent);
}
.panel-regulamin {
    border: 1px solid rgba(81, 227, 253, 0.45);
    box-shadow:
        0 0 25px rgba(81, 227, 253, 0.15),
        0 14px 32px rgba(0, 0, 0, 0.75);
}
/* ================= LIST ================= */
.panel ul {
    list-style: square;
    padding-left: 20px;
}

.panel ul li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* ================= LINKS ================= */
.panel.links {
    display: flex;
    flex-direction: row !important;   /* 🔴 wymuszenie */
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 22px 28px;
}

.panel.links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; /* 🔥 kluczowe */
    font-size: 1.1rem;
    font-weight: 600;
    color: #d2e4ff;
    text-decoration: none;
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.icon.discord { color: #7289da; }
.icon.srs     { color: #cccc63; }
.icon.phone   { color: #ff4b4b; }
.icon.logistics { color: #9ad1b3; }

.icon_color_1 {color:#c6a64b}
.icon_color_1:hover {color:#7289da}

.icon_color_2 {color:#c6a64b}
.icon_color_2:hover {color:#cccc63}

.icon_color_3 {color:#c6a64b}
.icon_color_3:hover {color:#ff6868}

.icon_color_4 {color:#c6a64b}
.icon_color_4:hover {color:#9ad1b3}

/* ================= FOOTER ================= */
.site-footer {
    width: 100%;
    margin-top: 80px;

    background: linear-gradient(
        to bottom,
        rgba(25, 20, 12, 0.55),
        rgba(15, 12, 8, 0.0)
    );

    border-top: 1px solid rgba(198,166,75,0.35);
    box-shadow: 0 -5px 20px rgba(198,166,75,0.08);
}
.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 24px;

    text-align: left;
    font-size: 0.85rem;
    color: #c6a64b; /* złoty */
}
/* --- SCROLLUP --- */
.scrollup {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scrollup.show {
  opacity: 1;
  visibility: visible;
}

.scrollup img {
  width: 55px;
  height: 55px;
  opacity: 0.8;
  transition: 0.3s;
  filter: drop-shadow(0 0 10px rgba(198,166,75,0.35));
}

.scrollup img:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(198,166,75,0.6));
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.6rem;
    }
    .header-content p {
        font-size: 1rem;
    }
    .panel {
        padding: 22px;
    }
    .panel.links {
        flex-direction: column;
        gap: 16px;
    }
}
