:root {
    --banner-height: 40px;
    --banner-mobile-height: 86px;
}
@font-face {
    font-family: "Bergen Sans";
    src: url("/static/BergenSans-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.bottom-banner {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 28px));
    min-height: var(--banner-height);
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    box-sizing: border-box;
    background: rgba(248, 248, 252, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 18px;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    z-index: 9999;
}

.bottom-banner button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: none;
    border-radius: 13px;
    background: transparent;
    color: #1f2328;
    font-family: "Bergen Sans";
    font-size: clamp(0.88rem, 1.25vw, 1.08rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.14s ease, color 0.16s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bottom-banner button:hover,
.bottom-banner button:focus-visible {
    background: rgba(11, 61, 145, 0.09);
    color: #0b3d91;
    outline: none;
}

.bottom-banner button:active {
    background: rgba(11, 61, 145, 0.15);
    transform: scale(0.97);
}

@media (max-width: 700px) {
    :root {
        --banner-height: var(--banner-mobile-height);
    }

    .bottom-banner {
        bottom: 5px;
        width: calc(100% - 10px);
        min-height: var(--banner-mobile-height);
        gap: 1px;
        padding: 4px;
        border-radius: 18px;
    }

    .bottom-banner button {
        min-height: 76px;
        padding: 7px 2px;
        border-radius: 14px;
        font-size: clamp(0.95rem, 4.25vw, 1.25rem);
        font-weight: 800;
        line-height: 1.02;
        letter-spacing: -0.025em;
        white-space: normal;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }
}

@media (max-width: 430px) {
    :root {
        --banner-mobile-height: 90px;
    }

    .bottom-banner button {
        min-height: 80px;
        padding: 6px 1px;
        font-size: clamp(0.9rem, 4.15vw, 1.12rem);
        line-height: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bottom-banner button {
        transition: none;
    }
}
