
/*Header*/
#header {
    background: url("../../images/section.jpg") no-repeat fixed center;
    min-width: 100%;
    min-height: 800px;
    height: 80vh;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
}

#header .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 150px;
    width: 100%;
    height: 620px;
    position: relative;
}

#header .content .left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#header .content .left .server-name {
    display: flex;
    flex-direction: column;
}

#header .content .left .server-name p {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}

#header .content .left .server-name h1 {
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
}

#header .content .left .server-description {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

#header .content .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#header .content .right .logo-img {
    max-width: 150px;
    transform: translatey(0px);
    animation: float 4s ease-in-out infinite;
}

#header .content .right .stats {
    display: flex;
    flex-direction: row;
    gap: 50px;
    background: var(--stats-background);
    padding: 20px;
    border-radius: 5px;
}

#header .content .right .stats .stat {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

#header .content .right .stats .stat .icon {
    border-radius: 5px;
    background: var(--stat-icon-background-2);
    padding: 10px;
    transition: .2s ease-in-out;
}

#header .content .right .stats .stat .icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    position: relative;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 5px;
}

#header .content .right .stats .stat:hover .icon {
    transform: scale(1.1);
}

#header .content .right .stats .stat .texts {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#header .content .right .stats .stat .texts h5 {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 700;
}

#header .content .right .stats .stat .texts p {
    color: var(--description-color);
    font-size: 15px;
    font-weight: 400;
}

#header .content .right .stats .stat .texts p span {
    color: var(--green-color);
}

/*About*/
#about .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#about .content .left {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 40px;
}

#about .content .left .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#about .content .left .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#about .content .left .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}


#about .content .left .about-us {
    color: var(--description-color);
    font-size: 17px;
    max-width: 80%;
    line-height: 1.6;
}

#about .content .right {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
}

/* Baner */
#about .content .right img {
    width: 100%;
    max-width: 520px;
    height: 300px;
    object-fit: cover;
    border-radius: 40px 3px;
    position: relative;
    z-index: 1;
    right: 0;
}

/* Akcent tła */
#about .content .right .img-background {
    position: absolute;
    width: min(100%, 520px);
    height: 300px;
    border-radius: 40px 3px;
    background: var(--main-color);
    z-index: 0;
    right: -12px;
    bottom: -12px;
    top: auto;
}

/*Mini games*/
#minigames {
    background: var(--stats-background);
}

#minigames .content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

#minigames .content .game {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

#minigames .content .game:nth-child(even) img{
    order: 1;
}

#minigames .content .game:nth-child(even) img:hover {
    transform: rotate(2deg);
}

#minigames .content .game img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 40px 3px;
    transition: 0.2s;
}

#minigames .content .game img:hover {
    transform: rotate(-1deg);
}

#minigames .content .game .info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#minigames .content .game .info .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#minigames .content .game .info .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#minigames .content .game .info .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#minigames .content .game .info .game-description {
    color: var(--description-color);
    font-size: 17px;
    line-height: 1.6;
}

#minigames .content .game .info .game-description ul {
    padding: 10px 0 0 40px;
}

/*Discord*/
#discord {
    position: relative;
    overflow: hidden;
    background: url("../../images/section2.jpg") no-repeat fixed center;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
}

#discord::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20, 12, 15, 0.60), rgba(20, 12, 15, 0.78));
}

#discord .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#discord .content .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
    text-align: center;
}

#discord .content .section-title span {
    color: var(--main-color);
}

#discord .content .join-discord {
    background: var(--copy-ip-button-background);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    padding: 10px 30px;
    color: var(--white-color);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#discord .content .join-discord:hover {
    opacity: 0.8;
}

#discord .content .join-discord a {
    text-decoration: none;
    color: var(--white-color);
}

/*Vote*/
#vote .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#vote .content .info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

#vote .content .info .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#vote .content .info .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#vote .content .info .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}


#vote .content .info .section-description {
    color: var(--description-color);
    font-size: 17px;
    max-width: 80%;
    line-height: 1.6;
}

#vote .content .links {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

#vote .content .links .url {
    text-decoration: none;
}

#vote .content .links .url:hover .link .link-description .icon {
    transform: scale(1.1);
}

#vote .content .links .link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--stats-background);
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
}

#vote .content .links .link h5 {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 700;
}

#vote .content .links .link .link-description {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

