:root {
    --navy: #080e5b;
    --blue: #0869c9;
    --ink: #101747;
    --muted: #64708c;
    --line: #dbe3f2;
    --gold: #ffd166
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: linear-gradient(180deg,#eaf2ff,#f7f9ff 42%,#e9efff);
    font-family: Arial,Helvetica,sans-serif;
    color: var(--ink)
}

header {
    background: linear-gradient(110deg,#075cc1,#0878d8 60%,#0755b1);
    color: white;
    padding: 16px clamp(14px,3vw,34px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 5px 18px #001b6333
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: white;
    color: #0869c9;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 4px 12px #00245a55
}

h1 {
    font-size: 27px;
    margin: 0;
    letter-spacing: -1px;
    border: 0;
}

    h1:focus,
    h1:active,
    a:focus h1 {
        outline: none;
        box-shadow: none;
    }

.tagline {
    font-size: 11px;
    opacity: .82;
    margin-top: 3px
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.live {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    display: flex;
    gap: 7px;
    align-items: center
}

.dot {
    width: 8px;
    height: 8px;
    background: #78f3ac;
    border-radius: 50%
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #17224a;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700
}

    .date-picker input {
        border: 0;
        outline: 0;
        color: #17224a;
        font: inherit;
        background: transparent;
        width: 135px
    }

main {
    max-width: 1600px;
    margin: auto;
    padding: 18px clamp(10px,2vw,24px) 30px
}

.topline {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 2px 14px
}

    .topline h2 {
        margin: 0;
        font-size: 21px;
        letter-spacing: -.6px
    }

    .topline p {
        margin: 5px 0 0;
        font-size: 12px;
        color: var(--muted)
    }

.date-label {
    color: #075db9;
    font-weight: 800;
    font-size: 12px
}

.layout {
    display: grid;
    grid-template-columns: minmax(210px,1fr) minmax(300px,1.85fr) minmax(210px,1fr);
    gap: 14px;
    align-items: start
}

.side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0
}

.category {
    border: 1px solid #ffffffa8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px #142d6515;
    background: white
}

.category-head {
    padding: 10px 12px;
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em
}

.count {
    font-size: 10px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    background: #ffffff2b;
    padding: 4px 6px;
    border-radius: 20px;
    white-space: nowrap
}

.draw-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.draw {
    border: 1px solid #e0e7f3;
    border-radius: 9px;
    overflow: hidden;
    background: #fff
}

.draw-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    background: #f3f6fc;
    font-size: 10px;
    color: #465271;
    font-weight: 800
}

    .draw-top .time {
        color: #17224a;
        white-space: nowrap
    }

.numbers {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 4px;
    padding: 6px
}

.numbers_1 {
    display: grid;
    grid-template-columns: repeat(1,minmax(0,1fr));
    gap: 4px;
    padding: 6px
}

.numbers_3 {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 4px;
    padding: 6px
}

.numbers_4 {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 4px;
    padding: 6px
}

.number {
    display: grid;
    place-items: center;
    min-height: 35px;
    border: 1px solid #d8e0ee;
    border-radius: 5px;
    font-size: clamp(17px,1.6vw,23px);
    font-weight: 900;
    letter-spacing: -.5px;
    color: #10142c;
    background: linear-gradient(180deg,#fff,#f0f3fa)
}

.draw .latest-draw {
    border: 2px solid #ffbf3f;
    box-shadow: 0 0 0 2px #ffbf3f20
}

.latest-tag {
    background: #fff1c9;
    color: #7b4d00;
    border-radius: 4px;
    padding: 3px 5px;
    font-size: 9px;
    font-weight: 900
}

.center {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0
}

.hero {
    background: linear-gradient(135deg,#0875d6,#0750b3 70%,#062c88);
    border-radius: 16px;
    padding: 16px;
    color: white;
    box-shadow: 0 10px 24px #0756b533;
    position: relative;
    overflow: hidden
}

    .hero:after {
        content: "";
        position: absolute;
        width: 210px;
        height: 210px;
        border-radius: 50%;
        right: -95px;
        top: -110px;
        border: 30px solid #ffffff12;
        pointer-events: none
    }

.hero-label {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
    color: #ffdf80
}

.hero h2 {
    margin: 7px 0 3px;
    font-size: clamp(20px,2vw,28px);
    letter-spacing: -.7px
}

.hero .meta {
    font-size: 11px;
    color: #d5e9ff
}

.hero-balls {
    display: flex;
    justify-content: center;
    gap: clamp(7px,1.5vw,15px);
    margin: 20px 0 14px;
    flex-wrap: wrap
}

.hero-ball {
    width: clamp(64px,5.3vw,86px);
    height: clamp(64px,5.3vw,86px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#fff,#e8efff);
    border: 5px solid #e94a4f;
    color: #10142c;
    font-size: clamp(21px,2.6vw,32px);
    font-weight: 950;
    box-shadow: 0 5px 12px #001d6844
}


.hero-ball-single {
    width: clamp(84px,5.3vw,86px);
    height: clamp(84px,5.3vw,86px);
    font-size: clamp(21px,2.0vw,32px);
}


.hero-foot {
    font-size: 11px;
    color: #d9eaff;
    text-align: center;
    line-height: 1.5
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 0 2px
}

    .section-title h3 {
        margin: 0;
        font-size: 15px
    }

    .section-title span {
        font-size: 11px;
        color: var(--muted)
    }

.feed {
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 5px 16px #142d650d
}

.feed-row {
    display: grid;
    grid-template-columns: minmax(90px,.85fr) minmax(100px,1fr);
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-bottom: 1px solid #edf0f7
}

    .feed-row:last-child {
        border-bottom: 0
    }

.feed-name {
    font-size: 11px;
    font-weight: 900
}

.feed-time {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px
}

.feed-balls {
    display: flex;
    gap: 4px;
    flex-wrap: wrap
}

.feed-ball {
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f0f3fb;
    border: 1px solid #dbe3f1;
    font-size: 17px;
    font-weight: 900
}

.feed-cat {
    width: 5px;
    height: 30px;
    border-radius: 6px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px
}

footer {
    text-align: center;
    color: #71809f;
    font-size: 10px;
    padding: 18px 0 0
}

@media(max-width:1000px) {
    .layout {
        grid-template-columns: minmax(175px,1fr) minmax(270px,1.5fr) minmax(175px,1fr);
        gap: 9px
    }

    .category-head {
        padding: 9px;
        font-size: 10px
    }

    .draw-list {
        padding: 6px;
        gap: 6px
    }

    .number {
        min-height: 30px
    }

    .feed-row {
        grid-template-columns: 1fr 1fr
    }

    .feed-balls {
        grid-column: 1/-1
    }
}

@media(max-width:720px) {
    header {
        align-items: flex-start
    }

    .layout {
        grid-template-columns: 1fr 1fr
    }

    .center {
        grid-column: 1/-1;
        grid-row: 1
    }

    .side {
        grid-row: 2
    }


    .hero {
        padding: 20px
    }

    .hero-ball {
        width: 72px;
        height: 72px
    }

    .topline {
        align-items: flex-start
    }
}

@media(max-width:480px) {
    header {
        padding: 12px;
        flex-direction: column
    }

    .header-right {
        justify-content: space-between;
        width: 100%
    }

    .date-picker {
        flex: 1;
        justify-content: space-between
    }

        .date-picker input {
            width: 125px
        }

    .layout {
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .side {
        gap: 8px
    }

    .category-head {
        font-size: 9px;
        align-items: flex-start;
        flex-direction: column
    }

    .count {
        font-size: 9px
    }

    .draw-top {
        font-size: 9px;
        padding: 6px
    }

    .numbers {
        gap: 3px;
        padding: 4px
    }

    .number {
        font-size: 16px;
        min-height: 29px
    }

    .feed-row {
        grid-template-columns: 1fr auto
    }

    .feed-balls {
        grid-column: 1/-1
    }

    .hero h2 {
        font-size: 22px
    }
}

.bounce-me {
    /* CRITICAL: Allows the span to accept transforms and spacing */
    display: inline-block;
    /* Shorthand: name | duration | timing-function | iteration-count */
    animation: bounce 0.6s ease-in-out infinite alternate;
    align-content:center;
}

@keyframes bounce {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 7px rgba(0, 0, 0, 0.15);
    display: none; /* <--- THIS IS THE CRITICAL LINE */
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }