:root {
    --l28-bg: #021630;
    --l28-bg-deep: #011126;
    --l28-surface: #0c2443;
    --l28-surface-raised: #0e2747;
    --l28-border: #1a426c;
    --l28-primary: #0683f3;
    --l28-primary-strong: #006dff;
    --l28-cyan: #13d6e8;
    --l28-success: #36d996;
    --l28-warning: #f6b94d;
    --l28-danger: #ff5a58;
    --l28-text-strong: #f4f7fc;
    --l28-text: #c8d7ea;
    --l28-muted: #8ea4c0;
    --l28-on-accent: #fff;
    --l28-hover-text: #fff;
    --l28-panel-bg: rgba(12, 36, 67, .94);
    --l28-countdown-overlay-start: rgba(12, 36, 67, .14);
    --l28-countdown-overlay-end: rgba(12, 36, 67, .12);
    --l28-header-bg: rgba(1, 17, 38, .76);
    --l28-header-border: rgba(26, 66, 108, .58);
    --l28-table-head-bg: #153455;
    --l28-bottom-nav-bg: rgba(3, 24, 49, .97);
    --l28-page-glow: rgba(6, 131, 243, .08);
    --l28-surface-subtle: rgba(14, 39, 71, .7);
    --l28-surface-raised-alpha: rgba(14, 39, 71, .74);
    --l28-hover-fill: rgba(6, 131, 243, .09);
    --l28-progress-track: #29496d;
    --l28-progress-end: #37b7ff;
    --l28-ball-border: #4cb1ff;
    --l28-ball-gradient: linear-gradient(145deg, #3484df, #0753a9 70%);
    --l28-mini-ball-gradient: linear-gradient(145deg, #3186e8, #0753a9);
    --l28-sum-ball-gradient: linear-gradient(145deg, #168fff, #0061db 75%);
    --l28-badge-primary: #086fcf;
    --l28-badge-cyan: #057583;
    --l28-badge-danger: #d83d42;
    --l28-badge-parity-odd: #a85b00;
    --l28-badge-parity-even: #057583;
    --l28-ad-border: #58718d;
    --l28-ad-bg: rgba(19, 49, 82, .72);
    --l28-tab-border: rgba(26, 66, 108, .72);
    --l28-link: #37aaff;
    --l28-link-hover: #75c6ff;
    --l28-freshness-bg: rgba(14, 39, 71, .72);
    --l28-success-text: #bdf6dd;
    --l28-warning-text: #ffe0a3;
    --l28-trend-axis: #8ea4c0;
    --l28-trend-grid: rgba(26, 66, 108, .38);
    --l28-trend-border: #375979;
    --l28-trend-line: #34a9ff;
    --l28-trend-dash: #c8d7ea;
    --l28-scroll-thumb: #3c668e;
    --l28-scroll-track: #0a203c;
    --l28-row-hover: rgba(6, 131, 243, .06);
    --l28-widget-bg: #082649;
    --l28-widget-border: #245a8f;
    --l28-widget-heading-gradient: linear-gradient(135deg, #177be7, #064eb9);
    --l28-widget-heading-text: #f4f7fc;
    --l28-widget-ring: #244c78;
    --l28-widget-ring-active: #1da6ff;
    --l28-footer-bg: rgba(1, 17, 38, .65);
    --l28-footer-divider: #49617d;
    --l28-dialog-border: #2e70ad;
    --l28-dialog-backdrop: rgba(1, 10, 23, .78);
    --l28-scratch-stage-bg: #061a32;
    --l28-empty-border: #496887;
    --l28-empty-bg: rgba(14, 39, 71, .54);
    --l28-error-border: rgba(255, 90, 88, .58);
    --l28-error-bg: rgba(255, 90, 88, .1);
    --l28-error-text: #ffd0cf;
    --l28-success-bg: rgba(21, 102, 76, .34);
    --l28-warning-bg: rgba(116, 75, 8, .34);
    --l28-skeleton-bg: #173859;
    --l28-skeleton-shine: rgba(200, 215, 234, .16);
    --l28-shadow-float: 0 12px 30px rgba(0, 0, 0, .38);
    --l28-menu-bg: #0b2442;
    --l28-menu-border: #395673;
    --l28-widget-divider: rgba(200, 215, 234, .48);
    --l28-game-active-gradient: linear-gradient(110deg, #0568bd, #0065df);
    --l28-radius: 12px;
    --l28-control-radius: 8px;
    --l28-shell: 1180px;
}

html[data-theme="light"] {
    color-scheme: light;
    --l28-bg: #f4f7fb;
    --l28-bg-deep: #e8eef6;
    --l28-surface: #fff;
    --l28-surface-raised: #f7faff;
    --l28-border: #c8d7e6;
    --l28-primary: #006fc9;
    --l28-primary-strong: #005db1;
    --l28-cyan: #00778a;
    --l28-success: #137a53;
    --l28-warning: #9a5d00;
    --l28-danger: #c43136;
    --l28-text-strong: #172b43;
    --l28-text: #304a66;
    --l28-muted: #52677f;
    --l28-panel-bg: rgba(255, 255, 255, .96);
    --l28-countdown-overlay-start: rgba(255, 255, 255, .82);
    --l28-countdown-overlay-end: rgba(255, 255, 255, .76);
    --l28-success-bg: rgba(24, 122, 83, .10);
    --l28-warning-bg: rgba(154, 93, 0, .10);
    --l28-header-bg: rgba(255, 255, 255, .92);
    --l28-header-border: rgba(161, 183, 207, .75);
    --l28-table-head-bg: #e9f1fa;
    --l28-bottom-nav-bg: rgba(255, 255, 255, .97);
    --l28-page-glow: rgba(0, 111, 201, .10);
    --l28-surface-subtle: rgba(235, 242, 250, .88);
    --l28-surface-raised-alpha: rgba(241, 246, 252, .94);
    --l28-hover-fill: rgba(0, 111, 201, .10);
    --l28-progress-track: #cad9e8;
    --l28-progress-end: #2494dd;
    --l28-ball-border: #2182ca;
    --l28-ball-gradient: linear-gradient(145deg, #287fd0, #0753a9 70%);
    --l28-mini-ball-gradient: linear-gradient(145deg, #287fd0, #0753a9);
    --l28-sum-ball-gradient: linear-gradient(145deg, #168fff, #0061db 75%);
    --l28-badge-parity-odd: #a35400;
    --l28-badge-parity-even: #00778a;
    --l28-ad-border: #829ab4;
    --l28-ad-bg: rgba(233, 241, 250, .88);
    --l28-tab-border: rgba(161, 183, 207, .82);
    --l28-link: #0066ba;
    --l28-link-hover: #004f92;
    --l28-freshness-bg: rgba(241, 246, 252, .94);
    --l28-success-text: #137a53;
    --l28-warning-text: #9a5d00;
    --l28-trend-axis: #52677f;
    --l28-trend-grid: rgba(161, 183, 207, .55);
    --l28-trend-border: #a7bfd8;
    --l28-trend-line: #006fc9;
    --l28-trend-dash: #52677f;
    --l28-scroll-thumb: #91a9c2;
    --l28-scroll-track: #e8eef6;
    --l28-row-hover: rgba(0, 111, 201, .07);
    --l28-widget-bg: #edf6ff;
    --l28-widget-border: #6baee2;
    --l28-widget-ring: #9bb8d4;
    --l28-widget-heading-text: #fff;
    --l28-footer-bg: rgba(232, 238, 246, .78);
    --l28-footer-divider: #b4c6d8;
    --l28-dialog-border: #7aaedb;
    --l28-dialog-backdrop: rgba(15, 35, 58, .48);
    --l28-scratch-stage-bg: #e4edf7;
    --l28-empty-border: #8da4bb;
    --l28-empty-bg: rgba(235, 242, 250, .88);
    --l28-error-border: rgba(196, 49, 54, .50);
    --l28-error-bg: rgba(196, 49, 54, .08);
    --l28-error-text: #8d2028;
    --l28-skeleton-bg: #dce8f4;
    --l28-skeleton-shine: rgba(255, 255, 255, .78);
    --l28-shadow-float: 0 12px 30px rgba(31, 66, 102, .18);
    --l28-menu-bg: #fff;
    --l28-menu-border: #a7bfd8;
    --l28-widget-divider: rgba(255, 255, 255, .48);
    --l28-hover-text: #172b43;
    --l28-game-active-gradient: linear-gradient(110deg, #006fc9, #005db1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body.l28-page {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--l28-text);
    background: radial-gradient(circle at 50% 12%, var(--l28-page-glow), transparent 36rem), var(--l28-bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.l28-page a { color: inherit; text-decoration: none; }
.l28-page button { color: inherit; font: inherit; }
.l28-page h1, .l28-page h2, .l28-page p, .l28-page dl, .l28-page dd { margin: 0; }
.l28-page h1, .l28-page h2 { color: var(--l28-text-strong); font-size: 18px; line-height: 1.3; }
.l28-page button, .l28-page a, .l28-page summary { -webkit-tap-highlight-color: transparent; }
.l28-page :focus-visible { outline: 3px solid var(--l28-cyan); outline-offset: 3px; }

.l28-shell { width: min(var(--l28-shell), calc(100% - 32px)); margin-inline: auto; }
.l28-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.l28-skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--l28-control-radius); color: var(--l28-on-accent); background: var(--l28-primary-strong); transform: translateY(-150%); transition: transform .16s ease-out; }
.l28-skip-link:focus { transform: translateY(0); }

.l28-site-header { height: 56px; border-bottom: 1px solid var(--l28-header-border); background: var(--l28-header-bg); }
.l28-header-inner { display: flex; align-items: stretch; height: 100%; }
.l28-brand { display: flex; align-items: center; gap: 8px; margin-right: 72px; color: var(--l28-text-strong); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.l28-brand-mark { display: block; width: 28px; height: 28px; flex: 0 0 auto; }
.l28-primary-nav { display: flex; gap: 56px; height: 100%; }
.l28-primary-nav a { position: relative; display: flex; align-items: center; gap: 7px; min-width: 48px; color: var(--l28-text); }
.l28-primary-nav a:hover, .l28-primary-nav a.is-active { color: var(--l28-hover-text); }
.l28-primary-nav a.is-active { color: var(--l28-link); }
.l28-primary-nav a.is-active::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; border-radius: 2px; background: var(--l28-primary); content: ""; }
.l28-theme-toggle { display: inline-flex; align-self: center; align-items: center; justify-content: center; gap: 5px; width: 64px; min-width: 44px; height: 44px; min-height: 44px; margin-left: auto; padding: 0 6px; border: 1px solid var(--l28-border); border-radius: var(--l28-control-radius); color: var(--l28-muted); background: var(--l28-surface-subtle); font: inherit; cursor: pointer; }
.l28-theme-toggle:hover { color: var(--l28-text-strong); background: var(--l28-hover-fill); }
.l28-theme-toggle:active, .l28-theme-toggle[aria-pressed="true"] { color: var(--l28-link); border-color: var(--l28-primary); }
.l28-theme-toggle:focus-visible { outline: 3px solid var(--l28-cyan); outline-offset: 3px; }
.l28-mobile-menu { display: none; }

.l28-main { padding-block: 24px 30px; }
.l28-top-ad { margin-top: 12px; overflow: hidden; border: 1px solid var(--l28-ad-border); border-radius: var(--l28-control-radius); background: var(--l28-ad-bg); }
.l28-top-ad > a, .l28-top-ad > span { display: flex; align-items: center; justify-content: center; width: 100%; max-height: 96px; padding: 12px 16px; overflow-wrap: anywhere; }
.l28-top-ad img { display: block; width: 100%; max-height: 96px; object-fit: cover; }

.l28-panel { border: 1px solid var(--l28-border); border-radius: var(--l28-radius); background-color: var(--l28-panel-bg); }
.l28-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.l28-countdown-card { min-height: 224px; padding: 17px 20px; background-image: linear-gradient(90deg, var(--l28-countdown-overlay-start), var(--l28-countdown-overlay-end)), url("/static/img/lottery28/countdown-watermark.png"); background-position: center; background-size: cover; }
.l28-issue { margin-top: 6px !important; color: var(--l28-text); font-variant-numeric: tabular-nums; }
.l28-issue strong { color: var(--l28-text-strong); font-size: 17px; }
.l28-countdown-value { display: block; margin-top: 4px; color: var(--l28-text-strong); font-size: clamp(62px, 6vw, 82px); font-weight: 750; line-height: 1.12; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.l28-progress { height: 8px; margin-top: 3px; overflow: hidden; border-radius: 8px; background: var(--l28-progress-track); }
.l28-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--l28-primary-strong), var(--l28-progress-end)); }
.l28-countdown-meta { display: flex; justify-content: space-between; margin-top: 8px; color: var(--l28-muted); font-variant-numeric: tabular-nums; }
.l28-hero-side { display: grid; }
.l28-latest-card { display: flex; flex-direction: column; justify-content: center; min-height: 164px; padding: 17px 20px; }
.l28-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.l28-panel-heading time, .l28-panel-heading p { color: var(--l28-muted); font-variant-numeric: tabular-nums; }
.l28-latest-meta { display: flex; align-items: center; gap: 9px; }
.l28-freshness { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 7px; border: 1px solid var(--l28-empty-border); border-radius: 999px; color: var(--l28-text); background: var(--l28-freshness-bg); font-size: 11px; white-space: nowrap; }
.l28-freshness[data-state="fresh"] { border-color: var(--l28-success); color: var(--l28-success-text); background: var(--l28-success-bg); }
.l28-freshness[data-state="stale"] { border-color: var(--l28-warning); color: var(--l28-warning-text); background: var(--l28-warning-bg); }
.l28-equation { display: flex; align-items: center; gap: 10px; margin-top: 18px; white-space: nowrap; }
.l28-ball { display: inline-grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; border: 1px solid var(--l28-ball-border); border-radius: 50%; color: var(--l28-on-accent); background: var(--l28-ball-gradient); font-size: 26px; font-variant-numeric: tabular-nums; }
.l28-ball--sum { background: var(--l28-sum-ball-gradient); }
.l28-operator { color: var(--l28-text-strong); font-size: 22px; font-weight: 700; }
.l28-badge { display: inline-grid; min-width: 34px; height: 34px; place-items: center; border-radius: 6px; color: var(--l28-on-accent); font-size: 16px; font-weight: 700; }
.l28-badge--primary { background: var(--l28-badge-primary); }
.l28-badge--cyan { background: #057583; }
.l28-badge--cyan { background: var(--l28-badge-cyan); }
.l28-badge--danger { background: var(--l28-badge-danger); }
.l28-badge--parity-odd { background: var(--l28-badge-parity-odd); }
.l28-badge--parity-even { background: var(--l28-badge-parity-even); }
.l28-latest-issue { margin-top: 14px !important; }
.l28-analysis { display: grid; grid-template-columns: 410px minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.l28-prediction { min-height: 258px; padding: 16px; }
.l28-trend { align-self: stretch; display: flex; flex-direction: column; padding: 16px; }
.l28-tab-list { display: grid; grid-template-columns: repeat(var(--l28-tab-count, 3), minmax(0, 1fr)); margin-top: 10px; border-bottom: 1px solid var(--l28-tab-border); }
.l28-tab-list button { position: relative; min-height: 44px; border: 0; color: var(--l28-muted); background: transparent; cursor: pointer; }
.l28-tab-list button:hover, .l28-tab-list button[aria-selected="true"] { color: var(--l28-link); }
.l28-tab-list button[aria-selected="true"]::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 3px; border-radius: 3px 3px 0 0; background: var(--l28-primary); content: ""; }
.l28-reference { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 126px; margin-top: 14px; padding: 12px; border: 1px solid var(--l28-border); border-radius: var(--l28-control-radius); color: var(--l28-text); background: var(--l28-surface-raised-alpha); font-size: 16px; }
.l28-reference[hidden] { display: none; }
.l28-reference strong { color: var(--l28-link); font-size: 22px; }
.l28-reference .l28-cyan { color: var(--l28-cyan); }
.l28-prediction-value { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.l28-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l28-metrics div { min-width: 0; padding: 2px 8px; text-align: center; }
.l28-metrics div + div { border-left: 1px solid var(--l28-border); }
.l28-metrics dt { color: var(--l28-muted); font-size: 12px; }
.l28-metrics dd { color: var(--l28-text-strong); font-size: 17px; font-weight: 650; overflow-wrap: anywhere; white-space: normal; font-variant-numeric: tabular-nums; }
.l28-metrics small { font-size: 12px; }
.l28-note { display: flex; align-items: center; gap: 6px; margin-top: 9px !important; color: var(--l28-muted); font-size: 12px; }
.l28-trend canvas { display: block; width: 100%; height: 0; min-height: 190px; flex: 1 1 0; margin-top: 8px; border-bottom: 1px solid var(--l28-trend-border); background: linear-gradient(var(--l28-trend-grid) 1px, transparent 1px); background-size: 100% 38px; }
.l28-trend .l28-panel-heading p { display: flex; align-items: center; gap: 7px; color: var(--l28-trend-axis); font-size: 12px; }
.l28-legend-line, .l28-legend-dash { width: 22px; height: 2px; background: var(--l28-trend-line); }
.l28-legend-dash { background: repeating-linear-gradient(90deg, var(--l28-trend-dash) 0 4px, transparent 4px 7px); }
.l28-canvas-fallback { display: none; }

.l28-statistics { margin-top: 14px; padding: 16px; }
.l28-statistics-section { min-width: 0; margin-top: 15px; }
.l28-statistics-section h3 { margin: 0 0 7px; color: var(--l28-text-strong); font-size: 14px; }
.l28-stat-summary { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); border-block: 1px solid var(--l28-border); }
.l28-stat-summary div { min-width: 0; padding: 9px 12px; text-align: center; }
.l28-stat-summary div + div { border-inline-start: 1px solid var(--l28-border); }
.l28-stat-summary dt { color: var(--l28-muted); font-size: 12px; }
.l28-stat-summary dd { color: var(--l28-text-strong); font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.l28-stat-summary small { font-size: 12px; font-weight: 400; }
.l28-stat-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--l28-border); border-radius: var(--l28-control-radius); scrollbar-color: var(--l28-scroll-thumb) var(--l28-scroll-track); }
.l28-stat-table { width: 100%; min-width: 780px; border-collapse: collapse; color: var(--l28-text); font-variant-numeric: tabular-nums; }
.l28-stat-table caption { padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); position: absolute; width: 1px; height: 1px; white-space: nowrap; }
.l28-stat-table th, .l28-stat-table td { min-width: 26px; height: 30px; padding: 3px 6px; border-inline-end: 1px solid var(--l28-border); border-block-end: 1px solid var(--l28-border); text-align: center; white-space: nowrap; }
.l28-stat-table th { color: var(--l28-text-strong); background: var(--l28-table-head-bg); font-weight: 600; }
.l28-stat-table tbody tr:last-child > * { border-block-end: 0; }
.l28-stat-table tr > *:last-child { border-inline-end: 0; }

.l28-records-layout { margin-top: 14px; }
.l28-records-card { min-width: 0; padding: 8px 12px 4px; }
.l28-records-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; border-bottom: 1px solid var(--l28-tab-border); }
.l28-records-tabs button { position: relative; min-height: 44px; border: 0; color: var(--l28-muted); background: transparent; cursor: pointer; }
.l28-records-tabs button:hover, .l28-records-tabs button[aria-selected="true"] { color: var(--l28-link); }
.l28-records-tabs button[aria-selected="true"]::after { position: absolute; right: 18px; bottom: -1px; left: 18px; height: 3px; border-radius: 3px 3px 0 0; background: var(--l28-primary); content: ""; }
[data-records-panel][hidden] { display: none; }
.l28-table-wrap { margin-top: 4px; overflow: hidden; border: 1px solid var(--l28-border); border-radius: var(--l28-control-radius); }
.l28-records-card [data-draw-table] { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.l28-records-card th, .l28-records-card td { height: 32px; padding: 4px 6px; border-right: 1px solid var(--l28-border); border-bottom: 1px solid var(--l28-border); text-align: center; white-space: nowrap; }
.l28-records-card th:last-child, .l28-records-card td:last-child { border-right: 0; }
.l28-records-card tbody tr:last-child td { border-bottom: 0; }
.l28-records-card th { color: var(--l28-text); background: var(--l28-table-head-bg); font-weight: 550; }
.l28-records-card td { color: var(--l28-text); }
.l28-records-card tbody tr:hover { background: var(--l28-row-hover); }
.l28-records-card [data-draw-table] tbody tr:nth-child(n + 8) { display: none; }
.l28-records-card [data-draw-table] tbody tr:nth-child(7) td { border-bottom: 0; }
.l28-records-card.is-expanded [data-draw-table] tbody tr { display: table-row; }
.l28-records-card.is-expanded [data-draw-table] tbody tr:nth-child(7) td { border-bottom: 1px solid var(--l28-border); }
.l28-records-card [data-draw-table] .l28-col-issue { width: 16%; }
.l28-records-card [data-draw-table] .l28-col-time { width: 15%; }
.l28-records-card [data-draw-table] .l28-col-equation { width: 26%; }
.l28-records-card [data-draw-table] .l28-col-sum { width: 9%; }
.l28-records-card [data-draw-table] .l28-col-size, .l28-records-card [data-draw-table] .l28-col-parity { width: 8%; }
.l28-records-card [data-draw-table] .l28-col-combination { width: 18%; }
.l28-records-card .l28-badge { min-width: 22px; height: 20px; font-size: 11px; }
.l28-col-result-mobile { display: none; }
.l28-prediction-records-table { width: 100%; border-collapse: collapse; table-layout: auto; font-variant-numeric: tabular-nums; }
.l28-prediction-records-table th, .l28-prediction-records-table td { height: 40px; padding: 6px 8px; }
.l28-prediction-records-table th { line-height: 1.35; }
.l28-prediction-records-table td { font-variant-numeric: tabular-nums; }
.l28-prediction-record-value, .l28-prediction-provider { display: block; }
.l28-prediction-provider { margin-top: 2px; color: var(--l28-muted); font-size: 11px; }
.l28-record-status { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 650; }
.l28-record-status--hit { color: var(--l28-success-text); }
.l28-record-status--miss { color: var(--l28-error-text); }
.l28-record-status--pending { color: var(--l28-warning-text); }
.l28-mini-equation { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.l28-mini-equation b { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--l28-on-accent); background: var(--l28-mini-ball-gradient); font-size: 12px; }
.l28-mini-equation i { flex: 0 0 auto; color: var(--l28-text-strong); font-style: normal; font-weight: 650; }
.l28-more-link { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; width: 100%; padding: 0; border: 0; color: var(--l28-link) !important; background: transparent; cursor: pointer; }
.l28-more-link[hidden] { display: none; }
.l28-more-link--mobile-only { display: none; }
.l28-more-link:hover { color: var(--l28-link-hover) !important; }

.l28-help { margin-top: 14px; padding: 16px 20px; }
.l28-help p { max-width: 75ch; margin-top: 8px; color: var(--l28-text); overflow-wrap: anywhere; }

.l28-draw-widget { position: fixed; z-index: 30; right: 18px; bottom: 18px; width: 180px; overflow: hidden; border: 1px solid var(--l28-widget-border); border-radius: 16px; background: var(--l28-widget-bg); box-shadow: var(--l28-shadow-float); }
.l28-widget-heading { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; color: var(--l28-widget-heading-text); background: var(--l28-widget-heading-gradient); }
.l28-widget-heading h2 { color: var(--l28-widget-heading-text); font-size: 15px; }
.l28-widget-heading button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.l28-widget-body { display: flex; flex-direction: column; align-items: center; padding: 12px; text-align: center; }
.l28-widget-body[hidden] { display: none; }
.l28-widget-latest { color: var(--l28-muted); font-size: 11px; }
.l28-widget-latest span { color: var(--l28-text); font-variant-numeric: tabular-nums; }
.l28-widget-body > span { margin-top: 6px; color: var(--l28-muted); font-size: 12px; }
.l28-widget-label, .l28-widget-divider, .l28-scratch-label-short { display: none; }
.l28-widget-body time { margin-top: 2px; color: var(--l28-text-strong); font-size: 28px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.l28-widget-ring { width: 62px; height: 32px; margin: 4px 0 10px; border: 6px solid var(--l28-widget-ring); border-top-color: var(--l28-widget-ring-active); border-right-color: var(--l28-widget-ring-active); border-radius: 50%; transform: rotate(8deg); }
.l28-scratch-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border: 1px solid #56b9ff; border-radius: 10px; color: #fff !important; background: linear-gradient(135deg, #0868c2, #0758c8); font-weight: 650; cursor: pointer; }
.l28-scratch-button:hover { filter: brightness(1.09); }
.l28-scratch-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.l28-scratch-actions .l28-scratch-button { min-width: 0; min-height: 44px; }
.l28-scratch-button--secondary { background: transparent; color: var(--l28-link) !important; border-color: var(--l28-link); }
.l28-scratch-button:disabled { cursor: wait; opacity: .65; }

.l28-site-footer { border-top: 1px solid var(--l28-border); background: var(--l28-footer-bg); }
.l28-footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; color: var(--l28-muted); }
.l28-footer-inner nav { display: flex; align-items: center; gap: 0; }
.l28-footer-inner nav strong { margin-right: 18px; color: var(--l28-text); }
.l28-footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-left: 1px solid var(--l28-footer-divider); }
.l28-footer-inner nav a:hover { color: var(--l28-hover-text); }
.l28-footer-inner p { font-size: 12px; }

.l28-scratch-dialog { width: min(620px, calc(100% - 32px)); padding: 22px; border: 1px solid var(--l28-dialog-border); border-radius: 16px; color: var(--l28-text); background: var(--l28-surface); }
.l28-scratch-dialog::backdrop { background: var(--l28-dialog-backdrop); }
.l28-scratch-dialog form { position: absolute; top: 8px; right: 8px; }
.l28-scratch-dialog form button { width: 44px; height: 44px; border: 0; color: var(--l28-text); background: transparent; cursor: pointer; }
.l28-scratch-dialog h2 { padding-right: 40px; }
.l28-scratch-dialog > p { margin-top: 12px; color: var(--l28-muted); text-align: center; }
.l28-scratch-stage { position: relative; display: grid; min-height: 240px; place-items: center; margin-top: 16px; overflow: hidden; border-radius: 10px; background: var(--l28-scratch-stage-bg); }
.l28-scratch-result { color: var(--l28-text-strong); font-size: 36px; font-weight: 700; }
.l28-scratch-surface { position: absolute; inset: 0; width: 100%; height: 100%; background-color: transparent; }
.l28-bottom-nav { display: none; }

.l28-state { padding: 22px; border-radius: var(--l28-control-radius); color: var(--l28-text); text-align: center; }
.l28-state[hidden] { display: none; }
.l28-state--empty { border: 1px dashed var(--l28-empty-border); background: var(--l28-empty-bg); }
.l28-state--error { border: 1px solid var(--l28-error-border); color: var(--l28-error-text); background: var(--l28-error-bg); }
.l28-skeleton { position: relative; overflow: hidden; color: transparent !important; background: var(--l28-skeleton-bg) !important; }
.l28-skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--l28-skeleton-shine), transparent); content: ""; transform: translateX(-100%); animation: l28-shimmer 1.4s ease-in-out infinite; }
@keyframes l28-shimmer { to { transform: translateX(100%); } }

@media (max-width: 1023px) {
    .l28-primary-nav { gap: 28px; }
    .l28-analysis { grid-template-columns: 360px minmax(0, 1fr); }
    .l28-draw-widget { width: auto; border-radius: 999px; }
    .l28-widget-heading { display: none; }
    .l28-widget-body { flex-direction: row; gap: 12px; padding: 6px 7px 6px 16px; }
    .l28-widget-body > p, .l28-widget-distance, .l28-widget-ring { display: none; }
    .l28-widget-body time { margin: 0; font-size: 16px; }
    .l28-scratch-button { width: auto; min-height: 44px; padding-inline: 16px; border-radius: 999px; }
}

@media (max-width: 853px) {
    html { scroll-behavior: auto; }
    body.l28-page { --l28-mobile-nav-height: clamp(84px, 15.8vw, 135px); padding-bottom: calc(var(--l28-mobile-nav-height) + env(safe-area-inset-bottom)); font-size: 14px; }
    .l28-shell { width: calc(100% - 48px); }
    .l28-site-header { height: 78px; }
    .l28-header-inner { align-items: center; }
    .l28-brand { margin-right: 0; font-size: 23px; }
    .l28-primary-nav { display: none; }
    .l28-theme-toggle { display: flex; gap: 5px; min-height: 44px; margin-left: 16px; color: var(--l28-muted); font-size: 15px; }
    .l28-mobile-menu { position: relative; display: block; margin-left: auto; }
    .l28-mobile-menu summary { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--l28-menu-border); border-radius: 10px; color: var(--l28-text-strong); font-size: 25px; cursor: pointer; list-style: none; }
    .l28-mobile-menu summary::-webkit-details-marker { display: none; }
    .l28-mobile-menu nav { position: absolute; z-index: 20; top: 58px; right: 0; display: grid; width: 176px; padding: 8px; border: 1px solid var(--l28-border); border-radius: 10px; background: var(--l28-menu-bg); box-shadow: var(--l28-shadow-float); }
    .l28-mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; }
    .l28-mobile-menu nav a:hover { background: var(--l28-hover-fill); }
    .l28-main { padding-top: 20px; }
    .l28-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
    .l28-hero-side, .l28-latest-card { min-width: 0; }
    .l28-countdown-card { min-height: 320px; padding: 22px 24px; background-position: 56% center; }
    .l28-countdown-card h1, .l28-latest-card h2, .l28-prediction h2, .l28-records-card h2 { font-size: clamp(21px, 2.8vw, 24px); }
    .l28-issue { font-size: 17px; }
    .l28-issue strong { font-size: 22px; }
    .l28-countdown-value { margin-top: 20px; font-size: clamp(80px, 14vw, 120px); letter-spacing: .01em; }
    .l28-progress { margin-top: 16px; }
    .l28-countdown-meta { margin-top: 12px; font-size: 15px; }
    .l28-latest-card { min-height: 230px; padding: 22px 24px; }
    .l28-equation { justify-content: space-between; gap: clamp(3px, .8vw, 8px); margin-top: 25px; }
    .l28-ball { width: clamp(40px, 8.45vw, 72px); height: clamp(40px, 8.45vw, 72px); flex-basis: clamp(40px, 8.45vw, 72px); font-size: clamp(20px, 3.05vw, 26px); }
    .l28-operator { font-size: clamp(18px, 2.58vw, 22px); }
    .l28-equation .l28-badge { min-width: clamp(34px, 7.5vw, 64px); height: clamp(36px, 7.5vw, 64px); font-size: clamp(16px, 2.34vw, 20px); }
    .l28-latest-issue { margin-top: 22px !important; }
    .l28-top-ad > a, .l28-top-ad > span, .l28-top-ad img { max-height: 64px; }
    .l28-analysis { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
    .l28-prediction { min-height: 344px; padding: 20px; }
    .l28-tab-list { margin-top: 12px; }
    .l28-tab-list button { min-height: 52px; font-size: 16px; }
    .l28-reference { min-height: 76px; font-size: 17px; }
    .l28-reference strong { font-size: 25px; }
    .l28-metrics { grid-template-columns: repeat(2, 1fr); }
    .l28-metrics div { min-height: 80px; padding-top: 12px; border: 1px solid var(--l28-border); border-radius: 8px; }
    .l28-metrics div + div { border-left: 1px solid var(--l28-border); }
    .l28-metrics dt { font-size: 14px; }
    .l28-metrics dd { font-size: 23px; }
    .l28-note { margin-top: 14px !important; font-size: 13px; }
    .l28-trend { align-self: auto; min-height: 0; display: none; }
    .l28-trend:target { display: block; }
    .l28-trend .l28-panel-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .l28-trend .l28-panel-heading h2 { white-space: nowrap; }
    .l28-statistics { margin-top: 20px; padding: 20px; }
    .l28-statistics .l28-panel-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .l28-stat-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .l28-stat-summary div { padding-inline: 5px; }
    .l28-stat-table-wrap { max-width: 100%; }
    .l28-records-layout { margin-top: 14px; }
    .l28-records-card { padding: 18px 12px 10px; }
    .l28-records-tabs button { min-height: 48px; font-size: 16px; }
    .l28-table-wrap { overflow: hidden; }
    .l28-records-card [data-draw-table] { width: 100%; min-width: 0; table-layout: fixed; }
    .l28-records-card th, .l28-records-card td { height: 48px; padding-inline: 7px; }
    .l28-records-card [data-draw-table] .l28-col-wide { display: none; }
    .l28-records-card [data-draw-table] .l28-col-result-desktop { display: none; }
    .l28-records-card [data-draw-table] .l28-col-issue { width: 18%; }
    .l28-records-card [data-draw-table] .l28-col-time { width: 19%; }
    .l28-records-card [data-draw-table] .l28-col-equation { width: 45%; }
    .l28-records-card [data-draw-table] .l28-col-result-mobile { display: table-cell; width: 18%; padding-inline: 3px; }
    .l28-records-card [data-draw-table] tbody tr:nth-child(n + 5) { display: none; }
    .l28-records-card.is-expanded [data-draw-table] tbody tr { display: table-row; }
    .l28-prediction-records-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; scrollbar-color: var(--l28-scroll-thumb) var(--l28-scroll-track); }
    .l28-prediction-records-table { min-width: 760px; }
    .l28-prediction-records-table th, .l28-prediction-records-table td { height: 48px; }
    .l28-col-result-mobile .l28-badge + .l28-badge { margin-left: 4px; }
    .l28-mini-equation { gap: 4px; }
    .l28-mini-equation b { width: 25px; height: 25px; }
    .l28-more-link { min-height: 48px; }
    .l28-more-link--mobile-only { display: flex; }
    .l28-site-footer { display: none; }
    .l28-help { padding: 20px; }
    .l28-bottom-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--l28-mobile-nav-height) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--l28-border); background: var(--l28-bottom-nav-bg); }
    .l28-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: var(--l28-mobile-nav-height); color: var(--l28-muted); font-size: clamp(16px, 2.58vw, 22px); }
    .l28-bottom-nav i { font-size: clamp(28px, 4.45vw, 38px); }
    .l28-bottom-nav a.is-active { color: var(--l28-link); }
    .l28-draw-widget { right: 12px; bottom: calc(var(--l28-mobile-nav-height) + env(safe-area-inset-bottom) + 14px); width: min(403px, calc(100% - 48px)); border-color: #77caff; background: linear-gradient(135deg, #0874d1, #064ba5); }
    .l28-widget-body { justify-content: space-between; gap: 10px; min-height: 60px; width: 100%; padding: 8px 10px; }
    .l28-draw-widget .l28-widget-latest, .l28-draw-widget .l28-widget-latest span, .l28-draw-widget .l28-widget-body > span { color: var(--l28-on-accent); }
    .l28-widget-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: clamp(16px, 2.34vw, 20px); font-weight: 650; white-space: nowrap; }
    .l28-widget-label i { font-size: 22px; }
    .l28-widget-body time { color: #fff; font-size: clamp(16px, 2.34vw, 20px); }
    .l28-widget-divider { display: block; width: 1px; height: 34px; margin: 0; background: var(--l28-widget-divider); }
    .l28-scratch-label-full { display: none; }
    .l28-scratch-label-short { display: inline; }
    .l28-scratch-button { padding-inline: 14px; border-color: rgba(255, 255, 255, .52); background: rgba(2, 42, 93, .24); }
}

