html,
body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

#BingoContent,
#PageContent {
    max-width: 100%;
}

.dist-mobile-list {
    display: none;
}

.dist-heatmap {
    display: none;
}

.dist-heat-cell.heat-level-1 {
    color: #7c2d12;
    background: #ffedd5;
    border-color: #fed7aa;
}

.dist-heat-cell.heat-level-2 {
    color: #7c2d12;
    background: #fed7aa;
    border-color: #fdba74;
}

.dist-heat-cell.heat-level-3 {
    color: #ffffff;
    background: #f97316;
    border-color: #ea580c;
}

.dist-heat-cell.heat-level-4 {
    color: #ffffff;
    background: #dc2626;
    border-color: #b91c1c;
}

.dist-heat-cell.heat-level-5 {
    color: #ffffff;
    background: #7f1d1d;
    border-color: #450a0a;
}

@media (max-width: 768px) {
    html.dist-rwd-loading {
        background: #f4f7fb !important;
    }

    html.dist-rwd-loading body > * {
        opacity: 0;
    }

    html.dist-rwd-loading body::before {
        content: "";
        position: fixed;
        left: 50%;
        top: 50%;
        z-index: 99999;
        width: 0;
        height: 0;
        display: block;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: translate(-50%, -50%);
    }

    html.dist-rwd-loading body::after {
        content: "";
        position: fixed;
        left: 50%;
        top: 50%;
        z-index: 100000;
        width: 30px;
        height: 30px;
        border: 4px solid #fee2e2;
        border-top-color: #b91c1c;
        border-radius: 999px;
        filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18));
        transform: translate(-50%, -50%);
        animation: dist-spin 0.8s linear infinite;
    }

    @keyframes dist-spin {
        to {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    html.dist-rwd-active {
        background: #f4f7fb !important;
    }

    body {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        background: #f4f7fb !important;
        color: #172033;
        font-family: Arial, "Microsoft JhengHei", sans-serif;
    }

    html.dist-rwd-active body > *:not(.dist-rwd-page):not(.h8-mobile-header):not(.h8-google-translate-host):not(.h8-watchlist-overlay) {
        display: none !important;
    }

    .dist-rwd-page {
        box-sizing: border-box;
        display: block;
        width: 100%;
        max-width: 430px;
        min-height: 100vh;
        margin: 0 auto;
        padding: 76px 10px 10px;
        background: #f4f7fb;
    }

    .dist-rwd-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-height: 44px;
        margin: 0 0 8px;
        padding: 0 4px;
    }

    .dist-rwd-back {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 6px 10px;
        color: #334155;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 800;
    }

    .dist-rwd-title {
        min-width: 0;
        color: #111827;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.25;
    }

    body > div[align="center"],
    table.hk,
    table[width="1000"],
    table[width="995"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        border: 0 !important;
    }

    table.hk > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    table[width="995"] > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #BingoContent,
    #PageContent {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        padding: 10px !important;
    }

    #BingoContent table,
    #PageContent table {
        max-width: 100% !important;
    }

    #BingoContent > table:first-child,
    #PageContent > div:first-child table:first-child {
        display: none !important;
    }

    #BingoContent > div[align="left"],
    #PageContent > div[align="left"],
    .dist-mobile-description {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-top: 10px !important;
        padding: 8px 10px !important;
        color: #334155;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 12px;
        line-height: 1.45;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .dist-description-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    .dist-description-row + .dist-description-row {
        margin-top: 4px;
    }

    .dist-description-row strong {
        color: #334155;
        font-weight: 800;
    }

    #BingoContent table[border="1"],
    #PageContent table[border="1"] {
        width: max-content !important;
        min-width: 760px !important;
        table-layout: auto !important;
    }

    html.has-mobile-dist #BingoContent table[border="1"],
    html.has-mobile-dist #PageContent table[border="1"] {
        display: none !important;
    }

    #BingoContent table[border="1"] td,
    #PageContent table[border="1"] td {
        min-width: 18px;
        height: 24px !important;
        padding: 2px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
        white-space: nowrap;
    }

    #BingoContent table[border="1"] td:first-child,
    #PageContent table[border="1"] td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        min-width: 58px;
        box-shadow: 1px 0 0 #111827;
    }

    .dist-mobile-list {
        display: grid;
        gap: 10px;
        width: 100%;
        margin-top: 12px;
    }

    .dist-heatmap {
        display: grid;
        gap: 12px;
        margin: 10px 0 0;
        padding: 12px;
        background: linear-gradient(180deg, #fff7ed 0%, #ffffff 58%);
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .dist-heatmap-title {
        color: #7f1d1d;
        font-size: 16px;
        font-weight: 900;
        line-height: 1.25;
        text-align: left;
    }

    .dist-heatmap-meta {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        text-align: left;
    }

    .dist-heatmap-hot {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .dist-heatmap-hot::-webkit-scrollbar {
        display: none;
    }

    .dist-heatmap-hot-label {
        flex: 0 0 auto;
        color: #7f1d1d;
        font-size: 12px;
        font-weight: 900;
    }

    .dist-heatmap-hot-chip {
        flex: 0 0 auto;
        padding: 5px 8px;
        color: #ffffff;
        background: #b91c1c;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
    }

    .dist-heatmap-grid {
        display: grid;
        grid-template-columns: repeat(10, 27px);
        justify-content: center;
        gap: 4px;
    }

    .dist-heat-cell {
        box-sizing: border-box;
        display: inline-grid;
        place-items: center;
        width: 27px;
        min-height: 38px;
        padding: 2px 1px;
        color: #475569;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 7px;
        line-height: 1;
    }

    .dist-heat-cell strong {
        display: block;
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
    }

    .dist-heat-cell em {
        display: block;
        margin-top: 3px;
        font-size: 9px;
        font-style: normal;
        font-weight: 800;
        line-height: 1;
    }

    .dist-mobile-legend {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 10px 0 0;
        padding: 10px;
        color: #334155;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
    }

    .dist-mobile-legend-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .dist-mobile-legend-item span:last-child {
        min-width: 0;
    }

    .dist-mobile-legend-dot {
        display: inline-block;
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
        border: 1px solid #dbe3ef;
        border-radius: 999px;
        background: #ffffff;
    }

    .dist-mobile-legend-dot.dist-mobile-hit {
        background: #d1fae5;
        border-color: #6ee7b7;
    }

    .dist-mobile-legend-dot.RK10DBlue {
        background: #2563eb;
        border-color: #1d4ed8;
    }

    .dist-mobile-legend-dot.RK10Red {
        background: #dc2626;
        border-color: #b91c1c;
    }

    .dist-mobile-card {
        display: grid;
        gap: 8px;
        padding: 8px;
        background: #ffffff;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    .dist-mobile-period {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #10213a;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.35;
    }

    .dist-mobile-period-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 20px;
        padding: 0 8px;
        border-radius: 999px;
        color: #ffffff;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }

    .dist-mobile-period-badge.RK10BB {
        background: #2563eb;
    }

    .dist-mobile-period-badge.RK10BS {
        background: #dc2626;
    }

    .dist-mobile-period-badge.RK10BN {
        color: #713f12;
        background: #fef3c7;
    }

    .dist-mobile-balls {
        display: grid;
        grid-template-columns: repeat(10, 24px);
        justify-content: center;
        gap: 5px;
        width: 100%;
    }

    .dist-mobile-ball,
    .dist-mobile-empty {
        box-sizing: border-box;
        width: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 24px;
        padding: 1px;
        color: #0f172a;
        background: #f8fafc;
        border: 1px solid #dbe3ef;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
    }

    .dist-mobile-hit {
        color: #065f46;
        background: #d1fae5;
        border-color: #6ee7b7;
    }

    .dist-mobile-miss {
        color: #94a3b8;
        background: #ffffff;
        border-color: #e5e7eb;
    }

    .dist-mobile-ball.RK10Green {
        color: #065f46;
        background: #d1fae5;
        border-color: #6ee7b7;
    }

    .dist-mobile-ball.RK10Red {
        color: #ffffff;
        background: #dc2626;
        border-color: #b91c1c;
    }

    .dist-mobile-ball.RK10DBlue {
        color: #ffffff;
        background: #2563eb;
        border-color: #1d4ed8;
    }

    .dist-mobile-empty {
        color: #94a3b8;
        background: #f8fafc;
        border-color: #e2e8f0;
    }
}

@media (min-width: 769px) {
    html.dist-rwd-active {
        background: #f4f7fb !important;
    }

    html.dist-rwd-loading body > * {
        opacity: 0;
    }

    html.dist-rwd-active body {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        background: #f4f7fb !important;
        color: #172033;
        font-family: Arial, "Microsoft JhengHei", sans-serif;
    }

    html.dist-rwd-active body > *:not(.dist-rwd-page) {
        display: none !important;
    }

    html.dist-rwd-active .dist-rwd-page {
        box-sizing: border-box;
        display: block;
        width: min(100%, 920px);
        min-height: 100vh;
        margin: 0 auto;
        padding: 18px;
        background: #f4f7fb;
    }

    html.dist-rwd-active .dist-rwd-header {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        margin: 0 0 10px;
    }

    html.dist-rwd-active .dist-rwd-back {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 7px 12px;
        color: #334155;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }

    html.dist-rwd-active .dist-rwd-title {
        min-width: 0;
        color: #111827;
        font-size: 20px;
        font-weight: 900;
        line-height: 1.25;
    }

    html.dist-rwd-active #BingoContent,
    html.dist-rwd-active #PageContent {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        background: #ffffff;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        padding: 14px !important;
    }

    html.dist-rwd-active #BingoContent > table:first-child,
    html.dist-rwd-active #PageContent > div:first-child table:first-child {
        display: none !important;
    }

    html.dist-rwd-active #BingoContent > div[align="left"],
    html.dist-rwd-active #PageContent > div[align="left"],
    html.dist-rwd-active .dist-mobile-description {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-top: 10px !important;
        padding: 9px 11px !important;
        color: #334155;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 12px;
        line-height: 1.5;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    html.dist-rwd-active .dist-description-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    html.dist-rwd-active .dist-description-row + .dist-description-row {
        margin-top: 4px;
    }

    html.dist-rwd-active .dist-description-row strong {
        color: #334155;
        font-weight: 800;
    }

    html.dist-rwd-active.has-mobile-dist #BingoContent table[border="1"],
    html.dist-rwd-active.has-mobile-dist #PageContent table[border="1"] {
        display: none !important;
    }

    html.dist-rwd-active .dist-mobile-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        margin-top: 12px;
    }

    html.dist-rwd-active .dist-heatmap {
        display: grid;
        gap: 12px;
        margin: 10px 0 0;
        padding: 14px;
        background: linear-gradient(180deg, #fff7ed 0%, #ffffff 58%);
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    html.dist-rwd-active .dist-heatmap-title {
        color: #7f1d1d;
        font-size: 17px;
        font-weight: 900;
        line-height: 1.25;
        text-align: left;
    }

    html.dist-rwd-active .dist-heatmap-meta {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        text-align: left;
    }

    html.dist-rwd-active .dist-heatmap-hot {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    html.dist-rwd-active .dist-heatmap-hot::-webkit-scrollbar {
        display: none;
    }

    html.dist-rwd-active .dist-heatmap-hot-label {
        flex: 0 0 auto;
        color: #7f1d1d;
        font-size: 12px;
        font-weight: 900;
    }

    html.dist-rwd-active .dist-heatmap-hot-chip {
        flex: 0 0 auto;
        padding: 5px 8px;
        color: #ffffff;
        background: #b91c1c;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
    }

    html.dist-rwd-active .dist-heatmap-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
        gap: 6px;
    }

    html.dist-rwd-active .dist-heat-cell {
        box-sizing: border-box;
        display: inline-grid;
        place-items: center;
        min-height: 42px;
        padding: 4px 2px;
        color: #475569;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 7px;
        line-height: 1;
    }

    html.dist-rwd-active .dist-heat-cell strong {
        display: block;
        font-size: 12px;
        font-weight: 900;
        line-height: 1;
    }

    html.dist-rwd-active .dist-heat-cell em {
        display: block;
        margin-top: 3px;
        font-size: 9px;
        font-style: normal;
        font-weight: 800;
        line-height: 1;
    }

    html.dist-rwd-active .dist-mobile-legend {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 10px 0 0;
        padding: 10px;
        color: #334155;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
    }

    html.dist-rwd-active .dist-mobile-legend-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html.dist-rwd-active .dist-mobile-legend-item span:last-child {
        min-width: 0;
    }

    html.dist-rwd-active .dist-mobile-legend-dot {
        display: inline-block;
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
        border: 1px solid #dbe3ef;
        border-radius: 999px;
        background: #ffffff;
    }

    html.dist-rwd-active .dist-mobile-card {
        display: grid;
        gap: 8px;
        padding: 10px;
        background: #ffffff;
        border: 1px solid #dbe3ef;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    html.dist-rwd-active .dist-mobile-period {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #10213a;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.35;
    }

    html.dist-rwd-active .dist-mobile-period-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 20px;
        padding: 0 8px;
        color: #ffffff;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }

    html.dist-rwd-active .dist-mobile-balls {
        display: grid;
        grid-template-columns: repeat(10, 24px);
        justify-content: center;
        gap: 5px;
        width: 100%;
    }

    html.dist-rwd-active .dist-mobile-ball,
    html.dist-rwd-active .dist-mobile-empty {
        box-sizing: border-box;
        width: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 24px;
        padding: 1px;
        color: #0f172a;
        background: #f8fafc;
        border: 1px solid #dbe3ef;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
    }

    html.dist-rwd-active .dist-mobile-hit {
        color: #065f46;
        background: #d1fae5;
        border-color: #6ee7b7;
    }

    html.dist-rwd-active .dist-mobile-miss {
        color: #94a3b8;
        background: #ffffff;
        border-color: #e5e7eb;
    }

    html.dist-rwd-active .RK10DBlue {
        color: #ffffff;
        background: #2563eb;
        border-color: #1d4ed8;
    }

    html.dist-rwd-active .RK10Red {
        color: #ffffff;
        background: #dc2626;
        border-color: #b91c1c;
    }
}

.dist-heatmap .dist-heat-cell.heat-level-1,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-1 {
    color: #7c2d12;
    background: #ffedd5;
    border-color: #fed7aa;
}

.dist-heatmap .dist-heat-cell.heat-level-2,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-2 {
    color: #7c2d12;
    background: #fed7aa;
    border-color: #fdba74;
}

.dist-heatmap .dist-heat-cell.heat-level-3,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-3 {
    color: #ffffff;
    background: #f97316;
    border-color: #ea580c;
}

.dist-heatmap .dist-heat-cell.heat-level-4,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-4 {
    color: #ffffff;
    background: #dc2626;
    border-color: #b91c1c;
}

.dist-heatmap .dist-heat-cell.heat-level-5,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-5 {
    color: #ffffff;
    background: #7f1d1d;
    border-color: #450a0a;
}

/* 2026 analytics workstation redesign */
html.dist-rwd-active {
    --dist-bg: #07111f;
    --dist-surface: #0c1829;
    --dist-surface-strong: #101e31;
    --dist-border: #2a3c54;
    --dist-border-soft: #1c2c41;
    --dist-text: #f7f9fc;
    --dist-muted: #91a0b5;
    --dist-red: #ef3340;
    --dist-red-dark: #b51b2b;
    --dist-cyan: #59c5df;
    background: var(--dist-bg) !important;
}

html.dist-rwd-active body {
    background:
        radial-gradient(circle at 14% 0%, rgba(23, 74, 123, 0.18), transparent 31rem),
        linear-gradient(180deg, #081423 0%, var(--dist-bg) 100%) !important;
    color: var(--dist-text) !important;
    font-family: Arial, "Microsoft JhengHei", sans-serif !important;
}

html.dist-rwd-active body > .h8-mobile-header {
    display: block !important;
    background: rgba(6, 16, 29, 0.96);
    border-color: var(--dist-border-soft);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

html.dist-rwd-active body > .h8-watchlist-overlay {
    display: none !important;
}

html.dist-rwd-active body > .h8-watchlist-overlay.is-open {
    display: block !important;
}

html.dist-rwd-active .h8-mobile-header-inner {
    max-width: 1440px;
    height: 70px;
    min-height: 70px;
    padding: 10px 28px;
    gap: 9px;
}

html.dist-rwd-active .h8-language-select,
html.dist-rwd-active .h8-legacy-link,
html.dist-rwd-active .h8-member-chip,
html.dist-rwd-active .h8-header-actions a,
html.dist-rwd-active .h8-header-actions button {
    color: #dbe6f3;
    background-color: #0f1d30;
    border-color: #2e4159;
}

html.dist-rwd-active .h8-member-chip-text span {
    color: #dbe6f3;
}

html.dist-rwd-active .h8-member-caret {
    background: #13243a;
    border-color: #344961;
}

html.dist-rwd-active .h8-member-caret::before {
    border-color: #aebccf;
}

html.dist-rwd-active .dist-rwd-page {
    box-sizing: border-box;
    display: block;
    width: min(100%, 1500px) !important;
    max-width: 1500px !important;
    min-height: 100vh;
    margin: 0 auto;
    padding: 96px 28px 32px !important;
    background: transparent !important;
}

html.dist-rwd-active .dist-rwd-header {
    display: none !important;
}

html.dist-rwd-active #BingoContent,
html.dist-rwd-active #PageContent {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

html.dist-rwd-active #BingoContent > *:not(.dist-dashboard):not(.dist-history-details),
html.dist-rwd-active #PageContent > *:not(.dist-dashboard):not(.dist-history-details) {
    display: none !important;
}

html.dist-rwd-active .dist-dashboard {
    display: block;
    width: 100%;
    color: var(--dist-text);
}

html.dist-rwd-active .dist-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(330px, 1fr) auto auto;
    align-items: end;
    gap: 20px;
    min-height: 86px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--dist-border-soft);
}

html.dist-rwd-active .dist-title-group {
    min-width: 0;
}

html.dist-rwd-active .dist-dashboard-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: left;
}

