.lotto-result-card {
    width: min(100%, 576px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 8px;
    text-align: center;
}

.lotto-result-icon {
    display: inline-flex;
    width: 96px;
    height: 96px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
}

.lotto-result-icon.is-loss {
    background: #f1f5f9;
    color: #94a3b8;
}

.lotto-result-icon.is-win {
    background: #fffbeb;
    color: #b45309;
    position: relative;
}

.lotto-result-icon > svg {
    width: 48px;
    height: 48px;
}

.lotto-result-icon .winner-spark {
    position: absolute;
    width: 18px;
    height: 18px;
    color: #f59e0b;
}

.lotto-result-icon .winner-spark.is-left {
    top: 18px;
    left: 14px;
}

.lotto-result-icon .winner-spark.is-right {
    right: 12px;
    bottom: 20px;
}

.lotto-result-heading {
    margin: 0;
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

.lotto-result-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 18px;
    line-height: 1.5;
}

.lotto-result-prize-label {
    display: inline-block;
    margin: 16px 0 0;
    color: #92400e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.lotto-result-number-box {
    margin-top: 28px;
    padding: 24px 20px;
    border-radius: 8px;
    background: #f8fafc;
}

.lotto-result-number-box span,
.lotto-result-prize span {
    display: block;
    color: #94a3b8;
    font-size: 14px;
}

.lotto-result-number-box strong {
    display: block;
    margin-top: 7px;
    color: #94a3b8;
    font-family: "IBM Plex Mono", monospace;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.lotto-result-card.is-win .lotto-result-number-box strong {
    color: #2563eb;
}

.lotto-result-prize {
    margin-top: 14px;
}

.lotto-result-prize strong {
    display: block;
    margin-top: 4px;
    color: #15803d;
    font-size: 32px;
    font-weight: 700;
}

.lotto-result-helper {
    margin: 24px 0 0;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.5;
}

.lotto-result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.lotto-result-button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s;
}

.lotto-result-button.is-secondary {
    background: #f1f5f9;
    color: #475569;
}

.lotto-result-button.is-secondary:hover {
    background: #e2e8f0;
}

.lotto-result-button.is-primary {
    background: #2563eb;
    color: #fff;
}

.lotto-result-button.is-primary:hover {
    background: #1d4ed8;
}

.lotto-result-card .affiliate-inline {
    margin-top: 28px;
}

.lotto-result-card .affiliate-popup {
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .lotto-result-card {
        padding: 28px 20px;
    }

    .lotto-result-icon {
        width: 88px;
        height: 88px;
        margin-bottom: 16px;
    }

    .lotto-result-heading {
        font-size: 28px;
    }

    .lotto-result-number-box strong {
        font-size: 38px;
    }

    .lotto-result-prize strong {
        font-size: 28px;
    }

    .lotto-result-actions {
        gap: 10px;
    }

    .lotto-result-button {
        min-height: 54px;
        font-size: 15px;
    }
}
