﻿/* Aggregated electronic/vietlott card styles */

/* ===== mega645-card.css ===== */
.mg645-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mg645-card__head {
    background: linear-gradient(180deg, #d3141d 0%, #c10f17 100%);
    color: #fff;
    padding: 14px 16px;
}

.mg645-card__head-inner {
    display: grid;
    grid-template-columns: 96px 1fr 96px;
    align-items: center;
    gap: 8px;
}

.mg645-card__logo-wrap,
.mg645-card__logo-spacer {
    width: 96px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mg645-card__logo {
    display: block;
    max-width: 96px;
    max-height: 62px;
    object-fit: contain;
}

.mg645-card__title {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-align: center;
}

.mg645-card__meta {
    margin-top: 6px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    opacity: 0.95;
}

.mg645-card__body {
    padding: 16px 18px 14px;
    position: relative;
    overflow: hidden;
}

.mg645-card__note {
    text-align: center;
    color: #8b0d13;
    margin-bottom: 10px;
}

.mg645-card__note-main {
    display: block;
    font-size: 19px;
    font-weight: 600;
}

.mg645-card__note-sub {
    display: block;
    color: #5e5e5e;
    font-size: 17px;
    margin-top: 3px;
}

.mg645-ball-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.mg645-ball-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 28%, #f25555 0%, #d31d24 55%, #b61018 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mg645-ball-item.is-loading {
    font-size: 0;
}

.mg645-ball-loading {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: mg645-spin 0.9s linear infinite;
}

.mg645-ball-item.is-drawing {
    font-size: 34px;
}

.mg645-ball-random {
    display: inline-block;
    min-width: 1ch;
    text-align: center;
}

@keyframes mg645-spin {
    to {
        transform: rotate(360deg);
    }
}

.mg645-jackpot-box {
    border: 1px solid #efb4b8;
    border-radius: 12px;
    background: #fff7f7;
    text-align: center;
    padding: 14px 10px;
    margin: 0 auto 14px;
    max-width: 720px;
    box-shadow: 0 4px 16px rgba(176, 27, 34, 0.12);
}

.mg645-jackpot-box__label {
    color: #c6111a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.mg645-jackpot-box__value {
    color: #ab1119;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 800;
}

.mg645-jackpot-box__unit {
    color: #c6111a;
    font-size: 20px;
    font-weight: 700;
}

.mg645-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
}

.mg645-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.mg645-table th,
.mg645-table td {
    border: 1px solid #e3e6eb;
    padding: 8px 0;
    font-size: 16px;
    text-align: center;
}

.mg645-table thead th {
    background: #f2f3f7;
    color: #b40f17;
    font-weight: 700;
}

.mg645-table__name {
    text-align: left;
    font-weight: 700;
    color: #2e2e2e;
}

.vietlott-watermark {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
    height: auto;
    width: 260px;
    max-width: 60%;
    opacity: .1;
    pointer-events: none;
    -o-object-fit: contain;
    object-fit: contain;
    z-index: 10;
}

.mg645-table__amount {
    color: #be1018;
    font-weight: 700;
}

.mg645-match-dots {
    display: inline-flex;
    gap: 6px;
}

.mg645-match-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dadce3;
    color: transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.mg645-match-dot.is-active {
    background: #bf131b;
    color: #fff;
}

@media (max-width: 768px) {
    .mg645-card__head-inner {
        grid-template-columns: 64px 1fr 64px;
    }

    .mg645-card__logo-wrap,
    .mg645-card__logo-spacer {
        width: 64px;
    }

    .mg645-card__logo {
        max-width: 64px;
        max-height: 42px;
    }

    .mg645-card__title {
        font-size: 22px;
    }

    .mg645-card__meta {
        font-size: 15px;
    }

    .mg645-card__note-main {
        font-size: 15px;
    }

    .mg645-card__note-sub {
        font-size: 13px;
    }

    .mg645-ball-item {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .mg645-ball-loading {
        width: 22px;
        height: 22px;
        border-width: 2.5px;
    }

    .mg645-ball-item.is-drawing {
        font-size: 28px;
    }

    .mg645-jackpot-box__label {
        font-size: 14px;
    }

    .mg645-jackpot-box__value {
        font-size: 34px;
    }

    .mg645-jackpot-box__unit {
        font-size: 15px;
    }

    .mg645-table-wrap {
        overflow: visible;
    }

    .mg645-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .mg645-table thead {
        display: none;
    }

    .mg645-table,
    .mg645-table tbody,
    .mg645-table tr,
    .mg645-table td {
        display: block;
        width: 100%;
    }

    .mg645-table tr {
        border: 1px solid #f0b2b7;
        border-radius: 10px;
        padding: 8px 10px;
        margin-bottom: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(175, 26, 34, 0.08);
    }

    .mg645-table td {
        border: 0;
        padding: 4px 0;
        text-align: left;
        font-size: 14px;
    }

    .mg645-table__name {
        font-size: 22px;
        color: #c31922;
        padding: 2px 0 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid #f6d8db;
    }

    .mg645-table td[data-label]:not(.mg645-table__name) {
        position: relative;
        padding-left: 108px;
        min-height: 26px;
    }

    .mg645-table td[data-label]:not(.mg645-table__name)::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 4px;
        width: 98px;
        color: #111827;
        font-weight: 500;
    }

    .mg645-match-dots {
        gap: 4px;
    }

    .mg645-match-dot {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 10px;
    }

    .mg645-table__amount {
        color: #c0141d;
        font-size: 22px;
        font-weight: 700;
    }
}