html.dist-rwd-active .dist-dashboard-subtitle {
    margin: 10px 0 0;
    color: #aab7c8;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    text-align: left;
}

html.dist-rwd-active .dist-page-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: #b5c0cf;
    font-size: 12px;
    white-space: nowrap;
}

html.dist-rwd-active .dist-page-meta strong {
    color: #eef3f9;
    font-size: 13px;
    font-weight: 900;
}

html.dist-rwd-active .dist-page-meta span:last-child {
    padding-left: 8px;
    border-left: 1px solid #35455a;
}

html.dist-rwd-active .dist-page-meta-icon,
html.dist-rwd-active .dist-summary-icon,
html.dist-rwd-active .dist-action-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

html.dist-rwd-active .dist-page-meta-icon svg,
html.dist-rwd-active .dist-summary-icon svg,
html.dist-rwd-active .dist-action-icon svg {
    width: 100%;
    height: 100%;
}

html.dist-rwd-active .dist-dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

html.dist-rwd-active .dist-action-button,
html.dist-rwd-active .dist-open-full-link {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 13px;
    color: #edf3fa;
    background: #0c1a2c;
    border: 1px solid #354961;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

html.dist-rwd-active .dist-action-button:hover,
html.dist-rwd-active .dist-action-button:focus-visible,
html.dist-rwd-active .dist-open-full-link:hover,
html.dist-rwd-active .dist-open-full-link:focus-visible {
    color: #ffffff;
    background: #142840;
    border-color: #71839a;
    outline: none;
}

html.dist-rwd-active .dist-action-button:active {
    transform: translateY(1px);
}

html.dist-rwd-active .dist-follow-action {
    color: #ff6873;
    border-color: #9b2732;
}

html.dist-rwd-active .dist-follow-action.is-saved {
    color: #ffffff;
    background: linear-gradient(135deg, var(--dist-red-dark), var(--dist-red));
    border-color: #f5515c;
    box-shadow: 0 8px 25px rgba(217, 38, 52, 0.22);
}

html.dist-rwd-active .dist-game-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    margin: 0 0 22px;
    overflow-x: auto;
    border-bottom: 1px solid var(--dist-border-soft);
    scrollbar-width: none;
}