#vote .content .links .link .link-description .description {
    color: var(--description-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

#vote .content .links .link .link-description .icon {
    border-radius: 5px;
    background: var(--stat-icon-background-2);
    padding: 10px;
    transition: 0.2s ease-in-out;
}

#vote .content .links .link .link-description .icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    position: relative;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 5px;
}

/*FAQ*/
#faq {
    background: var(--stats-background);
}

#faq .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#faq .content .info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#faq .content .info .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#faq .content .info .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#faq .content .info .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#faq .content .info .section-title span {
    color: var(--main-color);
}

#faq .content .info .section-description {
    color: var(--description-color);
    font-size: 17px;
    line-height: 1.6;
    max-width: 70%;
}

#faq .content .accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#faq .content .accordion .accordion-item {
    background: var(--stats-background);
    border-radius: 5px;
}

#faq .content .accordion .accordion-item .accordion-item-header {
    padding: 20px 50px 20px 20px;
    line-height: 1.6;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    color: var(--white-color);
    font-size: 17px;
}

#faq .content .accordion .accordion-item .accordion-item-header::after {
    content: "\002B";
    font-size: 20px;
    position: absolute;
    right: 20px;
}

#faq .content .accordion .accordion-item .accordion-item-header.active::after {
    content: "\2212";
}

#faq .content .accordion .accordion-item .accordion-item-body {
    max-height: 0;
    overflow: hidden;
    transition: 0.2s ease-in-out;
}

#faq .content .accordion .accordion-item .accordion-item-body .accordion-item-body-content {
    padding: 20px;
    line-height: 1.6;
    border-top: 1px solid var(--stats-background);
    color: var(--description-color);
}

/*Animations*/
@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-20px);
    }
    100% {
        transform: translatey(0px);
    }
}

/*Responsive*/
/*Header*/
@media screen and (max-width: 1625px) {
    #header .content {
        padding: 150px 90px;
        align-items: start;
        justify-content: center;
    }
}

@media screen and (max-width: 1361px) {
    #header .content {
        flex-direction: column;
        padding: 120px 90px;
        height: 100%;
        gap: 60px;
    }

    #header .content .left {
        gap: 30px;
        justify-content: left;
    }

    #header .content .right .stats {
        width: fit-content;
    }

    #header .content .right .logo-img {
        display: none;
    }

    @media screen and (min-height: 745px) {
        #header .content {
            justify-content: center;
        }

        #header .content .left {
            height: fit-content;
            justify-content: center;
            gap: 30px;
        }

        #header .content .right {
            height: fit-content;
            justify-content: center;
            gap: 30px;
        }
    }
}

@media screen and (max-width: 819px) {
    #header .content {
        padding: 150px 30px;
    }

    #header .content .left .server-name p {
        font-size: 15px;
    }

    #header .content .left .server-name h1 {
        font-size: 40px;
    }

    #header .content .left .server-description {
        font-size: 16px;
    }

    #header .content .right {
        width: 100%;
    }

    #header .content .right .stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 621px) {
    #header .content .right .stats {
        width: 100%;
        flex-direction: column;
        justify-content: space-between;
        align-items: start;
    }

    #header .content .right .stats .stat:hover .icon {
        transform: scale(1);
    }
}

@media screen and (max-width: 447px) {
    #header .content .left .server-name h1 {
        font-size: 30px;
    }
}


/*About us*/
@media screen and (max-width: 1551px) {
    #about .content .left .about-us {
        max-width: 90%;
    }
}

@media screen and (max-width: 1183px) {
    #about .content {
        flex-direction: column;
        gap: 40px;
    }

    #about .content .left .about-us {
        max-width: 100%;
    }

    #about .content .right img {
        margin: auto;
        right: 0;
        max-width: 100%;
        height: 240px;
    }

    #about .content .right .img-background {
        width: 100%;
        height: 240px;
        right: -8px;
        bottom: -8px;
    }
}

/*Mini games*/
@media screen and (max-width: 1141px) {
    #minigames .content .game {
        flex-direction: column;
        gap: 40px;
    }

    #minigames .content .game:nth-child(even) img{
        order: 0;
    }
}

/*Vote*/
@media screen and (max-width: 1313px) {
    #vote .content .links {
        flex-direction: column;
    }
}