/* ===== power655-card.css ===== */
.pw655-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pw655-card__head {
    background: linear-gradient(180deg, #cc4d1e 0%, #b74218 100%);
    color: #fff;
    padding: 14px 16px;
}

.pw655-card__head-inner {
    display: grid;
    grid-template-columns: 96px 1fr 96px;
    align-items: center;
    gap: 8px;
}

.pw655-card__logo-wrap,
.pw655-card__logo-spacer {
    width: 96px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pw655-card__logo {
    display: block;
    max-width: 96px;
    max-height: 62px;
    object-fit: contain;
}

.pw655-card__title {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.2px;
}

.pw655-card__meta {
    margin-top: 6px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    opacity: 0.95;
}

.pw655-card__body {
    padding: 16px 18px 14px;
    position: relative;
    overflow: hidden;
}

.pw655-card__note {
    text-align: center;
    color: #c21414;
    margin-bottom: 10px;
}

.pw655-card__note-main {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.pw655-card__note-sub {
    display: block;
    color: #5e5e5e;
    font-size: 17px;
    margin-top: 3px;
}

.pw655-ball-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.pw655-ball-item {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e67b45 0%, #ca5828 55%, #ad4319 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pw655-ball-item.is-special {
    background: radial-gradient(circle at 30% 30%, #f5d057 0%, #d09b09 58%, #b38105 100%);
}

.pw655-ball-item.is-loading {
    font-size: 0;
}

.pw655-ball-loading {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: pw655-spin 0.9s linear infinite;
}

.pw655-ball-item.is-drawing {
    font-size: 30px;
}

.pw655-ball-random {
    display: inline-block;
    min-width: 1ch;
    text-align: center;
}

@keyframes pw655-spin {
    to {
        transform: rotate(360deg);
    }
}

.pw655-jackpot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.pw655-jackpot-box {
    border: 1px solid #efb4a1;
    border-radius: 12px;
    background: #fff8f6;
    text-align: center;
    padding: 10px 10px;
    box-shadow: 0 4px 16px rgba(176, 69, 27, 0.12);
}

.pw655-jackpot-box__label {
    color: #bd4e19;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pw655-jackpot-box__value {
    color: #9f3b16;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 800;
}

.pw655-jackpot-box__unit {
    color: #bd4e19;
    font-size: 20px;
    font-weight: 700;
}

.pw655-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
}

.pw655-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.vietlott-watermark {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
    height: auto;
    width: 260px;
    max-width: 60%;
    opacity: .1;
    pointer-events: none;
    -o-object-fit: contain;
    object-fit: contain;
    z-index: 10;
}

.pw655-table th,
.pw655-table td {
    border: 1px solid #e3e6eb;
    padding: 8px 0;
    font-size: 16px;
    text-align: center;
}

.pw655-table thead th {
    background: #f7f3ef;
    color: #b44b1a;
    font-weight: 700;
}

.pw655-table__name {
    text-align: left;
    font-weight: 700;
    color: #2e2e2e;
}

.pw655-table__amount {
    color: #bf221c;
    font-weight: 700;
}

.pw655-match-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pw655-match-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dadce3;
    color: transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.pw655-match-dot.is-active {
    background: #bf4d1a;
    color: #fff;
}

.pw655-match-plus {
    color: #6b7280;
    font-weight: 700;
    margin: 0 2px;
}

.pw655-match-star {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d39d0c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    display: inline-block;
}

@media (max-width: 768px) {
    .pw655-card__head-inner {
        grid-template-columns: 64px 1fr 64px;
    }

    .pw655-card__logo-wrap,
    .pw655-card__logo-spacer {
        width: 64px;
    }

    .pw655-card__logo {
        max-width: 64px;
        max-height: 42px;
    }

    .pw655-card__title {
        font-size: 20px;
    }

    .pw655-card__meta {
        font-size: 14px;
    }

    .pw655-card__note-main {
        font-size: 14px;
    }

    .pw655-card__note-sub {
        font-size: 12px;
    }

    .pw655-ball-item {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .pw655-ball-loading {
        width: 20px;
        height: 20px;
        border-width: 2.5px;
    }

    .pw655-ball-item.is-drawing {
        font-size: 24px;
    }

    .pw655-jackpot-box__label {
        font-size: 13px;
    }

    .pw655-jackpot-box__value {
        font-size: 40px;
    }

    .pw655-jackpot-box__unit {
        font-size: 14px;
    }

    .pw655-table-wrap {
        overflow: visible;
    }

    .pw655-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .pw655-table thead {
        display: none;
    }

    .pw655-table,
    .pw655-table tbody,
    .pw655-table tr,
    .pw655-table td {
        display: block;
        width: 100%;
    }

    .pw655-table tr {
        border: 1px solid #f1c8b8;
        border-radius: 10px;
        padding: 8px 10px;
        margin-bottom: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(175, 66, 26, 0.08);
    }

    .pw655-table td {
        border: 0;
        padding: 4px 0;
        text-align: left;
        font-size: 14px;
    }

    .pw655-table__name {
        font-size: 22px;
        color: #b64b1b;
        padding: 2px 0 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid #f5ddd2;
    }

    .pw655-table td[data-label]:not(.pw655-table__name) {
        position: relative;
        padding-left: 108px;
        min-height: 26px;
    }

    .pw655-table td[data-label]:not(.pw655-table__name)::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 4px;
        width: 98px;
        color: #111827;
        font-weight: 500;
    }

    .pw655-match-dots {
        gap: 4px;
    }

    .pw655-match-dot,
    .pw655-match-star {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 10px;
    }

    .pw655-table__amount {
        color: #bf221c;
        font-size: 22px;
    }
}