html.dist-rwd-active .dist-game-switcher::-webkit-scrollbar {
    display: none;
}

html.dist-rwd-active .dist-game-tab {
    position: relative;
    display: inline-flex;
    min-width: max-content;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: #b8c3d2;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease;
}

html.dist-rwd-active .dist-game-tab::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    background: transparent;
}

html.dist-rwd-active .dist-game-tab:hover,
html.dist-rwd-active .dist-game-tab:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.025);
    outline: none;
}

html.dist-rwd-active .dist-game-tab.is-active {
    color: #ffffff;
}

html.dist-rwd-active .dist-game-tab.is-active::after {
    background: var(--dist-red);
}

html.dist-rwd-active .dist-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 0.78fr) minmax(250px, 0.82fr);
    align-items: start;
    gap: 16px;
}

html.dist-rwd-active .dist-heatmap,
html.dist-rwd-active .dist-side-card,
html.dist-rwd-active .dist-recent-card,
html.dist-rwd-active .dist-history-details {
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(15, 29, 48, 0.96), rgba(9, 21, 37, 0.98)) !important;
    border: 1px solid var(--dist-border) !important;
    border-radius: 11px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
}

html.dist-rwd-active .dist-heatmap {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    padding: 16px !important;
}

html.dist-rwd-active .dist-heatmap-header {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

html.dist-rwd-active .dist-heatmap-title {
    margin: 0;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.25;
    text-align: left;
}

html.dist-rwd-active .dist-heat-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #aab6c6;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

html.dist-rwd-active .dist-heat-legend i {
    display: inline-block;
    width: 19px;
    height: 11px;
    border-radius: 3px;
}

html.dist-rwd-active .dist-heatmap-grid {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 5px !important;
}

html.dist-rwd-active .dist-heat-cell {
    box-sizing: border-box;
    display: grid !important;
    width: auto !important;
    min-width: 0;
    min-height: 64px !important;
    place-content: center;
    padding: 5px 2px !important;
    color: #eef4fb;
    background: #10345f;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 7px !important;
    line-height: 1 !important;
    text-align: center;
    transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}

html.dist-rwd-active .dist-heat-cell:hover {
    z-index: 1;
    border-color: rgba(255, 255, 255, 0.58) !important;
    filter: brightness(1.08);
    transform: translateY(-2px);
}

html.dist-rwd-active .dist-heat-cell strong {
    display: block;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

html.dist-rwd-active .dist-heat-cell em {
    display: block;
    margin-top: 7px !important;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 800 !important;
    opacity: 0.9;
}

html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-0 {
    color: #8393a9;
    background: #0b203b;
}

.dist-heatmap .dist-heat-cell.heat-level-1,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-1,
html.dist-rwd-active .dist-heat-legend .heat-level-1 {
    color: #eff5fc;
    background: #174784;
    border-color: #225a9f;
}

.dist-heatmap .dist-heat-cell.heat-level-2,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-2,
html.dist-rwd-active .dist-heat-legend .heat-level-2 {
    color: #ffffff;
    background: #2668aa;
    border-color: #347fc3;
}

.dist-heatmap .dist-heat-cell.heat-level-3,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-3,
html.dist-rwd-active .dist-heat-legend .heat-level-3 {
    color: #06213a;
    background: #4ca9ca;
    border-color: #6bc4df;
}

.dist-heatmap .dist-heat-cell.heat-level-4,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-4,
html.dist-rwd-active .dist-heat-legend .heat-level-4 {
    color: #1c2733;
    background: #69cae2;
    border-color: #86d7e9;
}

.dist-heatmap .dist-heat-cell.heat-level-5,
html.dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-5,
html.dist-rwd-active .dist-heat-legend .heat-level-5 {
    color: #211901;
    background: linear-gradient(135deg, #ffe05a, #f6ac17);
    border-color: #ffd43b;
}

html.dist-rwd-active .dist-summary-column {
    display: grid;
    min-width: 0;
    gap: 12px;
}

html.dist-rwd-active .dist-side-card,
html.dist-rwd-active .dist-recent-card {
    padding: 15px;
}

html.dist-rwd-active .dist-side-card h2,
html.dist-rwd-active .dist-recent-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    text-align: left;
}

html.dist-rwd-active .dist-summary-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    color: #9dabbc;
    border-bottom: 1px solid var(--dist-border-soft);
    font-size: 11px;
}

html.dist-rwd-active .dist-summary-row:last-child {
    border-bottom: 0;
}

html.dist-rwd-active .dist-summary-symbol {
    color: var(--dist-cyan);
    font-size: 16px;
    font-weight: 900;
}

html.dist-rwd-active .dist-summary-row strong {
    color: #f0f5fb;
    font-size: 11px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

html.dist-rwd-active .dist-hot-number-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-top: 13px;
}

html.dist-rwd-active .dist-hot-number {
    display: grid;
    min-width: 0;
    aspect-ratio: 1 / 1;
    place-content: center;
    color: #eaf2fb;
    background: #174783;
    border: 1px solid #2867a8;
    border-radius: 999px;
    text-align: center;
}

html.dist-rwd-active .dist-hot-number.is-top {
    color: #201802;
    background: linear-gradient(135deg, #ffe25b, #f4ad18);
    border-color: #ffd439;
}

html.dist-rwd-active .dist-hot-number strong,
html.dist-rwd-active .dist-hot-number small {
    display: block;
}

html.dist-rwd-active .dist-hot-number strong {
    font-size: 11px;
    font-weight: 900;
}

html.dist-rwd-active .dist-hot-number small {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 800;
}

html.dist-rwd-active .dist-focus-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
}

html.dist-rwd-active .dist-focus-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-top: 4px;
    background: #4daacb;
    border-radius: 999px;
}