@media screen and (max-width: 909px) {
    #vote .content .links {
        flex-wrap: wrap;
        flex-direction: row;
    }

    #vote .content .links .link {
        max-width: 300px;
    }

    #vote .content {
        flex-direction: column;
        gap: 40px;
    }
}

@media screen and (max-width: 690px) {
    #vote .content .links .link {
        max-width: 100%;
    }
}

/*FAQ*/
@media screen and (max-width: 672px) {
    #faq .content .info .section-description {
        max-width: 100%;
    }
}

/* ============================================================
   NOWE SEKCJE / KOMPONENTY STRONY GŁÓWNEJ
   #4 hero (poświata + skin) · #3 status serwera · #8 galeria · #10 eventy
   ============================================================ */

/* --- #4 Hero: poświata za logo + wariant z renderem skina --- */
#header .content .right .logo-img-header {
    filter: drop-shadow(0 0 30px rgba(228, 59, 107, 0.55));
}
#header .content .right .logo-img-header.is-skin {
    max-width: 240px;
    border-radius: 8px;
}

/* --- #3 Bogatszy status serwera --- */
#header .content .right .server-status {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 400px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--stats-background);
    border: 1px solid rgba(247, 170, 169, 0.14);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.server-status .status-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.server-status .status-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #8a7e82;
    flex-shrink: 0;
}
.server-status .status-dot.online {
    background: var(--green-color);
    animation: livePulse 1.6s infinite;
}
.server-status .status-label {
    color: var(--white-color);
    font-family: var(--display-font);
    font-weight: 600;
    font-size: 17px;
}
.server-status .status-version {
    margin-left: auto;
    color: var(--description-color);
    font-size: 13px;
    opacity: 0.8;
}
.server-status .status-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(217, 205, 208, 0.12);
    overflow: hidden;
}
.server-status .status-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--main-color), var(--main-color-2));
    transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.server-status .status-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.server-status .status-meta span {
    color: var(--description-color);
    font-size: 14px;
}
.server-status .status-meta b { color: var(--green-color); font-weight: 700; }
.server-status .status-meta i { color: var(--main-color); margin-right: 4px; }
.server-status .status-heads {
    display: flex;
    align-items: center;
    min-height: 4px;
}
.server-status .status-heads img {
    width: 32px; height: 32px;
    border-radius: 7px;
    margin-left: -7px;
    border: 2px solid var(--background-color);
    background: var(--background-color);
}
.server-status .status-heads img:first-child { margin-left: 0; }
.server-status .status-heads .more {
    margin-left: 8px;
    color: var(--description-color);
    font-size: 13px;
}

/* --- #8 Galeria + lightbox --- */
#gallery .content { display: flex; flex-direction: column; gap: 40px; }
#gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
#gallery .gallery-item {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
    background: var(--stats-background);
    /* kafelek jest <button> (dostępny z klawiatury) — reset domyślnych stylów przycisku */
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    width: 100%;
}
#gallery .gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
#gallery .gallery-item:hover img { transform: scale(1.08); }
#gallery .gallery-item .caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 16px 14px;
    background: linear-gradient(transparent, rgba(35, 26, 29, 0.92));
    color: var(--white-color);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s ease;
}
#gallery .gallery-item:hover .caption { opacity: 1; transform: none; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    background: rgba(20, 12, 15, 0.93);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.lightbox .lb-caption { color: var(--description-color); font-size: 15px; text-align: center; }
.lightbox button {
    position: absolute;
    width: 48px; height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(228, 59, 107, 0.85);
    color: var(--white-color);
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox button:hover { background: var(--main-color); transform: scale(1.08); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* --- #10 Eventy + odliczanie --- */
#events { background: var(--stats-background); }
#events .content { display: flex; flex-direction: column; gap: 40px; }
#events .event-featured {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 32px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(228, 59, 107, 0.14), transparent 55%),
        rgba(247, 170, 169, 0.05);
    border: 1px solid rgba(228, 59, 107, 0.22);
}
#events .event-featured .label {
    color: var(--main-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}
#events .event-featured h3 {
    color: var(--white-color);
    font-size: 28px;
    font-family: var(--display-font);
}
#events .event-featured p {
    color: var(--description-color);
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
}
#events .countdown { display: flex; gap: 14px; flex-wrap: wrap; }
#events .countdown .unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 78px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(228, 59, 107, 0.12);
    border: 1px solid rgba(228, 59, 107, 0.3);
}
#events .countdown .unit .num {
    font-family: var(--display-font);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--white-color);
}
#events .countdown .unit .lbl {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--description-color);
}
#events .events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}
#events .event-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px;
    border-radius: 14px;
    background: rgba(35, 26, 29, 0.35);
    border-left: 3px solid var(--main-color);
}
#events .event-card .date { color: var(--main-color); font-weight: 700; font-size: 14px; }
#events .event-card h4 { color: var(--white-color); font-family: var(--display-font); font-size: 19px; }
#events .event-card p { color: var(--description-color); font-size: 14px; line-height: 1.6; }

