:root{
    --navy-950:#06162d;
    --navy-900:#081d3a;
    --navy-800:#0b2b57;
    --navy-700:#0d3a78;
    --blue:#1768d8;
    --gold:#f2bf44;
    --gold-2:#ffd873;
    --cream:#fff8e7;
    --paper:#ffffff;
    --ink:#12233f;
    --muted:#617089;
    --line:#dce5ef;
    --bg:#eef3f8;
    --shadow:0 16px 40px rgba(7,29,58,.12);
    --radius:22px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:Tahoma,Arial,sans-serif;
    font-size:17px;
    line-height:1.55;
}
a{color:inherit}
img{max-width:100%;height:auto}
button,input,select{font:inherit}
button{cursor:pointer}

.site-header{
    background:
        radial-gradient(circle at 82% 0%, rgba(32,92,164,.22), transparent 34%),
        linear-gradient(135deg,var(--navy-950),var(--navy-900));
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
    max-width:1440px;
    margin:auto;
    min-height:96px;
    display:flex;
    align-items:center;
    gap:30px;
    padding:18px 28px;
}
.brand{
    display:inline-flex;
    flex-direction:column;
    text-decoration:none;
    line-height:1;
    min-width:max-content;
}
.brand-main{
    font-size:39px;
    font-weight:900;
    letter-spacing:-1.5px;
}
.brand-ball{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    margin-left:5px;
    border-radius:50%;
    background:var(--gold);
    color:var(--navy-950);
    font-size:18px;
    vertical-align:8px;
}
.brand-sub{
    color:var(--gold);
    font-weight:800;
    font-size:17px;
    margin-top:5px;
}

.main-nav{
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
    flex-wrap:wrap;
}
.main-nav a{
    text-decoration:none;
    color:#fff;
    font-size:16px;
    font-weight:700;
    padding:12px 13px;
    border-radius:11px;
    white-space:nowrap;
}
.main-nav a:hover,
.main-nav a.active{
    background:rgba(255,255,255,.08);
    color:var(--gold-2);
}

.menu-toggle{
    display:none;
    width:48px;
    height:48px;
    margin-left:auto;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.06);
    border-radius:11px;
}
.menu-toggle span{
    display:block;
    width:24px;
    height:2px;
    margin:5px auto;
    background:#fff;
}

.page-shell{
    max-width:1440px;
    margin:0 auto;
    padding:22px 28px 44px;
}

/* LATEST */
.latest-shell{
    background:
        radial-gradient(circle at 80% 10%,rgba(37,108,194,.23),transparent 30%),
        linear-gradient(145deg,#0b2853,#061a35 65%,#081d3a);
    color:#fff;
    border-radius:var(--radius);
    padding:28px;
    box-shadow:var(--shadow);
    overflow:hidden;
    position:relative;
}
.latest-shell:after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 18% 18%,rgba(242,191,68,.12),transparent 2px),
        radial-gradient(circle at 70% 12%,rgba(242,191,68,.08),transparent 3px),
        radial-gradient(circle at 90% 26%,rgba(242,191,68,.08),transparent 2px);
    background-size:180px 160px,260px 190px,210px 170px;
}
.latest-shell > *{position:relative;z-index:1}
.latest-topline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-bottom:22px;
}
.latest-title-wrap{
    display:flex;
    align-items:center;
    gap:15px;
}
.trophy{font-size:42px}
.eyebrow{
    margin:0 0 4px;
    font-size:15px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#53719b;
}
.eyebrow-gold{color:var(--gold)}
.latest-title-wrap h1{
    margin:0;
    font-size:38px;
    line-height:1.15;
}
.draw-date{
    background:rgba(255,255,255,.07);
    border:1px solid rgba(242,191,68,.4);
    border-radius:13px;
    padding:11px 15px;
    font-size:16px;
}
.draw-date span{opacity:.8;margin-right:6px}
.draw-date strong{color:var(--gold-2)}