@media (max-width: 853px) and (max-height: 500px) {
    body.l28-page { --l28-mobile-nav-height: 60px; }
    .l28-bottom-nav a { gap: 2px; min-height: var(--l28-mobile-nav-height); font-size: 12px; }
    .l28-bottom-nav i { font-size: 20px; }
    .l28-draw-widget { bottom: calc(var(--l28-mobile-nav-height) + env(safe-area-inset-bottom) + 8px); width: min(360px, calc(100% - 32px)); }
    .l28-widget-body { gap: 8px; min-height: 56px; padding: 6px 8px; }
    .l28-widget-label { font-size: 14px; }
    .l28-widget-label i { font-size: 18px; }
    .l28-widget-body time { font-size: 14px; }
    .l28-widget-divider { height: 28px; }
    .l28-scratch-button { min-height: 44px; padding-inline: 12px; }
}

@media (max-width: 420px) {
    .l28-shell { width: calc(100% - 24px); }
    .l28-brand { min-width: 0; font-size: 18px; }
    .l28-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .l28-theme-toggle { width: 44px; margin-left: 8px; padding: 0; }
    .l28-theme-toggle [data-theme-label] { display: none; }
    .l28-countdown-card { padding-inline: 18px; }
    .l28-latest-card { padding-inline: 14px; }
    .l28-equation { gap: 3px; }
    .l28-ball { width: 40px; height: 40px; flex-basis: 40px; font-size: 20px; }
    .l28-operator { font-size: 18px; }
    .l28-equation .l28-badge { min-width: 34px; height: 36px; font-size: 16px; }
    .l28-records-card th, .l28-records-card td { padding-inline: 4px; font-size: 12px; }
    .l28-mini-equation { gap: 2px; }
    .l28-mini-equation b { width: 20px; height: 20px; }
}

@media (max-width: 360px) {
    .l28-records-card [data-draw-table] th, .l28-records-card [data-draw-table] td { padding-inline: 2px; font-size: 11px; }
    .l28-records-card [data-draw-table] .l28-col-result-mobile { padding-inline: 1px; }
    [data-draw-table] .l28-col-result-mobile .l28-badge { min-width: 20px; font-size: 10px; }
    [data-draw-table] .l28-col-result-mobile .l28-badge + .l28-badge { margin-left: 2px; }
    [data-draw-table] .l28-mini-equation { gap: 1px; }
    [data-draw-table] .l28-mini-equation b { width: 19px; height: 19px; }
}

p.l28-scratch-refresh-status { min-height: 1.4em; margin: 8px 0 0; text-align: center; color: var(--l28-muted); }

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