/* --- Responsywność nowych komponentów --- */
@media screen and (max-width: 1361px) {
    #header .content .right .server-status { max-width: 100%; }
}
@media screen and (max-width: 540px) {
    #events .countdown .unit { min-width: 64px; padding: 12px 12px; }
    #events .countdown .unit .num { font-size: 26px; }
    .lightbox .lb-prev { left: 12px; }
    .lightbox .lb-next { right: 12px; }
}

/* --- Tytuły / opisy nowych sekcji (galeria, eventy) --- */
#gallery .info, #events .info { display: flex; flex-direction: column; gap: 14px; }
#gallery .section-title, #events .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}
#gallery .section-title::before, #events .section-title::before {
    content: ""; position: absolute; bottom: -9px; left: 0;
    width: 150px; height: 1px; border-radius: 5px; background: var(--description-color);
}
#gallery .section-title::after, #events .section-title::after {
    content: ""; position: absolute; bottom: -10px; left: 0;
    width: 50px; height: 3px; border-radius: 5px; background: var(--main-color);
}
#gallery .section-description, #events .section-description {
    color: var(--description-color); font-size: 17px; line-height: 1.6; max-width: 70%;
}
@media screen and (max-width: 819px) {
    #gallery .section-description, #events .section-description { max-width: 100%; }
}

/* --- #4 Duży model 3D postaci w hero --- */
#header .content .right .hero-skin-canvas {
    filter: drop-shadow(0 12px 36px rgba(228, 59, 107, 0.5));
    cursor: grab;
}
#header .content .right .hero-skin-canvas:active { cursor: grabbing; }
/* po udanym wczytaniu modelu 3D chowamy statyczny podkład */
#header .content .right .logo-img-header.is-hidden { display: none; }
/* na mniejszych ekranach model chowamy (jak oryginalne logo) — zostaje sam panel statusu */
@media screen and (max-width: 1361px) {
    #header .content .right .hero-skin-canvas { display: none; }
}

/* (sekcja inline „Jak zacząć grać" została zastąpiona modalem #howto-modal) */

/* ============================================================
   HERO w stylu QSMP: pasek "Dołącz" + kafelek "Jak grać" + MODAL
   ============================================================ */
#header .content .left .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 560px;
}
#header .content .left .join-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(35, 26, 29, 0.55);
    border: 1px solid rgba(247, 170, 169, 0.15);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#header .content .left .join-bar .join-bar-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#header .content .left .join-bar .join-bar-label {
    color: var(--description-color); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}
#header .content .left .join-bar .join-bar-ip {
    color: var(--white-color); font-family: var(--display-font);
    font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1.1;
    word-break: break-all;
}
.join-copy-ip {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--main-color), var(--main-color-2));
    border: none; border-radius: 10px;
    color: var(--white-color); font-family: var(--main-font); font-weight: 700; font-size: 15px;
    padding: 12px 20px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(228, 59, 107, 0.45);
    transition: 0.2s ease;
}
.join-copy-ip:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(228, 59, 107, 0.55); }
.join-copy-ip.copied { background: var(--ip-copied-icon-background); box-shadow: none; color: var(--green-color); }

