/* Referral popup on /play. The markup and behaviour live in
   client_new/scripts/components/ReferralModal.js; /referral renders play.html
   with the modal open, exactly like /vault and /support.

   The referral cards themselves keep the .referral-* classes from
   client_new/styles.css, which play.html already loads. Only the popup shell
   and the banner/signature blocks that used to be inline on /request live
   here. */

.referral-modal {
    width: 95%;
    max-width: 760px;
}

.referral-modal-body {
    padding: 16px;
}

.referral-modal * { box-sizing: border-box; }

.referral-modal .referral-section {
    margin: 0;
}

.referral-modal .referral-header {
    padding-right: 36px;
}

.referral-state {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.referral-state-text {
    color: #9a9aa2;
    font-size: 14px;
    text-align: center;
}

.referral-state-text.is-error {
    color: #ff6b6b;
}

/* Banner links, moved from the /request page. */
.referral-modal .banner-links {
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.referral-modal .banner-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-modal .banner-row:last-child {
    border-bottom: none;
}

.referral-modal .banner-size {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-modal .banner-input {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    outline: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.referral-modal .banner-input:focus {
    background: rgba(0, 0, 0, 0.3);
}

/* Forum signature, moved from the /request page. */
.referral-modal .referral-signature {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 150px 1fr;
}

.referral-modal .referral-signature-label {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.referral-modal .referral-signature-input {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    outline: none;
    min-width: 0;
}

@media (max-width: 768px) {
    .referral-modal-body {
        padding: 10px;
    }

    .referral-modal .referral-section {
        padding: 18px;
    }

    .referral-modal .banner-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .referral-modal .banner-size {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
        font-size: 12px;
    }

    .referral-modal .banner-input {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 12px;
        padding: 8px 12px;
    }

    .referral-modal .referral-signature {
        grid-template-columns: 1fr;
    }

    .referral-modal .referral-signature-label {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
    }
}