.latest-grid{
    display:grid;
    grid-template-columns:minmax(310px,.95fr) minmax(520px,1.75fr) minmax(250px,.75fr);
    gap:18px;
    align-items:stretch;
}
.first-prize-card,
.small-prize-card,
.other-prizes,
.latest-stat-card{
    border:1px solid rgba(255,255,255,.23);
    background:rgba(3,18,39,.5);
    border-radius:17px;
}
.first-prize-card{
    padding:28px;
    min-height:300px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    border-color:rgba(242,191,68,.72);
    box-shadow:inset 0 0 0 2px rgba(242,191,68,.08),0 0 28px rgba(242,191,68,.07);
}
.prize-label{
    font-size:18px;
    font-weight:900;
    color:#fff;
}
.first-prize-number{
    font-size:68px;
    line-height:1;
    font-weight:900;
    color:var(--gold-2);
    letter-spacing:2px;
    margin:28px 0;
    text-shadow:0 4px 24px rgba(242,191,68,.2);
}
.gold-button{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:50px;
    padding:12px 20px;
    border:1px solid rgba(242,191,68,.6);
    border-radius:11px;
    text-decoration:none;
    color:#fff;
    font-size:17px;
    font-weight:800;
    background:linear-gradient(180deg,rgba(157,107,12,.65),rgba(84,55,5,.68));
}
.secondary-prizes{
    display:flex;
    flex-direction:column;
    gap:16px;
}
.small-prize-grid{
    display:grid;
    grid-template-columns:1fr 1fr .72fr;
    gap:14px;
}
.small-prize-card{
    min-height:166px;
    padding:22px 18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
}
.small-prize-card.highlight{
    border-color:rgba(242,191,68,.7);
}
.pair-number{
    display:flex;
    justify-content:center;
    gap:32px;
    margin-top:20px;
}
.pair-number strong{
    font-size:35px;
    line-height:1;
}
.last2-number{
    margin-top:16px;
    color:var(--gold-2);
    font-size:56px;
    line-height:1;
    font-weight:900;
}
.other-prizes{
    padding:18px 22px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:0;
}
.other-prizes div{
    text-align:center;
    padding:6px 10px;
    border-right:1px solid rgba(255,255,255,.12);
}
.other-prizes div:last-child{border-right:0}
.other-prizes span{
    display:block;
    font-size:15px;
    margin-bottom:5px;
    color:#d6dfec;
}
.other-prizes strong{font-size:17px}
.latest-stat-card{
    padding:25px 22px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
    border-color:rgba(242,191,68,.65);
}
.starline{
    color:var(--gold-2);
    font-size:17px;
    font-weight:900;
}
.stat-big{
    margin:16px 0 4px;
    font-size:43px;
    font-weight:900;
    color:var(--gold-2);
}
.latest-stat-card p{
    font-size:16px;
    margin:0 0 20px;
    color:#e5ecf6;
}
.latest-stat-card a{
    text-decoration:none;
    padding:12px 14px;
    border:1px solid rgba(242,191,68,.6);
    border-radius:10px;
    color:var(--gold-2);
    font-size:16px;
    font-weight:900;
}

