body {
    position: relative;
}

.modal {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: #171d23;
    padding: 2rem 2rem 2rem;
    border: 2px solid #2f3b48;
    /* strong border instead of shadow */
    border-radius: 0;
    /* explicitly sharp */
    box-shadow: none;
    /* no shadow */
    transition: none;
}

.modal-overlay {
    display: none;

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 99999;
}

.modal-overlay.visible {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.modal-close {
 font-size: 30px;
 position: absolute;
 top: 16px;
 right: 16px;   
 cursor: pointer;
}

/* logo area – sharp, flat */
.modal-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid #2a333e;
    padding-bottom: 0.8rem;
}

.logo-icon svg {
    display: block;
    width: 36px;
    height: 36px;
    fill: none;
}

.logo-text {
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -0.5px;
    color: #f0f3f8;
    background: linear-gradient(145deg, #f0f3f8 0%, #bcc7d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-weight: 300;
    opacity: 0.6;
    -webkit-text-fill-color: #7a8b9f;
    background: none;
}

/* typography – flat */
.modal-title {
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #edf2f7;
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}

.modal-sub {
    font-size: 1rem;
    color: #a4b3c9;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-weight: 400;
    border-left: 3px solid #3f536b;
    padding-left: 0.9rem;
}

.modal-sub strong {
    color: #d6e0ed;
    font-weight: 500;
}

/* steam button – flat, sharp, no shadows, no rounded corners */
.steam-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #26333f;
    border: 2px solid #43586e;
    border-radius: 0;
    /* sharp */
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-shadow: none;
    /* no shadow */
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.steam-btn:hover {
    background: #2d3e4f;
    border-color: #5c7a96;
}

.steam-btn:active {
    background: #1e2b37;
    border-color: #3a5167;
}

.steam-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
    flex-shrink: 0;
}

.steam-btn span {
    display: inline-block;
    padding-top: 1px;
}

/* footer – sharp, no rounded */
.modal-footer {
    margin-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #5f728a;
    border-top: 2px solid #26313d;
    padding-top: 1.2rem;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.footer-badge svg {
    width: 16px;
    height: 16px;
    fill: #f5b342;
}

.footer-badge small {
    color: #b3c8df;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-right span {
    opacity: 0.7;
    color: #6e839c;
}

.reference-line {
    margin-top: 1.2rem;
    display: flex;
    justify-content: flex-end;
    font-size: 0.6rem;
    color: #4a607a;
    letter-spacing: 0.5px;
    border-top: 1px solid #25313d;
    padding-top: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
}

/* extra flat detail: no radius on anything */
.modal,
.modal-logo,
.steam-btn,
.footer-badge,
.reference-line {
    border-radius: 0 !important;
}

/* small sharp indicator */
.sharp-line {
    display: block;
    width: 40px;
    height: 3px;
    background: #3f556b;
    margin-bottom: 0.8rem;
}

/* responsive */
@media (max-width: 480px) {
    .modal {
        padding: 1.5rem 1.2rem;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .steam-btn {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .modal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}