html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    height: 100%;
    overflow: hidden;
}

h1 {
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 3.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px #0008;
}

.bg {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.bg img {
    position: absolute;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
}

.overlay {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: #fff;
}

.countdown, .countdown .block span:not(.label) {
    font-weight: 300;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: 0 8px 32px #0004;
    backdrop-filter: blur(6px);
    width: 100vw;
    max-width: 100vw;
}

.countdown .block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.2ch;
}

.countdown .block .label {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-top: 0.2em;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.countdown .block .dot {
    font-size: 1.5rem;
    line-height: 1;
}

#centisec-wrap {
    display: inline-block;
    width: 1.9ch;
    text-align: center;
}

.bottom-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    top: auto;
    width: 100vw;
    height: 20vh; /* lub jak chcesz */
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 -8px 32px #0004;
    backdrop-filter: blur(6px);
    z-index: 9;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-bar-text {
    color: #fff;
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 1px;
    pointer-events: auto;
    user-select: text;
    text-align: center;
    white-space: nowrap;
}

.fsm-link {
    display: inline-block;
    color: #fff;
    background: #fca311;
    font-weight: 700;
    font-size: 2.5rem;
    border-radius: 1em;
    padding: 0.14em 0.8em;
    margin-top: 0.3em;
    text-decoration: none;
    box-shadow: 0 3px 16px #e08e3377;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.fsm-link:hover, .fsm-link:focus {
    background: #ffb300;
    color: #fff;
    box-shadow: 0 6px 32px #ffc107aa;
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 700px) {
    .bottom-bar {
        height: 20vh;
        top: 0;
        bottom: auto;
    }
    .bottom-bar-text {
        font-size: 1.3rem;
    }
    .content {
        font-size: 14px;
    }

    .countdown {
        font-size: 1.3rem;
        padding: 0.8rem 1.1rem;
    }

    h1 {
        font-size: 1.2rem;
    }
}