.steam-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    font-family: Inter, sans-serif;
}

.steam-modal.active {
    opacity: 1;
    visibility: visible;
}

.steam-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(8px);
}

.steam-modal__window {
    position: relative;
    width: 480px;
    max-width: calc(100% - 40px);
    background: #171717;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 22px;
    padding: 42px;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, .6),
        inset 0 1px rgba(255, 255, 255, .04);
    transform: translateY(40px) scale(.96);
    transition: .4s cubic-bezier(.2, .9, .2, 1);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.steam-modal.active .steam-modal__window {
    transform: none;
}

.steam-modal__window::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: #d7ff39;
    filter: blur(120px);
    opacity: .13;
    top: -100px;
    right: -80px;
}

.steam-modal__window::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .03), transparent 40%);
    pointer-events: none;
}

.steam-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    background: #222;
    transition: .25s;
}

.steam-modal__close:hover {
    background: #2d2d2d;
}

.steam-modal__close svg {
    width: 18px;
    stroke: #999;
    stroke-width: 2;
    fill: none;
}

.steam-modal__logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .05);
}

.steam-modal__logo img {
    width: 42px;
}

.steam-modal__badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(216, 255, 59, .12);
    color: #d7ff39;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    margin-bottom: 18px;
}

.steam-modal h2 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
}

.steam-modal p {
    margin: 20px 0 34px;
    color: #8f8f8f;
    line-height: 1.8;
    font-size: 15px;
    text-align: center;
}

.steam-login-btn {
    width: 100%;
    height: 62px;
    border: none;
    cursor: pointer;
    border-radius: 16px;
    background: #d7ff39;
    color: #111;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: .25s;
    box-shadow:
        0 15px 35px rgba(215, 255, 57, .22);
}

.steam-login-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 45px rgba(215, 255, 57, .35);
}

.steam-login-btn:active {
    transform: scale(.98);
}

.steam-login-btn svg {
    width: 24px;
    fill: #111;
}

@media(max-width:600px) {

    .steam-modal__window {
        padding: 30px;
    }

    .steam-modal h2 {
        font-size: 30px;
    }

}