@font-face {
    font-family: 'GWENT-ExtraBold';
    src: url('fonts/hinted-GWENT-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* ---------- TŁO ---------- */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: #000;
    background-image: url('asset/tlo1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- STAGE (jak content-container na index) ---------- */
.stage {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    overflow: visible;
}

/* ---------- KONTENER 768×1080 – skala w JS ---------- */
.container {
    position: relative;
    width: 730px;
    height: 1080px;
    flex-shrink: 0;
    transform-origin: top center;
    transform: scale(1);
    pointer-events: auto;
    overflow: visible;
}

/* Czarny pas: 12% od krawędzi kontenera */
.black-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12%;
    right: 12%;
    background: linear-gradient(to bottom, rgba(43, 43, 43, 0.479) 0%, rgba(0, 0, 0, 0.849) 100%);
    z-index: 1;
    backdrop-filter: blur(3px)
}

/* side.webp: 13% → 15% od krawędzi, wysokość 1080, nad pasem, pod UI */
.side-left,
.side-right {
    position: absolute;
    top: 0;
    height: 1080px;
    width: 2%;
    object-fit: fill;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}
.side-left  { left: 13%; }
.side-right { right: 13%; }

/* Logo + menu w kolumnie – menu ZAWSZE pod logo */
.top-stack {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    pointer-events: none;
    user-select: none;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    width: 76%; /* w obrębie czarnego pasa */
}

.menu-btn {
    background: none;
    border: none;
    padding: 0.35em 0.5em;
    margin: 0;
    cursor: pointer;
    font-family: 'GWENT-ExtraBold', sans-serif;
    font-size: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c39745;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.menu-btn:hover { color: #e0c070; }

/* Ikony: 2% od dołu, 20% od krawędzi KONTENERA, gap 5% */
.icons {
    position: absolute;
    bottom: 2%;
    left: 20%;
    right: 20%;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5%;
}

.icon-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    flex: 0 0 auto;
}
.icon-btn img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;
}
.icon-btn:hover { opacity: 0.85; }

/* ---------- BADGE WERSJI ---------- */
.version-badge {
    position: fixed;
    bottom: 1%;
    left: 1%;
    z-index: 20;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #c7a76e;
    font-family: 'PFDinTextCondPro-Bold', 'Segoe UI', sans-serif;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    cursor: pointer;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.version-badge:hover {
    opacity: 1;
    color: #e8d5a3;
}
.version-sep { opacity: 0.6; }

/* ---------- MODAL CHANGELOG ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-overlay[hidden] { display: none !important; }

.modal-panel {
    position: relative;
    width: min(560px, 92vw);
    max-height: min(80vh, 900px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(199, 167, 110, 0.4);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.75) 50%,
        rgba(0, 0, 0, 0.88) 100%
    );
    backdrop-filter: blur(6px);
    color: #c7a76e;
    padding: 1.25rem 1.5rem 1.5rem;
    font-family: 'PFDinTextCondPro-Bold', 'Segoe UI', sans-serif;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #c7a76e;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}
.modal-close:hover { opacity: 1; }

.modal-title {
    margin: 0 2.5rem 1rem 0;
    font-size: 1.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.changelog-entry {
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(199, 167, 110, 0.2);
}
.changelog-entry:last-child { border-bottom: none; }

.changelog-date {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 0.2rem;
}
.changelog-scope {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e8d5a3;
    margin-bottom: 0.45rem;
}
.changelog-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.88rem;
}
.changelog-list > li { margin-bottom: 0.3rem; }

.changelog-list .sub,
.changelog-list ul.sub-list {
    margin: 0.15rem 0 0.15rem 0.4rem;
    padding-left: 0.55rem;
    border-left: 2px solid rgba(199, 167, 110, 0.3);
    list-style: none;
    font-size: 0.72rem;
    opacity: 0.8;
    line-height: 1.35;
}

.changelog-img-trigger {
    display: inline-block;
    margin-top: 0.5rem;
    background: none;
    border: 1px solid rgba(199, 167, 110, 0.35);
    color: #c7a76e;
    font-family: inherit;
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
}
.changelog-img-trigger:hover {
    border-color: #c7a76e;
    color: #e8d5a3;
}
.changelog-img-slot { margin-top: 0.5rem; }
.changelog-img {
    display: block;
    max-width: 100%;
    border: 1px solid rgba(199, 167, 110, 0.25);
}