#header .content .left .howto-card {
    display: flex; align-items: center; gap: 16px;
    text-align: left;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(35, 26, 29, 0.55);
    border: 1px solid rgba(247, 170, 169, 0.15);
    cursor: pointer;
    transition: 0.2s ease;
    width: 100%;
}
#header .content .left .howto-card:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 59, 107, 0.5);
    background: rgba(228, 59, 107, 0.10);
}
#header .content .left .howto-card .howto-card-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(228, 59, 107, 0.16);
    color: var(--main-color); font-size: 22px;
}
#header .content .left .howto-card .howto-card-text h4 {
    color: var(--white-color); font-family: var(--display-font); font-size: 18px; margin-bottom: 2px;
}
#header .content .left .howto-card .howto-card-text p {
    color: var(--description-color); font-size: 14px; line-height: 1.4;
}
@media screen and (max-width: 560px) {
    #header .content .left .join-bar { flex-direction: column; align-items: stretch; }
    #header .content .left .join-bar .join-copy-ip { width: 100%; }
}

/* --- Modal „Jak grać" --- */
.howto-modal {
    position: fixed; inset: 0; z-index: 11000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(15, 9, 11, 0.78);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.howto-modal.open { opacity: 1; visibility: visible; }
.howto-modal-box {
    position: relative;
    width: 100%; max-width: 640px;
    max-height: 88vh; overflow-y: auto;
    background: var(--background-color);
    border: 1px solid rgba(247, 170, 169, 0.14);
    border-radius: 20px;
    padding: 32px 34px 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s ease;
}
.howto-modal.open .howto-modal-box { transform: none; }
.howto-modal-close {
    position: absolute; top: 20px; right: 20px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(217, 205, 208, 0.08); border: none; border-radius: 9px;
    color: var(--description-color); font-size: 18px; cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease; /* nie "all" — visibility dziedziczone ma się przełączać natychmiast */
}
.howto-modal-close:hover { background: rgba(228, 59, 107, 0.2); color: var(--white-color); }
.howto-modal-box h2 { color: var(--white-color); font-family: var(--display-font); font-size: 30px; padding-right: 40px; }
.howto-modal-box .howto-sub {
    color: var(--description-color); font-size: 15px; margin-top: 6px; line-height: 1.5;
    padding-bottom: 22px; border-bottom: 1px solid rgba(217, 205, 208, 0.1);
}
.howto-steps { display: flex; flex-direction: column; gap: 22px; padding-top: 24px; }
.howto-step { display: flex; gap: 16px; align-items: flex-start; }
.howto-step .hs-num {
    flex-shrink: 0;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(228, 59, 107, 0.14);
    border: 1px solid rgba(228, 59, 107, 0.4);
    color: var(--main-color); font-family: var(--display-font); font-weight: 700; font-size: 15px;
}
.howto-step .hs-body { padding-top: 4px; flex: 1; min-width: 0; }
.howto-step .hs-body h4 { color: var(--white-color); font-size: 17px; font-weight: 500; line-height: 1.5; }
.howto-step .hs-body h4 b { font-weight: 700; }
.howto-step .hs-body .edition-name { color: var(--main-color); font-weight: 700; }
/* notka pod krokiem (np. o wejściówce za punkty kanału) */
.howto-step .hs-body .hs-note {
    color: var(--description-color);
    font-size: 14.5px;
    line-height: 1.65;
    margin-top: 8px;
}
.howto-step .hs-body .hs-note b { color: var(--white-color); }
.howto-step .hs-body .hs-note a { color: var(--link-color); text-decoration: none; }
.howto-step .hs-body .hs-note a:hover { text-decoration: underline; }
.ip-box {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(217, 205, 208, 0.05);
    border: 1px solid rgba(217, 205, 208, 0.12);
    border-radius: 12px;
}
.ip-box .ip-box-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ip-box .ip-box-label { color: var(--description-color); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.ip-box .ip-box-ip { color: var(--white-color); font-size: 20px; font-weight: 600; word-break: break-all; }
@media screen and (max-width: 540px) {
    .howto-modal-box { padding: 26px 20px 24px; }
    .howto-modal-box h2 { font-size: 24px; }
}
/* ── Sekcja promo Giełdy (strona główna) ── */
#gielda-promo .content { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
#gielda-promo .gp-text { flex: 1 1 340px; }
#gielda-promo .gp-img { flex: 1 1 340px; }
#gielda-promo .gp-img img { width: 100%; border-radius: 22px; border: 1px solid rgba(247,170,169,0.15); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }
.gp-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 13px 26px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, var(--main-color), var(--main-color-2));
  color: #fff; font-family: var(--display-font); font-weight: 600; font-size: 16px; transition: 0.2s;
}
.gp-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
@media screen and (max-width: 819px) { #gielda-promo .content { gap: 30px; } }