/* ADS */
.ad-slot-wrap{padding:24px 0}
.ad-slot{
    max-width:970px;
    min-height:180px;
    margin:auto;
    border:1px dashed #a9b6c9;
    border-radius:15px;
    background:linear-gradient(135deg,#dce4ef,#eff3f7);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#77859a;
    text-align:center;
}
.ad-slot strong{font-size:22px}
.ad-slot span{font-size:16px;margin-top:4px}

/* STATISTICS */
.stats-shell{
    background:#fff;
    border-radius:var(--radius);
    padding:28px;
    box-shadow:var(--shadow);
}
.stats-hero{
    display:grid;
    grid-template-columns:1.45fr .8fr;
    gap:30px;
    align-items:center;
    padding:6px 4px 24px;
}
.stats-heading{
    display:flex;
    align-items:flex-start;
    gap:18px;
}
.stats-icon{
    width:58px;
    height:58px;
    border-radius:16px;
    background:linear-gradient(135deg,#0d3a78,#1768d8);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    font-weight:900;
    flex:0 0 auto;
}
.stats-heading h2{
    margin:0;
    font-size:34px;
    line-height:1.2;
    color:#102d56;
}
.stats-lead{
    margin:10px 0 0;
    color:var(--muted);
    font-size:18px;
}
.stats-points{
    display:grid;
    gap:10px;
    padding:18px 20px;
    background:#f5f8fc;
    border-radius:14px;
    font-size:16px;
    font-weight:700;
    color:#27466f;
}

.search-panel{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:20px;
    border:1px solid var(--line);
    background:#f8fafc;
    border-radius:16px;
    padding:18px;
}
.lotto-search label,
.quick-title{
    display:block;
    font-size:17px;
    font-weight:900;
    margin-bottom:9px;
}
.search-row{
    display:flex;
    gap:9px;
}
.search-row input{
    width:100%;
    min-height:52px;
    border:1px solid #bdc9d9;
    background:#fff;
    border-radius:10px;
    padding:11px 14px;
    font-size:18px;
    color:var(--ink);
}
.search-row button{
    min-width:110px;
    min-height:52px;
    border:0;
    border-radius:10px;
    background:linear-gradient(135deg,#0d3a78,#1768d8);
    color:#fff;
    font-size:18px;
    font-weight:900;
}
.field-help{
    margin:8px 0 0;
    color:var(--muted);
    font-size:15px;
}
.quick-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.quick-list a{
    min-width:48px;
    min-height:44px;
    padding:9px 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    border:1px solid #ccdaec;
    border-radius:9px;
    background:#fff;
    color:#1958a6;
    font-size:17px;
    font-weight:900;
}

.tool-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:18px;
}
.tool-card{
    min-height:205px;
    border-radius:16px;
    padding:18px;
    color:#fff;
    text-decoration:none;
    display:grid;
    grid-template-columns:54px 1fr;
    grid-template-rows:1fr auto;
    gap:12px 14px;
    box-shadow:0 10px 22px rgba(10,38,76,.14);
}
.tool-blue{background:linear-gradient(145deg,#0e4b96,#0a2d5c)}
.tool-indigo{background:linear-gradient(145deg,#3149a2,#15295d)}
.tool-cyan{background:linear-gradient(145deg,#14659c,#0b385f)}
.tool-gold{background:linear-gradient(145deg,#6e5616,#2d270f)}
.tool-green{background:linear-gradient(145deg,#13734f,#0c3f35)}
.tool-purple{background:linear-gradient(145deg,#6842a7,#352060)}
.tool-orange{background:linear-gradient(145deg,#9b5b13,#4b2a0c)}
.tool-teal{background:linear-gradient(145deg,#087a81,#06424a)}
.tool-icon{
    width:54px;
    height:54px;
    border-radius:50%;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.26);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:27px;
    font-weight:900;
}
.tool-copy h3{
    margin:2px 0 6px;
    font-size:21px;
}
.tool-copy p{
    margin:0;
    color:rgba(255,255,255,.86);
    font-size:16px;
}
.tool-cta{
    grid-column:1/-1;
    min-height:44px;
    border:1px solid rgba(255,255,255,.24);
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    font-weight:900;
}

.ranking-section{margin-top:28px}
.ranking-period{
    margin:0 0 8px;
    color:#102d56;
    font-size:28px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:0;
    text-transform:none;
}
.ranking-section .ranking-card{
    background:#fff;
    box-shadow:0 8px 24px rgba(10,38,76,.08);
}
.ranking-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}
.ranking-card{
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px;
}
.ranking-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    margin-bottom:8px;
}
.ranking-head h3{
    margin:0;
    font-size:23px;
}
.ranking-head a{
    text-decoration:none;
    color:#1457a6;
    font-weight:900;
    font-size:16px;
}
.rank-row{
    display:grid;
    grid-template-columns:38px 1fr auto;
    align-items:center;
    gap:10px;
    padding:10px 3px;
    border-bottom:1px solid #e9eef5;
    font-size:17px;
}
.rank-row:last-child{border-bottom:0}
.rank-no{
    width:30px;
    height:30px;
    border-radius:50%;
    background:#f1c34d;
    color:#3e2d03;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}
.rank-row strong{font-size:22px}

/* HISTORY */
.history-shell{
    margin-top:22px;
    background:#fff;
    border-radius:var(--radius);
    padding:24px 28px;
    box-shadow:var(--shadow);
}
.section-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:16px;
}
.section-head h2{
    margin:0;
    font-size:30px;
}
.section-link{
    color:#1457a6;
    text-decoration:none;
    font-size:17px;
    font-weight:900;
}
.recent-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
}
.recent-draw{
    text-decoration:none;
    border:1px solid var(--line);
    border-radius:14px;
    padding:15px;
    background:#f9fbfd;
}
.recent-draw.current{
    border-color:#e7bd53;
    background:#fff9e8;
}
.recent-draw span{
    display:block;
    font-size:16px;
    font-weight:800;
    color:#4c6282;
}
.recent-draw strong{
    display:inline-block;
    margin-top:8px;
    font-size:23px;
}
.recent-draw em{
    float:right;
    margin-top:9px;
    font-style:normal;
    font-size:22px;
    font-weight:900;
    color:#d42727;
}

/* STATE / DISCLAIMER */
.state-box{
    min-height:130px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:6px;
    border:1px dashed rgba(255,255,255,.3);
    border-radius:14px;
    padding:20px;
}
.state-box strong{font-size:20px}
.state-box span{font-size:16px}
.state-light{
    color:var(--ink);
    border-color:#cfd9e5;
    background:#f8fafc;
}
.disclaimer{
    margin-top:20px;
    background:#0a2448;
    color:#fff;
    border-radius:15px;
    padding:17px 20px;
    display:flex;
    gap:12px;
    align-items:flex-start;
}
.disclaimer strong{
    color:var(--gold-2);
    white-space:nowrap;
    font-size:16px;
}
.disclaimer span{font-size:16px}

/* FOOTER */
.site-footer{
    background:linear-gradient(135deg,var(--navy-950),var(--navy-900));
    color:#fff;
    padding:34px 28px 18px;
}
.footer-inner{
    max-width:1440px;
    margin:auto;
    display:grid;
    grid-template-columns:1fr 2fr;
    gap:50px;
}
.footer-logo .brand-main{font-size:34px}
.footer-brand p{
    max-width:320px;
    color:#cbd7e7;
    font-size:16px;
}
.footer-links{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}
.footer-links strong{
    display:block;
    color:var(--gold-2);
    margin-bottom:8px;
    font-size:17px;
}
.footer-links a{
    display:block;
    text-decoration:none;
    color:#dce6f3;
    font-size:16px;
    margin:7px 0;
}
.copyright{
    max-width:1440px;
    margin:28px auto 0;
    border-top:1px solid rgba(255,255,255,.09);
    padding-top:15px;
    color:#9fb1c8;
    font-size:15px;
    text-align:center;
}

/* LARGE TABLET */
@media (max-width:1180px){
    .header-inner{padding:16px 20px}
    .main-nav a{font-size:15px;padding:10px}
    .page-shell{padding:18px 20px 36px}
    .latest-grid{grid-template-columns:1fr 1.55fr}
    .latest-stat-card{grid-column:1/-1;min-height:auto}
    .tool-grid{grid-template-columns:repeat(2,1fr)}
    .recent-grid{grid-template-columns:repeat(3,1fr)}
}

/* MOBILE / TABLET */
@media (max-width:860px){
    body{font-size:17px}

    .header-inner{
        min-height:82px;
        padding:15px 16px;
        flex-wrap:wrap;
    }
    .brand-main{font-size:34px}
    .brand-sub{font-size:16px}
    .menu-toggle{display:block}
    .main-nav{
        display:none;
        width:100%;
        margin:0;
        padding-top:8px;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }
    .main-nav.open{display:grid}
    .main-nav a{
        font-size:16px;
        padding:13px 12px;
        background:rgba(255,255,255,.05);
    }

    .page-shell{
        padding:14px 12px 30px;
    }

    .latest-shell{
        border-radius:18px;
        padding:20px 16px;
    }
    .latest-topline{
        align-items:flex-start;
        flex-direction:column;
    }
    .latest-title-wrap h1{font-size:31px}
    .trophy{font-size:34px}
    .draw-date{
        width:100%;
        font-size:17px;
    }
    .latest-grid{grid-template-columns:1fr}
    .first-prize-card{min-height:250px;padding:24px 16px}
    .first-prize-number{font-size:60px}
    .small-prize-grid{grid-template-columns:1fr 1fr}
    .small-prize-card.highlight{grid-column:1/-1}
    .small-prize-card{min-height:145px}
    .pair-number strong{font-size:32px}
    .last2-number{font-size:52px}
    .other-prizes{grid-template-columns:1fr 1fr}
    .other-prizes div{
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.1);
        padding:12px 8px;
    }
    .other-prizes span{font-size:16px}
    .other-prizes strong{font-size:18px}
    .latest-stat-card{padding:22px 16px}
    .stat-big{font-size:40px}

    .ad-slot-wrap{padding:16px 0}
    .ad-slot{min-height:120px}
    .ad-slot strong{font-size:20px}

    .stats-shell{
        border-radius:18px;
        padding:20px 15px;
    }
    .stats-hero{grid-template-columns:1fr;gap:16px}
    .stats-heading{gap:12px}
    .stats-icon{width:48px;height:48px;font-size:24px}
    .stats-heading h2{font-size:28px}
    .stats-lead{font-size:17px}
    .stats-points{font-size:16px;padding:15px}

    .search-panel{grid-template-columns:1fr;padding:15px}
    .search-row input,.search-row button{font-size:18px}
    .field-help{font-size:16px}

    .tool-grid{grid-template-columns:1fr}
    .tool-card{
        min-height:180px;
        grid-template-columns:50px 1fr;
        padding:17px;
    }
    .tool-icon{width:50px;height:50px;font-size:25px}
    .tool-copy h3{font-size:21px}
    .tool-copy p{font-size:16px}
    .tool-cta{font-size:17px}

    .ranking-grid{grid-template-columns:1fr}
    .ranking-head{align-items:flex-start}
    .ranking-head h3{font-size:22px}
    .rank-row{font-size:17px}

    .history-shell{
        border-radius:18px;
        padding:20px 15px;
    }
    .section-head{
        align-items:flex-start;
        flex-direction:column;
    }
    .section-head h2{font-size:27px}
    .section-link{font-size:17px}
    .recent-grid{grid-template-columns:1fr 1fr}
    .recent-draw span{font-size:16px}
    .recent-draw strong,.recent-draw em{font-size:21px}

    .disclaimer{
        flex-direction:column;
        font-size:16px;
    }
    .disclaimer strong{white-space:normal;font-size:17px}

    .footer-inner{grid-template-columns:1fr;gap:25px}
    .footer-links{grid-template-columns:1fr 1fr}
}

/* SMALL MOBILE */
@media (max-width:520px){
    .header-inner{padding:13px 12px}
    .brand-main{font-size:31px}
    .brand-ball{width:25px;height:25px;font-size:16px}
    .main-nav{grid-template-columns:1fr}

    .page-shell{padding:10px 8px 24px}

    .latest-shell{padding:18px 12px}
    .latest-title-wrap h1{font-size:28px}
    .eyebrow{font-size:15px}
    .draw-date{font-size:16px}
    .first-prize-number{font-size:52px;letter-spacing:1px}
    .small-prize-grid{grid-template-columns:1fr}
    .small-prize-card.highlight{grid-column:auto}
    .pair-number strong{font-size:31px}
    .last2-number{font-size:50px}
    .other-prizes{grid-template-columns:1fr 1fr}

    .stats-shell{padding:18px 12px}
    .stats-heading{display:block}
    .stats-icon{margin-bottom:10px}
    .stats-heading h2{font-size:26px}
    .search-row{flex-direction:column}
    .search-row button{width:100%}
    .quick-list a{min-width:50px}

    .tool-card{
        grid-template-columns:48px 1fr;
        min-height:178px;
    }

    .recent-grid{grid-template-columns:1fr}
    .recent-draw{padding:14px}
    .footer-links{grid-template-columns:1fr}
}

/* No tiny text: important floor */
@media (max-width:860px){
    .main-nav a,
    .prize-label,
    .other-prizes span,
    .latest-stat-card p,
    .latest-stat-card a,
    .stats-points,
    .field-help,
    .tool-copy p,
    .ranking-head a,
    .recent-draw span,
    .footer-brand p,
    .footer-links a,
    .copyright,
    .disclaimer span{
        font-size:16px;
    }
}


/* ---------- REAL DATA / INNER PAGES v2 ---------- */
.live-status{
    display:inline-flex;
    margin-top:8px;
    padding:5px 10px;
    border-radius:999px;
    font-size:15px;
    font-weight:900;
}
.live-status.complete{background:#dff7e8;color:#14723d}
.live-status.pending{background:#fff1b8;color:#775500}
.waiting-main{font-size:31px!important;letter-spacing:0!important}
.waiting-last2{font-size:25px!important}
.waiting-number{font-size:18px!important;color:#ffd873}
.pending-stat{font-size:24px;font-weight:900;color:#ffd873;margin:18px 0}
.stat-loading{color:#d9e3ef!important}

.inner-page{padding-top:28px}
.inner-card{
    background:#fff;
    border-radius:20px;
    padding:28px;
    margin-bottom:20px;
    box-shadow:var(--shadow);
}
.inner-head h1{
    margin:0 0 8px;
    font-size:36px;
    line-height:1.2;
    color:#102d56;
}
.inner-head p:last-child{
    margin:0;
    color:var(--muted);
    font-size:18px;
}
.large-copy{font-size:18px;line-height:1.75;color:#435675}
.latest-page-shell{margin-bottom:20px}

.filter-panel{
    margin-top:20px;
    padding:18px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#f8fafc;
    display:flex;
    align-items:end;
    gap:14px;
    flex-wrap:wrap;
}
.inner-card.result-focus{
    background:linear-gradient(135deg,#eaf1f8 0%,#f4f7fb 100%);
    border:1px solid #b9cce1;
}
.result-focus .period-card,
.result-focus .metric-card{
    background:#fff;
    border-color:#d3dfec;
}
.filter-field{min-width:180px}
.filter-grow{flex:1}
.filter-field label{
    display:block;
    font-size:16px;
    font-weight:900;
    margin-bottom:7px;
}
.filter-field input,
.filter-field select{
    width:100%;
    min-height:50px;
    border:1px solid #bdc9d9;
    border-radius:9px;
    background:#fff;
    padding:10px 12px;
    font-size:17px;
}
.primary-button{
    min-height:50px;
    border:0;
    border-radius:9px;
    padding:11px 20px;
    background:linear-gradient(135deg,#0d3a78,#1768d8);
    color:#fff;
    font-size:17px;
    font-weight:900;
}
.result-focus{text-align:center}
.focus-number{
    margin:5px 0 22px;
    font-size:60px;
    line-height:1;
    color:#0d3a78;
}
.period-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}
.period-card,
.metric-card{
    background:#f5f8fc;
    border:1px solid #dbe5f0;
    border-radius:13px;
    padding:16px;
}
.period-card span,
.metric-card span{
    display:block;
    color:#5f7189;
    font-size:16px;
}
.period-card strong,
.metric-card strong{
    display:block;
    margin-top:7px;
    font-size:23px;
    color:#123e79;
}
.metric-grid{
    margin-top:16px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.date-chip-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
    justify-content:center;
}
.date-chip-list a{
    text-decoration:none;
    padding:9px 12px;
    border-radius:9px;
    background:#eef5ff;
    color:#174f96;
    font-size:16px;
    font-weight:800;
}
.empty-result{
    padding:28px;
    background:#fff7d6;
    border:1px solid #efd26b;
    border-radius:12px;
    color:#684b00;
    font-size:18px;
    font-weight:800;
}

.table-scroll{overflow:auto}
.public-table{
    width:100%;
    min-width:680px;
    border-collapse:collapse;
}
.public-table th{
    text-align:left;
    padding:12px;
    background:#0b2f61;
    color:#fff;
    font-size:16px;
}
.public-table td{
    padding:12px;
    border-bottom:1px solid #e4eaf1;
    font-size:17px;
}
.public-table tbody tr:nth-child(even){background:#f8fafc}
.table-rank{
    display:inline-flex;
    width:32px;
    height:32px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f2bf44;
    color:#3e2d03;
    font-weight:900;
}
.number-link{
    text-decoration:none;
    font-size:22px;
    font-weight:900;
    color:#1358a7;
}

.history-count{
    margin-bottom:14px;
    color:#516882;
    font-size:17px;
    font-weight:800;
}
.history-list{display:grid;gap:14px}
.history-item{
    border:1px solid #dce5ef;
    border-radius:15px;
    padding:18px;
    background:#fbfcfe;
}
.history-date{
    display:flex;
    gap:8px;
    align-items:center;
    margin-bottom:14px;
}
.history-date span{color:#617089;font-size:16px}
.history-date strong{font-size:21px;color:#103b72}
.history-prizes{
    display:grid;
    grid-template-columns:1.2fr 1fr 1.4fr .75fr;
    gap:10px;
}
.history-prizes div{
    background:#fff;
    border:1px solid #e3e9f0;
    border-radius:10px;
    padding:12px;
}
.history-prizes span{
    display:block;
    color:#66758b;
    font-size:15px;
    margin-bottom:5px;
}
.history-prizes strong{
    font-size:19px;
    word-break:break-word;
}
.history-last2 strong{
    color:#d22b2b;
    font-size:28px;
}
.pagination{
    margin-top:20px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:16px;
    font-size:17px;
}
.pagination a{
    text-decoration:none;
    padding:9px 13px;
    border-radius:8px;
    background:#0d3a78;
    color:#fff;
    font-weight:800;
}

@media(max-width:860px){
    .inner-card{padding:20px 15px;border-radius:17px}
    .inner-head h1{font-size:29px}
    .inner-head p:last-child,
    .large-copy{font-size:17px}
    .filter-panel{display:grid;grid-template-columns:1fr}
    .filter-field{min-width:0}
    .filter-field label{font-size:16px}
    .filter-field input,
    .filter-field select,
    .primary-button{font-size:18px}
    .period-grid{grid-template-columns:1fr 1fr}
    .metric-grid{grid-template-columns:1fr}
    .focus-number{font-size:52px}
    .history-prizes{grid-template-columns:1fr 1fr}
    .history-prizes span,
    .public-table td{font-size:16px}
}

@media(max-width:520px){
    .period-grid{grid-template-columns:1fr 1fr}
    .history-prizes{grid-template-columns:1fr}
    .focus-number{font-size:48px}
}


/* Statistics data coverage — public context, not backend jargon */
.stats-coverage{
    margin:16px 0 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:15px 18px;
    border:1px solid #d7b244;
    border-radius:13px;
    background:linear-gradient(135deg,#fff7d6,#fffdf4);
    color:#463600;
}
.coverage-main{
    display:flex;
    flex-direction:column;
    gap:3px;
}
.coverage-main strong{
    font-size:17px;
    color:#755500;
}
.coverage-main span{
    font-size:17px;
    font-weight:800;
}
.coverage-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:flex-end;
}
.coverage-meta span{
    padding:7px 10px;
    border-radius:8px;
    background:#fff;
    border:1px solid #ead99c;
    font-size:16px;
    font-weight:700;
}
.coverage-meta b{color:#0d3a78}

@media(max-width:860px){
    .stats-coverage{
        flex-direction:column;
        align-items:flex-start;
        padding:14px;
    }
    .coverage-main strong,
    .coverage-main span,
    .coverage-meta span{
        font-size:16px;
    }
    .coverage-meta{
        justify-content:flex-start;
    }
}


/* Monthly frequency tool */
.month-tool-intro{overflow:hidden}
.month-tool-intro .inner-head strong{color:#0d4b91}
.month-tool-form{
    margin-top:22px;
    padding:18px;
    border:1px solid #dce5ef;
    border-radius:17px;
    background:#f8fafc;
}
.month-current{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:0 2px 15px;
    border-bottom:1px solid #e2e8f0;
}
.month-current span{font-size:16px;color:#62728a;font-weight:800}
.month-current strong{font-size:25px;color:#123e79}
.month-type-options{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:16px;
}
.month-radio{
    display:flex;
    align-items:center;
    gap:11px;
    min-height:78px;
    padding:13px 15px;
    border:2px solid #dce5ef;
    border-radius:13px;
    background:#fff;
    cursor:pointer;
}
.month-radio.selected{
    border-color:#1768d8;
    background:#eef6ff;
}
.month-radio input{
    width:21px;
    height:21px;
    flex:none;
}
.month-radio span{display:flex;flex-direction:column;gap:3px}
.month-radio b{font-size:19px;color:#143c71}
.month-radio small{font-size:15px;color:#68768b}
.month-calc-button{
    width:100%;
    min-height:54px;
    margin-top:15px;
    border:0;
    border-radius:11px;
    background:linear-gradient(135deg,#0d3a78,#1768d8);
    color:#fff;
    font-size:18px;
    font-weight:900;
    cursor:pointer;
}
.month-stat-disclaimer{
    margin-top:16px;
    padding:15px 17px;
    border:1px solid #e5c967;
    border-radius:13px;
    background:#fff8d9;
    color:#594300;
    line-height:1.65;
}
.month-stat-disclaimer strong{
    display:block;
    margin-bottom:4px;
    font-size:16px;
}
.month-stat-disclaimer span{font-size:16px}
.month-result-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
}
.month-result-head h2{
    margin:2px 0 0;
    font-size:28px;
    color:#102d56;
}
.month-draw-count{
    flex:none;
    min-width:145px;
    padding:11px 13px;
    border-radius:12px;
    background:#0f3268;
    color:#fff;
    text-align:right;
}
.month-draw-count span{display:block;font-size:14px;color:#d8e6f7}
.month-draw-count strong{display:block;margin-top:3px;font-size:22px}
.month-db-coverage{
    margin:17px 0;
    padding:14px 16px;
    border:1px solid #d8b853;
    border-radius:13px;
    background:#fffaf0;
}
.month-db-coverage span,
.month-db-coverage small{
    display:block;
    color:#6e6247;
    font-size:15px;
}
.month-db-coverage strong{
    display:block;
    margin:4px 0;
    color:#6e4f00;
    font-size:18px;
}
.month-ranking{display:grid;gap:9px;margin-top:18px}
.month-rank-row{
    display:grid;
    grid-template-columns:44px 110px 1fr;
    gap:12px;
    align-items:center;
    padding:12px 14px;
    border:1px solid #dfe6ef;
    border-radius:12px;
    background:#fff;
}
.month-rank-row.top-rank{
    border-color:#e3bf59;
    background:linear-gradient(135deg,#fff9e2,#fff);
}
.month-rank-no{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#edf2f8;
    color:#52647c;
    font-weight:900;
}
.month-rank-row.top-rank .month-rank-no{
    background:#f4bd38;
    color:#4b3400;
}
.month-rank-number{
    text-decoration:none;
    color:#0f4f99;
    font-size:27px;
    font-weight:900;
}
.month-rank-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}
.month-rank-info strong{font-size:18px;color:#16734a}
.month-rank-info small{font-size:15px;color:#6d7b8e;text-align:right}
.month-result-note{
    margin-top:16px;
    padding:12px 14px;
    border-left:4px solid #1768d8;
    background:#f1f6fd;
    color:#465c77;
    line-height:1.65;
    font-size:15px;
}

@media(max-width:760px){
    .month-type-options{grid-template-columns:1fr}
    .month-result-head{display:block}
    .month-draw-count{
        margin-top:12px;
        width:100%;
        text-align:left;
    }
    .month-rank-row{
        grid-template-columns:40px 82px 1fr;
        padding:11px 9px;
    }
    .month-rank-number{font-size:24px}
    .month-rank-info{
        flex-direction:column;
        align-items:flex-end;
        gap:2px;
    }
    .month-rank-info small{font-size:14px}
}


.month-full-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    margin-top:6px;
}


/* =========================================================
   TeeNee Hot Widget — native hot.js styles
   ========================================================= */

.teenee-hot-widget {
    width: 100%;
    max-width: 680px;
    margin: 20px auto;
    font-family: Arial, Tahoma, sans-serif;
}

.teenee-hot-widget__link {
    display: block;
    color: #111;
    text-decoration: none;
}

.teenee-hot-widget__image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
    aspect-ratio: 16 / 9;
}

.teenee-hot-widget__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.teenee-hot-widget__badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(185, 0, 0, 0.92);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.teenee-hot-widget__title {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.teenee-hot-widget__link:hover .teenee-hot-widget__image {
    transform: scale(1.025);
}

.teenee-hot-widget__link:hover .teenee-hot-widget__title {
    text-decoration: underline;
}

.teenee-hot-widget__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.teenee-hot-widget__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c7c7c7;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.teenee-hot-widget__dot:hover {
    background: #888;
    transform: scale(1.15);
}

.teenee-hot-widget__dot.is-active {
    background: #b90000;
    transform: scale(1.2);
}

.teenee-hot-widget__dot:focus-visible {
    outline: 2px solid #b90000;
    outline-offset: 3px;
}

/*
 * Mobile: keep the same visual design, but make links and carousel dots
 * easier to tap without making the visible dots look oversized.
 */
@media (max-width: 600px) {
    .teenee-hot-widget {
        width: calc(100% - 20px);
        margin: 14px auto;
    }

    .teenee-hot-widget__image-wrap {
        border-radius: 8px;
    }

    .teenee-hot-widget__title {
        font-size: 19px;
        line-height: 1.45;
    }

    .teenee-hot-widget__badge {
        left: 9px;
        bottom: 9px;
        padding: 5px 8px;
        font-size: 12px;
    }

    /*
     * hot.js creates 10px dots. Add an invisible touch target with pseudo
     * padding via outline-safe box-shadow area while keeping the dot itself
     * visually 10px.
     */
    .teenee-hot-widget__dot {
        position: relative;
        margin: 7px;
    }

    .teenee-hot-widget__pagination {
        gap: 0;
        margin-top: 5px;
    }
}
