﻿:root {
    --gap: 16px;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-radius: 12px;
    --page-bg: #000;
    --text: #111827;
    --muted: #6b7280;
}

/* Page scaffold */
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--page-bg);
    color: var(--text);
    line-height: 1.5;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

h1 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

/* The grid: 3 columns on desktop, 1 column on mobile */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* desktop */
    gap: var(--gap);
}

/* Mobile breakpoint: stack to 1 column */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr; /* mobile */
    }
}

/* === Card container === */
.card {
    background: #1e1e2f;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: #e4e4e7;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Outer wrapper */
.outerbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* === Tables === */
.resultTable2 {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #2a2a3d;
    border-radius: 8px;
    overflow: hidden;
}

    /* Table rows */
    .resultTable2 tr {
        border-bottom: 1px solid #383850;
    }

        .resultTable2 tr:last-child {
            border-bottom: none;
        }

    /* Table cells */
    .resultTable2 td {
        padding: 10px 12px;
        color: #e4e4e7;
        font-size: 0.95rem;
    }

/* === Labels === */
.resultm4dlable {
    font-weight: 600;
    color: #facc15; /* golden yellow */
}

.resultdrawdate {
    font-size: 0.9rem;
    color: #a1a1aa;
}

.resultprizelable {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #3b3b54;
    color: #f5f5f7;
    text-align: center;
}

/* === Prize numbers === */
.resulttop {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    color: #22c55e; /* green highlight */
}

.resultbottom {
    text-align: center;
    font-size: 1rem;
    color: #e4e4e7;
}

    /* Special visual highlight for missing/empty results */
    .resultbottom:empty,
    .resultbottom:has(> :empty),
    .resultbottom:contains("----") {
        color: #6b7280;
        font-style: italic;
    }

/* Image in header */
.resultTable2 img {
    display: block;
    border-radius: 4px;
}

/* === Responsive === */
@media (max-width: 600px) {
    .resultTable2 td {
        font-size: 0.85rem;
        padding: 8px;
    }

    .resulttop {
        font-size: 1.1rem;
    }
}
