@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #010066;
    --red: #cc0001;
    --yellow: #ffc726;
    --bg: #f2f0ec;
    --card: #fff;
    --border: #e6e2db;
    --text: #1a1a2e;
    --text-sec: #6b6b80;
    --text-muted: #a0a0b0;
    --radius: 12px;
    --max-w: 1080px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text); font-size: 14px;
    line-height: 1.6; min-height: 100vh;
    display: flex; flex-direction: column; overflow-x: hidden;
}
body.has-bg {
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center center !important;
}
main#root { flex: 1; }
a { color: inherit; text-decoration: none; }

.lotto-ball {
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; border-radius: 50%; position: relative; flex-shrink: 0;
}
.lotto-ball::before {
    content: ''; position: absolute; top: 14%; left: 18%; width: 36%; height: 28%;
    background: radial-gradient(ellipse, rgba(255,255,255,.48), transparent); border-radius: 50%;
}
.ball-0 { background: linear-gradient(135deg, #525252, #2d2d2d); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.ball-1 { background: linear-gradient(135deg, #f5c518, #d4a510); box-shadow: 0 2px 8px rgba(245,197,24,.4); }
.ball-2 { background: linear-gradient(135deg, #1a6bc4, #0f4f99); box-shadow: 0 2px 8px rgba(26,107,196,.4); }
.ball-3 { background: linear-gradient(135deg, #cc0001, #9a0001); box-shadow: 0 2px 8px rgba(204,0,1,.4); }
.ball-4 { background: linear-gradient(135deg, #7b2d8e, #5a1d6a); box-shadow: 0 2px 8px rgba(123,45,142,.4); }
.ball-5 { background: linear-gradient(135deg, #e87d1e, #c46515); box-shadow: 0 2px 8px rgba(232,125,30,.4); }
.ball-6 { background: linear-gradient(135deg, #2a9d3a, #1d7a2b); box-shadow: 0 2px 8px rgba(42,157,58,.4); }
.ball-7 { background: linear-gradient(135deg, #8b1a2b, #6b1020); box-shadow: 0 2px 8px rgba(139,26,43,.4); }
.ball-8 { background: linear-gradient(135deg, #1a1a2e, #0a0a18); box-shadow: 0 2px 8px rgba(26,26,46,.4); }
.ball-9 { background: linear-gradient(135deg, #d4a017, #b08510); box-shadow: 0 2px 8px rgba(212,160,23,.4); }

.lotto-ball.ball-lg { width: 52px; height: 52px; font-size: 22px; }
.lotto-ball.ball-md { width: 34px; height: 34px; font-size: 15px; }
.lotto-ball.ball-sm { width: 30px; height: 30px; font-size: 14px; }
.lotto-ball.ball-xs { width: 22px; height: 22px; font-size: 10px; }
.lotto-ball.ball-xs::before { display: none; }
.lotto-ball.ball-tbl     { width: 20px; height: 20px; font-size: 9px; }
.lotto-ball.ball-tbl::before  { display: none; }
.lotto-ball.ball-tbl-sm  { width: 16px; height: 16px; font-size: 7px; }
.lotto-ball.ball-tbl-sm::before { display: none; }

.flag-stripe {
    height: 4px; display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 102;
}
.flag-stripe span { flex: 1; }
.flag-stripe .s1 { background: var(--red); }
.flag-stripe .s2 { background: #fff; }
.flag-stripe .s3 { background: var(--navy); }
.flag-stripe .s4 { background: var(--yellow); }

.header {
    position: fixed; top: 4px; left: 0; right: 0; z-index: 100;
    height: 52px; background: var(--navy);
    box-shadow: 0 2px 20px rgba(1,0,102,.22);
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto; height: 100%; padding: 0 20px;
    display: flex; align-items: center;
}
.h-brand {
    font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .5px;
    margin-right: 24px; white-space: nowrap; flex-shrink: 0;
}
.h-brand span { color: var(--yellow); }
.h-brand-logo { height: 30px; max-width: 140px; object-fit: contain; }

.h-nav { display: flex; align-items: center; flex: 1; }
.h-nav a {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55);
    padding: 5px 11px; border-radius: 6px; transition: all .15s;
    text-transform: uppercase; letter-spacing: .7px; white-space: nowrap;
}
.h-nav a:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.05); }
.h-nav a.on { color: var(--yellow); background: rgba(255,199,38,.1); }

.h-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.h-clock-wrap {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,.07); border-radius: 6px; padding: 4px 8px;
}
.h-clock-label { font-size: 8px; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: 1px; margin-right: 2px; }
.h-clock-digits { display: flex; align-items: center; gap: 2px; }
.h-clock-seg  { font-size: 12px; font-weight: 700; color: var(--yellow); min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.h-clock-sep  { color: rgba(255,199,38,.4); font-size: 12px; font-weight: 700; }

.h-live-btn {
    display: flex; align-items: center; gap: 5px;
    background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
    padding: 5px 12px; border-radius: 100px; letter-spacing: .5px; text-transform: uppercase;
    transition: opacity .15s; white-space: nowrap;
}
.h-live-btn:hover { opacity: .85; color: #fff; }
.h-live-dot { width: 5px; height: 5px; background: #fff; border-radius: 50%; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.h-toggle { display: none; background: none; border: none; color: rgba(255,255,255,.7); font-size: 18px; cursor: pointer; padding: 4px; }

.mob-nav {
    display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
    background: var(--navy); padding: 8px 16px 12px;
    border-top: 1px solid rgba(255,255,255,.05);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.mob-nav.open { display: block; }
.mob-nav a {
    display: block; padding: 9px 12px; font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .7px; border-radius: 6px;
}
.mob-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.mob-nav a.on { color: var(--yellow); }

.hero {
    margin-top: 56px; /* 4px stripe + 52px header */
    background: linear-gradient(150deg, #010066 0%, #070652 55%, #100d36 100%);
    padding: 0 20px 32px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -100px; right: -80px;
    width: 440px; height: 440px;
    border: 1px solid rgba(255,199,38,.05); border-radius: 50%; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -60px; left: -40px;
    width: 240px; height: 240px;
    border: 1px solid rgba(255,255,255,.025); border-radius: 50%; pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

.hero-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px;
    align-items: start; padding: 28px 0 4px;
}

.hero-id { padding-top: 6px; }
.hi-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 9px; font-weight: 700; color: rgba(255,199,38,.6);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
.hi-eyebrow::before { content: ''; width: 18px; height: 1px; background: rgba(255,199,38,.35); flex-shrink: 0; }
.hi-title {
    font-size: 44px; font-weight: 800; color: #fff; line-height: 1;
    letter-spacing: -1.5px; margin-bottom: 8px;
}
.hi-title span { color: var(--yellow); }
.hi-logo { height: 60px; max-width: 240px; object-fit: contain; display: block; margin-bottom: 8px; }
.hi-sub {
    font-size: 10px; color: rgb(255, 255, 255); letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 18px; font-weight: 600;
}
.hi-banner { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); margin-bottom: 16px; }
.hi-banner img { width: 100%; height: auto; max-height: 120px; object-fit: cover; display: block; }
.hi-meta { display: flex; align-items: center; gap: 16px; }
.hi-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 10px; color: rgb(255, 255, 255); font-weight: 600;
}
.hi-meta-item i { color: rgb(255, 191, 0); font-size: 9px; }

.hi-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--yellow); color: var(--navy);
    font-size: 11px; font-weight: 800; padding: 10px 22px; border-radius: 8px;
    letter-spacing: .3px; margin-top: 14px; transition: opacity .15s;
}
.hi-cta:hover { opacity: .85; color: var(--navy); }
.hi-cta i { font-size: 10px; }

.hero-banner { padding: 24px 0 4px; }
.hero-banner-img {
    width: 100%; border-radius: 12px; display: block;
    max-height: 190px; object-fit: cover;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.hcard {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; overflow: hidden;
}
.hcard-head {
    padding: 11px 16px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.14);
}
.hcard-tag {
    display: flex; align-items: center; gap: 5px;
    font-size: 9px; font-weight: 700; color: var(--navy);
    background: var(--yellow); padding: 3px 10px; border-radius: 100px;
    letter-spacing: 1px; text-transform: uppercase;
}
.hcard-tag i { font-size: 7px; }
.hcard-meta { display: flex; align-items: center; gap: 8px; }
.hcard-day  { font-size: 10px; font-weight: 700; color: rgb(255, 255, 255); }
.hcard-date { font-size: 10px; color: rgb(255, 255, 255); }
.hcard-draw { font-size: 13px; font-weight: 800; color: var(--yellow); }

.hcard-body {
    padding: 18px 16px 14px;
    background-color: rgba(0,0,0,.18);
    background-image:
        linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.06) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.06) 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}
.hcard-prizes { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.hcard-p1 { text-align: center; }
.hcard-p1-lbl { font-size: 8px; font-weight: 700; color: rgba(255,255,255,.28); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.hcard-p1-row { display: flex; gap: 8px; }
.hcard-subs { display: flex; flex-direction: column; gap: 8px; }
.hcard-sub-row { display: flex; align-items: center; gap: 6px; }
.hcard-sub-lbl {
    font-size: 9px; font-weight: 700; color: var(--navy);
    background: var(--yellow); padding: 3px 8px; border-radius: 4px; min-width: 28px; text-align: center;
}
.hcard-sub-nums { display: flex; gap: 5px; }

.hcard-txt { border-top: 1px solid rgba(255,255,255,.06); display: grid; grid-template-columns: 1fr 1fr; }
.hcard-txt-col + .hcard-txt-col { border-left: 1px solid rgba(255,255,255,.06); }
.hcard-txt-h {
    padding: 8px 12px 5px; font-size: 8px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.hcard-txt-h.s { color: rgba(255,199,38,.55); }
.hcard-txt-h.c { color: rgba(255,110,110,.55); }
.hcard-txt-nums { padding: 2px 12px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.hcard-txt-n { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; letter-spacing: .5px; }

.result-pg {
    margin-top: 56px;
    background: linear-gradient(150deg, #010066 0%, #070652 55%, #100d36 100%);
    padding: 28px 20px 24px; position: relative; overflow: hidden;
}
.result-pg::before {
    content: ''; position: absolute; top: -80px; right: -60px;
    width: 300px; height: 300px;
    border: 1px solid rgba(255,199,38,.05); border-radius: 50%; pointer-events: none;
}
.result-pg-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.result-pg-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 9px; font-weight: 700; color: rgba(255,199,38,.6);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.result-pg-eyebrow::before { content: ''; width: 18px; height: 1px; background: rgba(255,199,38,.35); flex-shrink: 0; }
.result-pg-title { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -1px; margin-bottom: 6px; }
.result-pg-title span { color: var(--yellow); }
.result-pg-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.result-pg-logo { height: 40px; max-width: 160px; object-fit: contain; }
.result-pg-logo-wrap span { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.result-pg-meta { font-size: 10px; color: rgba(255,255,255,.22); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.result-pg-meta i { color: rgba(255,199,38,.4); font-size: 9px; }

.filter-bar {
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 0 20px; position: sticky; top: 56px; z-index: 50;
}
.filter-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 8px 0;
    display: flex; align-items: center; gap: 3px; overflow-x: auto;
    -ms-overflow-style: none; scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-label {
    font-size: 9px; font-weight: 700; color: var(--text-sec);
    letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; margin-right: 8px; opacity: .6;
}
.fb {
    padding: 4px 12px; font-size: 11px; font-weight: 600; color: #888;
    background: transparent; border: 1px solid transparent;
    border-radius: 6px; cursor: pointer; transition: all .12s; white-space: nowrap;
    display: inline-block; text-decoration: none;
}
.fb:hover { color: var(--text); background: #ede9e3; border-color: var(--border); }
.fb.on { background: var(--navy); color: var(--yellow); border-color: var(--navy); }

.results-section { max-width: var(--max-w); margin: 0 auto; padding: 20px 20px 48px; }
.results-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.results-head h3 { font-size: 11px; font-weight: 700; color: var(--text-sec); text-transform: uppercase; letter-spacing: 1px; }
.results-head small { font-size: 11px; color: var(--text-muted); }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.rcard { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .18s, transform .18s; }
.rcard:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.rcard-head {
    padding: 9px 12px; background: var(--navy);
    display: flex; align-items: center; justify-content: space-between;
}
.rcard-day  { font-size: 9px; font-weight: 700; color: var(--navy); background: var(--yellow); padding: 2px 7px; border-radius: 3px; }
.rcard-date { font-size: 10px; color: rgb(255, 255, 255); margin-left: 6px; }
.rcard-draw { font-size: 11px; font-weight: 800; color: var(--yellow); }

.rcard-prizes { padding: 11px 14px 8px; display: flex; flex-direction: column; gap: 5px; }
.rcard-prize  { display: flex; align-items: center; gap: 8px; }
.rcard-prize + .rcard-prize { padding-top: 5px; border-top: 1px solid #f0ede8; }
.rcard-pl { font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 3px; white-space: nowrap; min-width: 28px; text-align: center; }
.rcard-pl.p1  { background: var(--yellow); color: var(--navy); }
.rcard-pl.p23 { background: rgba(1,0,102,.07); color: var(--navy); }
.rcard-pballs { display: flex; gap: 4px; }

.rcard-txt { border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; }
.rcard-txt-col + .rcard-txt-col { border-left: 1px solid var(--border); }
.rcard-txt-h { padding: 6px 10px 4px; font-size: 7px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.rcard-txt-h.s { color: rgba(1,0,102,.45); }
.rcard-txt-h.c { color: rgba(204,0,1,.45); }
.rcard-txt-nums { padding: 2px 10px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; }
.rcard-txt-n { font-size: 11px; font-weight: 700; color: #999; font-variant-numeric: tabular-nums; letter-spacing: .5px; }

.no-results {
    text-align: center; padding: 60px 20px; color: var(--text-sec); font-size: 15px;
    grid-column: 1 / -1;
}
.no-results i { font-size: 48px; display: block; margin-bottom: 12px; color: #ddd; }

.footer { background: var(--navy); }
.footer-accent { height: 3px; background: linear-gradient(90deg, var(--red) 50%, var(--yellow) 50%); }
.footer-body { max-width: 560px; margin: 0 auto; padding: 28px 20px; text-align: center; }
.ft-links   { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.ft-links a { font-size: 13px; color: rgb(255, 201, 38); padding: 4px 10px; font-weight: bold; transition: color .15s; }
.ft-links a:hover { color: var(--yellow); }
.ft-age     { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgb(255, 255, 255); padding: 6px 14px; border-radius: 100px; margin-bottom: 14px; }
.ft-age-badge { width: 20px; height: 20px; border: 1.5px solid var(--card); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; color: var(--card); }
.ft-age-txt   { font-size: 9px; color: var(--card); }
.ft-copy { font-size: 9px; color: var(--card); border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }

.live-draw-fab {
    position: fixed; bottom: 18px; right: 18px; z-index: 90;
    padding: 9px 18px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 50px; box-shadow: 0 4px 16px rgba(204,0,1,.28);
    display: flex; align-items: center; gap: 6px; transition: transform .15s, box-shadow .15s;
    letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
}
.live-draw-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,0,1,.35); color: #fff; }
.live-dot { width: 5px; height: 5px; background: #fff; border-radius: 50%; animation: blink 1.4s infinite; }

.page-card {
    max-width: var(--max-w); margin: 20px auto; padding: 28px; line-height: 1.8; font-size: 14px; color: var(--text);
    background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
}
.page-card h2 { color: var(--navy); margin-bottom: 14px; font-size: 20px; }
.page-card h3 { color: var(--text); margin-bottom: 8px; font-size: 16px; }
.page-card p  { margin-bottom: 8px; }
.page-card a  { color: var(--red); text-decoration: underline; }
.page-card img { max-width: 100%; height: auto; border-radius: var(--radius); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-top: 72px; margin-bottom: 16px; padding: 0 20px; max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.section-title  { font-size: 16px; font-weight: 600; color: #555; }
.welcome-bar {
    background: var(--navy); color: #fff;
    padding: 14px 20px; font-weight: 700; font-size: 15px; letter-spacing: 1px;
    border-radius: var(--radius); margin: 16px 0; text-align: center;
    border-left: 4px solid var(--yellow); border-right: 4px solid var(--yellow);
}
.img_blur   { max-width: 100%; }
.block      { display: inline-block; margin: 2px; }
.banner-img { width: 100%; border-radius: var(--radius); display: block; }

.err-page { max-width: 560px; margin: 40px auto; text-align: center; padding: 48px 32px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }
.err-icon  { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.err-icon i { font-size: 32px; color: var(--yellow); }
.err-code  { font-size: 72px; font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--red); }
.err-title { font-size: 20px; font-weight: 700; color: var(--navy); margin: 4px 0 16px; text-transform: uppercase; letter-spacing: 2px; }
.err-line  { width: 60px; height: 3px; background: var(--red); margin: 0 auto 20px; border-radius: 3px; }
.err-msg   { font-size: 14px; color: var(--text-sec); line-height: 1.7; max-width: 400px; margin: 0 auto 28px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err-btn   { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 13px; font-weight: 600; border-radius: 6px; transition: all .2s; border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.err-btn:hover { background: var(--navy); color: #fff; }
.err-btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.err-btn-primary:hover { background: #a00001; border-color: #a00001; color: #fff; }
.err-ref   { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-sec); letter-spacing: 1px; text-transform: uppercase; }
.err-ref span { font-weight: 700; color: var(--red); }

.result-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); margin-bottom: 12px;
}
.result-card.ld-card { max-width: 500px; margin: 0 auto 20px; }
.rc-header, .ld-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--navy); color: #fff;
}
.rc-date { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rc-day  { font-size: 10px; font-weight: 600; background: var(--red); color: #fff; padding: 2px 10px; border-radius: 4px; }
.rc-draw { font-size: 12px; color: var(--yellow); font-weight: 600; }
.rc-prize-label { text-align: center; font-size: 10px; font-weight: 600; color: var(--red); letter-spacing: 2px; padding: 10px 0 0; }
.rc-prize1 { text-align: center; padding: 16px 8px; }
.ball-row  { display: flex; justify-content: center; gap: 8px; }
.ball {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: #fff; background: var(--red);
}
.ball-sm {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff; background: var(--navy);
}
.rc-prize-sub { display: flex; border-top: 1px solid #eee; }
.rc-prize-sub-item { flex: 1; text-align: center; padding: 10px 8px; border-right: 1px solid #eee; }
.rc-prize-sub-item:last-child { border-right: none; }
.rc-prize-sub-label { font-size: 9px; font-weight: 700; color: var(--text-sec); letter-spacing: 1px; margin-bottom: 6px; }
.rc-prize-sub-value { display: flex; justify-content: center; gap: 4px; }
.rc-extras { border-top: 1px solid #eee; }
.rc-extras-header { display: grid; grid-template-columns: 1fr 1fr; }
.rc-extras-header-item { text-align: center; padding: 8px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.rc-extras-header-item:first-child { background: var(--navy); color: var(--yellow); }
.rc-extras-header-item:last-child  { background: var(--red); color: #fff; }
.rc-extras-body { display: grid; grid-template-columns: 1fr 1fr; }
.rc-extras-col  { padding: 4px; }
.rc-extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.rc-extras-cell { text-align: center; padding: 5px; font-size: 12px; font-weight: 500; color: #555; background: #faf9f7; border-radius: 3px; }
.ld-live-badge {
    background: var(--red); color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 100px; letter-spacing: 1px;
    animation: dotPulse 1.3s ease-in-out infinite;
}
.ld-live-badge i { font-size: 6px; vertical-align: middle; margin-right: 3px; }
.ld-placeholder { opacity: 0.2; }
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.25;transform:scale(.85)} }
@keyframes ballPop {
    0%   { transform: scale(.3) translateY(12px); opacity: 0; }
    50%  { transform: scale(1.12) translateY(-4px); opacity: 1; }
    75%  { transform: scale(.95) translateY(1px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.ld-revealed { animation: ballPop .55s cubic-bezier(.22,1.2,.36,1); opacity: 1 !important; }
.result-grid { display: flex; flex-direction: column; gap: 8px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-sec); }

@media (max-width: 768px) {
    .h-nav { display: none; }
    .h-toggle { display: block; }
    .h-live-btn span { display: none; }
    .hero { padding: 0 16px 24px; }
    .hero-banner { padding: 16px 0 0; }
    .hero-banner-img { max-height: 140px; border-radius: 10px; }
    .hero-grid { grid-template-columns: 1fr; gap: 16px; padding: 16px 0 0; }
    .result-pg { padding: 20px 16px 18px; }
    .result-pg-title { font-size: 22px; }
    .filter-bar { padding: 0 16px; }
    .results-section { padding: 16px 16px 36px; }
    .results-grid { grid-template-columns: 1fr; }
    .lotto-ball.ball-lg { width: 44px; height: 44px; font-size: 19px; }
    .lotto-ball.ball-md { width: 30px; height: 30px; font-size: 13px; }
    .hcard-prizes { gap: 14px; }
    .hcard-txt-n { font-size: 11px; }
    .ft-links { flex-direction: column; gap: 0; }
    .page-card { margin: 16px; }
    .ball    { width: 42px; height: 42px; font-size: 20px; }
    .ball-sm { width: 26px; height: 26px; font-size: 13px; }
    .err-page { margin: 20px 12px; padding: 32px 20px; }
    .err-code { font-size: 56px; }
}
@media (max-width: 480px) {
    .hi-title { font-size: 34px; }
    .hero-banner-img { max-height: 110px; }
    .hcard-txt { grid-template-columns: 1fr; }
    .hcard-txt-col + .hcard-txt-col { border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
    .lotto-ball.ball-lg { width: 40px; height: 40px; font-size: 17px; }
    .lotto-ball.ball-sm { width: 26px; height: 26px; font-size: 12px; }
    .hcard-subs { gap: 6px; }
}
