/* SORTEO TRADICIONAL */
.st-prizes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;

    margin: 30px 0;

    background: #fff;
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}


/* Header */
.st-prizes thead th {
    padding: 16px 20px;

    background: #1976d2;
    color: #fff;

    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;

    text-align: left;
}

.st-prizes thead th:first-child {
    width: 90px;
    text-align: center;

    border-top-left-radius: 14px;
}

.st-prizes thead th:nth-child(2) {
    width: 160px;
    text-align: center;
}

.st-prizes thead th:last-child {
    border-top-right-radius: 14px;
}


/* Rows */
.st-prizes tbody .prize td {
    padding: 16px 20px;

    border-bottom: 1px solid #e5e7eb;

    color: #374151;
    font-size: 15px;

    transition: background .2s ease;
}


.st-prizes tbody .prize:last-child td {
    border-bottom: none;
}


/* Level */
.st-prizes tbody .prize td:first-child {
    width: 90px;

    text-align: center;

    font-size: 18px;
    font-weight: 700;

    color: #1976d2;
}


/* Ticket */
.st-prizes tbody .prize td:nth-child(2) {
    width: 160px;

    text-align: center;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 1px;

    color: #111827;
}


/* Prize */
.st-prizes tbody .prize td:last-child {
    font-weight: 500;
}


/* Hover */
.st-prizes tbody .prize:hover td {
    background: #f1f7ff;
}

/* Mobile */
@media(max-width:700px){

    .st-prizes thead {
        display:none;
    }

    .st-prizes,
    .st-prizes tbody,
    .st-prizes tr,
    .st-prizes td {
        display:block;
        width:100%;
    }


    .st-prizes tbody .prize {
        padding:15px;
        border-bottom:1px solid #ddd;
    }


    .st-prizes tbody .prize td {
        padding:6px 10px;
        border:0;
    }


    .st-prizes tbody .prize td:first-child {
        text-align:left;
    }


    .st-prizes tbody .prize td:nth-child(2) {
        text-align:left;
    }


    .st-prizes tbody .prize td:last-child {
        margin-top:8px;
    }
}
/* END SORTEO TRADICIONAL */

/* Prize breakdown card (UK + shared) */
.lotto-prizes {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: var(--lotto-radius-card, 10px);
    overflow: hidden;
    background: #fff;
}

.lotto-prizes__bar {
    padding: var(--lotto-page-gutter, 16px);
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.lotto-prizes__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.lotto-prizes__title {
    margin: 0 !important;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.lotto-prizes__meta {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.lotto-prizes__body {
    padding: var(--lotto-page-gutter, 16px);
}

.lotto-prizes__body--multi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.lotto-prizes__group {
    min-width: 0;
}

.lotto-prizes__round {
    margin: 0 0 10px;
    color: #475569;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Top tier — compact single-line hero */
.lotto-prizes__hero--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid #bfdbfe;
    border-radius: var(--lotto-radius-soft, 8px);
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
}

.lotto-prizes__hero--compact .lotto-prizes__hero-match {
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    min-width: 0;
}

.lotto-prizes__hero--compact .lotto-prizes__hero-prize {
    color: #1d4ed8;
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.lotto-prizes__hero--compact .lotto-prizes__hero-winners {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Lower tiers — fill horizontal space */
.lotto-prizes__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lotto-prizes__cell {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--lotto-radius-soft, 8px);
    background: #fafbfd;
}

.lotto-prizes__cell-match {
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.lotto-prizes__cell-prize {
    margin-top: 4px;
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.lotto-prizes__cell-winners {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lotto-prizes__note {
    margin: 0;
    padding: 10px var(--lotto-page-gutter, 16px) 12px;
    border-top: 1px solid #eef2f7;
    background: #fafbfd;
    color: #64748b;
    font-size: 0.6875rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .lotto-prizes__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .lotto-prizes__body--multi {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lotto-prizes__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .lotto-prizes__hero--compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .lotto-prizes__grid {
        grid-template-columns: 1fr;
    }
}
