@import url('/static/desk.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-height, 66px) + var(--tabbar-height, 46px) + 16px); }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.55; }
h2 { font-size: 28px; line-height: 1.25; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.4; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--gold); text-underline-offset: .18em; }
::selection { background: var(--primary-soft, #e0eee3); color: var(--text); }
:focus-visible { outline: 3px solid rgba(30,91,67,.28); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar { position: sticky; top: 0; z-index: 100; min-height: 66px; display: flex; align-items: center; gap: 28px; padding: 8px max(20px,calc((100vw - 1180px)/2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { display: block; width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 800; letter-spacing: -.025em; font-size: 17px; }
.brand-name span { color: var(--red); }
.primary-nav { display: flex; gap: 22px; margin-right: auto; }
.primary-nav a, .about-link { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .about-link:hover { color: var(--primary-dark, #12442f); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.live-btn, .payout-btn { min-height: 34px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.live-btn:hover { border-color: var(--gold); color: var(--gold); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--red); }

main { width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 0; }
.page-intro { padding: 42px 0 28px; max-width: 850px; }
.page-intro h1 { margin: 0 0 12px; max-width: 760px; font-size: clamp(30px,4vw,42px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.page-intro p { margin: 0; max-width: 72ch; color: var(--muted); font-size: 16px; }

#board { margin-bottom: 28px; }
.board { display: grid; grid-template-columns: 1.3fr 1.05fr .75fr; overflow: hidden; background: transparent; }
.panel { background: var(--panel); padding: 20px; margin-top: 0; border: 0; border-radius: 0; }
.board > .panel { border-radius: 0; border-right: 1px solid rgba(18,68,47,.16); }
.board > .panel:last-child { border-right: 0; }
.panel-label { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.latest-panel { background: var(--primary-dark, #12442f); color: #fff; }
.latest-panel .panel-label, .latest-panel .latest-date { color: #d8eee2; }
.latest-panel .ball { border-color: rgba(255,255,255,.7); background: #fff; color: var(--primary-dark,#12442f); }
.latest-panel .ball.pb { border-color: #fff; background: var(--red); color: #fff; }
.latest-panel .mult-chip { width: max-content; max-width: 100%; background: #e0eee3; color: #12442f; justify-self: start; }
.jackpot-panel { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 18px; background: var(--primary-soft,#e0eee3); }
.jackpot-panel .panel-label { grid-column: 1/-1; }
.jackpot-figure { color: var(--primary-dark,#12442f); font-size: clamp(28px,4vw,44px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.jackpot-figure .unit { font-size: .34em; letter-spacing: .04em; }
.jackpot-meta { display: grid; gap: 5px; }
.jm { display: flex; justify-content: space-between; gap: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.jm small { color: var(--muted); }
.balls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ball { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 2px 5px rgba(23,44,37,.08); }
.ball.pb, .rate-input.pb { border-color: var(--red); background: var(--red); color: #fff; }
.ball.sm { width: 31px; height: 31px; font-size: 12px; }
.ball.ghost { color: var(--faint); background: var(--panel-2); box-shadow: none; }
.mult-chip { display: inline-block; margin-top: 8px; color: var(--red); font-size: 12px; font-weight: 700; }
.latest-date, .draw-sched { margin-top: 8px; color: var(--muted); font-size: 12px; }
.count-panel { background: #fff; }
.next-day { font-size: 17px; font-weight: 700; color: var(--primary-dark,#12442f); }
.countdown { display: flex; gap: 8px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cd-cell b { display: block; font-size: 18px; }
.cd-cell small { display: block; color: var(--muted); font-size: 12px; }

.tabbar { position: sticky; top: var(--topbar-height, 66px); z-index: 90; margin: 0 -1px; background: var(--page); border-bottom: 1px solid var(--line); }
.tabrow { display: flex; align-items: end; gap: 4px; }
.tabrow button { appearance: none; padding: 11px 17px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.tabrow button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.tab-file { margin: 0 0 11px auto; color: var(--muted); font-size: 12px; }
.tabpanel { padding-top: 1px; }
.section { background: transparent; border: 0; border-radius: 0; margin-top: 0; padding: 40px 0 10px; scroll-margin-top: 100px; }
.sec-head h2, .explorer-heading h2 { margin: 0; font-size: clamp(24px,3vw,32px); line-height: 1.15; letter-spacing: -.025em; }
.sec-sub { max-width: 74ch; margin: 8px 0 20px; color: var(--muted); }
#patterns { margin-top: 30px; padding: 34px 24px 28px; background: var(--primary-soft,#e0eee3); }
#patterns .pattern-card { border-color: rgba(18,68,47,.18); }
#generator { margin-top: 28px; padding: 36px 24px 28px; background: #edf0f8; }
#rate { padding-top: 34px; }
#history .sec-head { padding: 18px 20px 16px; background: var(--primary-dark,#12442f); color: #fff; }
#history .sec-head h2 { color: #fff; }
#history > .sec-sub { max-width: none; margin: 0; padding: 0 20px 18px; background: var(--primary-dark,#12442f); color: #cfe4d7; }
#history > .sec-sub a { color: #fff; }

.explorer-section { padding-top: 34px; }
.explorer-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; padding-bottom: 18px; }
.explorer-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.explorer-definition { max-width: 38ch; text-align: right; }
.explorer-layout { display: grid; grid-template-columns: minmax(0,2.35fr) minmax(260px,1fr); border: 1px solid var(--primary-dark,#12442f); border-radius: 12px; overflow: hidden; background: #fff; }
.explorer-main { min-width: 0; }
.explorer-controls { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 12px; padding: 18px; background: var(--primary,#1e5b43); border-bottom: 0; }
.explorer-controls label { display: grid; gap: 5px; color: #e5f3ea; font-size: 12px; font-weight: 700; }
select, input[type="search"] { width: 100%; min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--text); padding: 8px 10px; }
select:hover, input[type="search"]:hover { border-color: var(--gold); }
.explorer-table-wrap { overflow-x: auto; }
.explorer-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.explorer-table th { padding: 9px 12px; text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); }
.explorer-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.explorer-row { transition: background .18s ease-out; }
.explorer-row:hover { background: #f8faf8; }
.explorer-row.is-selected { background: var(--primary-soft,#e0eee3); }
.explorer-rank { width: 50px; color: var(--muted); }
.explorer-number { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-weight: 800; text-decoration: none; }
.explorer-number:hover { border-color: var(--gold); color: var(--gold); }
.explorer-metric strong { display: inline-block; min-width: 28px; }
.explorer-metric small { color: var(--muted); font-size: 12px; }
.explorer-bar { display: inline-block; vertical-align: middle; width: 72px; height: 5px; margin-right: 8px; background: var(--line); border-radius: 9px; overflow: hidden; }
.explorer-bar-fill { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.explorer-select { min-width: 48px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; color: var(--gold); font-size: 12px; font-weight: 700; cursor: pointer; }
.explorer-select:hover { border-color: var(--gold); }
.explorer-empty { padding: 30px !important; color: var(--muted); text-align: center; }
.explorer-foot { display: flex; align-items: center; gap: 16px; padding: 13px 16px; }
.explorer-foot p { margin: 0; color: var(--muted); font-size: 12px; }
.shortlist { padding: 24px; background: var(--primary-soft,#e0eee3); border-left: 1px solid #b9cfbf; }
.shortlist h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.shortlist > p { margin: 0 0 25px; color: #475c50; font-size: 13px; }
.shortlist-group { margin-top: 18px; }
.shortlist-group > span { display: block; margin-bottom: 7px; color: #475c50; font-size: 12px; font-weight: 700; }
.shortlist-balls { display: flex; gap: 6px; min-height: 37px; flex-wrap: wrap; }
.shortlist-balls i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px dashed #9eb5a6; color: var(--text); background: rgba(255,255,255,.5); font-style: normal; font-weight: 800; }
.shortlist-balls .ball { width: 34px; height: 34px; box-shadow: none; }
.shortlist-powerball i, .shortlist-powerball .ball { border-color: var(--red); }
.shortlist-count { margin: 22px 0 10px !important; font-weight: 700; }
.shortlist-actions { display: grid; gap: 8px; }

.btn { appearance: none; min-height: 40px; padding: 9px 14px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #fff; font-weight: 700; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--primary-dark,#12442f); border-color: var(--primary-dark,#12442f); }
.btn.ghost { background: transparent; color: var(--gold); border-color: var(--line-2); }
.btn.ghost:hover:not(:disabled) { border-color: var(--gold); background: #fff; }
.btn.sm { min-height: 34px; padding: 6px 10px; }
.btn.xl { width: 100%; min-height: 46px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.statstrip { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 28px; background: var(--primary-dark,#12442f); color: #fff; }
.stat-tile { padding: 18px; border-right: 1px solid rgba(255,255,255,.2); }
.stat-tile:last-child { border-right: 0; }
.stat-tile small { color: #cfe4d7; font-size: 12px; font-weight: 700; }
.stat-tile .v { margin-top: 5px; color: #fff; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-tile .v em { display: block; color: #cfe4d7; font-size: 12px; font-style: normal; font-weight: 500; }
.stat-tile .gold { color: #f4e4b4; }
.stat-tile .red { color: #ffd9dd; }

.temp-grid, .cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.temp-panel, .pattern-card, .mult-card { border: 1px solid var(--line); border-radius: 12px; }
.temp-panel.hot { background: #fbeaec; border-color: #e7b8bd; }
.temp-panel.cold { background: #edf0f8; border-color: #c8d0e5; }
.temp-panel.due { background: var(--primary-soft,#e0eee3); border-color: #bdd2c3; }
.temp-panel h3, .card-title { margin: 0 0 13px; font-size: 17px; }
.temp-sub { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 7px; }
.chip { min-width: 43px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; padding: 6px 8px; color: var(--text); text-align: center; text-decoration: none; }
.chip b, .chip span { display: block; }
.chip span { color: var(--muted); font-size: 12px; }
.chip.is-pb b { color: var(--red); }
.mode-seg { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.mode-seg button { padding: 10px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.mode-seg button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }

.cards.five { grid-template-columns: repeat(5,1fr); }
.pattern-card, .mult-card { position: relative; padding: 18px; background: #fff; }
.pattern-card:nth-child(3n+1) { background: var(--primary-soft,#e0eee3); }
.pattern-card:nth-child(3n+2) { background: #edf0f8; }
.pcard { border: 1px solid var(--line); border-radius: 12px; }
.pcard .rng { color: var(--muted); font-size: 12px; }
#patterns .pattern-status { display: flex; align-items: center; gap: 9px; width: calc(100% + 40px); min-height: 48px; margin: 14px -20px 16px; padding: 10px 20px; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.2; }
#patterns .pattern-status.over { background: var(--red,#bd3844); }
#patterns .pattern-status.norm { background: var(--primary,#1e5b43); }
#patterns .pattern-status svg { width: 22px; height: 22px; flex: none; }
.badge { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.badge.over { color: var(--red); }
.meter-cap { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.hi { color: var(--gold); font-weight: 800; }
.pattern-card .due-tag { color: var(--red); font-size: 12px; font-weight: 700; }
.meter { height: 5px; margin: 13px 0 7px; background: var(--line); border-radius: 8px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--gold); }
.meter-fill.warn { background: var(--ice); }
.meter-fill.danger { background: var(--red); }
.krows { display: grid; gap: 8px; margin-top: 12px; }
.krow { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 7px; font-variant-numeric: tabular-nums; }
.krow small { color: var(--muted); }
.vm-panel { margin: 0 0 24px; border: 1px solid #b9cfbf; border-radius: 12px; background: var(--primary-soft,#e0eee3); }
.vm-panel > h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--primary-dark,#12442f); }
.vm-wrap { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 20px; margin-top: 15px; }
.vm-gauge text { fill: var(--muted); font: 11px var(--body); }
.vm-gauge .vm-val { fill: var(--text); font-size: 14px; font-weight: 800; }
.vm-needle { transform-origin: 120px 112px; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.vm-verdict { display: inline-block; font-weight: 800; }
.vm-verdict.good { color: var(--gold); }
.vm-verdict.bad { color: var(--red); }
.vm-caveat { margin-top: 10px; color: var(--muted); font-size: 12px; }
.ev-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.ev-cell { padding: 12px; background: var(--panel-2); border-radius: 9px; }
.ev-cell small { display: block; color: var(--muted); }
.ev-cell b { font-size: 19px; font-variant-numeric: tabular-nums; }
.reco-banner { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.35fr); align-items: center; gap: 28px; margin-bottom: 12px; padding: 24px; border: 1px solid #b9cfbf; border-radius: 12px; background: var(--primary-soft,#e0eee3); color: var(--text); }
.pp-gauge-wrap { display: grid; justify-items: center; min-width: 0; }
.pp-title { justify-self: stretch; font-size: 20px; font-weight: 800; color: var(--primary-dark,#12442f); }
.pp-gauge { display: block; width: min(100%,260px); height: auto; margin-top: 6px; overflow: visible; }
.pp-gauge text { fill: var(--muted); font: 700 12px var(--body); }
.pp-gauge .pp-needle { transform-origin: 130px 126px; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.pp-gauge .pp-needle line { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.pp-gauge circle { fill: var(--text); }
.pp-status { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: -2px; color: var(--primary-dark,#12442f); }
.pp-status strong { font-size: 25px; line-height: 1; }
.pp-status span { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pp-read { padding-bottom: 14px; border-bottom: 1px solid #b9cfbf; font-size: 16px; font-weight: 700; }
.reco-note { color: #475c50; font-size: 12px; }
.pp-side { display: grid; align-content: center; }
.pp-side h3 { margin: 18px 0 6px; }
.pp-side ul { margin: 4px 0 12px; padding-left: 20px; }
.pp-method { margin-top: 10px; }

.gen-grid, .rate-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gen-grid > .panel, .rate-wrap > .panel, .play5-panel { border: 1px solid var(--line); border-radius: 12px; }
.gen-grid > .panel:first-child { background: var(--primary-soft,#e0eee3); border-color: #b9cfbf; }
.gen-grid > .gen-out { background: #edf0f8; border-color: #c8d0e5; }
.play5-panel { background: var(--primary-dark,#12442f); color: #fff; }
.play5-panel .panel-label, .play5-panel .play5-desc { color: #cfe4d7; }
.gen-group { margin: 16px 0; }
.gen-group > small { display: block; margin-bottom: 7px; color: var(--muted); font-weight: 700; }
.strat-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.strat { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; cursor: pointer; }
.strat:has(input:checked), .strat.sel { background: var(--primary,#1e5b43); color: #fff; }
.strat:not(:has(input:checked)):not(.sel):hover { background: rgba(255,255,255,.72); }
.strat:has(input:focus-visible) { position: relative; z-index: 1; outline: 3px solid var(--low,#687dba); outline-offset: 2px; }
.strat input { position: static; opacity: 1; width: 16px; height: 16px; margin: 4px 0 0; grid-row: 1 / span 3; accent-color: var(--primary); }
.strat span, .strat .due-tag { grid-column: 2; color: var(--muted); font-size: 12px; }
.strat:has(input:checked) span, .strat:has(input:checked) .due-tag,
.strat.sel span, .strat.sel .due-tag { color: #d9eee2; }
.strat:has(input:checked) input, .strat.sel input { accent-color: #fff; }
.strat-grid.collapsed .strat:nth-child(n+4) { display: none; }
.range-more { margin-top: 8px; border: 0; background: transparent; color: var(--gold); cursor: pointer; }
.gen-out { display: grid; align-content: start; }
.ticket-empty { min-height: 220px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.ticket-empty .balls { justify-content: center; }
.ticket-empty p { max-width: 40ch; }
.ticket-out { display: none; }
.ticket-out.show { display: block; }
.mode-seg { margin: 16px 0 12px; }
.play5-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.play5-title { margin: 0; font-size: 22px; }
.play5-title em { color: var(--gold); font-style: normal; }
.play5-desc { color: var(--muted); }
.play5-list { display: none; gap: 8px; margin-top: 15px; }
.play5-list.show { display: grid; }
.play5-ticket { display: grid; grid-template-columns: 30px 180px 1fr; align-items: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); }
.rate-inputs { display: flex; gap: 7px; margin: 15px 0; }
.rate-input { width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%; text-align: center; font-weight: 800; }
.grade-row { display: flex; align-items: center; gap: 18px; }
.grade { font-size: 54px; font-weight: 800; }
.score { font-size: 22px; font-weight: 800; }
.rate-detail { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.rate-detail.good { color: var(--gold); }
.rate-detail.bad { color: var(--red); }
.ticket-status { margin-top: 14px; padding: 10px; border-radius: 8px; background: var(--panel-2); }
.ticket-status.unique { color: var(--gold); }
.ticket-status.duplicate { color: var(--red); }

.table-wrap { overflow-x: auto; }
.table-wrap { background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.table-wrap tbody tr:nth-child(even) { background: #f3f7f4; }
.table-wrap th, .table-wrap td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap th { color: var(--muted); font-size: 12px; }
.datecell a { color: var(--muted); }
.pbcell { color: var(--red); font-weight: 800; }
.multcell { color: var(--gold); font-weight: 700; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding-top: 15px; }
.pager button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); cursor: pointer; }
.pager button.cur { background: var(--gold); border-color: var(--gold); color: #fff; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { padding: 15px 0; cursor: pointer; font-weight: 700; }
.faq details p { max-width: 75ch; margin: 0 0 16px; color: var(--muted); }
.about-blurb { border-top: 1px solid var(--line); border-radius: 0; padding: 24px; }
.about-blurb h2 { margin-top: 0; }
.about-blurb p { max-width: 75ch; color: var(--muted); }

footer { margin-top: 55px; padding: 35px max(20px,calc((100vw - 1180px)/2)) 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.foot-brand { color: var(--text); font-size: 16px; font-weight: 800; }
.foot-brand em { color: var(--red); font-style: normal; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 15px 0; }
footer nav a { color: var(--muted); }
.disclaimer { max-width: 78ch; margin: 20px auto 0; font-size: 12px; }
.paywrap { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 20px; background: rgba(23,44,37,.55); }
.paywrap.open { display: grid; }
.paymodal { width: min(720px,100%); max-height: 88vh; overflow: auto; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(23,44,37,.24); }
.paymodal-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.paymodal-head h3 { margin: 0; }
.paymodal-head em { color: var(--red); font-style: normal; }
.pay-x { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pay-x:hover { background: var(--primary-soft,#e0eee3); color: var(--primary-dark,#12442f); }
.pay-x svg { display: block; }
.pay-row { display: grid; grid-template-columns: 220px 1fr 150px; align-items: center; gap: 15px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.match { display: flex; gap: 4px; }
.mb { width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; }
.mb.off { opacity: .2; }
.mb.pbm { border-color: var(--red); background: var(--red); }
.pay-prize { font-weight: 800; }
.pay-prize small { display: block; color: var(--muted); font-weight: 500; }
.pay-odds { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pay-foot { display: grid; gap: 10px; padding: 18px 20px; color: var(--muted); font-size: 12px; }
.pay-foot .overall { color: var(--text); font-weight: 800; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 250; max-width: 340px; padding: 15px; border-radius: 12px; background: var(--panel); box-shadow: 0 12px 35px rgba(23,44,37,.2); transform: translateY(140%); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.toast.show { transform: translateY(0); }
.toast h4 { margin: 0 0 8px; }
.skeleton { color: var(--muted); }

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .topbar-right { margin-left: auto; }
  .board { grid-template-columns: 1fr 1fr; }
  .latest-panel { grid-column: 1/-1; }
  .board > .panel:nth-child(2) { border-top: 1px solid var(--line); }
  .board > .panel:nth-child(3) { border-top: 1px solid var(--line); }
  .explorer-layout { grid-template-columns: 1fr; }
  .shortlist { border-left: 0; border-top: 1px solid #cddbd0; }
  .cards.five { grid-template-columns: repeat(3,1fr); }
  .temp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { min-height: 56px; padding: 9px 14px; }
  .brand-name { font-size: 15px; }
  .about-link { display: none; }
  .live-btn { padding: 5px 8px; }
  .payout-txt { display: none; }
  main { width: min(100% - 24px,1180px); }
  .page-intro { padding: 32px 0 20px; }
  #patterns, #generator { margin-inline: -12px; padding: 28px 12px 22px; }
  .board { grid-template-columns: 1fr; }
  .board > .panel { border-radius: 0; border-right: 0; border-top: 1px solid var(--line); }
  .board > .panel:first-child { border-top: 0; }
  .jackpot-panel { display: block; }
  .jackpot-meta { margin-top: 15px; }
  .tabbar { top: var(--topbar-height, 56px); }
  .tab-file { display: none; }
  .tabrow button { flex: 1; padding-inline: 8px; }
  .explorer-heading { display: block; }
  .explorer-definition { text-align: left; }
  .explorer-controls { grid-template-columns: 1fr 1fr; }
  .explorer-search-label { grid-column: 1/-1; }
  .explorer-table { min-width: 620px; }
  .explorer-foot { align-items: start; flex-direction: column; }
  .statstrip { grid-template-columns: 1fr 1fr; }
  .stat-tile:nth-child(2) { border-right: 0; }
  .stat-tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .cards.five, .ev-grid { grid-template-columns: 1fr; }
  .reco-banner { grid-template-columns: 1fr; }
  .vm-wrap, .gen-grid, .rate-wrap { grid-template-columns: 1fr; }
  .vm-gauge { max-width: 100%; }
  .strat-grid { grid-template-columns: 1fr; }
  .rate-inputs { gap: 5px; }
  .rate-input { width: 44px; height: 44px; }
  .play5-head { align-items: stretch; flex-direction: column; }
  .play5-ticket { grid-template-columns: 28px 1fr; }
  .play5-ticket .balls { grid-column: 1/-1; }
  .pay-row { grid-template-columns: 125px 1fr; }
  .pay-odds { grid-column: 1/-1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Compact data views preserve the complete table on small screens. */
.dashboard-page .panel-label::before { display: none; }
.dashboard-page .board .panel-label { margin-bottom: 10px; }
.dashboard-page .latest-panel .balls { gap: 9px; }
.dashboard-page .latest-panel .mult-chip { margin-right: 8px; }
.dashboard-page .latest-date { display: inline-block; }
.dashboard-page .jackpot-figure .skeleton { font-size: 18px; letter-spacing: 0; }
.dashboard-page .board > .panel { min-width: 0; }
.dashboard-page .jackpot-panel { display: block; }
.dashboard-page .jackpot-meta { margin-top: 14px; gap: 2px; font-size: 12px; }
.dashboard-page .board { border-top: 0; }
.dashboard-page .topbar { flex-direction: row; }
.dashboard-page .tabbar { background: var(--page); }
.dashboard-page .section { scroll-margin-top: 12px; }
.dashboard-page .grade-meta small { display: block; max-width: 24ch; }
@media (max-width: 900px) {
  .dashboard-page .primary-nav { display: flex; order: 3; width: 100%; gap: 22px; }
  .dashboard-page .topbar { flex-wrap: wrap; gap: 8px 12px; align-items: center; }
  .dashboard-page .tabbar { position: sticky; top: var(--topbar-height, 92px); }
}
@media (max-width: 640px) {
  .dashboard-page main { padding: 0; }
  .dashboard-page .topbar { position: sticky; padding: 6px 14px; }
  .dashboard-page .primary-nav { justify-content: space-between; gap: 10px; }
  .dashboard-page .primary-nav a { font-size: 12px; padding: 5px 0; }
  .dashboard-page .brand-name { font-size: 14px; }
  .dashboard-page .brand { gap: 7px; }
  .dashboard-page .brand-mark { width: 34px; height: 34px; }
  .dashboard-page .topbar-right { gap: 5px; }
  .dashboard-page .page-intro { padding: 12px 0 12px; }
  .dashboard-page .page-intro h1 { font-size: 26px; margin-bottom: 8px; }
  .dashboard-page .page-intro p { font-size: 14px; }
  .dashboard-page .board { grid-template-columns: 1fr 1fr; }
  .dashboard-page .board > .panel { padding: 10px; }
  .dashboard-page .board .panel-label { margin-bottom: 6px; }
  .dashboard-page .latest-panel { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 10px; }
  .dashboard-page .latest-panel .panel-label { margin: 0; }
  .dashboard-page .latest-panel .latest-date { grid-column: 2; grid-row: 1; margin: 0; }
  .dashboard-page .latest-panel .balls { grid-column: 1; grid-row: 2; gap: 5px; flex-wrap: nowrap; }
  .dashboard-page .latest-panel .ball { width: 30px; height: 30px; flex: 0 0 30px; }
  .dashboard-page .latest-panel .mult-chip { grid-column: 2; grid-row: 2; justify-self: end; margin: 0; text-align: right; }
  .dashboard-page .board > .panel:nth-child(2) { border-right: 1px solid var(--line); }
  .dashboard-page .jackpot-figure { font-size: 28px; }
  .dashboard-page .jackpot-figure .unit { font-size: 12px; }
  .dashboard-page .jackpot-meta { font-size: 12px; margin-top: 8px; }
  .dashboard-page .jackpot-meta small { font-size: 12px; }
  .dashboard-page .jm { gap: 6px; flex-wrap: wrap; }
  .dashboard-page .next-day { font-size: 14px; }
  .dashboard-page .countdown { gap: 7px; margin-top: 5px; }
  .dashboard-page .cd-cell b { font-size: 16px; }
  .dashboard-page .draw-sched { font-size: 12px; margin-top: 5px; line-height: 1.35; }
  .dashboard-page #board { margin-bottom: 10px; }
  .dashboard-page .tabrow button { font-size: 12px; padding: 10px 5px; }
  .dashboard-page .explorer-section { padding-top: 10px; }
  .dashboard-page .explorer-heading { padding-bottom: 12px; }
  .dashboard-page .explorer-definition { display: none; }
  .dashboard-page .explorer-controls { padding: 10px; gap: 8px; }
  .dashboard-page .explorer-search-label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
  .dashboard-page .explorer-search-label input { min-width: 0; }
  .dashboard-page .explorer-table { min-width: 0; table-layout: auto; }
  .dashboard-page .explorer-table th { font-size: 12px; white-space: normal; line-height: 1.35; }
  .dashboard-page .explorer-table th, .dashboard-page .explorer-table td { padding: 9px 5px; }
  .dashboard-page .explorer-table th:first-child, .dashboard-page .explorer-table td:first-child { display: none; }
  .dashboard-page .explorer-table td { font-size: 12px; }
  .dashboard-page .explorer-bar { display: none; }
  .dashboard-page .explorer-number { width: 32px; height: 32px; }
  .dashboard-page .explorer-select { min-width: 48px; min-height: 36px; padding: 5px 6px; }
  .dashboard-page .explorer-metric strong { min-width: 24px; }
  .dashboard-page .shortlist { padding: 18px; }
  .dashboard-page .shortlist-group { display: inline-block; vertical-align: top; margin: 0 14px 0 0; }
  .dashboard-page .shortlist > p { margin-bottom: 16px; }
  .dashboard-page .shortlist-actions { grid-template-columns: 1fr auto; }

  .dashboard-page #patterns-grid,
  .dashboard-page #mult-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dashboard-page #patterns-grid .pcard,
  .dashboard-page #mult-grid .pcard { min-width: 0; padding: 14px; }
  .dashboard-page #patterns-grid .pcard h3,
  .dashboard-page #mult-grid .pcard h3 { margin-bottom: 5px; font-size: 16px; }
  .dashboard-page #patterns-grid .rng,
  .dashboard-page #mult-grid .rng { min-height: 2.6em; font-size: 11px; line-height: 1.3; }
  .dashboard-page #patterns-grid .pattern-status { width: calc(100% + 28px); min-height: 40px; margin: 10px -14px 12px; padding: 8px 14px; font-size: 15px; }
  .dashboard-page #patterns-grid .pattern-status svg { width: 18px; height: 18px; }
  .dashboard-page #patterns-grid .badge,
  .dashboard-page #mult-grid .badge { margin-top: 6px; }
  .dashboard-page #patterns-grid .meter,
  .dashboard-page #mult-grid .meter { margin-block: 10px 6px; }
  .dashboard-page #patterns-grid .meter-cap,
  .dashboard-page #mult-grid .meter-cap { gap: 5px; font-size: 10px; }
  .dashboard-page #patterns-grid .krows,
  .dashboard-page #mult-grid .krows { gap: 5px; margin-top: 9px; }
  .dashboard-page #patterns-grid .krow,
  .dashboard-page #mult-grid .krow { gap: 7px; padding-top: 5px; font-size: 12px; }

  .dashboard-page .rate-input { min-width: 0; font-size: 16px; }
  .dashboard-page .rate-input[aria-invalid="true"] { border-color: var(--red); outline: 2px solid rgba(189,56,68,.2); outline-offset: 1px; }
  .dashboard-page .rate-help,
  .dashboard-page .rate-error { margin: 6px 0 0; font-size: 12px; line-height: 1.4; }
  .dashboard-page .rate-help { color: var(--muted); }
  .dashboard-page .rate-error { color: var(--red); font-weight: 700; }
}

@media (min-width: 380px) and (max-width: 460px) {
  .dashboard-page #patterns-grid .krow,
  .dashboard-page #mult-grid .krow { display: grid; gap: 1px; }
  .dashboard-page #patterns-grid .krow > span,
  .dashboard-page #mult-grid .krow > span { min-width: 0; overflow-wrap: anywhere; font-weight: 700; line-height: 1.3; }
  .dashboard-page #patterns-grid .meter-cap,
  .dashboard-page #mult-grid .meter-cap { display: grid; gap: 1px; }
  .dashboard-page #patterns-grid .pattern-status { font-size: 14px; font-weight: 800; }
}

@media (max-width: 379px) {
  .dashboard-page #patterns-grid,
  .dashboard-page #mult-grid { grid-template-columns: 1fr; }
  .dashboard-page #patterns-grid .rng,
  .dashboard-page #mult-grid .rng { min-height: 0; }
}

@media (max-width: 359px) {
  .dashboard-page .latest-panel .balls { grid-column: 1/-1; }
  .dashboard-page .latest-panel .mult-chip { grid-row: 3; }
}

.utility-icon { display: inline-block; vertical-align: -.15em; flex: none; }
.payout-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
