:root {
  --navy: #111C3A;
  --navy-2: #1A2752;
  --navy-3: #0B1430;
  --gold: #FFC928;
  --gold-2: #F2B705;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --ink: #111827;
  --ink-2: #384152;
  --muted: #6A7386;
  --line: #E3E7EF;
  --line-2: #EEF1F6;
  --ok: #0E8A4B;
  --err: #C62828;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 28, 58, .05), 0 6px 20px rgba(17, 28, 58, .06);
  --shadow-lg: 0 2px 4px rgba(17, 28, 58, .06), 0 16px 40px rgba(17, 28, 58, .12);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --num: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --p: #111C3A; --s: #FFC928; --a: #E5232E; --lb: #EEF1F8; --db: #0B1430; --s-ink: #111C3A; --a-ink: #fff;
}
.theme-green { --p: #087A3D; --s: #FFD928; --a: #E5232E; --lb: #F1F8EE; --db: #07552D; --s-ink: #10240f; --a-ink: #fff; }
.theme-blue { --p: #0756B8; --s: #FFD22E; --a: #D7195B; --lb: #EFF5FF; --db: #073477; --s-ink: #0d1f3d; --a-ink: #fff; }
.theme-red { --p: #C9182B; --s: #087A43; --a: #FFD52A; --lb: #FFF2F1; --db: #850F20; --s-ink: #fff; --a-ink: #3d0a10; }
.theme-bumper { --p: #111C3A; --s: #FFC928; --a: #E5232E; --lb: #FFF8E1; --db: #0B1430; --s-ink: #111C3A; --a-ink: #fff; }
.theme-navy { --p: #111C3A; --s: #FFC928; --a: #E5232E; --lb: #EEF1F8; --db: #0B1430; --s-ink: #111C3A; --a-ink: #fff; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--p); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 780px; margin: 0 auto !important; padding: 0 16px; }
.muted { color: var(--muted); }

@keyframes tick { to { transform: translateX(-100%); } }



.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 11, 28, .55); animation: fade .2s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: #fff; display: flex; flex-direction: column; animation: slide .22s ease-out; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--navy); color: var(--gold); font-family: var(--num); font-size: 22px; text-transform: uppercase; }
.drawer-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.drawer-list { list-style: none; margin: 0; padding: 8px 8px 24px; }
.drawer-list a { display: flex; justify-content: space-between; align-items: center; padding: 13px 12px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 10px; }
.drawer-list a:hover { background: var(--bg); }
.drawer-list a.is-active { background: #FFF6D6; color: var(--navy); }
.drawer-list a span { color: var(--muted); font-size: 20px; }
.drawer-minor a { font-weight: 500; color: var(--ink-2); font-size: 14px; padding: 10px 12px; }
.drawer-minor:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
body.no-scroll { overflow: hidden; }

.crumbs { padding-top: 12px; padding-bottom: 0; font-size: 13px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #B5BCCB; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s, filter .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 2px 0 var(--gold-2); }
.btn-gold:hover { filter: brightness(1.04); box-shadow: 0 4px 14px rgba(255, 201, 40, .45); }
.btn-theme { background: var(--p); color: #fff; }
.btn-theme:hover { background: var(--db); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #C9D0DD; background: #FAFBFD; }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.linklike { background: none; border: 0; color: var(--p); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.mini { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.mini:hover { border-color: var(--p); color: var(--p); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip-slot { background: var(--p); color: #fff; }
.theme-bumper .chip-slot { background: var(--gold); color: var(--navy); }
.chip-live { background: #FFE9EA; color: #B71C1C; }
.chip-live i, .dot { width: 8px; height: 8px; border-radius: 50%; background: #9AA3B5; display: inline-block; }
.chip-live i, .dot.live { background: #E5232E; animation: pulse 1.4s infinite; }
.dot.ok { background: #19B565; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 35, 46, .55); } 70% { box-shadow: 0 0 0 8px rgba(229, 35, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 35, 46, 0); } }

.site-main { min-height: 50vh; }
.section { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--gold); }
.more { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--p); }
.more:hover { text-decoration: underline; }
.sub-h { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 10px; }
.card-pad { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.page-body { padding-top: 18px; padding-bottom: 40px; }
.narrow-top { padding-top: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.eyebrow.light { color: rgba(255, 255, 255, .85); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #FF3B47; animation: pulse 1.4s infinite; }
.star { color: var(--gold); }

.hero { background: radial-gradient(1200px 300px at 80% -40%, rgba(255, 201, 40, .22), transparent 60%), linear-gradient(180deg, var(--navy) 0%, #15224a 100%); color: #fff; padding: 26px 0 30px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40px; background: linear-gradient(180deg, transparent, rgba(244, 246, 250, .0)); }
.hero h1 { font-family: var(--num); font-size: clamp(34px, 7vw, 54px); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 6px; }
.hero-sub { color: #C3CBE0; max-width: 640px; margin-bottom: 22px; }
.draw-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.draw-grid.on-light { margin-bottom: 20px; }
.draw-card { background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border-top: 5px solid var(--p); }
.draw-card header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--lb); }
.dc-time { font-family: var(--num); font-weight: 800; font-size: 26px; color: var(--p); line-height: 1; }
.dc-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.dc-label { margin: 14px 16px 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dc-num { display: block; margin: 0 16px; font-family: var(--num); font-size: 40px; font-weight: 800; letter-spacing: .03em; color: var(--ink); line-height: 1.05; }
.dc-num.sm { font-size: 30px; }
.dc-sub { display: block; margin: 0 16px 14px; color: var(--muted); font-size: 13px; }
.dc-wait { padding-top: 14px; }
.dc-thumb { margin: 10px 16px 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 110px; padding: 0; cursor: zoom-in; background: #fff; }
.dc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dc-btn { margin: auto 16px 16px; }
.draw-card.state-soon { border-top-color: var(--a); }

.tools { display: grid; gap: 12px; }
.tool { display: flex; gap: 14px; border-radius: var(--r); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.tool h2 { font-size: 19px; margin: 0 0 4px; }
.tool p { margin: 0 0 12px; font-size: 14px; }
.tool-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tool-ic svg { width: 24px; height: 24px; }
.tool-body { flex: 1; min-width: 0; }
.tool-search { background: #fff; border: 1px solid var(--line); }
.tool-search .tool-ic { background: #FFF6D6; color: #8A6400; }
.tool-search p { color: var(--muted); }
.tool-scan { background: linear-gradient(135deg, var(--navy) 0%, #24346b 100%); color: #fff; }
.tool-scan .tool-ic { background: rgba(255, 201, 40, .16); color: var(--gold); }
.tool-scan p { color: #C3CBE0; }
.tool-scan:hover .btn-outline-light { background: rgba(255, 255, 255, .1); }
.qc-row { display: flex; gap: 8px; }
.qc-row input { flex: 1; min-width: 0; }
input[type="text"], input:not([type]), input[type="search"], input[type="email"], input[type="date"], select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #D5DAE5; border-radius: 10px; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); outline: 0; }
textarea { resize: vertical; }
label { font-weight: 600; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.opt { color: var(--muted); font-weight: 500; }
.help { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }

.notices { display: grid; gap: 10px; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: #FFF8E1; border: 1px solid #F7DE8B; border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 16px; }
.notice svg { color: #A87A00; width: 22px; height: 22px; margin-top: 2px; }
.notice div { flex: 1; }
.notice p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }

.result { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.result-head { padding: 18px 18px 14px; background: linear-gradient(180deg, var(--lb), #fff); border-top: 6px solid var(--p); }
.result-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.result-title { font-size: clamp(21px, 4.6vw, 28px); color: var(--db); margin-bottom: 8px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; margin: 0; }
.result-meta span + span::before { content: "•"; margin-right: 14px; color: #B5BCCB; }
.prize-hero { display: grid; gap: 12px; padding: 4px 18px 18px; }
.ticket { position: relative; background: var(--p); color: #fff; border-radius: 14px; padding: 16px 20px; text-align: center; overflow: hidden; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: #fff; border-radius: 50%; }
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.ticket-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .92; }
.ticket-label em { font-style: normal; background: var(--s); color: var(--s-ink); padding: 1px 8px; border-radius: 99px; margin-left: 4px; }
.ticket-num { display: block; font-family: var(--num); font-size: clamp(46px, 12vw, 68px); font-weight: 800; letter-spacing: .05em; line-height: 1.05; margin-top: 4px; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.cons { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed color-mix(in srgb, var(--p) 40%, #fff); background: var(--lb); border-radius: 14px; padding: 12px; }
.cons span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.cons strong { font-family: var(--num); font-size: 38px; font-weight: 800; color: var(--db); letter-spacing: .05em; line-height: 1.1; }
.cons small { color: var(--muted); font-size: 12px; }

.tabs { border-top: 1px solid var(--line); }
.tab-list { display: flex; gap: 4px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; background: #FAFBFD; border-bottom: 1px solid var(--line); }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { flex: 1 0 auto; border: 0; background: transparent; padding: 11px 16px; font-weight: 700; font-size: 14.5px; color: var(--muted); border-radius: 10px 10px 0 0; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab-list button[aria-selected="true"] { color: var(--p); background: #fff; border-bottom-color: var(--p); box-shadow: 0 -1px 0 var(--line) inset; }
.tab-list button:hover { color: var(--ink); }
.tab-panel { padding: 18px; animation: fade .18s; }
.tier { margin-bottom: 18px; }
.tier-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; background: var(--p); color: #fff; margin-bottom: 10px; }
.tier-head h3 { margin: 0; font-size: 16px; }
.tier-amt { background: var(--s); color: var(--s-ink); font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 99px; }
.tier-count { margin-left: auto; font-size: 12.5px; opacity: .85; }
.num-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.num-grid.dense { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
.num-grid li { font-family: var(--num); font-weight: 700; font-size: 21px; letter-spacing: .04em; text-align: center; padding: 6px 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.num-grid li:nth-child(even) { background: var(--lb); }
.num-grid.dense li { font-size: 18px; padding: 4px 2px; }
.num-grid li.hl { background: var(--a); color: var(--a-ink); border-color: var(--a); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.result-figure { margin: 0; }
.zoom-frame { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; }
.zoom-frame img { width: 100%; height: auto; margin: 0 auto; max-width: 760px; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(17, 28, 58, .82); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 99px; }
.media-actions, .link-row, .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.link-row.center { justify-content: center; }
.pdf-render { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 240px; background: #fff; }
.pdf-render img { width: 100%; cursor: zoom-in; }
.pdf-render-msg { position: absolute; inset: auto 0 12px; text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.skeleton { height: 420px; background: linear-gradient(90deg, #eef1f6 25%, #f8f9fb 50%, #eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pdf-box { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #FAFBFD; }
.pdf-box p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pdf-icon { width: 48px; height: 58px; border-radius: 8px; background: #D93025; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.pdf-preview { margin-top: 12px; }
.pdf-preview canvas, .pdf-preview img { width: 100%; max-width: 760px; border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in; }
.result-notes { margin: 0 18px 14px; padding: 12px 14px; background: #FFF8E1; border-radius: 10px; font-size: 14.5px; }
.result-foot { display: grid; gap: 14px; padding: 16px 18px 18px; border-top: 1px solid var(--line); background: #FAFBFD; }
.quick-check label { display: block; margin-bottom: 6px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.sh { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; text-decoration: none; color: #fff; border: 0; cursor: pointer; }
.sh-wa { background: #1FA855; } .sh-fb { background: #1877F2; } .sh-tg { background: #229ED9; } .sh-x { background: #111; } .sh-copy { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.empty-state { text-align: center; background: #fff; border: 1px dashed #CBD2DF; border-radius: var(--r); padding: 30px 18px; color: var(--ink-2); }
.empty-state svg { width: 40px; height: 40px; color: #9AA3B5; margin: 0 auto 10px; }
.empty-state p { margin: 0 0 12px; }
.empty-state .tips { text-align: left; display: inline-block; margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.status-banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--p); box-shadow: var(--shadow); margin-bottom: 16px; }
.status-banner.state-soon { border-left-color: var(--a); background: linear-gradient(90deg, #FFF4F4, #fff 60%); }
.status-banner p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sb-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--lb); display: grid; place-items: center; flex: none; }
.sb-ic .dot { width: 12px; height: 12px; }

.page-band { background: linear-gradient(135deg, var(--db) 0%, var(--p) 100%); color: #fff; padding: 24px 0 26px; position: relative; overflow: hidden; }
.page-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.theme-navy .page-band, .theme-bumper .page-band { background: radial-gradient(800px 240px at 85% -30%, rgba(255, 201, 40, .22), transparent 60%), linear-gradient(135deg, var(--navy-3), var(--navy-2)); }
.page-band.slim { padding: 20px 0; }
.band-in { display: grid; gap: 16px; position: relative; z-index: 1; }
.page-band h1 { font-family: var(--num); text-transform: uppercase; font-size: clamp(30px, 6.4vw, 46px); font-weight: 800; letter-spacing: .01em; margin: 0 0 4px; }
.page-band.slim h1 { font-family: var(--font); text-transform: none; font-size: clamp(24px, 5vw, 34px); font-weight: 800; }
.band-sub { color: rgba(255, 255, 255, .85); margin: 0; }
.date-jump { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 12px; }
.date-jump label { display: block; margin-bottom: 6px; color: #fff; }
.date-jump input { border-color: transparent; }

.prevnext { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.prevnext a { flex: 1; max-width: 48%; display: flex; flex-direction: column; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.prevnext a:hover { border-color: var(--p); }
.prevnext small { color: var(--muted); font-weight: 600; }
.prevnext b { color: var(--p); }
.prevnext .pn-next { text-align: right; margin-left: auto; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.rtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rtable thead { display: none; }
.rtable tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); position: relative; }
.rtable tr::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--p); }
.rtable tr:last-child { border-bottom: 0; }
.rtable td { padding: 0; }
.rtable td small { display: block; color: var(--muted); font-size: 12.5px; }
.rtable td[data-label="Date"] { grid-column: 1; font-weight: 700; }
.rtable td[data-label="Date"] small { display: inline; margin-left: 6px; }
.rtable td[data-label="Category"] { grid-column: 2; grid-row: 1; justify-self: end; }
.rtable td[data-label="Draw"] { grid-column: 1 / -1; }
.rtable td[data-label="1st Prize"] { grid-column: 1; align-self: center; }
.rtable td.rt-files { grid-column: 1; display: flex; gap: 6px; }
.rtable td.rt-go { grid-column: 2; grid-row: 4 / 6; align-self: end; }
.rt-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.rt-title:hover { color: var(--p); text-decoration: underline; }
.rt-prize { font-family: var(--num); font-size: 22px; letter-spacing: .04em; color: var(--db); }

.filters { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.filters .field:first-child, .filters .grow, .filters .actions { grid-column: 1 / -1; }
.filters .actions { flex-direction: row; align-items: flex-end; margin-bottom: 0; }
.filters.card-pad .field { margin-bottom: 12px; }
.quick-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.qcat { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13.5px; }
.qcat::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 7px; }
.qcat.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.pill-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.pill-tabs a { flex: none; padding: 9px 16px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.pill-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: var(--gold); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.pager a, .pager span { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.pager a:hover { border-color: var(--p); color: var(--p); }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .off { color: #B5BCCB; }
.pager .gap { border: 0; background: none; min-width: 20px; }
.pager-info { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }

.card-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.rcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--p); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.rcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.theme-bumper.rcard { border-top-color: var(--gold); }
.rcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.rcard-title { font-size: 16px; line-height: 1.3; }
.rcard-prize { display: flex; flex-direction: column; background: var(--lb); border-radius: 10px; padding: 8px 12px; }
.rcard-prize small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rcard-prize b { font-family: var(--num); font-size: 30px; letter-spacing: .04em; color: var(--db); line-height: 1.1; }
.rcard-prize.muted b { font-family: var(--font); font-size: 15px; }
.rcard-thumb { height: 120px; border-radius: 10px; overflow: hidden; background: var(--lb); }
.rcard-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rcard-foot { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-top: auto; }
.rcard-foot span { background: var(--line-2); padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.rcard-foot em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--p); }
.bumper-band { background: linear-gradient(180deg, #FFF8E1, var(--bg)); padding: 24px 0; margin: 0; }

.lucky-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.lucky-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.lucky-card header { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.lucky-card h3 { font-size: 16px; margin-bottom: 10px; }
.lucky-card p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.balls { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.balls li { min-width: 50px; height: 50px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-family: var(--num); font-size: 22px; font-weight: 800; color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .25); }
.balls .b0 { background: #087A3D; } .balls .b1 { background: #0756B8; } .balls .b2 { background: #C9182B; } .balls .b3 { background: #E0A800; color: var(--navy); }
.disclaim { background: #FFF8E1; border: 1px solid #F7DE8B; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--ink-2); }
.disclaim.big { padding: 14px 16px; margin-bottom: 14px; font-size: 15px; }

.search-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-lg); margin-top: -34px; position: relative; z-index: 2; }
.big-label { display: block; font-size: 15px; margin-bottom: 8px; }
.search-row { display: flex; flex-direction: column; gap: 10px; }
.search-row input, .confirm-form input[name="ticket"] { min-height: 60px; font-family: var(--num); font-size: 32px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.adv { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.adv summary { cursor: pointer; font-weight: 700; color: var(--p); font-size: 14.5px; }
.adv .filters { margin: 12px 0 0; }
.scan-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.scope { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14.5px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-err { background: #FDECEC; color: #8E1B1B; border: 1px solid #F5C2C2; }
.alert-ok { background: #E8F6EE; color: #0B5A33; border: 1px solid #B9E3CB; }
.win-banner { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #0E8A4B, #087A3D); color: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.win-banner p { margin: 2px 0 0; opacity: .9; font-size: 14px; }
.wb-ic { font-size: 30px; }
.match-list { display: grid; gap: 12px; }
.match { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--p); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.match header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.match-title { flex-basis: 100%; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.match-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; background: var(--lb); margin-bottom: 10px; }
.m-status { grid-column: 1 / -1; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); }
.status-partial .m-status { color: #A15C00; }
.m-num { font-family: var(--num); font-size: 28px; font-weight: 800; letter-spacing: .05em; color: var(--db); grid-row: 2 / 4; grid-column: 2; align-self: center; }
.m-note { color: var(--muted); }
.how .steps { padding-left: 20px; color: var(--ink-2); }
.how .steps li { margin-bottom: 6px; }
.no-win svg { color: #9AA3B5; }

.scanner { max-width: 760px; margin: -34px auto 0; position: relative; z-index: 2; }
.scan-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 16px; padding: 0; }
.scan-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: var(--line-2); }
.scan-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 12px; flex: none; }
.scan-steps li.is-on { background: var(--navy); color: #fff; }
.scan-steps li.is-on b { background: var(--gold); color: var(--navy); }
.scan-steps li.is-done { background: #E8F6EE; color: var(--ok); }
.scan-start { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scan-choice { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 10px; border: 2px dashed #C9D0DD; border-radius: 14px; background: #FAFBFD; cursor: pointer; text-align: center; font-weight: 400; transition: border-color .15s, background .15s; }
.scan-choice:hover, .scan-choice:focus-within { border-color: var(--navy); background: #fff; }
.scan-choice svg { width: 34px; height: 34px; color: var(--navy); margin-bottom: 4px; }
.scan-choice b { font-size: 16px; }
.scan-choice small { color: var(--muted); }
.scan-tips { color: var(--ink-2); font-size: 14px; padding-left: 20px; margin: 14px 0 4px; }
.camera { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 70vh; margin: 0 auto; }
.camera video { width: 100%; height: 100%; object-fit: cover; }
.cam-guide { position: absolute; left: 7%; right: 7%; top: 36%; height: 22%; border: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.cam-guide span { transform: translateY(36px); color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 2px #000; text-align: center; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.shutter { width: 70px; height: 70px; border-radius: 50%; border: 5px solid #fff; background: var(--gold); cursor: pointer; box-shadow: 0 0 0 3px rgba(0, 0, 0, .3); }
.shutter:active { transform: scale(.94); }
.scan-busy { text-align: center; padding: 30px 10px; }
.scan-busy small { display: block; color: var(--muted); margin-top: 10px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--navy); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 12px auto 0; max-width: 320px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #FF9F1C); transition: width .2s; }
.confirm-grid { display: grid; gap: 16px; }
.scan-preview { margin: 0; }
.scan-preview canvas { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.cands { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.cands button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-family: var(--num); font-size: 18px; font-weight: 700; letter-spacing: .05em; cursor: pointer; }
.cands button:hover, .cands button.is-on { border-color: var(--navy); background: #FFF6D6; }
.scan-msg { padding: 12px 14px; border-radius: 10px; background: #FDECEC; color: #8E1B1B; margin-bottom: 14px; font-size: 14.5px; }
.scan-msg.info { background: #EEF3FF; color: #1B3A7A; }
.center-note { text-align: center; color: var(--muted); margin-top: 16px; }

.faq { display: grid; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 28px 15px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 15px; color: var(--ink-2); }

.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.3em 0 .5em; }
.prose h1 { font-size: 26px; } .prose h2 { font-size: 22px; } .prose h3 { font-size: 19px; }
.prose img { border-radius: 10px; margin: 14px auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--lb); }
.prose a { font-weight: 600; }
.two-col { display: grid; gap: 16px; }
.form .btn { width: 100%; }
.contact-info h2 { font-size: 18px; }
.contact-info ul { padding-left: 18px; margin: 0; }
.contact-info li { margin-bottom: 6px; }

.nf { text-align: center; max-width: 560px; margin: 20px auto; }
.nf-ticket { display: inline-flex; flex-direction: column; background: var(--navy); color: var(--gold); padding: 16px 40px; border-radius: 16px; margin-bottom: 18px; position: relative; }
.nf-ticket span { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: #C3CBE0; }
.nf-ticket strong { font-family: var(--num); font-size: 72px; line-height: 1; }
.nf h1 { font-size: 26px; }

.site-footer { background: var(--navy); color: #B9C2DA; margin-top: 30px; font-size: 14.5px; }
.footer-grid { display: grid; gap: 24px; padding-top: 34px; padding-bottom: 20px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand strong { font-family: var(--num); font-size: 24px; text-transform: uppercase; color: var(--gold); }
.footer-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .socials a { color: #B9C2DA; text-decoration: none; }
.footer-links a:hover, .socials a:hover { color: var(--gold); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 99px; font-size: 13px; }
.footer-notes { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; padding-bottom: 8px; font-size: 13px; color: #95A0BD; }
.note-18 { display: flex; gap: 10px; align-items: flex-start; }
.badge-18 { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #E5232E; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.footer-bottom { background: var(--navy-3); font-size: 13px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.to-top { color: var(--gold); text-decoration: none; font-weight: 700; }


.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14.5px; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 24px); animation: up .2s; }
.toast button { background: var(--gold); color: var(--navy); border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 800; cursor: pointer; }
@keyframes up { from { transform: translate(-50%, 10px); opacity: 0; } }

.lb { position: fixed; inset: 0; z-index: 90; background: rgba(6, 10, 24, .98); display: flex; flex-direction: column; touch-action: none; animation: fade .18s; }
.lb-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); color: #fff; z-index: 2; }
.lb-cap { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-btn { min-width: 42px; height: 42px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0 10px; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-zoom { font-size: 13px; min-width: 52px; font-variant-numeric: tabular-nums; }
.lb-stage { flex: 1; position: relative; overflow: hidden; cursor: grab; }
.lb-stage.dragging { cursor: grabbing; }
.lb-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-stage img.anim { transition: transform .22s ease-out; }
.lb-help { text-align: center; color: rgba(255, 255, 255, .6); font-size: 12.5px; padding: 8px 12px max(10px, env(safe-area-inset-bottom)); }
.lb-load { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }

@media (min-width: 560px) {
  .draw-grid { grid-template-columns: repeat(3, 1fr); }
  .prize-hero { grid-template-columns: 1.6fr 1fr; }
  .card-grid, .lucky-grid { grid-template-columns: repeat(2, 1fr); }
  .search-row { flex-direction: row; }
  .search-row input { flex: 1; }
  .result-foot { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filters .field:first-child { grid-column: auto; }
  .filters .actions { grid-column: auto; }
}
@media (min-width: 760px) {
  .tools { grid-template-columns: 1.4fr 1fr; }
  .band-in { grid-template-columns: 1fr auto; align-items: end; }
  .date-jump { min-width: 300px; }
  .two-col { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .confirm-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-about { grid-column: auto; }
  .result-foot { grid-template-columns: 1fr auto; align-items: end; }
  .rtable thead { display: table-header-group; }
  .rtable th { text-align: left; padding: 12px 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #FAFBFD; border-bottom: 1px solid var(--line); }
  .rtable tr { display: table-row; padding: 0; }
  .rtable tr::before { display: none; }
  .rtable td { display: table-cell; padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid var(--line-2); }
  .rtable tbody tr:hover { background: #FAFBFD; }
  .rtable td:first-child { box-shadow: inset 4px 0 0 var(--p); }
  .rtable td[data-label="Date"] small { display: block; margin: 0; }
  .rtable td.rt-files { display: table-cell; }
  .rtable td.rt-files .mini + .mini { margin-left: 4px; }
  .rtable td.rt-go { text-align: right; }
  .hero { padding: 36px 0 40px; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .lucky-grid { grid-template-columns: repeat(4, 1fr); }
  .toast { bottom: 24px; }
  .num-grid.dense { grid-template-columns: repeat(10, 1fr); }
  .num-grid { grid-template-columns: repeat(10, 1fr); }
}
@media (min-width: 1024px) and (max-width: 1180px) {
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .tab-panel[hidden] { display: block !important; }
  body { background: #fff; padding: 0; }
}

.tab-green { --c: #087A3D; --c2: #F1F8EE; } .tab-blue { --c: #0756B8; --c2: #EFF5FF; } .tab-red { --c: #C9182B; --c2: #FFF2F1; } .tab-bumper { --c: #E0A800; --c2: #FFF8E1; } .tab-navy { --c: #111C3A; --c2: #EEF1F8; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; box-shadow: 0 4px 18px rgba(11, 20, 48, .22); }
.header-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; flex: 0 1 auto; margin-right: auto; }
.brand-text { font-family: var(--num); font-weight: 800; font-size: clamp(22px, 6.4vw, 32px); letter-spacing: .02em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.brand-img { max-height: 40px; width: auto; }
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a { display: block; color: #D7DDEE; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 11px; border-radius: 9px; white-space: nowrap; transition: background .15s, color .15s; }
.main-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.main-nav a.is-active { color: var(--navy); background: var(--gold); }
.main-nav a.nav-slot { font-family: var(--num); font-size: 17px; letter-spacing: .02em; box-shadow: inset 0 -3px 0 var(--c); border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; margin-right: 4px; }
.main-nav a.nav-slot.is-active { background: var(--c); color: #fff; box-shadow: none; }
.hdr-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 10px; }
.hdr-icon:hover { background: rgba(255, 255, 255, .08); }
.hdr-icon svg { width: 24px; height: 24px; }
.menu-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn:hover { background: rgba(255, 255, 255, .08); }
.menu-btn span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 99px; font-weight: 800; font-size: 14px; cursor: pointer; color: #fff; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 14px; height: 14px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 150px; z-index: 50; }
.lang a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.lang a:hover, .lang a[aria-current] { background: var(--bg); }
.ticker { background: #FFF6D6; border-bottom: 1px solid #F3DF95; font-size: 13.5px; color: var(--ink-2); }
.ticker-in { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ticker-tag { background: var(--navy); color: var(--gold); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; flex: none; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 48px; white-space: nowrap; animation: tick 28s linear infinite; padding-left: 100%; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-item a { color: var(--navy); font-weight: 700; }
.drawer-draws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 6px; }
.drawer-draw { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; color: #fff; text-decoration: none; background: var(--c); }
.drawer-draw b { font-family: var(--num); font-size: 22px; line-height: 1; }
.drawer-draw small { font-size: 11px; opacity: .85; }

.app-wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 16px 16px 8px; }
.app-wrap.flush { padding: 0; margin-bottom: 20px; }
.app { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.app-title { font-size: clamp(20px, 5.4vw, 26px); font-weight: 800; text-align: center; margin: 2px 0 0; color: var(--ink); letter-spacing: -.01em; }
.actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.act { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 10px 8px; border-radius: 14px; background: #1E5EEA; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; line-height: 1.15; box-shadow: 0 6px 16px rgba(30, 94, 234, .25); transition: transform .12s, box-shadow .15s, background .15s; }
.act:hover { background: #164FCC; }
.act:active { transform: translateY(1px); }
.act svg { width: 30px; height: 30px; stroke-width: 1.8; }

.mytix { background: #fff; border: 1px solid #EFE6C8; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.mytix-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #FFFAEB; border-bottom: 1px solid #F3E9C6; }
.mytix-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; font-size: 19px; font-weight: 800; color: var(--ink); cursor: pointer; }
.mytix-toggle svg { width: 22px; height: 22px; color: var(--ink-2); }
.mytix-toggle .chev { width: 18px; height: 18px; transition: transform .2s; }
.mytix-toggle[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.mytix-count { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.mytix-count b { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.mytix-count small { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.mytix-count .dot { width: 7px; height: 7px; }
.mytix-body { padding: 12px 16px 4px; }
.mytix-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.mytix-list:empty { display: none; }
.mt-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #FAFBFD; }
.mt-num { font-family: var(--num); font-size: 24px; font-weight: 800; letter-spacing: .05em; color: var(--ink); line-height: 1; }
.mt-status { grid-column: 1; font-size: 13px; color: var(--muted); font-weight: 600; }
.mt-status a { color: inherit; }
.mt-item.win { border-color: #A9DDBF; background: #ECF8F1; }
.mt-item.win .mt-status { color: var(--ok); }
.mt-item.partial { border-color: #F2D38B; background: #FFF8E6; }
.mt-item.partial .mt-status { color: #8A5A00; }
.mt-del { grid-column: 2; grid-row: 1 / 3; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; color: var(--muted); cursor: pointer; }
.mt-del:hover { color: var(--err); border-color: #F1C4C4; }
.mytix-add { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 2px dashed #B8C7E8; border-radius: 12px; background: #F7F9FE; color: #1E5EEA; font-weight: 800; font-size: 17px; cursor: pointer; }
.mytix-add span { width: 30px; height: 30px; border-radius: 50%; background: #1E5EEA; color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.mytix-add:hover { background: #EEF3FD; }
.mytix-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mytix-form input { flex: 1 1 160px; font-family: var(--num); font-size: 24px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; min-height: 50px; }
.mytix-err { flex-basis: 100%; color: var(--err); font-weight: 600; }
.mytix-err:empty { display: none; }
.mytix-note { font-size: 12px; color: var(--muted); margin: 8px 0 10px; text-align: center; }
.nextrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #FFF8F1; border-top: 1px solid #F3E9DA; }
.slot-chip { flex: none; display: inline-grid; place-items: center; min-width: 64px; padding: 6px 10px; border-radius: 10px; background: var(--p); color: #fff; font-weight: 800; font-size: 15px; }
.theme-green .slot-chip { color: #FFD928; }
.nextrow-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.nextrow-txt strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.nextrow-txt small { color: #8A6A3D; font-weight: 600; font-size: 13.5px; }
.btn-alert { background: #1E5EEA; color: #fff; padding: 10px 14px; border-radius: 12px; flex: none; }
.btn-alert svg { width: 18px; height: 18px; }
.btn-alert[aria-pressed="true"] { background: var(--ok); }

.slot-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot-tab { display: grid; place-items: center; min-height: 56px; border-radius: 14px; font-family: var(--num); font-size: 26px; font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--c); background: var(--c2); border: 2px solid color-mix(in srgb, var(--c) 35%, #fff); transition: transform .12s, background .15s; }
.slot-tab:hover { border-color: var(--c); }
.slot-tab.is-active { background: var(--c); color: #fff; border-color: var(--c); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent); }

.rc { background: var(--lb); border: 1px solid color-mix(in srgb, var(--p) 18%, #fff); border-radius: 18px; padding: 14px 12px 12px; text-align: center; position: relative; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.rc-date { background: #1E5EEA; color: #fff; font-weight: 800; font-size: 14px; padding: 3px 12px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.rc-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-slot { background: var(--a); color: var(--a-ink); font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 8px; }
.theme-red .rc-slot { background: var(--p); color: var(--a); }
.theme-green .rc-slot { background: var(--a); color: #FFD928; }
.theme-blue .rc-slot { background: var(--a); color: #FFD22E; }
.rc-main { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 6px 0 2px; }
.rc-arrow { width: 34px; height: 56px; flex: none; display: grid; place-items: center; color: var(--ink); border-radius: 10px; }
.rc-arrow:hover { background: rgba(0, 0, 0, .05); }
.rc-arrow svg { width: 30px; height: 30px; stroke-width: 2.6; }
.rc-arrow.off { visibility: hidden; }
.rc-num { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 18px); margin: 0; font-family: var(--num); font-weight: 800; font-size: clamp(42px, 12.6vw, 92px); line-height: 1; min-width: 0; letter-spacing: .01em; color: var(--p); font-variant-numeric: tabular-nums; }
.theme-red .rc-num { color: #087A43; }
.rc-num i { width: 2px; align-self: stretch; margin: 10px 0; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.rc-num-text { font-size: clamp(24px, 6vw, 32px); color: var(--ink-2); padding: 14px 0; }
.rc-upd { margin: 0; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.rc-empty { padding: 26px 16px; }
.rc-empty p { margin: 0; }

.ctrls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ctrl { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #F7F8FA; color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; }
.ctrl:hover { border-color: #C9D0DD; background: #fff; }
.ctrl-pdf svg { color: #E5232E; width: 24px; height: 24px; stroke-width: 2.4; }
.ctrl-sel select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23384152' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; appearance: none; -webkit-appearance: none; padding: 0 26px 0 8px; font-weight: 800; font-size: 17px; color: var(--ink); text-align: center; text-align-last: center; cursor: pointer; border-radius: 14px; box-shadow: none; }
.ctrl-sel select:focus { box-shadow: 0 0 0 3px rgba(30, 94, 234, .25); }

.finder { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.finder-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.finder-head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0; }
.finder-head h2 svg { width: 22px; height: 22px; color: #1E5EEA; stroke-width: 2.4; }
.finder-eg { display: inline-flex; align-items: center; gap: 6px; font-family: var(--num); font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.finder-eg small { color: #8C95A8; font-size: 19px; }
.finder-eg b { background: #FFE98A; padding: 0 8px; border-radius: 6px; color: var(--ink); }
.boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.box { min-height: 64px; padding: 0; text-align: center; font-family: var(--num); font-size: 34px; font-weight: 800; border: 2px solid #DCE2EC; border-radius: 12px; background: #F9FAFC; color: var(--ink); caret-color: #1E5EEA; }
.box:focus { border-color: #1E5EEA; background: #fff; box-shadow: 0 0 0 3px rgba(30, 94, 234, .18); }
.box.filled { background: #fff; border-color: #9DB4EA; }
.finder.is-win .box.filled { border-color: var(--ok); background: #ECF8F1; }
.finder.is-miss .box.filled { border-color: #E2B4B4; }
.finder-out { margin: 12px 0 4px; font-size: 14.5px; color: var(--muted); }
.finder-out b { color: var(--ink); }
.finder.is-win .finder-out { color: var(--ok); font-weight: 600; }
.finder-all { font-weight: 700; font-size: 14px; text-decoration: none; color: #1E5EEA; }

.rimg { margin: 0; }
.rimg .zoom-frame { border-radius: 14px; box-shadow: var(--shadow); }
.rimg .zoom-frame img { max-width: 100%; }
.share-row { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr; gap: 10px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px; border: 0; color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; cursor: pointer; }
.sbtn svg { width: 26px; height: 26px; stroke-width: 2; }
.sbtn-wa { background: #25D366; } .sbtn-fb { background: #1877F2; } .sbtn-tg { background: #2AABEE; } .sbtn-more { background: #455468; }
.sbtn:hover { filter: brightness(1.06); }
.soldby { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.soldby header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.soldby h2 { font-size: 18px; margin: 0; }
.soldby header a { font-weight: 700; font-size: 15px; color: #1E5EEA; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 6px 0; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 10px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #9AA3B5; background: #fff; }
.timeline li:last-child::before { border-color: var(--gold); background: var(--gold); }
.timeline small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.timeline b { font-size: 15.5px; }
.timeline b a { color: inherit; }
.allnums { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; box-shadow: var(--shadow); }
.allnums > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-weight: 800; font-size: 17px; }
.allnums > summary::-webkit-details-marker { display: none; }
.allnums > summary span { background: var(--lb); color: var(--p); border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.allnums[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.num-grid li.hl { background: var(--a) !important; color: var(--a-ink); border-color: var(--a); }
.jtable .sb-line { font-size: 13.5px; }
.jtable .sb-line small { color: var(--muted); font-weight: 700; }

.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1fr 64px; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(17, 28, 58, .08); }
.bb-slot { display: grid; place-items: center; min-height: 52px; border-radius: 14px; background: var(--c); color: #fff; font-family: var(--num); font-weight: 800; font-size: 24px; text-decoration: none; opacity: .9; }
.bb-slot.is-active { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.bb-scan { display: grid; place-items: center; min-height: 52px; border-radius: 14px; background: #1E5EEA; color: #fff; }
.bb-scan svg { width: 28px; height: 28px; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(86px + env(safe-area-inset-bottom)); }

@media (min-width: 560px) {
  .act { font-size: 15px; }
  .rc { padding: 18px 16px 14px; }
}
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-btn { display: none; }
  .bottom-bar { display: none; }
  body { padding-bottom: 0; }
  .toast { bottom: 24px; }
  .brand { margin-right: 10px; flex: none; }
  .main-nav { margin-left: auto; }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .main-nav a { padding: 8px 8px; font-size: 13.5px; }
}
@media (max-width: 380px) {
  .act { flex-direction: column; gap: 4px; font-size: 12.5px; text-align: center; }
  .act svg { width: 26px; height: 26px; }
  .ctrl, .ctrl-sel select { font-size: 16px; }
  .slot-tab { font-size: 22px; }
}
.scan-choice.pulse-hint { border-color: #1E5EEA; background: #EEF3FD; box-shadow: 0 0 0 4px rgba(30, 94, 234, .15); }