html.dist-rwd-active .dist-focus-row.is-high .dist-focus-dot {
    background: #f5b01a;
}

html.dist-rwd-active .dist-focus-row.is-low .dist-focus-dot {
    background: #235e9f;
}

html.dist-rwd-active .dist-focus-row strong {
    color: #eef4fa;
    font-size: 11px;
    font-weight: 900;
}

html.dist-rwd-active .dist-focus-row p {
    margin: 4px 0 0;
    overflow: hidden;
    color: #93a2b5;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

html.dist-rwd-active .dist-recent-card {
    min-width: 0;
}

html.dist-rwd-active .dist-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 11px;
}

html.dist-rwd-active .dist-recent-header > span {
    color: #53c1df;
    font-size: 11px;
    font-weight: 900;
}

html.dist-rwd-active .dist-recent-row {
    padding: 12px 0;
    border-top: 1px solid var(--dist-border-soft);
}

html.dist-rwd-active .dist-recent-period {
    display: block;
    margin-bottom: 7px;
    color: #9aa9bb;
    font-size: 11px;
    font-weight: 800;
}

html.dist-rwd-active .dist-recent-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

html.dist-rwd-active .dist-recent-balls span {
    display: inline-grid;
    min-width: 25px;
    height: 24px;
    place-items: center;
    padding: 0 4px;
    color: #f2f6fb;
    background: #111f31;
    border: 1px solid #334760;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 900;
}

