:root {
    --section-height: 70px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial;
    color: white;
    font-size: 18px;
}

/* KONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* TŁA */
.tlo01 {
    background: url(tlo02.png) center/cover;
}

.tlo02 {
    background: url(tlo01.png) center/cover;
}

/* SEPARATOR */
.separator {
    height: 2px;
    background: linear-gradient(
        to right, 
        transparent,
        #393D3A, 
        #E0D4A0,
        #393D3A,
        transparent);
}

/* NAV */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--section-height);
}

.logo {
    font-size: 24px;
    font-weight: 600;
}
.logo span {
    color: #689614;
}

.menu a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
}

/* BUTTONY */
.btn {
    background: #689614;
    color: black;
    padding: 10px 15px;
    text-decoration: none;
}

.outline {
    background: transparent;
    border: 2px solid #689614;
    color: white;
}

/* HERO */
.hero h1 span {
    color: #689614;
}

.buttons {
    margin-top: 20px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--section-height);
}

.link-right {
    color: #689614;
    text-decoration: none;
}

/* LISTA */
#rankingList {
    list-style: none;
    padding: 0;
}

#rankingList li {
    padding: 10px 0;
}

.wyniki {
    font-size: 22px;
}

/* TABELA */

table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    background: rgba(0, 0, 0, 0.8);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    color: #689614;
}

tr:hover {
    background: rgba(255,255,255,0.05);
}

/* kolumny liczbowe */
td:nth-child(3),
td:nth-child(4),
td:nth-child(5),
td:nth-child(6),
td:nth-child(7),

th:nth-child(3),
th:nth-child(4),
th:nth-child(5),
th:nth-child(6),
th:nth-child(7)
 {
    text-align: center;
}

td small {
    font-size: 12px;
    color: #aaa;
}

.tournament-points {
    color: #888;       /* szary */
    font-size: 14px;   /* mniejsza czcionka */
}

/* DRABINKA */

#bracket {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-left: 3px solid #689614;
}

.player {
    margin-bottom: 5px;
}

.score {
    color: #689614;
    font-weight: bold;
}

.overlay {
    position: relative;
}

.overlay::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,   /* mocno ciemne z lewej */
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.3) 45%,
        rgba(0, 0, 0, 0.0) 70%   /* znika */
    );

    z-index: 1;
}

.overlay > * {
    position: relative;
    z-index: 2;
}

/* blok turnieju */
.tournament-block:not(:last-child) {
    border-bottom: 2px solid #fff;
    padding-bottom: 40px;
}
/* data turnieju */
.tournament-date {
    margin-bottom: 0px;
    font-size: 20px;
    color: #fff;
}

/* wrapper */
.bracket-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto; /* ważne przy dużych grafikach */
}

/* obraz */
.bracket-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
}


/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {

    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .link-right {
        position: static;
        transform: none;
        display: block;
        margin-top: 10px;
    }

    .nav a {
        display: none;
    }
    .hero p{
        display: none;
    }
}