/* Measured from the reference site's rendered light theme, September 2026. */
@font-face { font-family: AlimamaShuHeiTi; src: url('/fonts/AlimamaShuHeiTi-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --blue: #1e6fd9;
  --cyan: oklch(68% .15 230);
  --ink: oklch(18% .02 260);
  --muted: oklch(50% .02 260);
  --line: oklch(91% .01 240);
  --surface: #fff;
  --bg: oklch(98% .005 250);
  --soft: oklch(95% .008 250);
  --red: oklch(63.7% .237 25.331);
  --badge-blue: oklch(62.3% .214 259.815);
  --green: oklch(72.3% .219 149.579);
  --purple: oklch(62.7% .265 303.9);
  --violet: oklch(60.6% .25 292.717);
  --orange: oklch(70.5% .213 47.604);
  --yellow: oklch(79.5% .184 86.047);
  --badge-cyan: oklch(71.5% .143 215.221);
  --gray: oklch(55.1% .027 264.364);
  --blue-soft: color-mix(in srgb, var(--badge-blue) 15%, transparent);
  --red-soft: color-mix(in srgb, var(--red) 15%, transparent);
  --green-soft: color-mix(in srgb, var(--green) 15%, transparent);
  --purple-soft: color-mix(in srgb, var(--purple) 15%, transparent);
  --shadow: 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
  --number-font: AlimamaShuHeiTi, 'Courier New', monospace;
  font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(68% .15 230 / .25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: oklch(68% .15 230 / .4); }
html { scroll-padding-top: 76px; }
body { margin: 0; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 15% 20%, #00a6db0f, transparent 50%), radial-gradient(circle at 85% 80%, #00a6db0a, transparent 50%), radial-gradient(circle, #a170eb08, transparent 60%); }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { color: inherit; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 50%, transparent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
button svg { pointer-events: none; }
.muted { color: var(--muted); }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 60; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 30; height: 57px; color: white; background: linear-gradient(135deg, #1e6fd9, #2d8cf0, #1e6fd9); border-bottom: 1px solid #ffffff26; box-shadow: 0 2px 8px #1e6fd94d; }
.header-inner { display: flex; align-items: center; gap: 12px; max-width: 1152px; height: 56px; margin: auto; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 18px; font-weight: 600; }
.brand-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--blue); background: white; font-size: 22px; font-weight: 700; }
.brand small { display: none; }
.header-help { padding: 6px 12px; border: 0; border-radius: 8px; background: #ffffff26; color: white; font-size: 14px; font-weight: 500; white-space: nowrap; }
.header-help { display: flex; align-items: center; gap: 4px; margin-left: auto; min-height: 36px; }
.header-help:hover { background: #ffffff40; }
.container { position: relative; max-width: 1152px; margin: auto; padding: 24px 20px 0; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.draw-card { position: relative; padding: 24px; border-color: color-mix(in srgb, var(--cyan) 20%, transparent); }
.draw-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, #00a6db, #009488, #a170eb, #00a6db); background-size: 200% 100%; animation: color-shift 4s ease infinite; }
@keyframes color-shift { 50% { background-position: 100% 0; } }
.draw-heading, .latest-title, .draw-actions { display: flex; align-items: center; }
.draw-heading { justify-content: space-between; gap: 8px; min-height: 32px; }
.latest-title { flex-wrap: wrap; gap: 6px; min-width: 0; }
.latest-title h1 { font-size: 18px; font-weight: 700; line-height: 28px; }
#latest-issue { color: var(--muted); font-size: 15.2px; white-space: nowrap; }
#latest-issue strong { color: var(--ink); font-family: var(--number-font); font-weight: 700; }
.live-status, #draw-date, .latest-badges { display: none; }
.draw-actions { gap: 6px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; box-shadow: 0 1px 2px #0000000d; }
.button:hover { background: oklch(93% .03 230); }
.button.primary { background: var(--cyan); border-color: transparent; color: white; }
.button.primary:hover { background: color-mix(in srgb, var(--cyan) 90%, transparent); }
.button[aria-pressed=true] { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 5%, var(--bg)); }
#refresh-button { width: 32px; padding: 4px; }
#refresh-button span { display: none; }
.game-bar { margin-top: 8px; padding: 2px; border-radius: 10px; background: color-mix(in srgb, var(--soft) 40%, transparent); }
.game-buttons { display: flex; gap: 2px; }
.game-button { min-height: 24px; min-width: 86px; padding: 4px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; line-height: 16px; }
.game-button.active { background: var(--cyan); color: white; box-shadow: 0 1px 3px #0000001a; }
.game-button:not(.active):hover { background: var(--bg); color: var(--ink); }
.draw-stage { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 36px; min-height: 86px; }
.countdown-box { --countdown-progress: 0%; --countdown-color: var(--cyan); --countdown-ring-color: color-mix(in srgb, var(--countdown-color) 76%, transparent); position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 260px; padding: 12px 52px; border: 1px solid color-mix(in srgb, var(--countdown-color) 15%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--countdown-color) 5%, transparent); transition: background-color .2s, border-color .2s; }
.countdown-box::before, .countdown-box::after { content: ''; position: absolute; inset: 0; z-index: -1; padding: 1.5px; border-radius: inherit; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.countdown-box::before { background: conic-gradient(from -90deg, var(--countdown-ring-color) 0 var(--countdown-progress), oklch(100% 0 0 / .1) var(--countdown-progress) 100%); }
.countdown-box::after { opacity: .45; background: repeating-conic-gradient(from -90deg, transparent 0 2.22%, #ffffff42 2.22% 3.06%, transparent 3.06% 5%); animation: countdown-border-marquee 1.8s linear infinite; }
.countdown-box.is-urgent { --countdown-color: oklch(57.7% .245 27.325); --countdown-ring-color: color-mix(in srgb, var(--countdown-color) 82%, transparent); }
.countdown-box.is-urgent strong { color: var(--countdown-color); animation: countdown-breathe 2s ease-in-out infinite; }
.countdown-box.is-urgent #countdown-label { color: color-mix(in srgb, var(--countdown-color) 70%, transparent); }
.countdown-box .countdown-waiting { color: var(--muted); font-size: 14px; }
@keyframes countdown-border-marquee { to { transform: rotate(1turn); } }
@keyframes countdown-breathe { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .countdown-box::after, .countdown-box.is-urgent strong { animation: none; } }
.countdown-box>.icon { position: absolute; left: 20px; width: 20px; height: 20px; color: var(--countdown-color); }
.countdown-box>div { display: grid; text-align: center; }
.countdown-box span { color: var(--muted); font-size: 12px; line-height: 16px; }
.countdown-box strong { font-family: var(--number-font); font-size: 20px; font-weight: 700; line-height: 28px; white-space: nowrap; }
.countdown-box small { color: var(--muted); font-size: 14px; font-family: inherit; font-weight: 400; }
.number-display { padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--line) 30%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--soft) 20%, transparent); }
.draw-numbers { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; }
.draw-numbers b { color: var(--ink); font-size: 24px; font-weight: 600; line-height: 32px; }
.big-ball { display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 60px; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 32px; font-weight: 700; line-height: 48px; }
.big-ball.result { background: var(--cyan); color: white; font-size: 34px; }
.draw-bottom { display: flex; justify-content: space-between; gap: 8px; padding: 12px 2px 0; color: var(--muted); font-size: 10px; line-height: 16px; }
.draw-bottom>span:first-child { display: flex; align-items: center; gap: 5px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.pill.red { background: var(--red); border-color: transparent; color: white; }
.pill.blue { background: var(--badge-blue); border-color: transparent; color: white; }
.pill.green { background: var(--green); border-color: transparent; color: white; }
.pill.purple { --badge: var(--purple); color: oklch(55.8% .288 302.321); }
.pill.gold { --badge: var(--yellow); color: oklch(68.1% .162 75.834); }
.pill.green-soft { --badge: var(--green); color: oklch(62.7% .194 149.214); }
.pill.cyan { --badge: var(--badge-cyan); color: oklch(60.9% .126 221.723); }
.pill.gray { --badge: var(--gray); color: oklch(44.6% .03 256.802); }
.pill:is(.purple,.gold,.green-soft,.cyan,.gray) { background: color-mix(in srgb, var(--badge) 15%, transparent); border-color: color-mix(in srgb, var(--badge) 50%, transparent); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.summary-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; gap: 2px 10px; min-width: 0; min-height: 64px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 3px #0000000d; text-align: left; }
.summary-card:hover { border-color: color-mix(in srgb, var(--cyan) 30%, transparent); background: color-mix(in srgb, var(--soft) 30%, white); box-shadow: 0 3px 10px #0000001a; }
.summary-top { display: contents; }
.summary-symbol { display: grid; grid-column: 1; grid-row: 1 / 3; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, transparent); }
.summary-symbol .icon { width: 18px; height: 18px; }
.summary-card:nth-child(2) .summary-symbol { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.summary-card:nth-child(3) .summary-symbol { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.summary-card:nth-child(4) .summary-symbol { color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); }
.summary-title { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 12px; line-height: 16px; }
.summary-arrow { display: none; }
.summary-values { display: flex; grid-column: 2; grid-row: 2; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; font-size: 12px; line-height: 1.25; }
.mini-tag { padding: 2px 6px; border-radius: 4px; background: var(--blue-soft); color: oklch(54.6% .245 262.881); font-size: 11px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.mini-tag.green { background: var(--green-soft); color: oklch(62.7% .194 149.214); }
.mini-tag.purple { background: color-mix(in srgb, var(--violet) 15%, transparent); color: oklch(54.1% .281 293.009); }
.mini-tag.red { background: var(--red-soft); color: oklch(57.7% .245 27.325); }
.mini-tag.orange { background: color-mix(in srgb, var(--orange) 15%, transparent); color: oklch(64.6% .222 41.116); }
.summary-empty { color: var(--muted); font-size: 11px; font-weight: 400; }
.analysis-summary-tag, .omission-summary-tag { display: inline-flex; flex-direction: column; align-items: center; padding: 2px 6px; border-radius: 4px; color: var(--summary-tone); background: color-mix(in srgb, var(--summary-tone) 15%, transparent); line-height: 1.25; white-space: nowrap; }
.analysis-summary-tag.red { --summary-tone: var(--red); }
.analysis-summary-tag.blue { --summary-tone: var(--badge-blue); }
.analysis-summary-tag.purple { --summary-tone: var(--purple); }
.analysis-summary-tag.emerald { --summary-tone: oklch(69.6% .17 162.48); color: oklch(59.6% .145 163.225); }
.analysis-summary-tag strong, .omission-summary-tag strong { font-size: 12px; font-weight: 700; }
.analysis-summary-tag small, .omission-summary-tag small { font-family: var(--number-font); font-size: 11px; font-weight: 700; }
.analysis-summary-tag.number strong { font-family: var(--number-font); }
.omission-summary-tag { color: var(--muted); background: color-mix(in oklab, var(--soft) 60%, transparent); }
.omission-summary-tag:first-child { color: var(--red); background: color-mix(in oklab, var(--red) 15%, transparent); }
.omission-summary-tag strong { line-height: 16px; }
.tabs-wrap { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 4px; }
.tab { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 44px; padding: 8px 6px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14.4px; font-weight: 500; line-height: 20.57px; white-space: nowrap; }
.tab:hover { color: var(--ink); background: oklch(93% .03 230); }
.tab[aria-selected=true] { color: var(--ink); background: var(--bg); border-color: var(--line); box-shadow: 0 1px 3px #00000014; }
.tab .icon { width: 16px; height: 16px; }
.data-panel { min-width: 0; min-height: 300px; padding: 16px; border-radius: 12px; overflow: hidden; scroll-margin-top: 76px; }
.panel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; }
.panel-toolbar h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 600; }
.panel-toolbar>.muted { font-size: 12px; }
.sample-badge { padding: 2px 6px; border-radius: 4px; color: var(--muted); background: var(--soft); font-size: 11px; font-weight: 400; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.search-field { width: 160px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 14px; }
.search-field::placeholder { color: var(--muted); }
.table-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--cyan) 40%, transparent) transparent; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; text-align: center; white-space: nowrap; }
th { height: 36px; padding: 8px 12px; background: color-mix(in srgb, var(--soft) 60%, transparent); color: var(--muted); font-weight: 600; }
th:first-child { border-radius: 8px 0 0; }
th:last-child { border-radius: 0 8px 0 0; }
td { padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 20%, transparent); }
tbody tr:nth-child(odd) { background: oklch(68% .15 230 / .03); }
tbody tr:hover { background: oklch(68% .15 230 / .07); }
tbody tr:last-child td { border-bottom: 0; }
td.issue { font-family: var(--number-font); font-weight: 700; }
td.time { color: var(--muted); font-size: inherit; }
.time small { display: none; }
.equation { font-family: var(--number-font); font-weight: 700; }
.equation .muted, .equation strong { color: var(--ink); font-weight: inherit; font-size: inherit; }
.badge-group { display: flex; justify-content: center; gap: 4px; }
.history-table { table-layout: fixed; }
.history-table th:nth-child(1), .history-table th:nth-child(2), .history-table th:nth-child(4) { width: 15.625%; }
.history-table th:nth-child(3) { width: 21.875%; }
.history-table th:nth-child(5), .history-table th:nth-child(6) { width: 10.9375%; }
.history-table th:nth-child(7) { width: 9.375%; }
.table-note { padding-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.pagination { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding-top: 12px; color: var(--muted); font-size: 11px; }
.pagination>span { position: absolute; left: 0; }
.page-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-button { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.page-button.active { color: white; background: var(--cyan); box-shadow: 0 4px 6px color-mix(in srgb, var(--cyan) 25%, transparent); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 230px; padding: 24px; color: var(--muted); font-size: 14px; text-align: center; line-height: 1.9; }
.empty-state>.icon { width: 36px; height: 36px; color: var(--cyan); }
.empty-state strong { color: var(--ink); font-size: 16px; }
.status-message { margin-top: 12px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--yellow) 40%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--yellow) 8%, white); color: oklch(55% .12 70); font-size: 12px; line-height: 1.8; }
.status-message[hidden] { display: none; }
.about-panel { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.about-symbol { display: none; }
.about-panel h2 { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.about-panel p { max-width: 880px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.about-pill { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px 24px; color: var(--muted); font-size: 12px; }
/* Shared explanatory text and current streak cards. */
.view-description { margin-bottom: 17px; padding: 12px 14px; border: 1px solid #e9eff5; border-radius: 7px; background: color-mix(in srgb, var(--soft) 30%, transparent); color: var(--muted); font-size: 12px; line-height: 1.85; }
.streak-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.streak-card { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.streak-card h3 { margin-bottom: 15px; color: var(--muted); font-size: 12px; font-weight: 500; }
.streak-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.streak-main strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.streak-main small { color: var(--muted); font-size: 11px; font-weight: 400; }
.streak-card p { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.7; }

/* Native form controls keep keyboard focus and system accessibility support. */
dialog { width: min(510px, calc(100% - 32px)); max-height: 85vh; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 18px 80px #16365529; }
dialog::backdrop { background: #263c5866; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dialog-heading h2 { font-size: 18px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 24px; line-height: 1; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.setting-row b { font-size: 13px; }
.setting-row small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.setting-row input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--cyan); }
.setting-row select { padding: 7px; border: 1px solid var(--line); border-radius: 5px; background: #f7fafd; color: var(--ink); }
.dialog-done { display: block; min-width: 90px; margin: 20px 0 0 auto; }
dialog .muted { margin-top: 15px; font-size: 11px; }
.feedback-form { display: flex; flex-direction: column; gap: 8px; }
.feedback-form[hidden], .feedback-success[hidden] { display: none; }
.feedback-intro { color: var(--muted); font-size: 13px; margin-bottom: 8px; line-height: 1.8; }
.feedback-form label { margin-top: 8px; font-size: 13px; font-weight: 600; }
.feedback-form label small { color: var(--muted); font-weight: 400; }
.feedback-form :is(input,select,textarea) { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.feedback-form textarea { resize: vertical; min-height: 128px; max-height: 280px; line-height: 1.6; }
.feedback-form textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 50%, transparent); outline-offset: 3px; }
.feedback-counter { color: var(--muted); font-size: 11px; text-align: right; }
.feedback-error { color: var(--red); font-size: 13px; line-height: 1.7; }
.feedback-form .dialog-done { margin-top: 12px; }
.feedback-success { padding: 24px 0 8px; text-align: center; }
.feedback-success > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-soft); color: oklch(59.6% .145 163.225); font-size: 28px; }
.feedback-success h3 { margin: 0 0 8px; font-size: 18px; }
.feedback-success p { color: var(--muted); font-size: 13px; }
.feedback-success button { margin-top: 24px; }
.skeleton { color: transparent !important; background: var(--soft) !important; text-shadow: none !important; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.masked { cursor: pointer; }
.masked-hint { color: var(--muted); }
.noscript { padding: 40px; text-align: center; }


@media (max-width: 1023px) {
  .container { padding: 20px 16px 0; }
  .data-panel { padding: 12px; }
  .about-pill { display: none; }
  .tab { font-size: 13px; padding-left: 3px; padding-right: 3px; }
}
@media (max-width: 767px) {
  .draw-stage { flex-direction: column; gap: 16px; }
  .latest-title { align-items: flex-start; flex-direction: column; gap: 0; }
  .countdown-box { min-width: 260px; padding: 8px 52px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { font-size: 11px; }
  .tab .icon { width: 14px; height: 14px; }
  .pagination>span { position: static; width: 100%; text-align: center; }
}
@media (max-width: 639px) {
  .site-header { height: 57px; }
  .header-inner { gap: 8px; height: 56px; padding: 10px 12px; }
  .brand { font-size: 16px; }
  .brand-icon { width: 26px; height: 26px; font-size: 18px; }
  .header-help { min-height: 32px; padding: 4px 12px; font-size: 12px; }
  .container { padding: 12px 12px 0; }
  .draw-card { padding: 24px; }
  .draw-actions .button { padding: 4px 8px; }
  #refresh-button { display: none; }
  .game-bar { padding: 6px; }
  .game-button { min-width: 112px; padding: 6px 8px; font-size: 11px; line-height: 14px; }
  .draw-stage { margin-top: 36px; }
  .number-display { padding: 12px 8px; }
  .summary-grid { gap: 8px; margin: 12px 0; }
  .summary-card { grid-template-columns: 32px minmax(0, 1fr); gap: 2px 8px; padding: 6px 10px; }
  .summary-symbol { width: 32px; height: 32px; }
  .summary-symbol .icon { width: 14px; height: 14px; }
  .summary-title { font-size: 10px; line-height: 15px; }
  .summary-values { gap: 2px; }
  .summary-values .mini-tag { font-size: 9px; padding: 2px 4px; }
  .summary-empty { font-size: 10px; }
  .analysis-summary-tag, .omission-summary-tag { padding: 2px 4px; }
  .analysis-summary-tag strong, .omission-summary-tag strong { font-size: 10px; }
  .analysis-summary-tag small, .omission-summary-tag small { font-size: 9px; }
  .omission-summary-tag strong { line-height: 12.5px; }
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tab { font-size: 14.4px; min-height: 44px; border-radius: 6.4px; }
  .tab .icon { width: 16px; height: 16px; }
  .data-panel { padding: 8px; scroll-margin-top: 76px; }
  .toolbar-actions { width: 100%; }
  .search-field { width: 100%; min-width: 0; font-size: 16px; }
  .history-table { font-size: 12px; line-height: 17.14px; }
  .history-table th, .history-table td { padding: 8px 4px; }
  .history-table th { height: 33px; }
  .history-table th:nth-child(1), .history-table th:nth-child(2), .history-table th:nth-child(4) { width: 19.6%; }
  .history-table th:nth-child(3) { width: 27.45%; }
  .history-table th:nth-child(5) { width: 13.75%; }
  .history-table th:nth-child(n+6), .history-table td:nth-child(n+6) { display: none; }
  .pill { height: 22px; padding: 2px 8px; font-size: 11px; }
  .page-button { min-width: 32px; height: 32px; font-size: 12px; }
  .site-footer { flex-direction: column; gap: 4px; font-size: 11px; }
  .streak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .streak-card { padding: 14px; }
  .setting-row select { font-size: 16px; }
  .feedback-form :is(input, select, textarea) { font-size: 16px; }
}
/* Small screens use the source's mobile number dimensions. */
@media (max-width: 420px) {
  .draw-card { padding: 20px 14px; }
  .latest-title h1 { font-size: 16px; }
  #latest-issue { font-size: 12px; }
  .button { font-size: 12px; }
  .big-ball { width: 44px; height: 44px; font-size: 20px; }
  .big-ball.result { font-size: 22px; }
  .draw-numbers { gap: 8px; }
  .draw-numbers b { font-size: 20px; }
  .number-display { padding: 12px 8px; }
  .draw-stage { margin-top: 24px; }
  .countdown-box { min-width: 0; width: 100%; max-width: 260px; }
  .summary-card { grid-template-columns: 26px minmax(0, 1fr); gap: 2px 6px; padding: 6px 8px; }
  .summary-symbol { width: 26px; height: 30px; }
  .tab { font-size: 11.2px; min-height: 36px; padding: 5px 2px; }
  .tab .icon { width: 14px; height: 14px; }
  .history-table { font-size: 10px; }
  .history-table th, .history-table td { padding: 8px 2px; }
  .history-table .pill { font-size: 10px; padding: 2px 4px; }
  .history-table .badge-group { gap: 2px; }
  .draw-bottom { flex-wrap: wrap; font-size: 9px; }
  .game-button { min-width: 96px; }
}
@media (max-width: 359px) {
  .draw-card { padding-left: 10px; padding-right: 10px; }
  .big-ball { width: 40px; height: 44px; }
  .draw-numbers { gap: 7px; }
  .draw-numbers b { font-size: 18px; }
  .summary-card { grid-template-columns: 1fr; }
  .summary-symbol { display: none; }
  .summary-title, .summary-values { grid-column: 1; }
  .tab { gap: 2px; font-size: 10px; }
  .tab .icon { width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .game-button.active, .tab[aria-selected=true], .page-button.active { outline: 1px solid Highlight; }
}