html.dist-rwd-active .dist-recent-balls span.RK10DBlue {
    color: #ffffff;
    background: #235ba4;
    border-color: #4380ca;
}

html.dist-rwd-active .dist-recent-balls span.RK10Red {
    color: #ffffff;
    background: #bc2635;
    border-color: #ef4a58;
}

html.dist-rwd-active .dist-history-details {
    display: block;
    margin-top: 16px;
    overflow: hidden;
}

html.dist-rwd-active .dist-history-summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #dce6f2;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

html.dist-rwd-active .dist-history-summary::-webkit-details-marker {
    display: none;
}

html.dist-rwd-active .dist-history-summary::after {
    content: "+";
    color: #66c8df;
    font-size: 20px;
}

html.dist-rwd-active .dist-history-details[open] .dist-history-summary::after {
    content: "−";
}

html.dist-rwd-active .dist-mobile-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 12px 12px;
}

html.dist-rwd-active .dist-mobile-card {
    gap: 8px !important;
    padding: 10px !important;
    background: #0b1829 !important;
    border: 1px solid #283a52 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

html.dist-rwd-active .dist-mobile-period {
    justify-content: flex-start !important;
    color: #dfe8f3 !important;
}

html.dist-rwd-active .dist-mobile-balls {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 5px !important;
}

html.dist-rwd-active .dist-mobile-ball,
html.dist-rwd-active .dist-mobile-empty {
    width: 25px !important;
    min-height: 25px !important;
    color: #e9f0f8 !important;
    background: #12243a !important;
    border-color: #35516f !important;
}

html.dist-rwd-active .dist-copy-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 12100;
    max-width: min(340px, calc(100vw - 32px));
    padding: 13px 16px;
    color: #f4fff8;
    background: #14263a;
    border: 1px solid #4a725e;
    border-radius: 9px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 160ms ease, transform 160ms ease;
}

html.dist-rwd-active .dist-copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html.dist-rwd-active .dist-manual-copy {
    position: fixed;
    inset: 0;
    z-index: 12120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 8, 18, 0.78);
}

html.dist-rwd-active .dist-manual-copy.is-visible {
    display: flex;
}

html.dist-rwd-active .dist-manual-copy-card {
    box-sizing: border-box;
    width: min(620px, 100%);
    padding: 16px;
    background: #0d1b2c;
    border: 1px solid #3d526d;
    border-radius: 11px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

html.dist-rwd-active .dist-manual-copy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

html.dist-rwd-active .dist-manual-copy-header strong {
    color: #ffffff;
    font-size: 13px;
}

html.dist-rwd-active .dist-manual-copy-header button {
    min-height: 34px;
    padding: 6px 11px;
    color: #dce6f2;
    background: #14263b;
    border: 1px solid #3a4f69;
    border-radius: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
}

html.dist-rwd-active .dist-manual-copy-text {
    box-sizing: border-box;
    width: 100%;
    min-height: 150px;
    margin-top: 12px;
    padding: 12px;
    color: #e9f0f8;
    background: #07111f;
    border: 1px solid #334861;
    border-radius: 8px;
    font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    resize: vertical;
}

html.dist-embed-mode body > .h8-mobile-header,
html.dist-embed-mode .dist-game-switcher,
html.dist-embed-mode .dist-history-details,
html.dist-embed-mode .dist-action-button {
    display: none !important;
}

html.dist-embed-mode .dist-rwd-page {
    padding: 12px !important;
}

html.dist-embed-mode .dist-dashboard-hero {
    grid-template-columns: minmax(0, 1fr) auto;
}

html.dist-embed-mode .dist-page-meta {
    display: none;
}

@media (max-width: 1180px) {
    html.dist-rwd-active .dist-dashboard-hero {
        grid-template-columns: minmax(280px, 1fr) auto;
    }

    html.dist-rwd-active .dist-page-meta {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    html.dist-rwd-active .dist-dashboard-actions {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    html.dist-rwd-active .dist-dashboard-grid {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
    }

    html.dist-rwd-active .dist-recent-column {
        grid-column: 1 / -1;
    }

    html.dist-rwd-active .dist-recent-card {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0 12px;
    }

    html.dist-rwd-active .dist-recent-header {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html.dist-rwd-active .h8-mobile-header-inner {
        max-width: 100%;
        height: 64px;
        min-height: 64px;
        padding: 8px 10px;
        gap: 6px;
    }

    html.dist-rwd-active .h8-mobile-brand {
        flex-basis: 72px;
        width: 72px;
        max-width: 20vw;
    }

    html.dist-rwd-active .h8-language-form {
        flex: 0 1 72px;
        width: 72px;
    }

    html.dist-rwd-active .dist-rwd-page {
        width: 100% !important;
        max-width: 100% !important;
        padding: 80px 12px 18px !important;
    }

    html.dist-rwd-active .dist-dashboard-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 15px;
    }

    html.dist-rwd-active .dist-dashboard-title {
        font-size: clamp(24px, 7.5vw, 32px);
    }

    html.dist-rwd-active .dist-dashboard-subtitle {
        display: none;
    }

    html.dist-rwd-active .dist-page-meta {
        grid-column: auto;
        grid-row: auto;
        min-height: 26px;
    }

    html.dist-rwd-active .dist-page-meta span:last-child {
        display: none;
    }

    html.dist-rwd-active .dist-dashboard-actions {
        display: grid;
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    html.dist-rwd-active .dist-action-button,
    html.dist-rwd-active .dist-open-full-link {
        min-width: 0;
        min-height: 46px;
        padding: 8px 5px;
        font-size: 12px;
    }

    html.dist-rwd-active .dist-game-switcher {
        margin-bottom: 14px;
    }

    html.dist-rwd-active .dist-game-tab {
        min-height: 51px;
        padding: 0 18px;
        font-size: 13px;
    }

    html.dist-rwd-active .dist-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    html.dist-rwd-active .dist-heatmap {
        grid-column: 1 / -1;
        padding: 11px !important;
    }

    html.dist-rwd-active .dist-heatmap-header {
        align-items: flex-start;
        margin-bottom: 10px;
    }

    html.dist-rwd-active .dist-heatmap-title {
        font-size: 15px !important;
    }

    html.dist-rwd-active .dist-heat-legend {
        gap: 3px;
        font-size: 9px;
    }

    html.dist-rwd-active .dist-heat-legend i {
        width: 13px;
        height: 9px;
    }

    html.dist-rwd-active .dist-heatmap-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
        gap: 3px !important;
    }

    html.dist-rwd-active .dist-heat-cell {
        min-height: 52px !important;
        padding: 4px 1px !important;
        border-radius: 5px !important;
    }

    html.dist-rwd-active .dist-heat-cell strong {
        font-size: 12px !important;
    }

    html.dist-rwd-active .dist-heat-cell em {
        margin-top: 5px !important;
        font-size: 9px !important;
    }

    html.dist-rwd-active .dist-hot-card,
    html.dist-rwd-active .dist-focus-card {
        display: none;
    }

    html.dist-rwd-active .dist-summary-column,
    html.dist-rwd-active .dist-recent-column {
        grid-column: auto;
        min-width: 0;
    }

    html.dist-rwd-active .dist-side-card,
    html.dist-rwd-active .dist-recent-card {
        height: 100%;
        padding: 12px;
    }

    html.dist-rwd-active .dist-summary-row {
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 6px;
    }

    html.dist-rwd-active .dist-summary-row strong {
        grid-column: 2;
        text-align: left;
        white-space: normal;
    }

    html.dist-rwd-active .dist-recent-card {
        display: block;
    }

    html.dist-rwd-active .dist-recent-row:nth-of-type(n+4) {
        display: none;
    }

    html.dist-rwd-active .dist-recent-balls span {
        min-width: 23px;
        height: 22px;
        font-size: 9px;
    }

    html.dist-rwd-active .dist-mobile-list {
        grid-template-columns: 1fr !important;
    }

    html.dist-rwd-active .dist-copy-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
        text-align: center;
    }

    html.dist-embed-mode .dist-dashboard-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 370px) {
    html.dist-rwd-active .dist-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    html.dist-rwd-active .dist-summary-column,
    html.dist-rwd-active .dist-recent-column {
        grid-column: 1;
    }

    html.dist-rwd-active .dist-action-label {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.dist-rwd-active .dist-heat-cell,
    html.dist-rwd-active .dist-action-button,
    html.dist-rwd-active .dist-copy-toast {
        transition: none !important;
    }
}

/* Light counterpart for the analytics heat-map workspace. */
html[data-h8-theme="light"].dist-rwd-active {
    --dist-bg: #f7f9fc;
    --dist-surface: #ffffff;
    --dist-surface-strong: #f4f7fb;
    --dist-border: #d9e2ee;
    --dist-border-soft: #e8edf4;
    --dist-text: #142236;
    --dist-muted: #66758a;
    --dist-red: #d72f3b;
    --dist-red-dark: #b51b2b;
    --dist-cyan: #1687a7;
    background: var(--dist-bg) !important;
}

html[data-h8-theme="light"].dist-rwd-active body {
    color: var(--dist-text) !important;
    background:
        radial-gradient(circle at 16% 0%, rgba(89, 197, 223, 0.12), transparent 31rem),
        linear-gradient(180deg, #ffffff 0%, var(--dist-bg) 100%) !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-dashboard {
    color: var(--dist-text);
}

html[data-h8-theme="light"].dist-rwd-active .dist-dashboard-hero,
html[data-h8-theme="light"].dist-rwd-active .dist-game-switcher {
    border-color: var(--dist-border);
}

html[data-h8-theme="light"].dist-rwd-active .dist-dashboard-title,
html[data-h8-theme="light"].dist-rwd-active .dist-heatmap-title,
html[data-h8-theme="light"].dist-rwd-active .dist-side-card h2,
html[data-h8-theme="light"].dist-rwd-active .dist-recent-card h2,
html[data-h8-theme="light"].dist-rwd-active .dist-manual-copy-header strong {
    color: var(--dist-text) !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-dashboard-subtitle,
html[data-h8-theme="light"].dist-rwd-active .dist-page-meta,
html[data-h8-theme="light"].dist-rwd-active .dist-heat-legend,
html[data-h8-theme="light"].dist-rwd-active .dist-summary-row,
html[data-h8-theme="light"].dist-rwd-active .dist-focus-row p,
html[data-h8-theme="light"].dist-rwd-active .dist-recent-period {
    color: var(--dist-muted) !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-page-meta strong,
html[data-h8-theme="light"].dist-rwd-active .dist-summary-row strong,
html[data-h8-theme="light"].dist-rwd-active .dist-focus-row strong,
html[data-h8-theme="light"].dist-rwd-active .dist-history-summary,
html[data-h8-theme="light"].dist-rwd-active .dist-mobile-period {
    color: var(--dist-text) !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-page-meta span:last-child {
    border-color: var(--dist-border);
}

html[data-h8-theme="light"].dist-rwd-active .dist-action-button,
html[data-h8-theme="light"].dist-rwd-active .dist-open-full-link {
    color: #263a55;
    background: #ffffff;
    border-color: #cbd7e5;
}

html[data-h8-theme="light"].dist-rwd-active .dist-action-button:hover,
html[data-h8-theme="light"].dist-rwd-active .dist-action-button:focus-visible,
html[data-h8-theme="light"].dist-rwd-active .dist-open-full-link:hover,
html[data-h8-theme="light"].dist-rwd-active .dist-open-full-link:focus-visible {
    color: #142236;
    background: #f3f7fb;
    border-color: #8294aa;
}

html[data-h8-theme="light"].dist-rwd-active .dist-follow-action {
    color: #c42230;
    border-color: #e9a9af;
}

html[data-h8-theme="light"].dist-rwd-active .dist-follow-action.is-saved {
    color: #ffffff;
}

html[data-h8-theme="light"].dist-rwd-active .dist-game-tab {
    color: #65758a;
}

html[data-h8-theme="light"].dist-rwd-active .dist-game-tab:hover,
html[data-h8-theme="light"].dist-rwd-active .dist-game-tab:focus-visible {
    color: #142236;
    background: #f1f5f9;
}

html[data-h8-theme="light"].dist-rwd-active .dist-game-tab.is-active {
    color: #142236;
}

html[data-h8-theme="light"].dist-rwd-active .dist-heatmap,
html[data-h8-theme="light"].dist-rwd-active .dist-side-card,
html[data-h8-theme="light"].dist-rwd-active .dist-recent-card,
html[data-h8-theme="light"].dist-rwd-active .dist-history-details {
    background: #ffffff !important;
    border-color: var(--dist-border) !important;
    box-shadow: 0 12px 34px rgba(20, 34, 54, 0.08) !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-heat-cell {
    color: #31445d;
    background: #eef3f8;
    border-color: #dfe7f0 !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-heat-cell:hover {
    border-color: #607a98 !important;
    filter: brightness(0.99) saturate(1.08);
}

html[data-h8-theme="light"].dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-0 {
    color: #7a8ba1;
    background: #edf2f7;
}

html[data-h8-theme="light"].dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-1,
html[data-h8-theme="light"].dist-rwd-active .dist-heat-legend .heat-level-1 {
    color: #29496e;
    background: #dbeafe;
    border-color: #bfdbfe;
}

html[data-h8-theme="light"].dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-2,
html[data-h8-theme="light"].dist-rwd-active .dist-heat-legend .heat-level-2 {
    color: #153c67;
    background: #93c5fd;
    border-color: #60a5fa;
}

html[data-h8-theme="light"].dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-3,
html[data-h8-theme="light"].dist-rwd-active .dist-heat-legend .heat-level-3 {
    color: #164e63;
    background: #67e8f9;
    border-color: #22d3ee;
}

html[data-h8-theme="light"].dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-4,
html[data-h8-theme="light"].dist-rwd-active .dist-heat-legend .heat-level-4 {
    color: #083344;
    background: #22d3ee;
    border-color: #06b6d4;
}

html[data-h8-theme="light"].dist-rwd-active .dist-heatmap .dist-heat-cell.heat-level-5,
html[data-h8-theme="light"].dist-rwd-active .dist-heat-legend .heat-level-5 {
    color: #382b02;
    background: linear-gradient(135deg, #ffe066, #f5b642);
    border-color: #e6a52d;
}

html[data-h8-theme="light"].dist-rwd-active .dist-summary-row,
html[data-h8-theme="light"].dist-rwd-active .dist-recent-row {
    border-color: var(--dist-border-soft);
}

html[data-h8-theme="light"].dist-rwd-active .dist-hot-number {
    color: #234c7a;
    background: #dbeafe;
    border-color: #93c5fd;
}

html[data-h8-theme="light"].dist-rwd-active .dist-hot-number.is-top {
    color: #382b02;
    background: linear-gradient(135deg, #ffe066, #f5b642);
    border-color: #e6a52d;
}

html[data-h8-theme="light"].dist-rwd-active .dist-recent-balls span {
    color: #31445d;
    background: #f4f7fb;
    border-color: #d9e2ee;
}

html[data-h8-theme="light"].dist-rwd-active .dist-mobile-card {
    background: #f8fafc !important;
    border-color: #d9e2ee !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-mobile-ball,
html[data-h8-theme="light"].dist-rwd-active .dist-mobile-empty {
    color: #31445d !important;
    background: #ffffff !important;
    border-color: #cfdbe8 !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-mobile-ball.RK10DBlue,
html[data-h8-theme="light"].dist-rwd-active .dist-recent-balls span.RK10DBlue {
    color: #ffffff !important;
    background: #2563a9 !important;
    border-color: #1d4f8b !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-mobile-ball.RK10Red,
html[data-h8-theme="light"].dist-rwd-active .dist-recent-balls span.RK10Red {
    color: #ffffff !important;
    background: #c92d3b !important;
    border-color: #a91f2d !important;
}

html[data-h8-theme="light"].dist-rwd-active .dist-copy-toast {
    color: #174a35;
    background: #ecfdf5;
    border-color: #86d6b5;
    box-shadow: 0 18px 52px rgba(20, 34, 54, 0.16);
}

html[data-h8-theme="light"].dist-rwd-active .dist-manual-copy {
    background: rgba(20, 34, 54, 0.5);
}

html[data-h8-theme="light"].dist-rwd-active .dist-manual-copy-card {
    background: #ffffff;
    border-color: #d3deea;
    box-shadow: 0 28px 80px rgba(20, 34, 54, 0.22);
}

html[data-h8-theme="light"].dist-rwd-active .dist-manual-copy-header button {
    color: #263a55;
    background: #f4f7fb;
    border-color: #cbd7e5;
}

html[data-h8-theme="light"].dist-rwd-active .dist-manual-copy-text {
    color: #142236;
    background: #f8fafc;
    border-color: #cbd7e5;
}
